/* ==========================================================================
   GrandCanyonAZHotels.com
   Single stylesheet. Mobile-first, no framework, no build step.
   Tokens follow the approved brand guide; deviations are noted inline.
   ========================================================================== */

/* --------------------------------------------------------------- Fonts --- */
/* Self-hosted variable fonts, latin subset. One file covers every weight. */
@font-face {
    font-family: "Montserrat";
    src: url("/assets/fonts/montserrat-var.woff2") format("woff2-variations");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Playfair Display";
    src: url("/assets/fonts/playfair-display-var.woff2") format("woff2-variations");
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}

/* --------------------------------------------------------------- Tokens -- */
:root {
    --navy: #0D1B2A;
    --clay: #B24A2A;
    --clay-hover: #963B21;
    --sandstone: #E0C39A;
    --sage: #6E7F63;
    --ivory: #F6F2E8;
    --gold: #F4B24A;

    --text: #0D1B2A;
    --text-secondary: #42505D;
    /* Brand guide lists #6E7A84 for muted text. That is 3.9:1 on Warm Ivory
       and fails WCAG AA, so muted text is darkened to #5A666E (5.3:1). */
    --text-muted: #5A666E;
    --link: #9B3F23;
    --link-hover: #6F2C18;
    --border: #DED5C8;
    --border-strong: #C9BCA9;
    --surface: #FFFFFF;
    --surface-warm: #F6F2E8;
    --surface-sand: #F0E7D8;

    --success: #4F6547;
    --warning: #8A5F14;

    --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
    --font-body: "Montserrat", Arial, Helvetica, sans-serif;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-pill: 999px;

    --shadow-card: 0 6px 24px rgba(13, 27, 42, .08);
    --shadow-hover: 0 10px 32px rgba(13, 27, 42, .14);

    --s1: 4px;
    --s2: 8px;
    --s3: 16px;
    --s4: 24px;
    --s5: 32px;
    --s6: 48px;
    --s7: 64px;
    --s8: 80px;
    --s9: 96px;

    --wrap: 1200px;
    --wrap-wide: 1360px;
    --prose: 68ch;
}

/* ----------------------------------------------------------------- Base -- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

body {
    margin: 0;
    background: var(--surface);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    overflow-wrap: break-word;
    word-break: normal;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

img {
    display: block;
}

a {
    color: var(--link);
    text-decoration-thickness: 1px;
    text-underline-offset: .15em;
}

a:hover {
    color: var(--link-hover);
}

:focus-visible {
    outline: 3px solid var(--clay);
    outline-offset: 2px;
    border-radius: 2px;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 var(--s3);
    color: var(--navy);
    line-height: 1.2;
    text-wrap: balance;
}

h1,
h2 {
    font-family: var(--font-heading);
    font-weight: 700;
}

h1 {
    font-size: clamp(2.05rem, 1.5rem + 2.6vw, 3.5rem);
    line-height: 1.06;
    letter-spacing: -.01em;
}

h2 {
    font-size: clamp(1.6rem, 1.25rem + 1.6vw, 2.5rem);
    line-height: 1.15;
    margin-top: var(--s6);
}

h3 {
    font-size: clamp(1.2rem, 1.08rem + .5vw, 1.45rem);
    font-weight: 600;
    margin-top: var(--s5);
}

h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: var(--s4);
}

p,
ul,
ol {
    margin: 0 0 var(--s3);
}

ul,
ol {
    padding-left: 1.25em;
}

li {
    margin-bottom: var(--s2);
}

li::marker {
    color: var(--clay);
}

strong {
    font-weight: 600;
}

hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: var(--s6) 0;
}

/* ------------------------------------------------------------- Utilities - */
.wrap {
    width: min(100% - 2rem, var(--wrap));
    margin-inline: auto;
}

.wrap-wide {
    width: min(100% - 2rem, var(--wrap-wide));
    margin-inline: auto;
}

