/* single blog page  */
body:has(.blog-single-page) #primary-menu a {
    color: black;
}

body:has(.blog-single-page) .site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.section-inner-blog {
    margin-top: 40px;
}

/* 404 page  */
body:has(.page-not-found) #primary-menu a {
    color: black;
}

body:has(.page-not-found) .site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}




/* meta row: date/author on the left, share on the right */
.hero-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid #9aa4b245;
    margin-bottom: 28px;
}

.article-meta .meta-author {
    color: black;
    font-weight: 500;
}

.share {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: black;
}

.share-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-icons a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.15s ease;
}

.share-icons a:hover {
    background: var(--color-yellow);
    transform: translateY(-1px);
}

.share-icons svg {
    width: 15px;
    height: 15px;
    fill: var(--secondary);
}

/* Hero image with baked-in caption overlay */
.hero-image-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 26px;
}

.hero-image-wrap img {
    width: 100%;
    height: clamp(320px, 46vw, 620px);
    object-fit: cover;
}

.hero-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 40px 36px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 65%);
    color: #ffffff;
}

.hero-caption .caption-title {
    font-weight: 700;
    font-size: clamp(22px, 3vw, 32px);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.hero-caption .caption-subtitle {
    font-weight: 400;
    font-size: clamp(15px, 1.6vw, 19px);
    margin: 0;
    opacity: 0.95;
}


/* -------------------------------- Sidebar ---------------------------------- */
.blog-single-page {
    display: grid;
    grid-template-columns: minmax(0, 2.35fr) minmax(0, 1fr);
    gap: 50px;
    align-items: start;
}


.blog-sidebar {
    min-width: 0;
    position: sticky;
    top: 82px;
    align-self: start;
    max-height: calc(100vh - 64px);
    /* overflow-y: auto; */
}

.blog-sidebar .title-main h2 {
    font-size: 30px;
}


.related-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding-block: 16px;
    border-bottom: 1px solid #9aa4b245;
}

.related-list li:first-child {
    padding-top: 0;
}

.related-list li:last-child {
    border-bottom: none;
}

.related-thumb {
    flex: 0 0 135px;
    width: 203px;
    height: 97px;
    border-radius: 3px;
    overflow: hidden;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-info a {
    display: block;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: black;
}

.related-info a:hover {
    color: var(--color-yellow);
}

.section-inner-blog .breadcrumb ul li.active {
    color: black;
}



.wp-block-table td,
.wp-block-table th {
    border: 1px solid;
    padding: .5em;
    padding: 8px 19px;
    border: 1px solid rgba(0, 0, 0, .07);
    font-size: 15px;
    font-weight: 500;
    transition: .3s ease;
    text-align: left;
}

.wp-block-table table {
    border: none;
    border-collapse: collapse;
    border: 1px solid rgba(0, 0, 0, .05);
    background: #f1f1f1;
    width: 100%;
}


.wp-block-table tr:nth-child(odd) {
    background-color: #f2f2f2;
}

.wp-block-table tr:nth-child(even) {
    background-color: #ffffff;
}

.wp-block-table tr:first-child {
    background-color: #eeeeee;
}

.wp-block-table tr:first-child td {
    font-weight: 700;
}

/* -------------------------------- Responsive -------------------------------- */

@media (max-width: 1200px) {
    .blog-single-page {
        gap: 36px;
    }

    .blog-sidebar {
        top: 60px;
    }
}

@media (max-width: 992px) {
    .blog-single-page {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .blog-sidebar {
        position: static;
        max-height: none;
        overflow-y: visible;
        top: auto;
        padding-top: 8px;
        border-top: 1px solid #9aa4b2;
        margin-top: 8px;
    }

    .related-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 24px;
    }

    .related-list li {
        border-bottom: none;
    }

    .related-list li:nth-child(odd) {
        border-bottom: 1px solid #9aa4b2;
    }

    .related-list li:nth-child(even) {
        border-bottom: 1px solid #9aa4b2;
    }

    .hero-image-wrap img {
        height: clamp(260px, 50vw, 480px);
    }
}

/* ---------- ≤768px : stack meta row, shrink hero caption, single column list ---------- */
@media (max-width: 768px) {
    .hero-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-bottom: 14px;
        margin-bottom: 22px;
    }

    .share {
        width: 100%;
        justify-content: space-between;
    }

    .hero-caption {
        padding: 18px 20px 22px;
    }

    .related-list {
        grid-template-columns: 1fr;
    }

    .related-list li {
        border-bottom: 1px solid #9aa4b2 !important;
    }

    .related-list li:last-child {
        border-bottom: none !important;
    }

    .related-info a {
        font-size: 16px;
    }

    .wp-block-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .wp-block-table table {
        min-width: 480px;
    }

    .header-cta .btn-book-now {
        display: none;
    }
}

/* ---------- ≤576px : mobile ---------- */
@media (max-width: 576px) {
    .blog-single-page {
        gap: 24px;
    }

    .hero-image-wrap img {
        height: clamp(200px, 55vw, 340px);
        border-radius: 2px;
    }

    .hero-caption {
        padding: 14px 16px 18px;
    }

    .share-icons a {
        width: 28px;
        height: 28px;
    }

    .share-icons svg {
        width: 13px;
        height: 13px;
    }

    .related-thumb {
        flex: 0 0 80px;
        width: 80px;
        height: 56px;
    }

    .related-info a {
        font-size: 15px;
    }

    .wp-block-table td,
    .wp-block-table th {
        padding: 6px 12px;
        font-size: 14px;
    }
}

