/* ==========================================================================
   Innqora public home page
   Same identity as the dashboards: Himalayan pine, marigold, cool mist.
   Everything is scoped under .hm so nothing leaks into other pages.
   ========================================================================== */

.hm {
    --pine-950: #0b211e;
    --pine-900: #0f2b28;
    --pine-800: #163a36;
    --pine-700: #1f4d47;
    --mist: #f3f6f5;
    --ink: #15211f;
    --ink-2: #33433f;
    --muted: #60706c;
    --line: #e2e8e6;
    --marigold: #f2a93b;
    --marigold-deep: #d98d1c;
    --chili: #c4532b;
    --lotus: #7a5aa6;
    --teal: #0e7c6b;
    --ease: cubic-bezier(.2, .7, .2, 1);
    font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    background: var(--mist);
    font-variant-numeric: tabular-nums;
    margin-bottom: -3rem; /* the layout's footer adds its own top margin */
    padding-bottom: 3rem;
}
.hm a { text-decoration: none; }
.hm :focus-visible { outline: 2px solid var(--marigold); outline-offset: 3px; border-radius: 6px; }

/* ---------- Hero ---------- */
.hm-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(1200px 500px at 78% 8%, rgba(242, 169, 59, .20), transparent 60%),
        linear-gradient(180deg, #0a1f1c 0%, #12332f 55%, #1d4a44 100%);
    padding: clamp(56px, 9vw, 112px) 0 0;
}
.hm-sun {
    position: absolute;
    right: clamp(24px, 14vw, 220px);
    top: clamp(36px, 7vw, 84px);
    width: clamp(72px, 9vw, 128px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, #ffd58a, var(--marigold) 60%, var(--marigold-deep));
    box-shadow: 0 0 80px 20px rgba(242, 169, 59, .28);
}
.hm-ridges {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    width: 100%;
    height: clamp(170px, 26vw, 340px);
    display: block;
}
.hm-ridges .r1 { fill: #2b5e57; }
.hm-ridges .r1-snow { fill: #e8f1ef; opacity: .9; }
.hm-ridges .r2 { fill: #1e4943; }
.hm-ridges .r3 { fill: var(--mist); }

.hm-hero-inner { position: relative; z-index: 1; max-width: 1140px; }
.hm-title {
    font-size: clamp(2rem, 4.6vw, 3.6rem);
    line-height: 1.04;
    letter-spacing: -.035em;
    font-weight: 700;
    max-width: 14ch;
    margin: 0 0 14px;
    color: #fff;
}
.hm-lead {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: #c9dcd8;
    max-width: 52ch;
    margin: 0;
}

/* ---------- Search ---------- */
.hm-search-wrap {
    position: relative;
    z-index: 2;
    max-width: 1140px;
    padding-top: clamp(28px, 4vw, 44px);
    padding-bottom: clamp(48px, 9vw, 120px);
}
.hm-search {
    background: #fff;
    color: var(--ink);
    border-radius: 18px;
    padding: 8px 8px 10px;
    box-shadow: 0 30px 60px -28px rgba(5, 20, 18, .55), 0 2px 6px rgba(5, 20, 18, .12);
}
.hm-tabs { display: flex; gap: 4px; padding: 4px 4px 8px; overflow-x: auto; }
.hm-tab {
    display: inline-flex; align-items: center; gap: 8px;
    border: 0; background: transparent;
    padding: 8px 14px;
    border-radius: 10px;
    font: inherit; font-weight: 600; font-size: .92rem;
    color: var(--muted);
    white-space: nowrap;
    transition: background-color .15s var(--ease), color .15s var(--ease);
}
.hm-tab:hover { background: var(--mist); color: var(--ink); }
.hm-tab.active { background: var(--pine-900); color: #fff; }
.hm-tab.active .bi { color: var(--marigold); }

.hm-form { display: flex; align-items: stretch; gap: 6px; flex-wrap: wrap; }
.hm-form[hidden] { display: none; }
.hm-field {
    flex: 1 1 150px;
    display: flex; flex-direction: column; justify-content: center;
    margin: 0;
    padding: 8px 14px;
    border-radius: 12px;
    background: var(--mist);
    border: 1px solid transparent;
    cursor: text;
    transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.hm-field:hover { background: #ebf0ee; }
.hm-field:focus-within { border-color: var(--teal); background: #fff; box-shadow: 0 0 0 3px rgba(14, 124, 107, .15); }
.hm-field-wide { flex: 2 1 240px; }
.hm-field-narrow { flex: 0 1 100px; }
.hm-field span { font-size: .75rem; font-weight: 600; color: var(--muted); }
.hm-field input {
    border: 0; outline: 0; background: transparent;
    font: inherit; font-size: .98rem; color: var(--ink);
    padding: 2px 0 0; width: 100%; min-width: 0;
}
.hm-go {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 0; border-radius: 12px;
    padding: 0 22px; min-height: 56px;
    background: var(--marigold); color: var(--pine-950);
    font: inherit; font-weight: 700;
    transition: background-color .15s var(--ease), transform .15s var(--ease), box-shadow .15s var(--ease);
}
.hm-go:hover { background: #f6b955; box-shadow: 0 10px 22px -10px rgba(217, 141, 28, .8); }
.hm-go:active { transform: translateY(1px); }

.hm-cities { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: .88rem; }
.hm-cities span { color: #c9dcd8; margin-right: 2px; }
.hm-cities a {
    color: #fff; padding: 5px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .18);
    transition: background-color .15s var(--ease);
}
.hm-cities a:hover { background: rgba(255, 255, 255, .2); color: #fff; }

/* ---------- Promises ---------- */
.hm-promises {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
    max-width: 1140px; margin-top: 8px;
}
.hm-promises > div { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: start; }
.hm-promises .bi { grid-row: span 2; font-size: 1.25rem; color: var(--teal); margin-top: 1px; }
.hm-promises strong { font-size: .95rem; }
.hm-promises span { font-size: .87rem; color: var(--muted); }

/* ---------- Sections ---------- */
.hm-section { max-width: 1140px; margin-top: clamp(40px, 6vw, 72px); }
.hm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.hm-head h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 700; letter-spacing: -.02em; margin: 0; }
.hm-head p { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.hm-head-sm { align-items: center; }
.hm-head-sm h2 { font-size: 1.3rem; }
.hm-more { color: var(--teal); font-weight: 600; font-size: .92rem; white-space: nowrap; }
.hm-more:hover { color: var(--pine-700); text-decoration: underline; text-underline-offset: 3px; }
.hm-empty { padding: 28px; border: 1px dashed #cdd7d4; border-radius: 14px; color: var(--muted); text-align: center; background: #fff; }

/* ---------- Categories ---------- */
.hm-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hm-cat {
    --c: var(--teal);
    display: flex; align-items: center; gap: 14px;
    padding: 18px 18px;
    background: #fff; color: var(--ink);
    border: 1px solid var(--line); border-radius: 16px;
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.hm-cat-eat { --c: var(--chili); }
.hm-cat-spa { --c: var(--lotus); }
.hm-cat > .bi:first-child {
    width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0;
    font-size: 1.3rem; color: var(--c); background: color-mix(in srgb, var(--c) 11%, white);
}
.hm-cat div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.hm-cat strong { font-size: 1.05rem; }
.hm-cat span { font-size: .87rem; color: var(--muted); }
.hm-cat-arrow { color: var(--muted); transition: transform .18s var(--ease), color .18s var(--ease); }
.hm-cat:hover { border-color: color-mix(in srgb, var(--c) 40%, white); box-shadow: 0 14px 30px -20px rgba(15, 43, 40, .45); color: var(--ink); }
.hm-cat:hover .hm-cat-arrow { transform: translateX(4px); color: var(--c); }

/* ---------- Destinations mosaic ---------- */
.hm-mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 170px;
    gap: 12px;
}
.hm-dest {
    position: relative; overflow: hidden; border-radius: 16px;
    background: linear-gradient(160deg, var(--pine-700), var(--pine-900));
    color: #fff;
}
.hm-dest:first-child { grid-column: span 2; grid-row: span 2; }
.hm-dest img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.hm-dest::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(8, 24, 22, .78)); }
.hm-dest-text { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; display: flex; flex-direction: column; }
.hm-dest-text strong { font-size: 1.05rem; line-height: 1.2; }
.hm-dest:first-child .hm-dest-text strong { font-size: 1.5rem; letter-spacing: -.02em; }
.hm-dest-text span { font-size: .85rem; color: #d7e5e2; }
.hm-dest:hover img { transform: scale(1.04); }
.hm-dest:hover { color: #fff; }

/* ---------- Stays ---------- */
.hm-stays { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hm-stay {
    display: flex; flex-direction: column;
    background: #fff; color: var(--ink);
    border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
    transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.hm-stay:hover { box-shadow: 0 22px 40px -26px rgba(15, 43, 40, .5); border-color: #cdd7d4; color: var(--ink); }
.hm-stay-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #dfe7e5; }
.hm-stay-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.hm-stay:hover .hm-stay-img img { transform: scale(1.04); }
.hm-rating {
    position: absolute; left: 12px; top: 12px;
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 999px;
    background: rgba(255, 255, 255, .94); color: var(--ink);
    font-size: .82rem; font-weight: 700;
}
.hm-rating .bi { color: var(--marigold-deep); font-size: .78rem; }
.hm-rating small { font-weight: 500; color: var(--muted); }
.hm-stay-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.hm-stay-name { font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.hm-stay-meta { font-size: .87rem; color: var(--muted); display: flex; gap: 5px; align-items: center; }
.hm-price { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 1.05rem; }
.hm-price span { font-weight: 500; font-size: .82rem; color: var(--muted); }

/* ---------- Restaurants & spas (compact rows) ---------- */
.hm-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.hm-duo > div, .hm-stays > *, .hm-cats > * { min-width: 0; } /* let long names truncate instead of widening the page */
.hm-row {
    display: flex; align-items: center; gap: 14px;
    padding: 10px; margin-bottom: 8px;
    background: #fff; color: var(--ink);
    border: 1px solid var(--line); border-radius: 14px;
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.hm-row img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: #dfe7e5; }
.hm-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hm-row-text strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-row-text span { font-size: .85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-row-rating { font-size: .85rem; font-weight: 700; display: inline-flex; gap: 4px; align-items: center; }
.hm-row-rating .bi { color: var(--marigold-deep); font-size: .75rem; }
.hm-row-cta {
    font-size: .85rem; font-weight: 600; color: var(--teal);
    padding: 6px 12px; border-radius: 9px; background: rgba(14, 124, 107, .08);
    transition: background-color .15s var(--ease), color .15s var(--ease);
}
.hm-row:hover { border-color: #cdd7d4; box-shadow: 0 12px 26px -20px rgba(15, 43, 40, .5); color: var(--ink); }
.hm-row:hover .hm-row-cta { background: var(--teal); color: #fff; }

/* ---------- Owner band ---------- */
.hm-owner {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center;
    padding: clamp(28px, 4vw, 48px);
    border-radius: 22px;
    background: radial-gradient(600px 300px at 100% 0%, rgba(242, 169, 59, .18), transparent 60%), var(--pine-900);
    color: #fff;
}
.hm-owner h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; letter-spacing: -.025em; margin: 0 0 10px; color: #fff; }
.hm-owner p { color: #c9dcd8; max-width: 56ch; margin: 0 0 20px; }
.hm-owner-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hm-owner-list li {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: 12px;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08);
    font-size: .95rem;
}
.hm-owner-list .bi { color: var(--marigold); font-size: 1.1rem; }
.hm-btn-sun, .hm-btn-ghost {
    display: inline-flex; align-items: center; padding: 11px 20px; border-radius: 12px; font-weight: 700;
    transition: background-color .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.hm-btn-sun { background: var(--marigold); color: var(--pine-950); }
.hm-btn-sun:hover { background: #f6b955; color: var(--pine-950); box-shadow: 0 10px 22px -10px rgba(217, 141, 28, .8); }
.hm-btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
.hm-btn-ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .5); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .hm-stays { grid-template-columns: repeat(2, 1fr); }
    .hm-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
    .hm-owner { grid-template-columns: 1fr; }
    .hm-duo { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 767.98px) {
    .hm-promises { grid-template-columns: 1fr; gap: 14px; }
    .hm-cats { grid-template-columns: 1fr; gap: 10px; }
    .hm-field, .hm-field-wide, .hm-field-narrow, .hm-go { flex: 1 1 100%; }
    .hm-field:has(input[type=date]) { flex: 1 1 calc(50% - 3px); min-width: 0; }
    .hm-field input[type=date] { font-size: .9rem; }
    .hm-go { min-height: 50px; }
    .hm-sun { opacity: .85; }
    .hm-head { flex-wrap: wrap; align-items: baseline; }
}
@media (max-width: 575.98px) {
    /* Swipeable row of stays instead of a very long column. */
    .hm-stays {
        display: grid; grid-auto-flow: column; grid-auto-columns: 78%; grid-template-columns: none;
        overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
        margin: 0 -12px; padding: 2px 12px 10px; scrollbar-width: none;
    }
    .hm-stays::-webkit-scrollbar { display: none; }
    .hm-stay { scroll-snap-align: start; }
    .hm-sun { width: 44px; right: 16px; top: 18px; box-shadow: 0 0 40px 8px rgba(242, 169, 59, .25); }
    .hm-title { max-width: 11ch; }
    .hm-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; gap: 8px; }
    .hm-dest:first-child { grid-column: span 2; grid-row: span 1; }
    .hm-dest:first-child .hm-dest-text strong { font-size: 1.15rem; }
    .hm-row-rating { display: none; }
    .hm-search { border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .hm *, .hm *::before, .hm *::after { transition: none !important; }
}