.prose {
    max-width: var(--prose);
    /* A grid item defaults to min-width:auto, which refuses to shrink below
       its content. A wide table inside .prose then pushes the whole page
       sideways on narrow screens instead of scrolling inside its own box. */
    min-width: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    background: var(--navy);
    color: #fff;
    padding: var(--s2) var(--s3);
    border-radius: 0 0 var(--radius-sm) 0;
    font-weight: 600;
}

.skip-link:focus {
    left: 0;
    color: #fff;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.overline {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--clay);
    margin: 0 0 var(--s2);
}

.overline--sage {
    color: #4E5B45;
}

.lede {
    font-size: clamp(1.05rem, 1rem + .35vw, 1.18rem);
    color: var(--text-secondary);
}

.muted {
    color: var(--text-muted);
    font-size: .875rem;
}

.section {
    padding-block: var(--s6);
}

.section--warm {
    background: var(--surface-warm);
}

.section--navy {
    background: var(--navy);
    color: var(--ivory);
}

.section--navy h2,
.section--navy h3 {
    color: var(--ivory);
}

.section--navy a {
    color: var(--gold);
}

.section--navy a:hover {
    color: #fff;
}

@media (min-width: 64rem) {
    .section {
        padding-block: var(--s8);
    }
}

/* --------------------------------------------------------------- Buttons - */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s2);
    min-height: 48px;
    padding: 13px 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: .9375rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, transform .15s ease;
}

.btn--primary {
    background: var(--clay);
    color: #fff;
}

.btn--primary:hover {
    background: var(--clay-hover);
    color: #fff;
    transform: translateY(-1px);
}

.btn--secondary {
    background: var(--navy);
    color: #fff;
}

.btn--secondary:hover {
    background: #16293c;
    color: #fff;
    transform: translateY(-1px);
}

.btn--tertiary {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn--tertiary:hover {
    background: var(--navy);
    color: #fff;
}

.btn--block {
    width: 100%;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s3);
    margin-top: var(--s4);
}

@media (max-width: 30rem) {
    .btn-row .btn {
        width: 100%;
    }
}

/* ---------------------------------------------------------------- Header - */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--surface-warm);
    border-bottom: 1px solid var(--border);
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Wrapping matters at very large text sizes: the logo and the menu button
       stop fitting on one line long before the content does, and without this
       the header alone forces the page to scroll sideways. */
    flex-wrap: wrap;
    gap: var(--s2) var(--s3);
    min-height: 68px;
    /* Slightly more room above than below. The logo lock-up carries its
       visual weight low (its ink centre sits about 5% under the geometric
       centre of the bitmap), so a mathematically equal padding reads as
       top-heavy. This is an optical correction, not a mistake. */
    padding-block: 14px 10px;
}

.header-bar > * {
    min-width: 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.brand img {
    /* Deliberately px, not rem. A rem minimum scales with the root font size,
       so at 200% text this became 288px and pushed the header off a 320px
       screen. Container widths track the viewport here; the text still
       scales. */
    width: clamp(140px, 52vw, 200px);
    max-width: 100%;
    height: auto;
}

@media (min-width: 64rem) {
    .header-bar {
        min-height: 80px;
    }

    .brand img {
        width: 240px;
        max-width: 240px;
    }
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--s2);
    min-height: 44px;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid var(--navy);
    border-radius: 8px;
    color: var(--navy);
    font-family: var(--font-body);
    font-size: .8125rem;
    font-weight: 600;
    cursor: pointer;
}

.nav-toggle svg {
    width: 18px;
    height: 18px;
}

.nav-toggle[aria-expanded="true"] .icon-open,
.nav-toggle[aria-expanded="false"] .icon-close {
    display: none;
}

.site-nav {
    display: none;
    padding-bottom: var(--s3);
}

.site-nav.is-open {
    display: block;
}

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav > ul > li {
    border-top: 1px solid var(--border);
    margin: 0;
}

.site-nav a {
    display: block;
    padding: 12px 4px;
    color: var(--navy);
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--clay);
}

.site-nav .subnav a {
    padding: 10px 4px 10px 16px;
    font-weight: 500;
    font-size: .9rem;
    color: var(--text-secondary);
}

