/* Topi Trails editorial facelift — shared storefront design system */
:root {
    --topi-ink: #211d19;
    --topi-charcoal: #34312f;
    --topi-ivory: #f7f3ec;
    --topi-paper: #fffdf9;
    --topi-sand: #e8ddce;
    --topi-savannah: #b8945b;
    --topi-ember: #d85c2b;
    --topi-ember-dark: #a8401d;
    --topi-sky: #b8d3e5;
    --topi-forest: #39483a;
    --topi-line: rgba(33, 29, 25, .14);
    --topi-shadow: 0 24px 70px rgba(33, 29, 25, .10);
    --topi-display: 'Playfair Display', Georgia, serif;
    --topi-copy: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --topi-accent: 'Cormorant Garamond', Georgia, serif;
}

html {
    max-width: 100%;
    overflow-x: clip;
    scroll-behavior: smooth;
}

body.lux-theme {
    max-width: 100%;
    overflow-x: clip;
    background: var(--topi-ivory);
    color: var(--topi-ink);
    font-family: var(--topi-copy);
    font-size: clamp(15px, .35vw + 13.5px, 17px);
    line-height: 1.72;
}

body.lux-theme ::selection {
    color: #fff;
    background: var(--topi-ember);
}

.lux-theme h1,
.lux-theme h2,
.lux-theme h3,
.lux-theme h4 {
    color: inherit;
    font-family: var(--topi-display);
    font-weight: 400;
    letter-spacing: -.025em;
    text-wrap: balance;
}

.lux-theme p { text-wrap: pretty; }
.lux-theme a,
.lux-theme button,
.lux-theme input,
.lux-theme select,
.lux-theme textarea { border-radius: 0; }

.lux-theme .header-logo-white,
.lux-theme .admin-brand-logo { background: transparent !important; }

.lux-theme :focus-visible {
    outline: 2px solid var(--topi-ember);
    outline-offset: 4px;
}

.lux-theme .max-w-7xl { max-width: 86rem; }
.lux-theme .max-w-6xl { max-width: 76rem; }

.topi-eyebrow,
.lux-theme .section-label {
    color: var(--topi-ember);
    font-family: var(--topi-copy);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .28em;
    line-height: 1.4;
    text-transform: uppercase;
}

.topi-section {
    position: relative;
    padding-block: clamp(4.5rem, 8vw, 8rem);
}

.topi-section--paper { background: var(--topi-paper); }
.topi-section--ivory { background: var(--topi-ivory); }
.topi-section--ink { background: var(--topi-ink); color: #fff; }

.topi-rule {
    width: 4.5rem;
    height: 1px;
    margin-block: 1.35rem;
    background: var(--topi-ember);
}

.topi-inner-hero {
    min-height: clamp(520px, 72svh, 780px);
    height: clamp(620px, 82svh, 780px) !important;
    isolation: isolate;
}

.topi-inner-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(19, 16, 13, .74), rgba(19, 16, 13, .18) 68%),
        linear-gradient(0deg, rgba(19, 16, 13, .46), transparent 46%);
}

.topi-inner-hero > .absolute.inset-0 { z-index: 0; }
.topi-inner-hero > .relative { z-index: 2 !important; }
.topi-inner-hero > .absolute:not(.inset-0) { z-index: 2; }

.topi-inner-hero h1 { font-size: clamp(3.5rem, 7.5vw, 7.5rem) !important; line-height: .92 !important; }
.topi-inner-hero p { max-width: 44rem; }

.topi-filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .65rem;
    margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.topi-filter-bar a,
.topi-filter-pill {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .78rem 1.2rem !important;
    border: 1px solid var(--topi-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--topi-charcoal) !important;
    font-size: .68rem;
    font-weight: 700 !important;
    letter-spacing: .16em;
    text-transform: uppercase;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.topi-filter-bar a:hover,
.topi-filter-bar a.bg-amber-600,
.topi-filter-pill.is-active {
    border-color: var(--topi-ink) !important;
    background: var(--topi-ink) !important;
    color: #fff !important;
}

.topi-destination-card,
.experience-card,
.lux-theme .card-luxury {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--topi-line);
    border-radius: 0 !important;
    background: var(--topi-paper);
    box-shadow: none !important;
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.topi-destination-card:hover,
.experience-card:hover,
.lux-theme .card-luxury:hover {
    transform: translateY(-5px);
    border-color: rgba(33, 29, 25, .28);
    box-shadow: var(--topi-shadow) !important;
}

.topi-destination-card .topi-card-image {
    position: relative;
    height: clamp(250px, 29vw, 390px);
    overflow: hidden;
    background: #cfc1ad;
}

.topi-destination-card .topi-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(22, 18, 14, .38), transparent 55%);
    pointer-events: none;
}

