/* CSS untuk Halaman Detail Paket Umroh */

/* Page Banner */
.page-banner {
    background-image: url('../img/banner-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 120px 0 60px;
    position: relative;
    margin-bottom: 60px;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 71, 42, 0.7);
    z-index: 1;
}

.page-banner .container {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.page-banner h1 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 700;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
}

.breadcrumb a {
    color: var(--white);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb i {
    font-size: 12px;
    color: var(--secondary-color);
}

.breadcrumb span {
    color: var(--secondary-color);
}

/* Package Detail Grid Layout */
.package-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Package Gallery */
.package-gallery {
    margin-bottom: 30px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.main-image {
    width: 100%;
    height: 400px;
    margin-bottom: 15px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.main-image:hover img {
    transform: scale(1.05);
}

.thumbnail-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.thumbnail {
    height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Package Tabs */
.package-tabs {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--gray-200);
    background-color: var(--gray-100);
}

.tab-btn {
    flex: 1;
    border: none;
    background: none;
    padding: 15px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.tab-btn.active::after {
    width: 100%;
}

.tabs-content {
    padding: 30px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tab-pane h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 10px;
}

.tab-pane h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.tab-pane p {
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.7;
}

/* Itinerary Tab Specific */
.itinerary-list {
    margin-top: 30px;
}

.itinerary-day {
    margin-bottom: 30px;
    border-left: 2px solid var(--primary-color);
    padding-left: 20px;
    position: relative;
}

.itinerary-day:last-child {
    margin-bottom: 0;
}

.day-number {
    position: absolute;
    left: -12px;
    top: 0;
    width: 24px;
    height: 24px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
}

.itinerary-day h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.itinerary-day p {
    margin-bottom: 10px;
}

.itinerary-activity {
    padding-left: 25px;
    position: relative;
    margin-bottom: 15px;
}

.itinerary-activity:before {
    content: '\f017';
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--secondary-color);
}

.itinerary-activity strong {
    color: var(--dark-color);
}

/* Facilities Tab Specific */
.facilities-included,
.facilities-excluded {
    margin-bottom: 30px;
}

.facility-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.facility-list li {
    position: relative;
    padding-left: 30px;
    line-height: 1.6;
}

.facility-list.included li:before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #28a745;
    position: absolute;
    left: 0;
    top: 2px;
}

.facility-list.excluded li:before {
    content: '\f00d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #dc3545;
    position: absolute;
    left: 0;
    top: 2px;
}

/* Terms Tab Specific */
.terms-list {
    list-style-type: decimal;
    padding-left: 20px;
}

.terms-list li {
    margin-bottom: 15px;
    color: var(--text-color);
}

/* Package Sidebar */
.package-sidebar {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: sticky;
    top: 120px;
}

.package-price-box {
    padding: 25px;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.price-label {
    font-size: 16px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.price-value {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}

.price-note {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 20px;
}

.sidebar-content {
    padding: 25px;
}

.package-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 15px;
}

.info-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 16px;
}

.info-content h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--text-color);
}

.info-content p {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
}

.sidebar-divider {
    height: 1px;
    background-color: var(--gray-200);
    margin: 20px 0;
}

.booking-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.booking-actions .btn-primary {
    padding: 15px;
    font-size: 16px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.booking-actions .btn-secondary {
    padding: 15px;
    font-size: 16px;
    text-align: center;
}

.sidebar-share {
    margin-top: 20px;
    text-align: center;
}

.sidebar-share h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.share-btn.fb:hover {
    background-color: #3b5998;
    color: var(--white);
}

.share-btn.wa:hover {
    background-color: #25d366;
    color: var(--white);
}

.share-btn.tw:hover {
    background-color: #1da1f2;
    color: var(--white);
}

/* Related Packages */
.related-packages {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid var(--gray-200);
}

.related-packages h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    position: relative;
    padding-bottom: 15px;
}