.nav-group > span {
    display: block;
    padding: 12px 4px 4px;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

@media (min-width: 68rem) {
    .nav-toggle {
        display: none;
    }

    .site-nav {
        display: block;
        padding-bottom: 0;
    }

    .site-nav > ul {
        display: flex;
        align-items: center;
        gap: var(--s4);
    }

    .site-nav > ul > li {
        border-top: 0;
        position: relative;
    }

    .site-nav > ul > li > a,
    .nav-group > span {
        padding: 24px 0;
        font-size: .875rem;
        letter-spacing: 0;
        text-transform: none;
        color: var(--navy);
        font-weight: 600;
        cursor: default;
    }

    .nav-group > span::after {
        content: "";
        display: inline-block;
        width: 6px;
        height: 6px;
        margin-left: 7px;
        border-right: 1.75px solid currentColor;
        border-bottom: 1.75px solid currentColor;
        transform: translateY(-2px) rotate(45deg);
    }

    /* Note the .site-nav prefix. ".site-nav ul" sets padding:0 and scores
       0,1,1, so a bare ".subnav" at 0,1,0 loses to it and the panel ended up
       with no top or bottom padding at all: the first link sat flush against
       the border while the last one kept a gap. A media query adds nothing to
       specificity, so being inside one does not help. */
    .site-nav .subnav {
        position: absolute;
        top: 100%;
        left: -16px;
        min-width: 250px;
        max-width: calc(100vw - 2rem);
        padding: var(--s3) 0;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-card);
        opacity: 0;
        visibility: hidden;
        transition: opacity .12s ease;
    }

    /* The last groups sit near the right edge. A left-aligned dropdown there
       runs past the viewport, and because a visibility:hidden element still
       takes part in layout, that widens scrollWidth and the whole page scrolls
       sideways even though nothing is visible. Anchor them to the right. */
    .site-nav > ul > li:last-child .subnav,
    .site-nav > ul > li:nth-last-child(2) .subnav {
        left: auto;
        right: -16px;
    }

    .nav-group:hover .subnav,
    .nav-group:focus-within .subnav {
        opacity: 1;
        visibility: visible;
    }

    /* Prose lists carry "li { margin-bottom: var(--s2) }". Inside a dropdown
       that trailing margin lands under the last item only, so the panel showed
       9px of air above the first link and 17px below the last one. */
    .site-nav .subnav li:last-child {
        margin-bottom: 0;
    }

    .site-nav .subnav a {
        padding: 9px 16px;
        font-size: .875rem;
    }

    .site-nav .subnav a:hover {
        background: var(--surface-warm);
        color: var(--clay);
    }
}

/* ------------------------------------------------------------ Breadcrumb - */
.breadcrumb {
    padding-block: var(--s3);
    font-size: .8125rem;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb li {
    margin: 0;
    color: var(--text-muted);
}

.breadcrumb li + li::before {
    content: "/";
    margin-right: 6px;
    color: var(--border-strong);
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb [aria-current="page"] {
    color: var(--text-muted);
}

/* ------------------------------------------------------------------ Hero - */
.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 460px;
    background: var(--navy);
    overflow: hidden;
}

.hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(13, 27, 42, .30) 0%,
            rgba(13, 27, 42, .62) 55%,
            rgba(13, 27, 42, .88) 100%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-block: var(--s6) var(--s5);
}

.hero h1 {
    color: var(--ivory);
    max-width: 20ch;
}

.hero .overline {
    color: var(--gold);
}

.hero p {
    color: #EFEADF;
    max-width: 54ch;
    font-size: clamp(1.02rem, .97rem + .35vw, 1.15rem);
}

@media (min-width: 48rem) {
    .hero {
        min-height: 520px;
    }

    .hero::after {
        background: linear-gradient(90deg,
                rgba(13, 27, 42, .90) 0%,
                rgba(13, 27, 42, .74) 42%,
                rgba(13, 27, 42, .34) 72%,
                rgba(13, 27, 42, .12) 100%);
    }
}

@media (min-width: 64rem) {
    .hero {
        min-height: 580px;
    }

    .hero-inner {
        padding-block: var(--s8) var(--s7);
    }
}

