/* =========================================================
   HikingAz — Home page · "Topographic Expedition" theme
   Framework-free. Loaded after app.css, only on the home page.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,500;1,9..144,600&family=Hanken+Grotesk:wght@400;500;600;700&display=swap');

.hk-home {
    --paper:      #f4f0e7;
    --paper-2:    #ebe3d3;
    --ink:        #19271f;
    --pine:       #173a31;
    --pine-deep:  #0f2620;
    --moss:       #5f7d56;
    --sage:       #a7bd9e;
    --clay:       #c2683c;
    --clay-deep:  #a4522c;
    --gold:       #d8a23f;
    --cream:      #f8f4eb;

    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;

    background: var(--paper);
    font-family: var(--font-body);
}

/* ============================ HERO ============================ */
.xhero {
    position: relative;
    background:
        radial-gradient(120% 90% at 80% -10%, #1c4438 0%, transparent 60%),
        linear-gradient(160deg, var(--pine) 0%, var(--pine-deep) 100%);
    color: var(--cream);
    overflow: hidden;
    padding: clamp(56px, 11vw, 120px) 0 clamp(60px, 9vw, 104px);
    isolation: isolate;
}

/* topographic contour lines */
.xhero__topo {
    position: absolute;
    inset: 0;
    z-index: -1;
    color: var(--sage);
    opacity: .22;
    pointer-events: none;
}
.xhero__topo svg { width: 100%; height: 100%; display: block; }

/* film grain */
.xhero__grain {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .5;
    mix-blend-mode: soft-light;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.xhero__inner { position: relative; max-width: 920px; }

.xhero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--sage);
    padding: 8px 16px;
    border: 1px solid rgba(167,189,158,.35);
    border-radius: 999px;
    margin-bottom: 30px;
    opacity: 0;
    animation: riseIn .7s cubic-bezier(.2,.7,.2,1) both;
}
.xhero__eyebrow::before { content: "▲"; font-size: 10px; color: var(--gold); }

.xhero__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(48px, 11vw, 124px);
    line-height: .92;
    letter-spacing: -.02em;
    margin: 0 0 26px;
    color: var(--cream);
}
.xhero__title .l1 {
    display: block;
    opacity: 0;
    animation: riseIn .85s cubic-bezier(.2,.7,.2,1) .08s both;
}
.xhero__title .l2 {
    display: block;
    font-style: italic;
    font-weight: 500;
    color: var(--gold);
    margin-left: .12em;
    opacity: 0;
    animation: riseIn .85s cubic-bezier(.2,.7,.2,1) .2s both;
}

.xhero__lead {
    max-width: 540px;
    font-size: clamp(16px, 2.2vw, 19px);
    line-height: 1.65;
    color: rgba(248,244,235,.82);
    margin: 0 0 38px;
    opacity: 0;
    animation: riseIn .8s ease .34s both;
}

/* search */
.xsearch {
    display: flex;
    gap: 8px;
    max-width: 580px;
    background: var(--cream);
    padding: 8px;
    border-radius: 16px;
    box-shadow: 0 24px 50px -22px rgba(0,0,0,.6);
    opacity: 0;
    animation: riseIn .8s ease .46s both;
}
.xsearch__field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 8px 0 16px;
}
.xsearch__field svg { flex: none; color: var(--moss); }
.xsearch input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--ink);
    padding: 14px 0;
}
.xsearch input::placeholder { color: #9aa49b; }
.xsearch button {
    flex: none;
    border: none;
    cursor: pointer;
    background: var(--clay);
    color: var(--cream);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: .01em;
    padding: 0 26px;
    border-radius: 11px;
    transition: background .2s ease, transform .2s ease;
}
.xsearch button:hover { background: var(--clay-deep); transform: translateY(-1px); }

/* hero meta row */
.xhero__meta {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 40px;
    flex-wrap: wrap;
    opacity: 0;
    animation: riseIn .8s ease .6s both;
}
.xstat { display: flex; align-items: baseline; gap: 9px; }
.xstat b {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 30px;
    color: var(--cream);
    line-height: 1;
}
.xstat span {
    font-size: 13px;
    letter-spacing: .04em;
    color: var(--sage);
    text-transform: lowercase;
}
.xmeta-div { width: 1px; height: 30px; background: rgba(167,189,158,.3); }
.xcoord {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 14px;
    color: var(--sage);
    letter-spacing: .04em;
}
.xcoord::before { content: "⌖ "; font-style: normal; }

/* ============================ TOURS ============================ */
.xtours {
    background:
        linear-gradient(var(--paper), var(--paper)) padding-box;
    padding: clamp(48px, 8vw, 84px) 0 clamp(56px, 9vw, 96px);
    position: relative;
}
/* faint contour seam at the top of the tours band */
.xtours::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 60px;
    background: var(--pine-deep);
    -webkit-mask: radial-gradient(60px 60px at 50% 0, transparent 59px, #000 60px);
    mask: radial-gradient(60px 60px at 50% 0, transparent 59px, #000 60px);
    display: none;
}

.xtours__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 44px;
    padding-bottom: 22px;
    border-bottom: 1.5px solid var(--paper-2);
}
.xtours__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--clay);
    margin-bottom: 12px;
}
.xtours__eyebrow::before {
    content: "";
    width: 26px; height: 1.5px;
    background: var(--clay);
}
.xtours__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(30px, 5.2vw, 50px);
    line-height: 1.02;
    letter-spacing: -.015em;
    color: var(--ink);
    margin: 0;
}
.xtours__title em { font-style: italic; color: var(--moss); }
.xtours__count {
    font-family: var(--font-display);
    font-size: 15px;
    color: var(--moss);
    white-space: nowrap;
    padding-bottom: 6px;
}
.xtours__count b { color: var(--ink); font-size: 19px; }

