/* Styles specific to itinerary detail pages */

.package-layout {
    width: 100%;
}

.package-main {
    margin-bottom: 40px;
}

.package-sidebar-wrap {
    display: flex;
    align-items: flex-start;
    margin-top: 24px;
}

.package-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.overview-gallery {
    position: relative;
    margin: 36px 0;
}

.overview-journey {
    margin-top: 28px;
}

.overview-journey h3 {
    font-size: 22px;
    color: #121518;
    margin-bottom: 16px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}


.journey-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.journey-item {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(18, 21, 24, 0.1);
}

.journey-item__title {
    font-size: 18px;
    margin: 0 0 8px 0;
    color: #121518;
}


.journey-item p {
    margin: 0 0 10px 0;
    color: #3a3d41;
    line-height: 1.6;
}


.journey-night {
    margin: 0;
    font-weight: 600;
    color: #121518;
}

.journey-night__link {
    color: #aa9166;
    text-decoration: none;
}

.journey-night__link:hover,
.journey-night__link:focus {
    text-decoration: underline;
}

.itinerary-day .journey-night {
    margin-top: 24px;
    padding-top: 14px;
    padding-left: 80px;
    border-top: 1px solid rgba(18, 21, 24, 0.08);
    color: #aa9166;
}

.itinerary-day .journey-night strong {
    color: #aa9166;
    letter-spacing: 0.4px;
}

.itinerary-day .journey-night__link {
    color: #c6a674;
    font-weight: 600;
}

.itinerary-day .journey-night__link:hover,
.itinerary-day .journey-night__link:focus {
    color: #aa9166;
    text-decoration: underline;
}

.overview-gallery__track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(170, 145, 102, 0.6) transparent;
    scroll-behavior: smooth;
}

.overview-gallery__track::-webkit-scrollbar {
    height: 6px;
}

.overview-gallery__track::-webkit-scrollbar-thumb {
    background-color: rgba(170, 145, 102, 0.6);
    border-radius: 999px;
}

.overview-gallery__track::-webkit-scrollbar-track {
    background: transparent;
}

.overview-gallery__item {
    flex: 0 0 calc((100% - 36px) / 3);
        border-radius: 3px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 14px 32px -22px rgba(18, 21, 24, 0.55);
    scroll-snap-align: start;
    background: #ffffff;
}

.overview-gallery__item img {
    width: 100%;
    aspect-ratio: 3 / 2;
    height: auto;
    object-fit: cover;
    display: block;
}

.overview-gallery__item figcaption {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    clip: rect(0, 0, 0, 0);
    overflow: hidden;
}

.overview-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.92);
    color: #121518;
    box-shadow: 0 18px 34px -24px rgba(18, 21, 24, 0.55);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    z-index: 2;
}

.overview-gallery__nav:hover,
.overview-gallery__nav:focus {
    transform: translateY(-50%) scale(1.05);
    background: #aa9166;
    color: #ffffff;
}

.overview-gallery__nav:disabled {
    opacity: 0.35;
    pointer-events: none;
}

.overview-gallery__nav--prev {
    left: 12px;
}

.overview-gallery__nav--next {
    right: 12px;
}

.itinerary-gallery {
    margin: 0 0 30px;
}

.itinerary-gallery .overview-gallery__track {
    gap: 12px;
}

.itinerary-gallery .overview-gallery__item {
    flex: 0 0 calc((100% - 36px) / 4);
    border-radius: 4px;
}

.itinerary-gallery .overview-gallery__item img {
    border-radius: 2px;
    aspect-ratio: 5 / 3;
}

.pricing-overview {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin-top: 32px;
}

.pricing-main {
    flex: 1 1 580px;
    padding: 12px 0;
}

.pricing-tagline {
    display: block;
    margin: 0 0 12px 0;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #aa9166;
}

.pricing-highlight {
    border: 1px solid rgba(170, 145, 102, 0.35);
    border-radius: 12px;
    padding: 22px 18px;
    text-align: center;
    margin-bottom: 24px;
    background: #f5efe4;
    box-shadow: 0 10px 24px -20px rgba(18, 21, 24, 0.4);
}

.pricing-highlight__label {
    display: block;
    font-size: 12px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #6c6e71;
    margin-bottom: 6px;
}

.pricing-highlight__value {
    font-family: 'EB Garamond', serif;
    font-size: 40px;
    font-weight: 700;
    color: #121518;
    line-height: 1.1;
}

.pricing-highlight__suffix {
    display: inline-block;
    margin-left: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #aa9166;
}

.pricing-table-card {
    border: 1px solid rgba(18, 21, 24, 0.12);
    border-radius: 8px;
    overflow: hidden;
    background: transparent;
    padding: 0;
}

.pricing-table-card__inner {
    background: #f5efe4;
    padding: 20px;
}