.hero--compact {
    min-height: 300px;
}

@media (min-width: 48rem) {
    .hero--compact {
        min-height: 340px;
    }
}

/* Page header without a photo. */
.page-head {
    padding-block: var(--s5) var(--s4);
    border-bottom: 1px solid var(--border);
}

/* ---------------------------------------------------------------- Layout - */
.layout {
    display: grid;
    gap: var(--s6);
    padding-block: var(--s6);
}

.layout > * {
    min-width: 0;
}

@media (min-width: 64rem) {
    .layout--sidebar {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: var(--s7);
        padding-block: var(--s7);
    }
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--s4);
    min-width: 0;
}

@media (min-width: 64rem) {
    .sidebar {
        position: sticky;
        top: 100px;
        align-self: start;
    }
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s4);
}

.grid > * {
    min-width: 0;
}

@media (min-width: 40rem) {
    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 64rem) {
    .grid--3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .grid--4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ----------------------------------------------------------------- Cards - */
.card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.card > img,
.card-media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.card-media {
    display: block;
    position: relative;
    background: var(--surface-sand);
}

/* CC BY and CC BY-SA require attribution wherever the photo appears, so the
   credit sits on the image rather than only on the credits page. */
.credit {
    position: absolute;
    right: 0;
    bottom: 0;
    max-width: 100%;
    padding: 3px 8px;
    background: rgba(13, 27, 42, .72);
    border-radius: var(--radius-sm) 0 0 0;
    color: #EFEADF;
    font-size: .625rem;
    line-height: 1.4;
}

.credit a {
    color: #EFEADF;
    text-decoration: underline;
}

.credit a:hover {
    color: #fff;
}

.pick-media {
    position: relative;
}

.pick-media .credit {
    font-size: .5625rem;
    padding: 2px 5px;
}

.card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: var(--s4);
}

.card-body > :last-child {
    margin-bottom: 0;
}

.card h3 {
    margin: 0 0 var(--s2);
    font-size: 1.12rem;
}

.card h3 a {
    color: var(--navy);
    text-decoration: none;
}

.card h3 a:hover {
    color: var(--clay);
    text-decoration: underline;
}

.card .btn {
    margin-top: auto;
}

.card-cta {
    margin-top: auto;
    padding-top: var(--s3);
}

/* ------------------------------------------------------------ Hotel card - */
.hotel-card .rating {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: var(--s2);
    margin-bottom: var(--s2);
}

.hotel-card .rating > * {
    min-width: 0;
}

