/**
 * autourdesduneshurghada.com-style product layout (single-tour-autourdesdunes.php).
 *
 * Loaded only for the opt-in post IDs in
 * hm_autourdesdunes_layout_post_ids(), so it can't affect any other page.
 * Colours reuse the site's own palette rather than copying the
 * reference's tan (#B68777) — same layout, our brand.
 */

.hm-adn { background: #fff; color: var(--hm-ink, #15343a); padding-bottom: 96px; }

.hm-adn__crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 0;
    color: var(--hm-muted, #63777a);
    font-size: .82rem;
}

.hm-adn__crumbs a { color: var(--hm-muted, #63777a); text-decoration: none; }
.hm-adn__crumbs a:hover { color: var(--hm-navy, #082f3a); text-decoration: underline; }
.hm-adn__crumbs .is-current { color: var(--hm-navy, #082f3a); font-weight: 700; }

/* --- Hero carousel + overlapping price card ------------------------ */
.hm-adn__hero { position: relative; margin-bottom: 56px; }

.hm-adn__carousel { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--hm-limestone, #f5f1e8); }
.hm-adn__track { position: relative; width: 100%; height: 100%; }
.hm-adn__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .3s ease; }
.hm-adn__slide.is-active { opacity: 1; }
.hm-adn__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hm-adn__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--hm-navy, #082f3a);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}
.hm-adn__nav--prev { left: 14px; }
.hm-adn__nav--next { right: 14px; }
.hm-adn__nav:hover { background: #fff; }

/* Overlaps the bottom-right of the hero photo, matching their "Show
   Prices" widget — collapsed by default, expands in place. */
.hm-adn__price-card {
    position: absolute;
    right: 20px;
    bottom: -28px;
    z-index: 2;
    width: min(260px, calc(100% - 40px));
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(5, 35, 44, .18);
    overflow: hidden;
}

.hm-adn__price-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 18px;
    border: 0;
    background: none;
    color: var(--hm-navy, #082f3a);
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
}

.hm-adn__price-chevron { transition: transform .2s ease; }
.hm-adn__price-toggle.is-open .hm-adn__price-chevron { transform: rotate(180deg); }

.hm-adn__price-body { padding: 0 18px 18px; }
.hm-adn__price-body[hidden] { display: none; }
.hm-adn__price { margin: 0 0 12px; color: var(--hm-navy, #082f3a); font: 800 1.5rem/1 'Poppins', var(--font-body, inherit); }

.hm-adn__book-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 6px;
    background: var(--hm-logo-brown, #f26b4a);
    color: #fff;
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity .15s ease;
}
.hm-adn__book-btn:hover,
.hm-adn__book-btn:focus { color: #fff; text-decoration: none; opacity: .88; }

/* --- Title ----------------------------------------------------------*/
.hm-adn__head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 40px; }
.hm-adn__head h1 { margin: 0; font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.15; letter-spacing: -.02em; color: var(--hm-navy, #082f3a); }
.hm-adn__badge { padding: 6px 14px; border-radius: 999px; background: var(--hm-limestone, #f5f1e8); color: var(--hm-navy, #082f3a); font-size: .82rem; font-weight: 700; white-space: nowrap; }

/* --- Informations fact grid ---------------------------------------- */
.hm-adn__facts { margin-bottom: 44px; }
.hm-adn__facts h2 { margin: 0 0 22px; font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; color: var(--hm-navy, #082f3a); }
.hm-adn__facts ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin: 0; padding: 0; list-style: none; }
.hm-adn__facts li { display: flex; align-items: flex-start; gap: 14px; }
.hm-adn__fact-icon { flex: 0 0 auto; color: var(--hm-logo-brown, #f26b4a); }
.hm-adn__fact-text { display: flex; flex-direction: column; gap: 3px; }
.hm-adn__fact-text small { color: var(--hm-muted, #63777a); font-size: .78rem; font-weight: 600; }
.hm-adn__fact-text strong { color: var(--hm-navy, #082f3a); font-size: .95rem; font-weight: 700; }

/* --- Description ----------------------------------------------------*/
.hm-adn__desc { max-width: 760px; margin-bottom: 44px; }
.hm-adn__desc p { margin: 0 0 16px; font-size: 1rem; line-height: 1.7; }
.hm-adn__desc p:last-child { margin-bottom: 0; }

/* --- Included list ----------------------------------------------------*/
.hm-adn__included { max-width: 760px; margin-bottom: 24px; }
.hm-adn__included h2 { margin: 0 0 18px; font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; color: var(--hm-navy, #082f3a); }
.hm-adn__included ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.hm-adn__included li { position: relative; padding-left: 28px; line-height: 1.5; }
.hm-adn__included li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .3em;
    width: 16px;
    height: 9px;
    border-left: 2px solid #1a7f5a;
    border-bottom: 2px solid #1a7f5a;
    transform: rotate(-45deg);
}

/* --- Sticky bottom bar (mobile) ------------------------------------ */
.hm-adn__stickybar { display: none; }

@media (max-width: 767px) {
    .hm-adn { padding-bottom: 78px; }
    .hm-adn__facts ul { grid-template-columns: repeat(2, 1fr); }
    .hm-adn__price-card { right: 16px; bottom: -24px; width: min(220px, calc(100% - 32px)); }

    .hm-adn__stickybar {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 60;
        background: #fff;
        border-top: 1px solid var(--hm-line, rgba(8, 47, 58, .14));
        box-shadow: 0 -6px 20px rgba(5, 35, 44, .1);
    }
    .hm-adn__stickybar-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 18px; }
    .hm-adn__stickybar-price { color: var(--hm-navy, #082f3a); font: 800 1.15rem/1 'Poppins', var(--font-body, inherit); }
    .hm-adn__stickybar .hm-adn__book-btn { flex: 0 0 auto; min-width: 140px; }
}

@media (min-width: 768px) {
    /* The overlapping card only needs to clear itself on mobile, where it
       sits directly above the title; on wider screens there's already
       enough natural gap under the shorter, wider hero. */
    .hm-adn__hero { margin-bottom: 64px; }
}
