/* --- PACKAGE DETAILS PAGE STYLES --- */

/* Details Hero */
.details-hero {
    position: relative;
    padding: 150px 0 80px; /* Same padding as packages banner */
    color: var(--white);
    background-size: cover !important;
    background-position: center !important;
}

.hero-content-bottom {
    max-width: 900px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.badge {
    background: var(--secondary);
    color: var(--white);
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-outline {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
}

.details-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.details-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.meta-item i {
    color: var(--secondary);
}

/* Layout */
.details-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.details-main {
    flex: 1;
}

.details-sidebar {
    width: 350px;
    position: sticky;
    top: 100px;
}

/* Tabs */
.details-tabs {
    background: var(--white);
    border-radius: 12px;
    padding: 15px 25px;
    display: flex;
    gap: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    margin-bottom: 40px;
    position: sticky;
    top: 80px;
    z-index: 100;
}

.tab-link {
    text-decoration: none;
    color: var(--gray-400);
    font-weight: 600;
    font-size: 15px;
    padding: 10px 0;
    position: relative;
    transition: var(--transition);
}

.tab-link:hover, .tab-link.active {
    color: var(--primary);
}

.tab-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--secondary);
    transition: var(--transition);
    border-radius: 3px 3px 0 0;
}

.tab-link.active::after {
    width: 100%;
}

/* Sections */
.details-section {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.details-section h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-100);
}

.details-section p {
    color: var(--gray-400);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 15px;
}

/* Highlights */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.highlight-item i {
    color: var(--secondary);
    font-size: 18px;
    margin-top: 3px;
}

.highlight-item span {
    font-size: 15px;
    font-weight: 500;
    color: var(--dark);
}

/* Itinerary Timeline */
.itinerary-timeline {
    position: relative;
    padding-left: 30px;
}

.itinerary-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 0;
    width: 2px;
    background: var(--gray-100);
}

.day-card {
    position: relative;
    margin-bottom: 40px;
}

.day-card:last-child {
    margin-bottom: 0;
}

.day-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.day-badge {
    background: var(--primary);
    color: var(--white);
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
}

.day-badge::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--secondary);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--gray-100);
}

.day-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.day-content {
    background: var(--gray-100);
    padding: 25px;
    border-radius: 12px;
}

.day-inclusions {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.day-inclusions li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    background: var(--white);
    padding: 6px 12px;
    border-radius: 6px;
}

/* Inclusions / Exclusions */
.inc-exc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.inc-box, .exc-box {
    background: var(--gray-100);
    padding: 25px;
    border-radius: 12px;
}

.inc-box h3, .exc-box h3 {
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.text-success { color: #10b981; }
.text-danger { color: #ef4444; }

.inc-box ul, .exc-box ul {
    list-style: none;
    padding: 0;
}

.inc-box ul li, .exc-box ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--dark);
}

.inc-box ul li::before, .exc-box ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #10b981;
}

.exc-box ul li::before {
    content: '\f00d';
    color: #ef4444;
}

/* Sidebar Widgets */
.booking-widget {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.price-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-100);
}

.price-header .from {
    font-size: 13px;
    color: var(--gray-400);
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

.price-header .price {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.price-header .price span {
    font-size: 15px;
    color: var(--gray-400);
    font-weight: 500;
}

.booking-form .form-group {
    margin-bottom: 18px;
}

.booking-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 14px;
}

.input-with-icon input {
    width: 100%;
    padding: 10px 15px 10px 35px;
    border: 1px solid var(--gray-100);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: var(--dark);
    outline: none;
    box-sizing: border-box;
    background: #f8fafc;
}

.input-with-icon input:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 34, 102, 0.1);
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.total-price-calc {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gray-100);
    padding: 15px;
    border-radius: 8px;
    margin-top: 25px;
    margin-bottom: 25px;
}

.total-price-calc span {
    font-weight: 600;
    color: var(--dark);
}

.total-price-calc strong {
    font-size: 20px;
    color: var(--primary);
    font-weight: 800;
}

.btn-outline-dark {
    background: transparent;
    color: var(--dark);
    border-color: var(--gray-100);
}

.btn-outline-dark:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.help-widget {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.help-widget h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.help-widget p {
    font-size: 14px;
    color: var(--gray-400);
    margin-bottom: 15px;
}

.help-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 992px) {
    .details-layout {
        flex-direction: column;
        width: 100%;
    }
    .details-main {
        width: 100%;
        min-width: 0;
    }
    .details-sidebar {
        width: 100%;
        position: static;
        margin-top: 30px;
    }
    .details-tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding: 15px;
    }
    .tab-link {
        padding: 5px 15px;
    }
}

@media (max-width: 768px) {
    .details-hero {
        padding: 120px 0 60px;
    }
    .details-title { 
        font-size: 28px; 
    }
    .details-meta-bar {
        gap: 15px;
    }
    .meta-item {
        font-size: 13px;
    }
    .details-section {
        padding: 25px 15px;
    }
    .details-section h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    .details-section p {
        font-size: 14px;
        line-height: 1.6;
    }
    .inc-box ul li, .exc-box ul li {
        font-size: 13px;
    }
    .highlight-item span {
        font-size: 14px;
    }
    .inc-exc-grid { 
        grid-template-columns: 1fr; 
        gap: 20px;
    }
    .highlights-grid { 
        grid-template-columns: 1fr; 
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .booking-widget {
        padding: 20px;
    }
    .itinerary-timeline {
        padding-left: 20px;
    }
    .itinerary-timeline::before {
        left: 5px;
    }
    .day-badge::before {
        left: -15px; /* Adjusted to perfectly align with the line */
    }
    .day-content {
        padding: 15px;
    }
    .day-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .day-inclusions {
        gap: 10px;
    }
    .day-inclusions li {
        font-size: 12px;
        padding: 5px 10px;
    }
}