.pricing-table-card__head {
    padding: 16px 20px;
    font-size: 13px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    font-weight: 600;
    color: #121518;
    background: #f5efe4;
    border-bottom: 1px solid rgba(18, 21, 24, 0.1);
}

.pricing-matrix {
    width: 100%;
    border-collapse: collapse;
}

.pricing-matrix th,
.pricing-matrix td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(18, 21, 24, 0.08);
    text-align: left;
    font-size: 15px;
    color: #3a3d41;
}

.pricing-matrix th {
    font-size: 13px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #c6a674;
    background: #121518;
}

.pricing-matrix td {
    background: #ffffff;
}

.pricing-matrix td:nth-child(2) {
    font-weight: 600;
    color: #aa9166;
}

.pricing-matrix__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #121518;
    font-weight: 600;
    text-decoration: none;
}

.pricing-matrix__link:hover,
.pricing-matrix__link:focus {
    color: #aa9166;
}

.pricing-note {
    margin: 18px 0 0 0;
    font-size: 13px;
    color: #6c6e71;
    letter-spacing: 0.4px;
}

.pricing-lists {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin-top: 40px;
}

.pricing-list {
    flex: 1 1 320px;
    padding: 0;
}

.pricing-list h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px 0;
    font-size: 18px;
    color: #121518;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-list h3 i {
    font-size: 20px;
}

.pricing-list__items {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pricing-list__items li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #3a3d41;
    line-height: 1.6;
    font-size: 15px;
}

.pricing-list__items li i {
    font-size: 14px;
    margin-top: 4px;
}

.pricing-list--included h3 i,
.pricing-list--included .pricing-list__items li i {
    color: #2f7a31;
}

.pricing-list--excluded h3 i,
.pricing-list--excluded .pricing-list__items li i {
    color: #b14646;
}

@media (max-width: 992px) {
    .itinerary-gallery .overview-gallery__item {
        flex: 0 0 calc((100% - 12px) / 2);
    }

    .pricing-main {
        flex: 1 1 100%;
    }
}

@media (max-width: 576px) {
    .itinerary-gallery .overview-gallery__item {
        flex: 0 0 100%;
    }
}

.related-packages {
    margin-top: 24px;
    padding: 32px 0 48px;
    background: #ffffff;
}

.related-packages__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
}

.related-packages__header h3 {
    margin: 0;
    font-size: 24px;
    letter-spacing: 0.8px;
    text-transform: capitalize;
    color: #121518;
}
.related-packages__all {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #aa9166;
    text-decoration: none;
}

.related-packages__all:hover,
.related-packages__all:focus {
    text-decoration: underline;
}

.related-packages__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.related-card {
    background: #101417;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 16px 34px -28px rgba(18, 21, 24, 0.6);
    display: flex;
    flex-direction: column;
}

.related-card__figure {
    display: block;
    overflow: hidden;
}

.related-card__figure img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-card__figure:focus img,
.related-card__figure:hover img {
    transform: scale(1.04);
}

.related-card__body {
    padding: 22px 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    color: rgba(255, 255, 255, 0.82);
}

.related-card__title {
    margin: 0;
    font-size: 18px;
    line-height: 1.4;
}

.related-card__title a {
    color: #c6a674;
    text-decoration: none;
}

.related-card__title a:hover,
.related-card__title a:focus {
    color: #ffffff;
}

.related-card__feedback {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    padding-top: 18px;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.related-card__rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #c6a674;
    transition: color 0.2s ease;
}

.related-card__rating i {
    font-size: 13px;
}

