:root {
    /* Golden sunset safari palette (legacy --green-* token names kept for stability) */
    --green-950: #3b2412;  /* deepest warm brown */
    --green-900: #a64a18;  /* primary terracotta / ember */
    --green-700: #e0892a;  /* golden-orange accent */
    --green-100: #fbe9cb;  /* light warm tint */
    --beige-100: #f7e8cd;  /* warm sand */
    --beige-200: #edd2a2;  /* golden sand */
    --cream: #fff8ef;      /* warm cream background */
    --ink: #2b1c0d;        /* warm near-black text */
    --muted: #8c7257;      /* warm taupe */
    --rust: #c4551c;       /* sunset orange accent */
    --gold: #e3a52b;       /* bright gold */
    --sky: #fbe5c9;
    --line: rgba(90, 50, 20, .15);
    --shadow: 0 18px 44px rgba(95, 50, 18, .18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Smaller, tighter base type across the whole site. */
    font-size: 15px;
    /* Stop Safari/iOS from auto-inflating text on orientation change. */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    font-weight: 400;
    color: var(--ink);
    background: var(--cream);
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

/* Normalize native control chrome so Safari/iOS render our colors, not its own
   rounded/gradient defaults on inputs, search fields and buttons. */
input,
textarea,
button {
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2317231d' stroke-width='1.6' d='M1 1.6 6 6.4 11 1.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
    padding-right: 38px;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto minmax(250px, 1fr) minmax(220px, 340px) auto;
    align-items: center;
    gap: 10px;
    padding: 6px clamp(14px, 3vw, 38px);
    background: rgba(255, 250, 240, .94);
    border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--beige-100);
    background: #3b2412;
    border: 1px solid rgba(59, 33, 15, .12);
    border-radius: 8px;
    overflow: hidden;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand strong,
.brand small {
    display: block;
    overflow-wrap: normal;
}

.brand strong {
    font-size: .94rem;
    font-weight: 500;
    letter-spacing: 0;
}

.brand small {
    color: var(--muted);
    font-size: .66rem;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 2px;
}

.main-nav a {
    padding: 7px 7px;
    color: var(--green-900);
    border-radius: 8px;
    font-size: .78rem;
    font-weight: 400;
    letter-spacing: 0;
}

.main-nav a:hover {
    background: var(--green-100);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search {
    position: relative;
    min-width: 0;
}

.header-search input {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    padding: 7px 11px;
    color: var(--ink);
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
    font-size: .86rem;
}

.header-search input:focus {
    border-color: var(--green-700);
    box-shadow: 0 0 0 3px rgba(224, 137, 42, .16);
}

.live-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 40;
    display: none;
    max-height: 430px;
    overflow-y: auto;
    padding: 8px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.live-search-results.is-open {
    display: grid;
    gap: 6px;
}

.search-result {
    display: grid;
    gap: 3px;
    padding: 10px;
    border-radius: 8px;
}

.search-result:hover {
    background: var(--green-100);
}

.search-result span {
    color: var(--rust);
    font-size: .68rem;
    font-weight: 500;
    text-transform: uppercase;
}

.search-result strong {
    color: var(--green-950);
    font-size: .94rem;
}

.search-result small,
.search-empty {
    color: var(--muted);
    line-height: 1.45;
}

.search-empty {
    padding: 10px;
}

.cart-pill,
.google-button,
.ghost-button,
.primary-button,
.secondary-button,
.text-link,
.panel-form button,
.filter-bar button,
.booking-strip button,
.cart-actions button,
.product-foot button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    font-weight: 500;
}

.cart-pill {
    gap: 9px;
    min-height: 34px;
    padding: 6px 9px;
    background: var(--beige-100);
    color: var(--green-900);
    font-size: .82rem;
    font-weight: 500;
}

.cart-pill strong {
    display: grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    color: white;
    background: var(--rust);
    border-radius: 8px;
    font-weight: 500;
}

.google-button {
    min-height: 34px;
    padding: 7px 10px;
    color: var(--green-900);
    background: white;
    border: 1px solid var(--line);
    font-size: .82rem;
    font-weight: 500;
}

.google-button.large {
    margin-top: 18px;
}

.ghost-button {
    padding: 10px 14px;
    color: var(--green-900);
    background: transparent;
    border: 1px solid var(--line);
}

.ghost-button.compact {
    min-height: 38px;
    font-weight: 500;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: var(--green-900);
    border: 0;
    border-radius: 8px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: white;
}

.hero {
    min-height: 74vh;
    display: flex;
    align-items: center;
    padding: clamp(72px, 11vw, 130px) clamp(16px, 6vw, 84px) 92px;
    background-size: cover;
    background-position: center;
    color: white;
}

.hero-content {
    width: min(760px, 100%);
    min-width: 0;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--rust);
    font-size: .77rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: var(--beige-200);
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.05;
    letter-spacing: 0;
    font-weight: 500;
}

strong {
    font-weight: 500;
}

.hero h1 {
    max-width: 650px;
    font-size: clamp(3.1rem, 9vw, 7.4rem);
}

.hero-copy {
    max-width: 520px;
    margin: 16px 0;
    color: rgba(255, 255, 255, .88);
    font-size: clamp(.98rem, 1.4vw, 1.08rem);
    line-height: 1.7;
}

.hero-search,
.filter-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    width: min(640px, 100%);
    min-width: 0;
}