.topi-destination-card img,
.experience-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(.2, .7, .2, 1), filter .4s ease;
}

.topi-destination-card:hover img,
.experience-card:hover img { transform: scale(1.035); }

.topi-card-kicker {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    padding: .5rem .72rem;
    background: rgba(255, 253, 249, .92) !important;
    color: var(--topi-ink) !important;
    font-size: .62rem !important;
    font-weight: 700 !important;
    letter-spacing: .18em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.topi-destination-card .topi-card-body { padding: clamp(1.35rem, 2.6vw, 2.2rem); }
.topi-destination-card h3 { font-size: clamp(1.8rem, 3vw, 2.6rem) !important; line-height: 1.05; }
.topi-destination-card .topi-chip {
    display: inline-flex;
    padding: .28rem .55rem;
    border: 1px solid rgba(216, 92, 43, .25);
    background: rgba(216, 92, 43, .06);
    color: var(--topi-ember-dark);
    font-size: .67rem;
    letter-spacing: .04em;
}

.topi-card-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--topi-line);
}

.topi-card-cta,
.lux-theme .btn-luxury-primary {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    min-height: 48px;
    padding: .9rem 1.25rem !important;
    border: 1px solid var(--topi-ink) !important;
    border-radius: 0 !important;
    background: var(--topi-ink) !important;
    color: #fff !important;
    font-size: .7rem !important;
    font-weight: 700 !important;
    letter-spacing: .16em;
    text-transform: uppercase;
    box-shadow: none !important;
}

.topi-card-cta:hover,
.lux-theme .btn-luxury-primary:hover {
    border-color: var(--topi-ember) !important;
    background: var(--topi-ember) !important;
    transform: none !important;
}

.lux-theme details {
    border: 0 !important;
    border-bottom: 1px solid var(--topi-line) !important;
    border-radius: 0 !important;
    background: transparent;
}

.lux-theme details summary {
    padding-block: .35rem;
    font-family: var(--topi-display);
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 400 !important;
}

.lux-theme input,
.lux-theme select,
.lux-theme textarea {
    min-width: 0;
    border: 1px solid rgba(33, 29, 25, .24) !important;
    border-radius: 0 !important;
    background: rgba(255, 253, 249, .96) !important;
    color: var(--topi-ink) !important;
    box-shadow: none !important;
}

.lux-theme input:focus,
.lux-theme select:focus,
.lux-theme textarea:focus {
    border-color: var(--topi-ember) !important;
    box-shadow: inset 0 -2px 0 var(--topi-ember) !important;
}

.lux-theme .text-amber-300,
.lux-theme .text-amber-400,
.lux-theme .text-amber-500,
.lux-theme .text-amber-600,
.lux-theme .text-amber-700 { color: var(--topi-ember) !important; }

.lux-theme .bg-amber-600,
.lux-theme .bg-amber-700 { background-color: var(--topi-ember) !important; }
.lux-theme .hover\:bg-amber-700:hover { background-color: var(--topi-ember-dark) !important; }
.lux-theme .border-amber-600 { border-color: var(--topi-ember) !important; }

.lux-theme .rounded-full:not(.nav-icon-box):not(.w-2):not(.w-3):not(.w-4) { border-radius: 0 !important; }

.topi-icon-tile {
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(216, 92, 43, .28);
    background: rgba(216, 92, 43, .07);
    color: var(--topi-ember);
}

/* Shared lower-page surfaces: stays, journal, footer and concierge tools. */
.lux-theme article.group > a > div:first-child,
.lux-theme article.bg-white,
.lux-theme .bg-white.rounded-xl,
.lux-theme .bg-white.rounded-2xl,
.lux-theme .bg-white.rounded-3xl {
    border: 1px solid var(--topi-line);
    border-radius: 0 !important;
    box-shadow: none !important;
}

.lux-theme article.group > a > div:first-child {
    background-color: #cfc1ad;
    transition: box-shadow .35s ease, transform .35s ease;
}

.lux-theme article.group:hover > a > div:first-child {
    transform: translateY(-4px);
    box-shadow: var(--topi-shadow) !important;
}

.topi-site-footer {
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, .12);
    background: var(--topi-ink) !important;
}

.topi-site-footer::before {
    content: '';
    position: absolute;
    width: 28rem;
    height: 28rem;
    right: -12rem;
    top: -17rem;
    border: 1px solid rgba(184, 148, 91, .2);
    border-radius: 50%;
}

.topi-site-footer > div { position: relative; z-index: 1; }
.topi-site-footer h5,
.topi-site-footer h6 {
    color: var(--topi-savannah);
    font-family: var(--topi-copy);
    font-weight: 700 !important;
    letter-spacing: .2em;
}

