/* Madygen: homepage blocks, /madygen/ landing, Madygen Camp booking.
   Uses the site palette: blue #00a0e3, primary #0d6efd, gold #f3bc00, olive #a18f0f, Jost. */

:root {
    --amd-blue: #00a0e3;
    --amd-primary: #0d6efd;
    --amd-primary-dark: #0a58ca;
    --amd-gold: #f3bc00;
    --amd-olive: #a18f0f;
    --amd-ink: #212529;
    --amd-text: #3d4248;
    --amd-muted: #5f666d;
    --amd-line: #e3e5e8;
    --amd-light: #f8f9fa;
    --amd-dark: #2c2620;
}

.amd-page,
.amd-home-hero,
.amd-deeptime,
.amd-home-search { font-family: "Jost", sans-serif; color: var(--amd-ink); }

/* ---------- Typography ---------- */
.amd-eyebrow {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--amd-blue);
}
.amd-eyebrow--gold { color: var(--amd-gold); }
.amd-h2 {
    margin: 0 0 24px;
    font-size: clamp(28px, 3.2vw, 42px);
    line-height: 1.1;
    font-weight: 700;
}
.amd-h3 { margin: 0 0 18px; font-size: 26px; font-weight: 700; }
.amd-lead { margin: 0 0 16px; font-size: 18px; line-height: 1.65; color: var(--amd-text); }
.amd-muted { margin: 14px 0 0; font-size: 15px; color: var(--amd-muted); }
.amd-narrow { max-width: 900px; }

/* ---------- Buttons & links ---------- */
.amd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 28px;
    border: 0;
    border-radius: 999px;
    background: var(--amd-primary);
    color: #fff !important;
    font-family: "Jost", sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .04em;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}
.amd-btn:hover, .amd-btn:focus-visible { background: var(--amd-primary-dark); color: #fff; }
.amd-btn:active { transform: translateY(1px); }
.amd-btn--lg { min-height: 54px; padding: 0 34px; font-size: 17px; }
.amd-btn--block { display: flex; width: 100%; }
.amd-btn--wa { background: #1fa855; }
.amd-btn--wa:hover, .amd-btn--wa:focus-visible { background: #178a45; }
.amd-btn .spinner-border { display: none; }
.amd-btn.is-loading .spinner-border { display: inline-block; }
.amd-btn.is-loading { opacity: .85; pointer-events: none; }

.amd-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--amd-primary);
    text-decoration: none;
}
.amd-link-arrow:hover { color: var(--amd-primary-dark); text-decoration: underline; }
.amd-link-arrow--light { color: var(--amd-gold); }
.amd-link-arrow--light:hover { color: #ffd54a; }
.amd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 26px; }

/* ---------- Homepage hero ---------- */
.amd-home-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: max(560px, calc(100vh - 162px));
    background: #6e4a36 center / cover no-repeat;
    overflow: hidden;
}
.amd-home-hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20,12,8,.2) 0%, rgba(20,12,8,.25) 50%, rgba(20,12,8,.72) 100%);
}
.amd-home-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 60px;
    padding-bottom: 130px;
    text-align: center;
    color: #fff;
}
.amd-home-hero__title {
    margin: 0 0 14px;
    font-size: clamp(38px, 6.6vw, 84px);
    line-height: 1.02;
    font-weight: 700;
    letter-spacing: .01em;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.amd-home-hero__sub { margin: 0 0 28px; font-size: clamp(20px, 2.4vw, 28px); font-weight: 500; }

.amd-home-search { position: relative; z-index: 5; margin-top: -60px; }
.amd-home-search form.search-tour { margin: 0 auto; }

/* ---------- Homepage: deep time ---------- */
.amd-deeptime { padding: 96px 0 24px; }
.amd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 6px 0 22px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--amd-olive);
}
.amd-facts-line {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 36px;
    padding: 18px 0;
    margin: 0 0 8px;
    border-top: 1px solid var(--amd-line);
    border-bottom: 1px solid var(--amd-line);
    font-size: 15px;
    color: var(--amd-muted);
}
.amd-facts-line strong { display: block; font-size: 22px; color: var(--amd-ink); }
.amd-collage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 240px 240px;
    gap: 14px;
}
.amd-collage a { display: block; border-radius: 10px; overflow: hidden; }
.amd-collage__big { grid-row: span 2; }
.amd-collage img { width: 100%; height: 100%; max-height: none; object-fit: cover; }