.hero-search input,
.filter-bar input,
.filter-bar select,
.form-control,
.booking-strip input,
.cart-row input {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 12px 14px;
    color: var(--ink);
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
}

.hero-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus,
.form-control:focus,
.booking-strip input:focus,
.cart-row input:focus {
    border-color: var(--green-700);
    box-shadow: 0 0 0 3px rgba(224, 137, 42, .16);
}

.hero-search button,
.primary-button,
.panel-form button,
.filter-bar button,
.booking-strip button,
.cart-actions button,
.product-foot button {
    padding: 12px 18px;
    color: white;
    background: var(--green-900);
}

.hero-search button {
    background: var(--rust);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
}

.home-hero .hero-content {
    width: min(680px, 100%);
}

.home-hero h1 {
    max-width: 620px;
    font-size: clamp(2.25rem, 5vw, 4.35rem);
}

.clean-hero {
    min-height: 56vh;
    padding-top: clamp(62px, 9vw, 104px);
    padding-bottom: 62px;
}

.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-metrics span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    color: var(--beige-100);
    background: rgba(255, 250, 240, .12);
    border: 1px solid rgba(255, 250, 240, .24);
    border-radius: 8px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.hero-metrics strong {
    color: white;
}

.secondary-button {
    padding: 12px 18px;
    color: var(--green-900);
    background: var(--beige-100);
}

.text-link {
    display: inline-flex;
    min-height: auto;
    padding: 0 0 5px;
    color: var(--green-900);
    border-bottom: 2px solid var(--gold);
    border-radius: 0;
}

.content-band,
.split-band,
.form-layout,
.cart-layout,
.checkout-layout,
.auth-screen,
.developer-hero,
.success-screen {
    padding: clamp(42px, 7vw, 82px) clamp(16px, 5vw, 70px);
}

.intro-band {
    margin-top: -38px;
}

.muted-band {
    background: var(--beige-100);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.category-panel {
    position: relative;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    color: white;
    background: var(--green-900);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.category-panel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.category-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(59, 33, 15, .08), rgba(59, 33, 15, .92));
}

.category-panel:hover img {
    transform: scale(1.04);
}

.category-panel > div {
    position: relative;
    z-index: 1;
}

.category-panel > div {
    padding: 22px;
}

.category-panel h3 {
    margin-bottom: 10px;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.category-panel p {
    color: rgba(255, 255, 255, .82);
    line-height: 1.65;
}

.destination-band {
    padding: clamp(42px, 7vw, 82px) clamp(16px, 5vw, 70px);
    color: white;
    background: var(--green-950);
}

.light-heading h2 {
    color: white;
}

.rail-controls {
    display: flex;
    gap: 10px;
}

.rail-button {
    width: 46px;
    height: 46px;
    color: var(--green-950);
    background: var(--beige-100);
    border: 0;
    border-radius: 8px;
    font-size: 2rem;
    line-height: 1;
    font-weight: 500;
}

.destination-rail {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 6px 0 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--beige-200) transparent;
}