/* ---------- ≤400px : very small phones ---------- */
@media (max-width: 400px) {
    .share {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .related-thumb {
        flex: 0 0 68px;
        width: 68px;
        height: 48px;
    }

    .related-info a {
        font-size: 14px;
    }
}

.faces-section .faces-text .faces-feature img {
    width: 24px;
    height: 24px;
}


/* faq page  */

.faq-page .faq__accordions h2 {
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 18px;
    margin-top: 10px;
    font-size: 26px;
}

.faq-page .accordion__item {
    border-bottom: 1px solid #e4e5e7;
}

.faq-page .accordion__item--header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 4px;
    cursor: pointer;
    user-select: none;
}

.faq-page .accordion__item--header h3 {
    color: #17181a;
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.35;
    letter-spacing: -0.01em;
    font-weight: 500;
    text-decoration: none;

}

.faq-page .accordion__item--toggle {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    position: relative;
}

.faq-page .accordion__item--toggle::before,
.faq-page .accordion__item--toggle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--secondary);
    transition: transform 0.25s ease;
}

/* horizontal bar of the plus/cross */
.faq-page .accordion__item--toggle::before {
    width: 14px;
    height: 2px;
    transform: translate(-50%, -50%) rotate(0deg);
}

/* vertical bar of the plus/cross */
.faq-page .accordion__item--toggle::after {
    width: 2px;
    height: 14px;
    transform: translate(-50%, -50%) rotate(0deg);
}

/* rotate the vertical bar to form an X when open */
.faq-page .accordion__item.active .accordion__item--toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-page .accordion__item--body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease;
    opacity: 0;
    padding: 0 4px;
}

.faq-page .accordion__item.active .accordion__item--body {
    max-height: 400px;
    opacity: 1;
    padding: 0 4px 22px 4px;
}

.faq-page .accordion__item--body p {
    font-weight: 400;
    font-family: var(--secondary-font);
    font-size: 15px;
    line-height: 28px;
    color: #6b6f76;
    margin: 0;
}

@media (max-width: 767px) {
    .faq-page .accordion__item--header h3 {
        font-size: 18px;
    }

    .faq-page .accordion__item--body p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .faq-page .accordion__item--header h3 {
        font-size: 16px;
    }

    .faq-page .faq__accordions h2 {
        font-size: 24px;
    }
}

@media (max-width: 375px) {
    .faq-page .faq__accordions h2 {
        font-size: 22px;
    }
}


/* serch form  */
.single-trip-search-form {
    text-align: center;
    justify-content: center;
}

.single-trip-search-form .search-form-single {
    margin-top: auto;
    padding: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
}

.single-trip-search-form .search-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 0;
    background: #f8f8f8;
    padding: 30px;
    border-radius: 12px;


    padding: clamp(20px, 2vw, 25px);
    border-radius: 8px;
    box-shadow: 0px 0px 2px 0px rgba(0, 0, 0, 0.19);
    margin-bottom: clamp(35px, 4vw, 65px);

}

.single-trip-search-form .search-form {
    display: flex;
    gap: 8px;
    justify-content: center;
}


.single-trip-search-form .custom-select select {
    min-width: 240px;
    height: 45px;
    font-size: 15px;
    font-weight: 500;
    background: #fff;
    /* backdrop-filter: blur(10px); */
    /* -webkit-backdrop-filter: blur(10px); */
    border: 1px solid #ccc;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    font-family: var(--secondary-font);
    border-radius: 10px;
    padding: 0 44px 0 24px;




}


.single-trip-search-form .custom-select select option {
    color: #17181a;
}

.single-trip-search-form .custom-select::after {
    content: "";
    position: absolute;
    right: 22px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-right: 2px solid #0a0a0a;
    border-bottom: 2px solid #010101;

    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}

.single-trip-search-form .custom-select {
    position: relative;
}

.single-trip-search-form .search-wrapper button[type="submit"] {
    height: 45px;
    padding: 0 48px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background: var(--secondary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
    text-transform: uppercase;
    font-family: var(--secondary-font);


}

.single-trip-search-form .search-wrapper button[type="submit"]:hover {
    background: var(--color-yellow);
    color: #fff;
    border: none;
}

.section-small-single {
    padding: 20px !important;
}

/* card height */
/* .card-expert  */
.popular-trips .small-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* .card-expert  */
.popular-trips p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* .card-expert */
.popular-trips.bottom {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.explore-trips-content {
    text-align: center;
    margin: 0 auto;
    max-width: 990px;
}


/* contact form  */


.wpcf7-form {
    display: flex;
    flex-direction: column;
}

.wpcf7-form label {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 14px;
    font-weight: 500;
    color: #000000;
    opacity: 70%;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea,
.wpcf7-select,
.wpcf7-tel {
    font-family: inherit;
    font-size: 14px;
    color: #1F2430;
    background: #FFFFFF;
    border: 1px solid #0000001F;
    border-radius: 12px;
    padding: 9px 14px;
    width: 100%;
    outline: none;
    box-shadow: 0px 1px 1px 0px #0000001F;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form textarea:focus,
.wpcf7-select:focus,
.wpcf7-tel:focus {
    border: 2px solid #1C7DD780;
}

.wpcf7-form textarea {
    resize: vertical;
    max-height: 95px;
    line-height: 1.5;
}