/* ---------- Page hero ---------- */
.amd-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: max(560px, calc(100vh - 162px));
    background: #7a4e36 center / cover no-repeat;
}
.amd-hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20,12,8,.12) 25%, rgba(20,12,8,.78) 100%);
}
.amd-hero__inner { position: relative; z-index: 2; padding-top: 80px; padding-bottom: 60px; color: #fff; }
.amd-crumbs { margin-bottom: 16px; font-size: 14px; color: rgba(255,255,255,.85); }
.amd-crumbs a { color: #fff; text-decoration: none; }
.amd-crumbs a:hover { text-decoration: underline; }
.amd-crumbs span { margin: 0 6px; }
.amd-hero__title {
    max-width: 920px;
    margin: 0 0 18px;
    font-size: clamp(36px, 5.4vw, 70px);
    line-height: 1.04;
    font-weight: 700;
    color: #fff;
}
.amd-hero__sub { max-width: 700px; margin: 0 0 22px; font-size: 20px; line-height: 1.5; color: rgba(255,255,255,.94); }
.amd-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; padding: 0; list-style: none; }
.amd-chips li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    font-size: 15px;
    font-weight: 500;
    backdrop-filter: blur(3px);
}

/* ---------- Sections ---------- */
.amd-section { padding: 88px 0; }
.amd-section--light { background: var(--amd-light); }
.amd-photo { display: block; width: 100%; height: 360px; max-height: none; object-fit: cover; border-radius: 12px; }
.amd-photo--tall { height: 440px; }

/* Cards */
.amd-card {
    height: 100%;
    padding: 28px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.amd-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: #e6f6fc;
    color: #007fb5;
    font-size: 24px;
}
.amd-card__title { margin: 0 0 10px; font-size: 20px; font-weight: 600; line-height: 1.3; }
.amd-card__text { margin: 0; font-size: 16px; line-height: 1.55; color: var(--amd-muted); }
.amd-card__price { margin: 0 0 12px; color: var(--amd-muted); }
.amd-card__price strong { font-size: 28px; color: var(--amd-ink); }