/* grid */
.xgrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 28px;
}
@media (max-width: 920px) { .xgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .xgrid { grid-template-columns: 1fr; } }

/* card */
.xcard {
    position: relative;
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: riseIn .7s cubic-bezier(.2,.7,.2,1) both;
    animation-delay: calc(var(--i, 0) * 70ms + .2s);
}
.xcard__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(150deg, #21503f, #14342a);
    box-shadow: 0 1px 2px rgba(25,39,31,.1);
}
.xcard__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .4s ease;
}
.xcard__ph {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(167,189,158,.5);
    font-size: 46px;
}
.xcard__media::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(15,38,32,.55), transparent 45%);
    opacity: .8;
    transition: opacity .4s ease;
}
.xcard:hover .xcard__media img { transform: scale(1.07); }

/* luggage-tag price */
.xprice {
    position: absolute;
    top: 14px; left: 14px;
    z-index: 2;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 16px;
    color: var(--cream);
    background: var(--clay);
    padding: 7px 14px 7px 18px;
    border-radius: 7px;
    transform: rotate(-3deg);
    box-shadow: 0 6px 16px -6px rgba(164,82,44,.8);
}
.xprice::before {
    content: "";
    position: absolute;
    left: 7px; top: 50%;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--cream);
    transform: translateY(-50%);
    box-shadow: 0 0 0 2px rgba(0,0,0,.08) inset;
}
.xprice small { font-weight: 500; opacity: .85; font-size: 12px; }

.xcard__body { padding: 18px 4px 0; display: flex; flex-direction: column; flex: 1; }
.xcard__org {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--moss);
    margin-bottom: 9px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.xcard__org::before { content: "◬"; color: var(--clay); font-size: 12px; }
.xcard__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 22px;
    line-height: 1.18;
    letter-spacing: -.01em;
    margin: 0 0 10px;
}
.xcard__title a { color: var(--ink); transition: color .2s ease; }
.xcard:hover .xcard__title a { color: var(--clay-deep); }
.xcard__desc {
    font-size: 14.5px;
    line-height: 1.6;
    color: #5e6b62;
    margin: 0 0 18px;
    flex: 1;
}
.xcard__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--paper-2);
}
.xcard__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
}
.xcard__link svg { transition: transform .25s ease; }
.xcard:hover .xcard__link svg { transform: translateX(5px); }
.xcard__per { font-size: 12.5px; color: #97a298; font-style: italic; font-family: var(--font-display); }

/* ===================== EMPTY STATE ===================== */
.xempty {
    text-align: center;
    padding: 80px 24px;
    border: 1.5px dashed var(--paper-2);
    border-radius: 20px;
    background: rgba(255,255,255,.4);
}
.xempty__icon { font-size: 54px; margin-bottom: 14px; filter: grayscale(.2); }
.xempty h3 { font-family: var(--font-display); font-size: 26px; color: var(--ink); margin: 0 0 8px; }
.xempty p { color: #6c786f; margin: 0; }

/* ===================== PAGINATION (home) ===================== */
.hk-home .pagination { justify-content: center; margin-top: 48px; }
.hk-home .pagination a,
.hk-home .pagination span {
    border-color: var(--paper-2);
    background: #fff;
    color: var(--ink);
    font-weight: 600;
    border-radius: 10px;
}
.hk-home .pagination .active span,
.hk-home .pagination [aria-current] span {
    background: var(--pine);
    border-color: var(--pine);
    color: var(--cream);
}

/* ===================== KEYFRAMES ===================== */
@keyframes riseIn {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .hk-home * { animation: none !important; }
}