.score {
    display: inline-block;
    padding: 3px 9px;
    background: var(--navy);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: .875rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.score--none {
    background: var(--surface-sand);
    color: var(--text-secondary);
    font-weight: 600;
}

.rating .count {
    font-size: .8125rem;
    color: var(--text-muted);
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 var(--s3);
    padding: 0;
    list-style: none;
}

.badges li {
    margin: 0;
}

.badge {
    display: inline-block;
    padding: 4px 11px;
    background: var(--surface-warm);
    border: 1px solid var(--sandstone);
    border-radius: var(--radius-pill);
    color: var(--navy);
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.45;
}

.badge--inside {
    background: #E7EDE4;
    border-color: #B9C7B1;
}

.badge--clay {
    background: #F7E9E2;
    border-color: #E0B49F;
}

.location-line {
    margin: 0 0 var(--s3);
    font-size: .875rem;
    color: var(--text-secondary);
}

.best-for {
    margin: 0 0 var(--s3);
    font-size: .9rem;
}

.best-for strong {
    color: var(--navy);
}

.property-photo {
    margin: var(--s4) 0;
}

.property-photo img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.property-photo figcaption {
    margin-top: var(--s2);
    font-size: .8125rem;
    color: var(--text-muted);
}


/* ------------------------------------------------- Location reality block - */
.reality {
    margin: var(--s4) 0;
    padding: var(--s3) var(--s4);
    background: var(--surface-warm);
    border-left: 4px solid var(--clay);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.reality p:last-child {
    margin-bottom: 0;
}

.reality .overline {
    margin-bottom: var(--s1);
}

.reality-check {
    border-left-color: var(--gold);
}

/* -------------------------------------------------------------- Trade-off - */
.tradeoff {
    display: grid;
    gap: var(--s4);
    margin: var(--s5) 0;
}

.tradeoff > * {
    min-width: 0;
}

@media (min-width: 48rem) {
    .tradeoff {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.tradeoff > div {
    padding: var(--s4);
    background: var(--surface-warm);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.tradeoff h3 {
    margin: 0 0 var(--s3);
    font-size: 1.05rem;
}

.tradeoff ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tradeoff li {
    position: relative;
    padding-left: 26px;
    margin-bottom: var(--s2);
    font-size: .95rem;
}

.tradeoff li::before {
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
}

.tradeoff--gain {
    border-left: 4px solid var(--sage);
}

.tradeoff--gain li::before {
    content: "+";
    color: #4E5B45;
    font-size: 1.1rem;
    line-height: 1.5;
}

.tradeoff--give {
    border-left: 4px solid var(--clay);
}

.tradeoff--give li::before {
    content: "\2212";
    color: var(--clay);
    font-size: 1.1rem;
    line-height: 1.5;
}

/* ---------------------------------------------------------------- Tables - */
.table-block {
    margin: var(--s5) 0;
}

/* A five-column table does not fit a 68ch reading column, and squeezing it
   there produced a cut-off table with words wrapping one per line while
   1200px of page sat unused beside it. Inside a single-column layout the
   table breaks out to the full container width; next to a sidebar it stays
   put, because breaking out there would run under the sidebar. */
@media (min-width: 64rem) {
    .layout:not(.layout--sidebar) .prose .table-block {
        width: min(var(--wrap), calc(100vw - 2rem));
    }
}

.table-scroll {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    -webkit-overflow-scrolling: touch;
}

.table-block .table-scroll {
    margin: 0;
}

.table-scroll table {
    min-width: 34rem;
}

/* ---------------------------------------------------- table controls --- */
/* Injected by site.js. Without JavaScript the table is still a complete,
   sensibly ordered table, so nothing here ships as dead UI. */
.table-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s2) var(--s3);
    margin-bottom: var(--s2);
}

.table-tools label {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--navy);
}

.table-tools input {
    min-height: 42px;
    width: min(100%, 22rem);
    padding: 8px 12px;
    font-size: .9375rem;
}

.table-tools .count {
    font-size: .8125rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.table-tools .reset {
    min-height: 42px;
    padding: 8px 14px;
    font-size: .8125rem;
}

th[data-sort] {
    padding: 0;
}

th[data-sort] button {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-height: 44px;
    padding: 11px var(--s3);
    background: none;
    border: 0;
    color: inherit;
    font: inherit;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-align: left;
    cursor: pointer;
}

th[data-sort] button:hover {
    color: var(--clay);
}

th[data-sort] .arrow {
    flex: none;
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    opacity: .3;
    transform: translateY(-2px) rotate(45deg);
}

th[aria-sort="ascending"] .arrow {
    opacity: 1;
    color: var(--clay);
    transform: translateY(2px) rotate(-135deg);
}

th[aria-sort="descending"] .arrow {
    opacity: 1;
    color: var(--clay);
}

th[aria-sort="ascending"],
th[aria-sort="descending"] {
    background: var(--surface-sand);
}

tbody tr[hidden] {
    display: none;
}

.table-empty {
    padding: var(--s4);
    text-align: center;
    color: var(--text-muted);
    font-size: .9rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}

caption {
    padding: var(--s3) var(--s4);
    text-align: left;
    font-size: .8125rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

th,
td {
    padding: 11px var(--s3);
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
}

thead th {
    background: var(--surface-warm);
    color: var(--navy);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* No nowrap here. The row header carries the property name, and names like
   "070B Grand Canyon Suite with Kitchenette near South Rim Sleeps 4" then
   claimed a single 535px column. That pushed the table past its container, so
   the last column was cut off behind a scrollbar while the narrow Type column
   broke over three lines. Letting the name wrap keeps the table inside the
   page and evens out the row heights. */
tbody th {
    font-weight: 600;
}

tbody tr:last-child th,
tbody tr:last-child td {
    border-bottom: 0;
}

td.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.table-scroll td a {
    font-weight: 600;
}

/* ------------------------------------------------------------ At a glance - */
.glance {
    margin: var(--s4) 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.glance dl {
    display: grid;
    /* px minimum for the same reason as the logo above. */
    grid-template-columns: minmax(120px, 40%) minmax(0, 1fr);
    margin: 0;
    font-size: .9rem;
}

.glance dt {
    padding: 11px var(--s3);
    background: var(--surface-warm);
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    color: var(--navy);
}

.glance dd {
    margin: 0;
    padding: 11px var(--s3);
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.glance dt:last-of-type,
.glance dd:last-of-type {
    border-bottom: 0;
}

/* ---------------------------------------------------------------- Panels - */
.panel {
    padding: var(--s4);
    background: var(--surface-warm);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.panel > :last-child {
    margin-bottom: 0;
}

.panel h3 {
    margin-top: 0;
    font-size: 1.02rem;
}

.panel--status {
    background: #FBF3E3;
    border-color: #E6CE9C;
    border-left: 4px solid var(--gold);
}

.panel--pick {
    background: var(--surface);
    border-left: 4px solid var(--sage);
}

.picks {
    display: grid;
    gap: var(--s3);
    margin: var(--s4) 0;
}

.pick {
    padding: var(--s3) var(--s4);
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--clay);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.pick > :last-child {
    margin-bottom: 0;
}

.pick--media {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s3);
    align-items: flex-start;
    min-width: 0;
}

.pick-media {
    flex: none;
    width: 96px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface-sand);
}

.pick-media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.pick-body {
    min-width: 0;
}

.pick-body > :last-child {
    margin-bottom: 0;
}

@media (min-width: 48rem) {
    .pick-media {
        width: 140px;
    }
}

.pick h3 {
    margin: 0 0 var(--s1);
    font-size: 1.02rem;
}

.pick .label {
    display: block;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--clay);
    margin-bottom: var(--s1);
}

/* -------------------------------------------------------- Choice / chooser */
.chooser {
    display: grid;
    gap: var(--s3);
    margin-top: var(--s4);
}

.chooser > * {
    min-width: 0;
}

@media (min-width: 40rem) {
    .chooser {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 64rem) {
    .chooser {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.choice {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    box-shadow: var(--shadow-card);
    transition: transform .15s ease, box-shadow .15s ease;
}

.choice-body {
    display: block;
    padding: var(--s4);
}

.choice-media {
    display: block;
    background: var(--surface-sand);
}

.choice-media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.choice:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.choice strong {
    display: block;
    margin-bottom: var(--s1);
    color: var(--navy);
    font-family: var(--font-heading);
    font-size: 1.18rem;
    font-weight: 700;
}

.choice span {
    color: var(--text-secondary);
    font-size: .875rem;
    line-height: 1.5;
}

.choice em {
    display: block;
    margin-top: var(--s2);
    color: var(--clay);
    font-size: .8125rem;
    font-style: normal;
    font-weight: 600;
}

/* ------------------------------------------------------------ Step ladder - */
.steps {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: var(--s4) 0;
}

.steps li {
    position: relative;
    counter-increment: step;
    padding-left: 48px;
    margin-bottom: var(--s4);
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: var(--clay);
    color: #fff;
    border-radius: var(--radius-pill);
    font-size: .875rem;
    font-weight: 700;
}

.steps strong {
    display: block;
    color: var(--navy);
    font-size: 1.02rem;
}

/* --------------------------------------------------------------- Details -- */
.faq details {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: var(--s2);
    background: var(--surface);
}

.faq summary {
    padding: var(--s3) var(--s4);
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--s3);
    min-height: 48px;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    border-right: 1.75px solid var(--clay);
    border-bottom: 1.75px solid var(--clay);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .15s ease;
}

.faq details[open] summary::after {
    transform: rotate(-135deg) translate(-2px, -2px);
}

.faq .answer {
    padding: 0 var(--s4) var(--s4);
}

.faq .answer > :last-child {
    margin-bottom: 0;
}

/* ------------------------------------------------------------------ Form - */
.form-field {
    margin-bottom: var(--s4);
}

.form-field label {
    display: block;
    margin-bottom: 6px;
    font-size: .875rem;
    font-weight: 600;
    color: var(--navy);
}

.form-field .hint {
    display: block;
    font-weight: 400;
    font-size: .8125rem;
    color: var(--text-muted);
}

input[type="text"],
input[type="email"],
textarea,
select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid #BFB3A2;
    border-radius: 8px;
    color: var(--navy);
    font-family: var(--font-body);
    font-size: 1rem;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--clay);
    box-shadow: 0 0 0 3px rgba(178, 74, 42, .18);
}

.form-status {
    margin-top: var(--s3);
    padding: var(--s3) var(--s4);
    border-radius: var(--radius-md);
    font-size: .9rem;
    font-weight: 600;
}

.form-status[data-state="ok"] {
    background: #E7EDE4;
    border: 1px solid #B9C7B1;
    color: #3C4A35;
}

.form-status[data-state="error"] {
    background: #F8E7E4;
    border: 1px solid #DDAFA6;
    color: #7E2A1F;
}

/* ---------------------------------------------------------------- Footer - */
.site-footer {
    background: var(--navy);
    color: var(--ivory);
    padding-block: var(--s6) var(--s4);
    margin-top: var(--s7);
}

.site-footer a {
    color: var(--ivory);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--gold);
    text-decoration: underline;
}

.footer-grid {
    display: grid;
    gap: var(--s5);
    grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 64rem) {
    .footer-grid {
        grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
        gap: var(--s6);
    }
}

.site-footer h2 {
    margin: 0 0 var(--s3);
    font-family: var(--font-body);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--sandstone);
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: .9rem;
}

.site-footer li {
    margin-bottom: 10px;
}

.footer-brand img {
    width: 220px;
    margin-bottom: var(--s3);
}

.footer-brand p {
    font-size: .875rem;
    color: #CFC8BA;
    max-width: 40ch;
}

.footer-bottom {
    margin-top: var(--s6);
    padding-top: var(--s4);
    border-top: 1px solid rgba(246, 242, 232, .18);
    font-size: .8125rem;
    color: #CFC8BA;
    display: flex;
    flex-wrap: wrap;
    gap: var(--s2) var(--s4);
    justify-content: space-between;
}

.footer-bottom p {
    margin: 0;
    /* Flex items default to min-width:auto and size to their longest word.
       "GrandCanyonAZHotels.com" cannot break, so at large text sizes the item
       refuses to shrink and pushes the page sideways. */
    min-width: 0;
    overflow-wrap: anywhere;
}

/* ------------------------------------------------------------- Disclosure - */
.disclosure {
    margin: var(--s5) 0 0;
    padding: var(--s3) var(--s4);
    background: var(--surface-warm);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-md);
    font-size: .8125rem;
    color: var(--text-secondary);
}

.disclosure p {
    margin: 0;
}

.verify-note {
    font-size: .8125rem;
    color: var(--text-muted);
    margin-top: var(--s3);
}

/* ---------------------------------------------------------------- Prints - */
@media print {
    .site-header,
    .site-footer,
    .btn,
    .hero > img {
        display: none !important;
    }
}

/* ==========================================================================
   Refinements
   ========================================================================== */

/* --- Tables: livelier, and the first column no longer hogs the width ----- */
.table-scroll table {
    min-width: 30rem;
}

.table-scroll tbody th[scope="row"] {
    max-width: 22rem;
    font-weight: 600;
    white-space: normal;
}

.table-scroll tbody tr:nth-child(even) {
    background: color-mix(in srgb, var(--surface-warm) 55%, transparent);
}

.table-scroll tbody tr:hover {
    background: var(--surface-sand);
}

.table-scroll td .badge {
    white-space: nowrap;
}

.table-scroll td .score {
    font-size: .8125rem;
}

/* Keep the data columns compact so the last one stays on screen. */
.table-scroll td.num {
    width: 1%;
}

/* --- Trade-off: the plus and minus carry the meaning, so make them read -- */
.tradeoff li {
    padding-left: 38px;
    min-height: 26px;
}

.tradeoff li::before {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    top: 1px;
    border-radius: var(--radius-pill);
    font-size: .95rem !important;
    font-weight: 700;
    line-height: 1 !important;
}

.tradeoff--gain li::before {
    content: "+";
    background: #4E5B45;
    color: #fff;
}

.tradeoff--give li::before {
    content: "\2212";
    background: var(--clay);
    color: #fff;
}

.tradeoff--gain {
    border-left-width: 6px;
}

.tradeoff--give {
    border-left-width: 6px;
}

.tradeoff h3 {
    display: flex;
    align-items: center;
    gap: var(--s2);
}

/* --- Choice cards: show where the click goes ---------------------------- */
.choice-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.choice-go {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: var(--s3);
    color: var(--clay);
    font-size: .8125rem;
    font-weight: 700;
}

.choice-go svg {
    width: 16px;
    height: 16px;
    transition: transform .15s ease;
}

.choice:hover .choice-go svg,
.choice:focus-visible .choice-go svg {
    transform: translateX(4px);
}

.choice:hover .choice-go {
    color: var(--clay-hover);
}

/* --- Hero credit on a real property photograph -------------------------- */
.hero-credit {
    margin: var(--s3) 0 0;
    font-size: .75rem;
    color: #D8D1C3;
}

.hero-credit a {
    color: #D8D1C3;
    text-decoration: underline;
}

.hero-credit a:hover {
    color: #fff;
}

/* --- Alternatives are cards now, so keep them compact ------------------- */
.pick-card .card-body {
    padding: var(--s3) var(--s4) var(--s4);
}

.pick-card h3 {
    margin-top: 0;
    font-size: 1.05rem;
}

.pick-card p {
    font-size: .9rem;
}

/* --- Head-to-head comparison ---------------------------------------------
   A scoreboard over the factor table. The tally counts only the rows we are
   willing to call; ties stay ties. "Wins" is written out as a word as well as
   marked with colour, so it survives a screen reader and a monochrome print.
   ------------------------------------------------------------------------ */

.versus {
    margin: var(--s5) 0;
}

.versus-score {
    display: grid;
    /* minmax(0,...) or the long side names refuse to shrink and push the
       middle column off screen on a narrow phone. */
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: var(--s3);
    padding: var(--s4) var(--s3);
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: linear-gradient(160deg,
        var(--surface-sand) 0%, var(--surface-warm) 70%);
}

.versus-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s1);
    min-width: 0;
    text-align: center;
}