.topi-footer-brand { color: #fff; text-decoration: none; }
.topi-footer-mark {
    display: inline-block;
    width: 3rem;
    height: 5rem;
    flex: 0 0 3rem;
    background: #fff;
    -webkit-mask: url('../Topi%20Trails%20favicon.png') center / contain no-repeat;
    mask: url('../Topi%20Trails%20favicon.png') center / contain no-repeat;
}
.topi-footer-brand span {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.2rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.lux-theme #topi-chatbot > div,
.lux-theme #topi-chatbot > div > div,
.lux-theme #topi-chatbot button,
.lux-theme #topi-chatbot input { border-radius: 0 !important; }

.lux-theme #topi-chatbot > div > div:first-child,
.lux-theme #topi-toggle {
    background: var(--topi-ember) !important;
}

.lux-theme #topi-toggle {
    border-radius: 0 !important;
    box-shadow: 0 14px 36px rgba(33, 29, 25, .22) !important;
}

/* Editorial content pages */
.topi-editorial-card {
    position: relative;
    border: 1px solid var(--topi-line) !important;
    border-radius: 0 !important;
    background: var(--topi-paper) !important;
    box-shadow: none !important;
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.topi-editorial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(33, 29, 25, .3) !important;
    box-shadow: var(--topi-shadow) !important;
}

.topi-editorial-card > div:first-child {
    border: 1px solid rgba(216, 92, 43, .25);
    border-radius: 0 !important;
    background: rgba(216, 92, 43, .07) !important;
}

.topi-story-section img {
    border-radius: 0 !important;
    box-shadow: var(--topi-shadow) !important;
}

.topi-story-section .absolute.-bottom-8 {
    border-radius: 0 !important;
    background: var(--topi-ember) !important;
}

.topi-contact-intro {
    border-bottom: 1px solid var(--topi-line);
    padding-top: clamp(5rem, 10vw, 8rem);
}

.topi-contact-workspace { overflow: hidden; }
.topi-contact-workspace::before {
    content: '';
    position: absolute;
    width: 38rem;
    height: 38rem;
    left: -24rem;
    bottom: -24rem;
    border: 1px solid rgba(184, 148, 91, .2);
    border-radius: 50%;
}

.topi-contact-workspace .group,
.topi-contact-workspace .mt-8.bg-stone-800 {
    border-radius: 0 !important;
}

.topi-contact-form {
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .22);
}

.topi-filter-section form { gap: .75rem; }
.topi-filter-section select,
.topi-filter-section button { min-height: 48px; }

.topi-stay-card > a > div:first-child {
    aspect-ratio: 4 / 3;
    border: 1px solid var(--topi-line);
    border-radius: 0 !important;
    overflow: hidden;
}

.topi-stay-card h3 {
    font-family: var(--topi-display);
    font-size: 1.35rem !important;
    font-weight: 400 !important;
}

.topi-journal-feature,
.topi-journal-card {
    border: 1px solid var(--topi-line);
    border-radius: 0 !important;
    box-shadow: none !important;
    transition: transform .35s ease, box-shadow .35s ease;
}

.topi-journal-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--topi-shadow) !important;
}

.topi-journal-card h3,
.topi-journal-feature h2 { font-weight: 400 !important; }

.topi-journal-masthead {
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    background: var(--topi-ink) !important;
}

.topi-journal-masthead h1 {
    font-size: clamp(2.8rem, 6vw, 5.8rem) !important;
    font-weight: 400 !important;
    line-height: 1 !important;
}

.topi-destination-hero { isolation: isolate; }
.topi-destination-hero img { z-index: -2; }
.topi-destination-hero > .absolute { z-index: -1; }
.topi-destination-hero h1 {
    font-size: clamp(3.8rem, 8vw, 8rem) !important;
    letter-spacing: -.04em;
    line-height: .9 !important;
}

.lux-theme .prose {
    color: var(--topi-charcoal);
    font-size: clamp(1rem, .35vw + .92rem, 1.18rem);
    line-height: 1.85;
}

.lux-theme .prose h2,
.lux-theme .prose h3 { font-weight: 400; }

@media (max-width: 1279px) {
    body.lux-theme.has-fixed-header { padding-top: 90px; }
    .lux-theme .max-w-7xl,
    .lux-theme .max-w-6xl,
    .lux-theme .max-w-5xl { width: min(100%, 76rem); }
}

@media (max-width: 767px) {
    .topi-section { padding-block: 4.25rem; }
    .topi-inner-hero { min-height: 620px; }
    .topi-inner-hero::before {
        background: linear-gradient(90deg, rgba(19, 16, 13, .76), rgba(19, 16, 13, .26)),
                    linear-gradient(0deg, rgba(19, 16, 13, .5), transparent 50%);
    }
    .topi-filter-bar { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: .5rem; }
    .topi-filter-bar a { flex: 0 0 auto; }
    .topi-destination-card .topi-card-image { height: 290px; }
    .topi-card-meta { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