.destination-card {
    min-width: min(380px, 86vw);
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 14px;
    padding: 24px;
    overflow: hidden;
    background-position: center;
    background-size: cover;
    border: 1px solid rgba(255, 250, 240, .18);
    border-radius: 8px;
}

.destination-card span,
.destination-card strong {
    color: var(--beige-200);
    font-weight: 500;
}

.destination-card h3 {
    font-size: clamp(1.8rem, 3vw, 3rem);
}

.destination-card p {
    color: rgba(255, 255, 255, .86);
    line-height: 1.65;
}

.destination-card a {
    width: max-content;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    color: var(--green-950);
    background: var(--beige-100);
    border-radius: 8px;
    font-weight: 500;
}

.safari-feature {
    color: white;
    background: linear-gradient(135deg, var(--green-950), var(--green-700));
}

.safari-feature h2 {
    color: white;
}

.safari-feature p {
    color: rgba(255, 255, 255, .78);
}

.elevated-list .deal-row {
    background: rgba(255, 250, 240, .96);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.feature-grid.three-up {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.why-band {
    background: var(--cream);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.why-card {
    min-height: 270px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(59, 33, 15, .08);
}

.why-card span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: var(--beige-100);
    background: var(--green-900);
    border-radius: 8px;
    font-weight: 500;
}

.why-card h3 {
    color: var(--green-950);
    font-size: 1.25rem;
}

.why-card p {
    color: var(--muted);
    line-height: 1.7;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.section-heading h2,
.split-band h2,
.form-layout h2,
.detail-band h2,
.developer-grid h3,
.checkout-summary h2,
.cart-summary-panel h2 {
    font-size: clamp(1.7rem, 3vw, 3rem);
    color: var(--green-950);
}

.section-heading p:last-child,
.split-band p,
.form-layout p,
.detail-band p,
.cart-summary-panel p,
.checkout-summary p {
    color: var(--muted);
    line-height: 1.7;
}

.masonry {
    column-gap: 22px;
}

.products-masonry {
    column-count: 3;
}

.compact-grid {
    column-count: 3;
}

.product-card,
.gallery-tile {
    display: inline-block;
    width: 100%;
    margin: 0 0 22px;
    overflow: hidden;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(59, 33, 15, .08);
}

.product-image {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--green-100);
    overflow: hidden;
}

.product-image img,
.gallery-tile img,
.gallery-strip img,
.detail-hero img,
.developer-hero img,
.cart-row img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image span {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 7px 10px;
    color: var(--green-950);
    background: var(--beige-100);
    border-radius: 8px;
    font-size: .76rem;
    font-weight: 500;
}

.product-body {
    padding: 18px;
}

.product-meta,
.result-count {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 400;
}

.product-body h3 {
    font-size: 1.28rem;
}

.product-body p:not(.product-meta) {
    color: var(--muted);
    line-height: 1.6;
}

.product-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.product-foot strong {
    color: var(--green-900);
}

.product-foot button {
    min-height: 38px;
    padding: 9px 13px;
    background: var(--rust);
}

.split-band {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(320px, 1.15fr);
    gap: clamp(28px, 5vw, 70px);
    align-items: center;
}

.deal-list {
    display: grid;
    gap: 10px;
}

.deal-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.deal-row strong {
    color: var(--rust);
}

.gallery-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.gallery-strip a {
    position: relative;
    min-height: 170px;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-strip span {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 6px 9px;
    color: white;
    background: rgba(59, 33, 15, .82);
    border-radius: 8px;
    font-weight: 500;
}

.page-hero {
    color: white;
    background: var(--green-900);
}

.ads-hero {
    background-position: center;
    background-size: cover;
}

.compact-hero {
    padding: clamp(56px, 8vw, 96px) clamp(16px, 5vw, 70px);
}

.compact-hero h1 {
    max-width: 840px;
    font-size: clamp(2.4rem, 6vw, 5.5rem);
}

.compact-hero p:last-child {
    max-width: 730px;
    color: rgba(255, 255, 255, .78);
    line-height: 1.7;
}

.filter-bar {
    grid-template-columns: 1fr minmax(180px, 240px) auto;
    width: 100%;
    margin-bottom: 14px;
}

.gallery-masonry {
    column-count: 4;
}

.gallery-tile {
    background: var(--green-900);
}

.gallery-tile:nth-child(2n) img {
    aspect-ratio: 4 / 5;
}

.gallery-tile:nth-child(3n) img {
    aspect-ratio: 1 / 1;
}

.gallery-tile img {
    aspect-ratio: 5 / 4;
}

.gallery-tile figcaption {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    color: white;
}

.gallery-tile span {
    color: var(--beige-200);
    font-weight: 500;
}

.ad-library-band {
    background: linear-gradient(180deg, var(--cream), #fbeede);
}

.ad-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.ad-brochure-card {
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(59, 33, 15, .08);
}

.instagram-ad-preview {
    position: relative;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    min-height: 0;
    padding: clamp(18px, 2.2vw, 26px);
    overflow: hidden;
    color: white;
    background-image: var(--ad-preview-image);
    background-position: center;
    background-size: cover;
}

.instagram-ad-preview::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(59, 33, 15, .42), rgba(59, 33, 15, .12) 38%, rgba(59, 33, 15, .86)),
        radial-gradient(circle at 12% 10%, rgba(197, 154, 66, .42), transparent 32%);
}

.ad-preview-top,
.ad-preview-copy,
.ad-preview-foot {
    position: relative;
    z-index: 1;
}

.ad-preview-top,
.ad-preview-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ad-brand-lockup,
.ad-category,
.ad-preview-foot strong {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 8px;
    font-weight: 500;
}

.ad-brand-lockup {
    gap: 8px;
    color: var(--green-950);
    background: rgba(255, 250, 240, .94);
}

.ad-brand-lockup img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.ad-category {
    color: white;
    background: rgba(59, 33, 15, .66);
    border: 1px solid rgba(255, 250, 240, .18);
    font-size: .72rem;
}

.ad-preview-copy {
    display: grid;
    gap: 10px;
    margin-top: auto;
}

.ad-preview-copy span,
.ad-preview-foot span {
    color: rgba(255, 255, 255, .82);
    font-size: .82rem;
    font-weight: 500;
}

.ad-preview-copy h2 {
    max-width: 92%;
    color: white;
    font-size: clamp(1.7rem, 3vw, 2.85rem);
    line-height: 1;
    text-shadow: 0 2px 18px rgba(59, 33, 15, .36);
}

.ad-preview-copy p {
    max-width: 92%;
    margin: 0;
    color: rgba(255, 255, 255, .88);
    line-height: 1.45;
}

.ad-preview-foot {
    align-items: end;
}

.ad-preview-foot strong {
    color: var(--green-950);
    background: var(--beige-100);
}

.ad-preview-foot span {
    max-width: 180px;
    text-align: right;
}

.ad-brochure-body {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.ad-brochure-body h3 {
    color: var(--green-950);
    font-size: 1.28rem;
}

.ad-brochure-body p:not(.product-meta) {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.ad-highlight-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ad-highlight-list li {
    padding: 10px 12px;
    color: var(--green-900);
    background: var(--green-100);
    border-radius: 8px;
    font-size: .9rem;
}

.ad-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.ad-actions .primary-button,
.ad-actions .secondary-button {
    flex: 1 1 135px;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
    min-height: 620px;
    background: var(--green-900);
    color: white;
}

.detail-copy {
    align-self: center;
    padding: clamp(46px, 7vw, 86px);
}

.detail-copy h1 {
    font-size: clamp(2.6rem, 5vw, 5.7rem);
}

.detail-copy p {
    color: rgba(255, 255, 255, .82);
    line-height: 1.75;
}

.detail-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}

.detail-facts span,
.detail-facts strong {
    padding: 9px 11px;
    color: var(--green-950);
    background: var(--beige-100);
    border-radius: 8px;
}

.booking-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 10px;
}

.booking-strip label {
    color: var(--beige-100);
    font-weight: 500;
}

.booking-strip input {
    max-width: 110px;
    display: block;
    margin-top: 6px;
}

.detail-hero > img {
    min-height: 620px;
}

.affiliate-hero {
    min-height: 68vh;
    background-size: cover;
    background-position: center;
}

.affiliate-hero .hero-content {
    width: min(980px, 100%);
}

.affiliate-hero h1 {
    max-width: 920px;
    font-size: clamp(2.8rem, 6vw, 5.8rem);
}

.affiliate-metrics span {
    border-color: rgba(234, 217, 185, .34);
}

.affiliate-card-grid,
.partner-type-grid,
.affiliate-steps {
    display: grid;
    gap: 18px;
}

.affiliate-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.affiliate-card,
.partner-type-grid article,
.affiliate-steps article {
    border-radius: 8px;
}

.affiliate-card {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px;
    background: white;
    border: 1px solid var(--line);
    box-shadow: 0 12px 32px rgba(59, 33, 15, .08);
}

.affiliate-card span,
.affiliate-steps span {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: var(--beige-100);
    background: var(--green-900);
    border-radius: 8px;
    font-weight: 500;
}

.affiliate-card h3,
.partner-type-grid h3,
.affiliate-steps h3 {
    color: var(--green-950);
    font-size: 1.22rem;
}

.affiliate-card p,
.partner-type-grid p,
.affiliate-steps p,
.affiliate-application-copy p {
    color: var(--muted);
    line-height: 1.7;
}

.affiliate-fit-band {
    padding: clamp(42px, 7vw, 82px) clamp(16px, 5vw, 70px);
    color: white;
    background: var(--green-950);
}

.partner-type-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.partner-type-grid article {
    min-height: 220px;
    padding: 22px;
    background: rgba(255, 250, 240, .08);
    border: 1px solid rgba(255, 250, 240, .16);
}

.partner-type-grid h3 {
    color: white;
}

.partner-type-grid p {
    color: rgba(255, 255, 255, .76);
}

.affiliate-steps-band {
    background: var(--cream);
}

.affiliate-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    counter-reset: affiliate-step;
}

.affiliate-steps article {
    display: grid;
    gap: 14px;
    padding: 22px;
    background: var(--beige-100);
    border: 1px solid rgba(59, 33, 15, .1);
}

.affiliate-steps span {
    background: var(--rust);
}

.affiliate-application {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(340px, 1.1fr);
    gap: clamp(28px, 5vw, 70px);
    align-items: start;
    padding: clamp(42px, 7vw, 82px) clamp(16px, 5vw, 70px);
    background: var(--beige-100);
}

.affiliate-application-copy h2 {
    color: var(--green-950);
    font-size: clamp(1.9rem, 4vw, 4rem);
}

.affiliate-contact-card {
    margin-top: 24px;
}

.affiliate-contact-card .google-button {
    justify-self: start;
    margin-top: 8px;
}

.affiliate-form {
    background: rgba(255, 250, 240, .98);
}

.check-list {
    display: grid;
    gap: 12px;
    padding: 0;
    list-style: none;
}

.check-list li {
    padding: 15px 16px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 400;
}

.itinerary-detail {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.5;
}

.quote-panel,
.contact-card,
.cart-summary-panel,
.checkout-summary,
.empty-state {
    padding: 24px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(59, 33, 15, .08);
}

.form-layout,
.checkout-layout,
.auth-screen,
.developer-hero {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(340px, 1.1fr);
    gap: clamp(28px, 5vw, 70px);
    align-items: start;
}

.panel-form {
    display: grid;
    gap: 15px;
    padding: 24px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.panel-form label {
    display: grid;
    gap: 7px;
    color: var(--green-900);
    font-weight: 500;
}

.panel-form small {
    color: #9c3726;
}

textarea.form-control {
    min-height: 130px;
    resize: vertical;
}

.contact-card {
    display: grid;
    gap: 7px;
    margin-top: 24px;
}

.developer-hero {
    background: var(--beige-100);
    align-items: center;
}

.developer-hero h1 {
    font-size: clamp(2.4rem, 5vw, 5.2rem);
    color: var(--green-950);
}

.developer-hero p {
    color: var(--muted);
    line-height: 1.75;
}

.developer-hero img {
    min-height: 430px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.developer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.developer-grid article {
    padding: 22px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.developer-grid h3 {
    font-size: 1.25rem;
}

.developer-grid p {
    color: var(--muted);
    line-height: 1.7;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}

.cart-table {
    display: grid;
    gap: 12px;
}

.cart-row {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr) 110px auto auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.cart-row img {
    height: 110px;
    border-radius: 8px;
}

.cart-row h2 {
    font-size: 1.2rem;
}

.cart-row label {
    display: grid;
    gap: 6px;
    color: var(--green-900);
    font-weight: 500;
}

.remove-button {
    min-height: 38px;
    padding: 8px 10px;
    color: #9c3726;
    background: #fff1ec;
    border: 1px solid #efc6ba;
    border-radius: 8px;
    font-weight: 500;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.cart-summary-panel {
    position: sticky;
    top: 92px;
}

.cart-summary-panel h2 {
    margin-bottom: 12px;
}

.wide {
    width: 100%;
}

.checkout-summary {
    display: grid;
    gap: 12px;
}

.summary-line,
.summary-total {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.summary-total {
    color: var(--green-900);
    font-size: 1.25rem;
    border-bottom: 0;
}

.success-screen,
.auth-screen {
    min-height: 64vh;
    align-items: center;
}

.success-screen h1,
.auth-screen h1 {
    max-width: 780px;
    font-size: clamp(2.4rem, 5vw, 5.4rem);
    color: var(--green-950);
}

.success-screen p,
.auth-screen p {
    color: var(--muted);
    line-height: 1.7;
}

.message-stack {
    position: fixed;
    right: 18px;
    top: 86px;
    z-index: 30;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 36px));
}

.message {
    padding: 13px 15px;
    color: white;
    background: var(--green-900);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.message.error {
    background: #9c3726;
}

.message.info {
    background: #315e74;
}

.empty-state {
    text-align: center;
}

.wide-empty {
    grid-column: 1 / -1;
}

.empty-state h2 {
    color: var(--green-950);
}

.site-footer {
    color: rgba(255, 255, 255, .82);
    background: var(--green-950);
    border-top: 1px solid rgba(255, 250, 240, .12);
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(160px, .65fr));
    gap: clamp(24px, 4vw, 54px);
    padding: clamp(38px, 6vw, 70px) clamp(16px, 5vw, 70px);
}

.footer-logo {
    width: min(260px, 100%);
    height: auto;
    margin-bottom: 18px;
    padding: 8px;
    background: #3b2412;
    border: 1px solid rgba(255, 250, 240, .12);
    border-radius: 8px;
}

.footer-brand p {
    max-width: 520px;
    line-height: 1.7;
}

.footer-logo-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.footer-logo-row span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 10px;
    color: var(--green-950);
    background: var(--beige-100);
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 500;
}

.footer-column {
    display: grid;
    align-content: start;
    gap: 10px;
}

.footer-column h2 {
    color: white;
    font-size: 1rem;
    text-transform: uppercase;
}

.footer-column a,
.footer-column span {
    color: rgba(255, 255, 255, .74);
    line-height: 1.55;
}

.footer-column a:hover {
    color: var(--beige-200);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px clamp(16px, 5vw, 70px);
    color: rgba(255, 255, 255, .68);
    border-top: 1px solid rgba(255, 250, 240, .12);
}

@media (max-width: 1100px) {
    .products-masonry,
    .compact-grid {
        column-count: 2;
    }

    .gallery-masonry {
        column-count: 3;
    }

    .site-header {
        grid-template-columns: auto auto;
    }

    .nav-toggle {
        display: block;
        justify-self: end;
    }

    .header-search,
    .main-nav,
    .header-actions {
        grid-column: 1 / -1;
        display: none;
        justify-content: start;
        flex-wrap: wrap;
    }

    .site-header.nav-open .header-search,
    .site-header.nav-open .main-nav,
    .site-header.nav-open .header-actions {
        display: flex;
    }

    .site-header.nav-open .header-search {
        display: block;
    }

    .detail-hero,
    .split-band,
    .form-layout,
    .affiliate-application,
    .checkout-layout,
    .auth-screen,
    .developer-hero,
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .category-grid,
    .ad-grid,
    .why-grid,
    .affiliate-card-grid,
    .partner-type-grid,
    .affiliate-steps,
    .footer-main,
    .feature-grid.three-up {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cart-summary-panel {
        position: static;
    }

    .cart-row {
        grid-template-columns: 120px minmax(0, 1fr) 100px;
    }

    .cart-row strong,
    .cart-row .remove-button {
        grid-column: 2 / -1;
        justify-self: start;
    }
}

@media (max-width: 760px) {
    .hero {
        min-height: 72vh;
        padding-top: 66px;
    }

    .home-hero h1 {
        max-width: 100%;
        font-size: clamp(2.05rem, 10vw, 2.8rem);
        line-height: 1.08;
    }

    .hero-copy {
        max-width: 100%;
        font-size: 1rem;
    }

    .hero-search,
    .filter-bar {
        grid-template-columns: 1fr;
    }

    .hero-search button {
        width: 100%;
    }

    .section-heading {
        display: block;
    }

    .products-masonry,
    .compact-grid,
    .gallery-masonry {
        column-count: 1;
    }

    .gallery-strip,
    .developer-grid,
    .category-grid,
    .ad-grid,
    .why-grid,
    .affiliate-card-grid,
    .partner-type-grid,
    .affiliate-steps,
    .feature-grid,
    .feature-grid.three-up,
    .footer-main {
        grid-template-columns: 1fr;
    }

    .category-panel {
        min-height: 340px;
    }

    .destination-card {
        min-height: 440px;
    }

    .detail-hero > img {
        min-height: 320px;
    }

    .cart-row {
        grid-template-columns: 1fr;
    }

    .cart-row img {
        height: 210px;
    }

    .cart-row strong,
    .cart-row .remove-button {
        grid-column: auto;
    }

    .cart-actions,
    .deal-row {
        grid-template-columns: 1fr;
    }

    .cart-actions {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

/* Booking tracking */
.booking-screen .booking-screen-inner {
    width: min(720px, 100%);
}

.track-layout {
    display: grid;
    grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
}

.track-form {
    position: sticky;
    top: 92px;
}

.booking-status-card {
    display: grid;
    gap: 18px;
    margin: 24px 0;
    padding: 22px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(59, 33, 15, .08);
    text-align: left;
}

.booking-status-head {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.booking-status-head h2 {
    margin: 2px 0 6px;
    color: var(--green-950);
    font-size: 1.35rem;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    color: white;
    background: var(--muted);
    font-size: .78rem;
    font-weight: 500;
}

.status-chip-new {
    background: var(--gold);
}

.status-chip-confirmed {
    background: var(--green-700);
}

.status-chip-completed {
    background: var(--green-900);
}

.status-chip-cancelled {
    background: #9c3726;
}

.status-timeline {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.status-step {
    position: relative;
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 14px;
    padding: 0 0 22px 0;
}

.status-step:last-child {
    padding-bottom: 0;
}

/* Connector line between dots */
.status-step::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 22px;
    bottom: -2px;
    width: 2px;
    background: var(--line);
}

.status-step:last-child::before {
    display: none;
}

.status-dot {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--line);
}

.status-step strong {
    color: var(--green-950);
}

.status-step p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.55;
}

.status-step.is-done .status-dot {
    background: var(--green-700);
    border-color: var(--green-700);
}

.status-step.is-current .status-dot {
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(197, 154, 66, .22);
}

.status-step.is-current strong {
    color: var(--rust);
}

.status-step.is-cancelled .status-dot {
    background: #9c3726;
    border-color: #9c3726;
}

.status-step.is-cancelled::before,
.status-step.is-done::before {
    background: var(--green-700);
}

.status-step.is-upcoming strong,
.status-step.is-upcoming p {
    opacity: .65;
}

.booking-items {
    display: grid;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.booking-updated {
    margin: 0;
    color: var(--muted);
    font-size: .78rem;
}

@media (max-width: 1100px) {
    .track-layout {
        grid-template-columns: 1fr;
    }

    .track-form {
        position: static;
    }
}