.versus-name {
    font-family: var(--font-heading);
    font-size: clamp(15px, 2.4vw, 20px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--navy);
    /* Place names such as "Grand Canyon Village" are unbreakable as a unit but
       fine to wrap between words. */
    overflow-wrap: break-word;
}

.versus-tally {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    background: var(--clay);
    color: #fff;
    font-size: clamp(18px, 3.4vw, 26px);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
}

.versus-mid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.versus-vs {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(14px, 2vw, 18px);
    color: var(--text-muted);
}

.versus-draw {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    white-space: nowrap;
}

.versus .table-scroll {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.table--versus td {
    position: relative;
}

.table--versus td.is-win {
    background: color-mix(in srgb, var(--gold) 16%, transparent);
    font-weight: 600;
}

.table--versus tbody tr:hover td.is-win {
    background: color-mix(in srgb, var(--gold) 26%, transparent);
}

.win-flag {
    display: inline-block;
    margin-left: var(--s2);
    padding: 1px 8px;
    border-radius: var(--radius-pill);
    background: var(--navy);
    color: var(--gold);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    vertical-align: 2px;
    white-space: nowrap;
}

/* A score built on a handful of reviews must not read like a verdict. */
.count--thin {
    display: block;
    margin-top: 2px;
    color: var(--warning);
    font-size: .75rem;
    font-weight: 600;
}