.related-card__rating-value {
    margin-left: 6px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.related-card__likes {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #ff6b6b;
    transition: color 0.2s ease;
}

.related-card__likes-count {
    color: rgba(255, 255, 255, 0.82);
}

.related-card:hover .related-card__title a,
.related-card:focus-within .related-card__title a {
    color: #ffffff;
}

.related-card:hover .related-card__rating,
.related-card:focus-within .related-card__rating {
    color: #ffffff;
}

.related-card:hover .related-card__likes,
.related-card:focus-within .related-card__likes {
    color: #ffffff;
}

@media (min-width: 992px) {
    .package-layout {
        align-items: flex-start;
    }

    .package-main {
        margin-bottom: 0;
        padding-right: 30px;
    }

    .package-sidebar-wrap {
        margin-top: 0;
        justify-content: flex-end;
    }

    .package-sidebar {
        position: sticky;
        top: 96px;
        align-self: flex-start;
        max-width: 360px;
    }
}

@media (max-width: 991.98px) {
    .package-sidebar {
        position: static;
    }

    .overview-gallery__item {
        flex: 0 0 calc((100% - 18px) / 2);
    }

}

@media (max-width: 767.98px) {
    .overview-gallery__item {
        flex: 0 0 75%;
    }

    .overview-gallery__item img {
        aspect-ratio: 4 / 3;
    }

    .overview-gallery__nav--prev {
        left: 6px;
    }

    .overview-gallery__nav--next {
        right: 6px;
    }

    .overview-journey h3 {
        font-size: 20px;
    }

    .journey-item__title {
        font-size: 17px;
    }

    .related-packages {
        padding: 44px 0;
    }

    .related-packages__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .itinerary-day .journey-night {
        padding-left: 42px;
        padding-top: 18px;
    }

    .pricing-highlight__value {
        font-size: 38px;
    }

    .pricing-overview {
        gap: 24px;
    }

}

@media (max-width: 575.98px) {
    .overview-gallery {
        margin: 28px 0;
    }

    .overview-gallery__item {
        flex: 0 0 85%;
    }

    .overview-gallery__nav {
        width: 32px;
        height: 32px;
    }

    .overview-gallery__item img {
        aspect-ratio: 16 / 9;
    }

    .journey-item {
        padding: 0 0 12px 0;
    }

    .journey-item__title {
        font-size: 16px;
    }

}


.request-quote-card {
    background-color: #f5efe4;
    border: 1px solid rgba(18, 21, 24, 0.08);
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
}

.quote-card-intro {
    font-size: 15px;
    color: #4d4f52;
    margin-bottom: 20px;
}

.quote-card-btn {
    background: linear-gradient(135deg, #aa9166, #c6a879);
    color: #ffffff;
    font-weight: 600;
    padding: 12px 28px;
    border: none;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(170, 145, 102, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    width: 100%;
}

.quote-card-btn:hover,
.quote-card-btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(170, 145, 102, 0.45);
}

.quote-card-btn:focus {
    outline: 2px solid rgba(170, 145, 102, 0.5);
    outline-offset: 3px;
}

.quote-contact {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin: 18px 0 18px;
}

.quote-contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: #121518;
    text-decoration: none;
    gap: 8px;
}

.quote-contact-link i {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background-color: rgba(170, 145, 102, 0.15);
    color: #aa9166;
    font-size: 18px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.quote-contact-link:hover i,
.quote-contact-link:focus i {
    background-color: #aa9166;
    color: #ffffff;
}

.quote-card-subheading {
    margin-top: 22px;
    font-size: 13px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #6c6e71;
}

.quote-card-attract {
    font-size: 14px;
    line-height: 1.7;
    color: #2c2f33;
    margin: 12px 0 20px;
}

.quote-card-karibu {
    font-family: "EB Garamond", serif;
    font-size: 22px;
    color: #aa9166;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin: 0 0 16px;
    padding: 12px 0;
    border-top: 2px solid rgba(170, 145, 102, 0.4);
    border-bottom: 2px solid rgba(170, 145, 102, 0.4);
}

.quote-card-footer {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #6c6e71;
    margin: 0;
}

.sticky-card {
    position: relative;
}

/* Modal styles */
.quote-modal {
    background-color:#aa9166;
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: transparent;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1050;
}

.quoteModalTitle{
    background-color:#f0ebe3;
}

.quote-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.quote-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(18, 21, 24, 0.72);
}

.quote-modal__dialog {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 36px;
    max-width: 640px;
    width: 100%;
    box-shadow: 0 30px 60px -30px rgba(18, 21, 24, 0.6);
    max-height: 90vh;
    overflow-y: auto;
}

.quote-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #4d4f52;
    cursor: pointer;
}

.quote-modal__intro {
    font-size: 15px;
    color: #4d4f52;
    margin-bottom: 20px;
}

.quote-form .form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.quote-form label {
    font-weight: 600;
    color: #121518;
    margin-bottom: 6px;
}

.quote-form input,
.quote-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #121518;
    border-radius: 0;
    font-size: 15px;
    color: #121518;
}

.quote-form textarea {
    resize: vertical;
}

.quote-form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.quote-honeypot {
    opacity: 0;
}

.form-row-inline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: 10px;
}

.quote-form-submit {
    background: #121518;
    color: #aa9166;
    border: 2px solid #aa9166;
    padding: 14px 32px;
    border-radius: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.quote-form-submit:hover,
.quote-form-submit:focus {
    background: #aa9166;
    color: #121518;
}

.quote-form-note {
    font-size: 13px;
    color: #6c6e71;
    margin: 0;
}

.quote-form-response {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #2f7a31;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .quote-modal__dialog {
        padding: 28px 22px 26px;
        border-radius: 12px;
    }

    .quote-contact {
        gap: 12px;
    }
}

@media (max-width: 575.98px) {
    .form-row-inline {
        grid-template-columns: 1fr;
    }

    .package-sidebar {
        flex-direction: column-reverse;
    }
}