.related-packages h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* CTA Section */
.detail-cta {
    background-color: var(--gray-100);
    padding: 40px;
    border-radius: var(--radius-lg);
    margin-top: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.detail-cta-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.detail-cta-content p {
    font-size: 16px;
    color: var(--text-color);
}

/* Virtual Tour Section */
.virtual-tour {
    margin-top: 60px;
}

.virtual-tour-container {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.virtual-tour iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* FAQ Section */
.package-faq {
    margin-top: 60px;
}

.accordion {
    margin-top: 30px;
}

.accordion-item {
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    overflow: hidden;
}

.accordion-header {
    padding: 0;
    margin: 0;
}

.accordion-button {
    width: 100%;
    padding: 20px;
    font-size: 18px;
    font-weight: 500;
    text-align: left;
    background-color: var(--white);
    color: var(--dark-color);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.accordion-button:hover {
    background-color: var(--gray-100);
}

.accordion-button:after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    transition: all 0.3s ease;
}

.accordion-button.active {
    background-color: var(--gray-100);
}

.accordion-button.active:after {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content-inner {
    padding: 0 20px 20px;
    color: var(--text-color);
    line-height: 1.7;
}

/* Amenities Icons */
.amenities {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.amenity-item {
    text-align: center;
}

.amenity-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background-color: rgba(12, 113, 61, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
}

.amenity-name {
    font-size: 14px;
    color: var(--text-color);
}

/* Floating Book Button (Mobile Only) */
.floating-book-btn {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 15px 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 99;
}

/* Departure Date Selector Styling */
.departure-date-selector {
    margin-top: 10px;
    width: 100%;
}

.month-selector {
    display: block;
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.month-selector:hover {
    border-color: #0c713d;
}

.month-selector:focus {
    outline: none;
    border-color: #0c713d;
    box-shadow: 0 0 0 2px rgba(12, 113, 61, 0.2);
}

.date-options-container {
    width: 100%;
    margin-bottom: 15px;
}

.date-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    gap: 10px;
    animation: fadeIn 0.3s ease;
}

.date-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.date-option:hover {
    border-color: #0c713d;
    background-color: #f0f7f4;
    transform: translateY(-2px);
}

.date-option.selected {
    background-color: #e0f2e9;
    border-color: #0c713d;
    box-shadow: 0 3px 6px rgba(12, 113, 61, 0.15);
}

.date-day {
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
}

.date-number {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    line-height: 1;
    margin-bottom: 2px;
}

.date-month {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.availability {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 500;
}

.available {
    background-color: rgba(12, 113, 61, 0.1);
    color: #0c713d;
}

.limited {
    background-color: rgba(255, 152, 0, 0.1);
    color: #ff9800;
}

.booked {
    background-color: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.selected-date-display {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Styling untuk simulasi cicilan di sidebar */
.cicilan-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #e0e0e0;
    text-align: center;
}

.cicilan-label {
    font-size: 14px;
    color: #868181;
    margin-bottom: 5px;
}

.cicilan-value {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.cicilan-btn {
    display: inline-block;
    background-color: #009975;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cicilan-btn:hover {
    background-color: #007c5e;
}

/* Modal Simulasi Cicilan */
.cicilan-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    overflow: auto;
}

.cicilan-modal-content {
    background-color: #fff;
    margin: 50px auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
}

.cicilan-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.cicilan-modal-header {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.cicilan-modal-header h3 {
    font-size: 20px;
    color: #333;
    margin: 0;
}

.bank-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
}

.bank-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.bank-option:hover, .bank-option.active {
    border-color: #009975;
    background-color: #f5fffa;
}

.bank-option img {
    height: 30px;
    margin-right: 10px;
}

.cicilan-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.cicilan-table th, .cicilan-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.cicilan-table th {
    background-color: #f8f8f8;
    font-weight: 600;
}

.cicilan-table .cicilan-amount {
    font-weight: 600;
    color: #009975;
}

.cicilan-note {
    font-size: 13px;
    color: #666;
    font-style: italic;
    margin-top: 15px;
}

/* Media Queries for Responsive Design */
@media (min-width: 768px) {
    .date-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .date-options {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .package-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .package-sidebar {
        position: static;
    }
    
    .main-image {
        height: 350px;
    }
    
    .thumbnail {
        height: 80px;
    }
    
    .amenities {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .facility-list {
        grid-template-columns: 1fr;
    }
    
    .detail-cta {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-banner h1 {
        font-size: 32px;
    }
    
    .tabs-header {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 0 0 50%;
    }
    
    .main-image {
        height: 300px;
    }
    
    .thumbnail-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .thumbnail {
        height: 100px;
    }
    
    .floating-book-btn {
        display: block;
    }

    .bank-selector {
        justify-content: center;
    }
    
    .cicilan-table {
        font-size: 14px;
    }
    
    .cicilan-table th, .cicilan-table td {
        padding: 8px 6px;
    }
}

@media (max-width: 576px) {
    .page-banner {
        padding: 100px 0 40px;
    }
    
    .page-banner h1 {
        font-size: 28px;
    }
    
    .main-image {
        height: 250px;
    }
    
    .tabs-content {
        padding: 20px;
    }
    
    .price-value {
        font-size: 28px;
    }
    
    .amenities {
        grid-template-columns: 1fr;
    }
}