/* Gallery */
.amd-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 200px;
    gap: 12px;
}
.amd-gallery a { display: block; border-radius: 10px; overflow: hidden; }
.amd-gallery img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.amd-video {
    position: relative;
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #2b2420 center / cover no-repeat;
    color: #fff;
    font-family: "Jost", sans-serif;
    font-size: 16px;
    cursor: pointer;
    overflow: hidden;
}
.amd-video::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); transition: background .2s; }
.amd-video:hover::before { background: rgba(0,0,0,.2); }
.amd-video__play {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(255,255,255,.28);
    font-size: 40px;
}
.amd-video__label { position: relative; font-weight: 500; }
.amd-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Accordion */
.amd-accordion .accordion-item { margin-bottom: 12px; border: 0; border-radius: 10px !important; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.amd-accordion .accordion-header { margin: 0; }
.amd-accordion .accordion-button {
    gap: 16px;
    min-height: 64px;
    padding: 16px 22px;
    font-family: "Jost", sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--amd-ink);
    background: #fff;
    box-shadow: none;
}
.amd-accordion .accordion-button:not(.collapsed) { color: var(--amd-ink); background: #fff; }
.amd-accordion .accordion-button:focus { box-shadow: 0 0 0 3px rgba(0,160,227,.3); }
.amd-accordion__day { flex: none; font-size: 14px; font-weight: 700; letter-spacing: .08em; color: var(--amd-blue); }
.amd-accordion .accordion-body { padding: 0 22px 20px; font-size: 16px; line-height: 1.6; color: var(--amd-text); }

/* Map */
.amd-map { padding: 24px; border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.amd-map__title { margin: 0 0 14px; font-size: 18px; font-weight: 600; }
.amd-map svg { display: block; width: 100%; height: 300px; border-radius: 8px; background: #efe7dc; }
.amd-map text { font-family: "Jost", sans-serif; font-size: 14px; fill: var(--amd-ink); }

/* Accommodation */
.amd-stay { height: 100%; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.amd-stay img { display: block; width: 100%; height: 220px; max-height: none; object-fit: cover; }
.amd-stay__body { padding: 18px 20px; }
.amd-stay__body h3 { margin: 0 0 6px; font-size: 20px; }
.amd-stay__body p { margin: 0; color: var(--amd-muted); }
.amd-camp { display: flex; flex-wrap: wrap; margin-top: 32px; border-radius: 14px; overflow: hidden; background: var(--amd-dark); color: #fff; }
.amd-camp__photo { flex: 1 1 460px; min-height: 380px; background: #6b5a3d center / cover no-repeat; }
.amd-camp__body { flex: 1 1 420px; padding: 44px; }
.amd-camp__body ul { margin: 0 0 22px; padding-left: 20px; font-size: 17px; line-height: 1.5; color: rgba(255,255,255,.9); }
.amd-camp__body li { margin-bottom: 10px; }

/* Expert & reviews */
.amd-expert { display: flex; flex-wrap: wrap; align-items: center; gap: 44px; max-width: 1100px; margin: 0 auto; }
.amd-expert img { width: 280px; height: 340px; max-height: none; object-fit: cover; border-radius: 12px; }
.amd-expert > div { flex: 1 1 420px; }
.amd-quote { margin: 18px 0 0; padding-left: 20px; border-left: 3px solid var(--amd-olive); font-size: 20px; line-height: 1.5; color: var(--amd-ink); }
.amd-review { height: 100%; margin: 0; padding: 26px; border-radius: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.07); }
.amd-review__stars { color: var(--amd-gold); letter-spacing: 2px; }
.amd-review blockquote { margin: 14px 0; padding: 0; border: 0; font-style: normal; font-size: 16px; line-height: 1.6; color: var(--amd-text); }
.amd-review figcaption { font-weight: 600; }

/* Dates & price */
.amd-dates { border: 1px solid var(--amd-line); border-radius: 10px; overflow: hidden; }
.amd-dates__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px 18px; border-top: 1px solid var(--amd-line); }
.amd-dates__row:first-child { border-top: 0; }
.amd-dates__row strong { flex: 1 1 180px; }
.amd-badge { padding: 5px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.amd-badge--ok { background: #e7f5ee; color: #146c43; }
.amd-badge--few { background: #fff3cd; color: #7a5a00; }
.amd-badge--full { background: #f8d7da; color: #842029; }
.amd-note { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; border-radius: 10px; background: #e6f6fc; }
.amd-note i { font-size: 22px; color: #007fb5; }
.amd-note p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--amd-text); }
.amd-note--white { margin-top: 24px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.amd-price { padding: 30px; border-radius: 14px; background: var(--amd-ink); color: #fff; }
.amd-price__title { margin: 0 0 18px; font-size: 26px; font-weight: 700; color: #fff; }
.amd-price__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px 12px;
    padding: 0 0 14px;
    margin: 0 0 14px;
    border-bottom: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.8);
}
.amd-price__row strong { font-size: 28px; color: #fff; }
.amd-price__row small { color: rgba(255,255,255,.65); font-size: 15px; }
.amd-price p { margin: 0 0 18px; color: rgba(255,255,255,.8); }

/* Lists & tiles */
.amd-list-card { height: 100%; padding: 30px; border-radius: 12px; background: #fff; }
.amd-checks { margin: 0; padding: 0; list-style: none; }
.amd-checks li { display: flex; gap: 12px; margin-bottom: 12px; font-size: 17px; }
.amd-checks i { color: #198754; font-size: 18px; }
.amd-checks--no i { color: #b02a37; }
.amd-tile { display: flex; gap: 14px; height: 100%; padding: 22px; border: 1px solid var(--amd-line); border-radius: 10px; background: #fff; }
.amd-tile > i { flex: none; font-size: 24px; color: var(--amd-blue); }
.amd-tile h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.amd-tile p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--amd-muted); }
.amd-tile--compact { align-items: center; }
.amd-tile--compact p { color: var(--amd-text); }

/* ---------- Booking ---------- */
.amd-booking { padding: 88px 0; background: var(--amd-blue); scroll-margin-top: 150px; }
.amd-booking__intro { color: #fff; }
.amd-booking__intro p { font-size: 18px; line-height: 1.55; color: rgba(255,255,255,.95); }
.amd-booking__small { font-size: 15px !important; }
.amd-contacts { margin: 22px 0; padding: 0; list-style: none; }
.amd-contacts li { margin-bottom: 12px; }
.amd-contacts a { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; color: #fff; text-decoration: none; }
.amd-contacts a:hover { text-decoration: underline; color: #fff; }
.amd-form-box { padding: 32px; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.amd-form .form-label { font-size: 14px; font-weight: 600; color: var(--amd-ink); }
.amd-form .form-control,
.amd-form .form-select { min-height: 48px; border-color: #ced4da; font-family: "Jost", sans-serif; font-size: 16px; }
.amd-form textarea.form-control { min-height: 0; }
.amd-form .form-control:focus,
.amd-form .form-select:focus { border-color: var(--amd-blue); box-shadow: 0 0 0 3px rgba(0,160,227,.2); }
.amd-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.amd-form__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.amd-form__actions .amd-btn { flex: 1 1 240px; }
.amd-form__status { margin: 14px 0 0; font-weight: 600; color: #b02a37; }
.amd-form__status:empty { display: none; }
.amd-form-done { padding: 40px 10px; text-align: center; }
.amd-form-done__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: #e7f5ee;
    color: #198754;
    font-size: 34px;
}
.amd-form-done h3 { margin: 0 0 8px; font-size: 26px; }
.amd-form-done p { margin: 0; color: var(--amd-muted); }

.amd-fieldset { margin: 0 0 22px; padding: 0; border: 0; }
.amd-fieldset legend { float: none; width: auto; margin-bottom: 10px; }
.amd-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.amd-option { position: relative; display: block; cursor: pointer; }
.amd-option input { position: absolute; opacity: 0; pointer-events: none; }
.amd-option__box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 100%;
    padding: 16px;
    border: 2px solid var(--amd-line);
    border-radius: 12px;
    transition: border-color .15s, background-color .15s;
}
.amd-option__box i { font-size: 22px; color: var(--amd-blue); }
.amd-option__title { font-weight: 600; }
.amd-option__price { font-size: 18px; font-weight: 700; }
.amd-option__price small { font-size: 13px; font-weight: 500; color: var(--amd-muted); }
.amd-option:hover .amd-option__box { border-color: #9ed8f1; }
.amd-option input:checked + .amd-option__box { border-color: var(--amd-blue); background: #f0faff; }
.amd-option input:focus-visible + .amd-option__box { box-shadow: 0 0 0 3px rgba(0,160,227,.3); }
.amd-stepper { display: flex; }
.amd-stepper button {
    flex: none;
    width: 48px;
    border: 1px solid #ced4da;
    background: var(--amd-light);
    font-size: 22px;
    line-height: 1;
    color: var(--amd-ink);
    cursor: pointer;
}
.amd-stepper button:first-child { border-radius: 6px 0 0 6px; }
.amd-stepper button:last-child { border-radius: 0 6px 6px 0; }
.amd-stepper button:hover { background: #e9ecef; }
.amd-stepper .form-control { border-radius: 0; border-left: 0; border-right: 0; text-align: center; -moz-appearance: textfield; }
.amd-stepper .form-control::-webkit-outer-spin-button,
.amd-stepper .form-control::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.amd-extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
.amd-extras .form-check { min-height: 32px; display: flex; align-items: center; gap: 10px; padding-left: 0; }
.amd-extras .form-check-input { float: none; width: 20px; height: 20px; margin: 0; flex: none; }
.amd-campage .amd-form .row + .amd-fieldset,
.amd-campage .amd-form .amd-fieldset + .row { margin-top: 22px; }

/* ---------- Sticky CTA ---------- */
.amd-sticky {
    position: fixed;
    right: 0;
    top: 50%;
    z-index: 25;
    padding: 22px 14px;
    border-radius: 10px 0 0 10px;
    background: var(--amd-primary);
    color: #fff !important;
    font-family: "Jost", sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .1em;
    text-decoration: none;
    writing-mode: vertical-rl;
    transform: translate(100%, -50%) rotate(180deg);
    box-shadow: 0 6px 18px rgba(13,110,253,.35);
    transition: transform .25s ease;
}
.amd-sticky.is-visible { transform: translate(0, -50%) rotate(180deg); }
.amd-sticky:hover { background: var(--amd-primary-dark); }
.amd-mbar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .amd-section, .amd-booking { padding: 64px 0; }
    .amd-deeptime { padding: 72px 0 16px; }
    .amd-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; }
    .amd-options { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .amd-home-hero { min-height: 80vh; }
    .amd-home-hero__inner { padding-bottom: 110px; }
    .amd-hero { min-height: 78vh; }
    .amd-hero__inner { padding-bottom: 40px; }
    .amd-hero__sub { font-size: 18px; }
    .amd-chips li { font-size: 14px; padding: 7px 12px; }
    .amd-collage { grid-template-rows: 180px 180px; }
    .amd-photo, .amd-photo--tall { height: 260px; }
    .amd-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
    .amd-gallery > * { flex: 0 0 78%; height: 220px; scroll-snap-align: start; }
    .amd-video { flex-basis: 100% !important; }
    .amd-camp__body { padding: 28px 22px; }
    .amd-form-box { padding: 22px 18px; }
    .amd-extras { grid-template-columns: 1fr; }
    .amd-expert img { width: 100%; height: 300px; }

    /* Search form on the homepage: stack the fields */
    .amd-home-search form.search-tour { flex-direction: column; padding: 8px 12px; border-radius: 24px !important; }
    .amd-home-search form.search-tour > div { width: 100%; }
    .amd-home-search form.search-tour select { padding: 1rem 1rem 1rem 2.5rem; }
    .amd-home-search form.search-tour button { width: calc(100% - 2rem); }

    /* Sticky CTA becomes a bottom bar; hide the floating messenger buttons */
    .amd-sticky { display: none; }
    .amd-mbar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 30;
        display: flex;
        gap: 10px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        background: #fff;
        box-shadow: 0 -4px 16px rgba(0,0,0,.12);
        transform: translateY(110%);
        transition: transform .25s ease;
    }
    .amd-mbar.is-visible { transform: none; }
    .amd-mbar .amd-btn { flex: 1; }
    .amd-mbar__wa {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: none;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: #1fa855;
        color: #fff !important;
        font-size: 24px;
    }
    .amd-page ~ .callto_btns,
    .amd-page + .callto_btns { display: none; }
    .amd-page { padding-bottom: 72px; }
}
