/* Display serif (headlines) */

@font-face {
    font-family: "Michigan Sans03";
    src: url("../assets/MichiganSans03.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Timeless Radiance Script";
    src: url("../assets/TimelessRadianceScript.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Timeless Radiance Serif";
    src: url("../assets/TimelessRadianceSerif.otf") format("opentype");
    font-weight: lighter;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Arizona Text";
    src: url("../assets/ABCArizonaText-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Arizona Sans";
    src: url("../assets/ABCArizonaSans-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


/* ===== Brand palette (light) ===== */
:root {
  /* core brand */
  --green: #002901;
  --tan:   #c39b5d;
  --cream: #efe4c1;
  --white: #ffffff;

  /* remap existing tokens to new palette */
  --ink: var(--green);                 /* primary text/ink */
  --nav-ink: var(--cream);             /* nav ink */
  --ink-75: color-mix(in oklab, var(--green) 70%, var(--white) 30%);
  --ink-25: color-mix(in oklab, var(--green) 18%, var(--white) 82%);

  --mist: var(--green);                /* header bg */
  --fog:  color-mix(in oklab, var(--cream) 80%, var(--white) 20%);
  --paper: linear-gradient(135deg, #faf7ed 0%, #f0ebd9 100%);               /* modal bg */
  --page:  var(--white);               /* main page bg */
  --card:  var(--white);               /* card bg */

  --steel: color-mix(in oklab, var(--tan) 25%, var(--white) 75%); /* soft lines */
  --ochre: var(--tan);                 /* accent underline, CTAs */

  --text: var(--green);                /* body text */
  --muted: color-mix(in oklab, var(--green) 55%, var(--white) 45%);

  --container: min(1100px, 92vw);
  --header-h: 70px;
}


/* Subtle danger style for small delete buttons */
#masterDayDetails .btn {
  padding: 6px 10px;
  line-height: 1;
  border: 1px solid transparent;
}
#masterDayDetails .btn:disabled { opacity: .7; cursor: default; }

@media (max-width: 600px) {
  #guestsWidget .guest-row {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
  }
  #guestsWidget .guest-row > .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* Make the header continue the outer box sides */
/* Calendar outer vertical edges */


/* Form controls should render with Arizona Text */
input,
textarea,
select {
  width: 100%;
  background: #fff;
  color: #222;
  border: 1px solid var(--ink-25);
  border-radius: 0;
  padding: 14px 16px;
  outline: none;

  /* 👇 change this line */
  font-family: "Arizona Text", ui-serif, Georgia, "Times New Roman", serif;
}

/* Make placeholders use the same face (cross-browser) */
input::placeholder,
textarea::placeholder {
  font-family: "Arizona Text", ui-serif, Georgia, "Times New Roman", serif;
  color: var(--ink-75);
}

/* If some components override fonts, force it with higher specificity. Uncomment if needed. */
/*
.form input,
.form textarea,
.form select { font-family: "Arizona Text", ui-serif, Georgia, "Times New Roman", serif !important; }
*/


/* ---- Playing-card look for partner buttons ---- */
.suits { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 12px;
}

/* Card container */
.suit {
  position: relative;
  aspect-ratio: 3/4;
  background:#fff;
  border:1px solid #cfd6d8;
  border-radius:10px;
  box-shadow:0 2px 10px rgba(0,0,0,.04);
  color:#192f37;
  padding:10px;
  cursor:pointer;
  display:block;

  /* --- Responsive tokens --- */
  --icon-size: clamp(72px, 18vmin, 125px);       /* center suit size */
  --name-font: clamp(10px, 2.6vw, 14px);         /* name font size */
  --corner-font: clamp(12px, 2.8vw, 22px);       /* A + suit size */
  --corner-pad: 10px;                             /* corner inset */
  /* Approx height of two corner lines ("A" + suit) + padding */
  --corner-block: calc(var(--corner-font) * 2.2 + var(--corner-pad));
  /* gap from bottom of corner block to name */
  --name-gap: clamp(4px, 1.5vmin, 10px);
}

/* Big suit: dead-center of card */
.suit__big{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%, -50%);
  font-size:var(--icon-size);
  font-weight:800;
  line-height:1;
  color:#192f37;
  z-index:1;
}

/* Name: full-width ribbon below the corner index safe area */
.suit__name{
  position:absolute;
  left:12px;
  right:12px;
  top: calc(var(--corner-block) + var(--name-gap));
  transform:none;
  text-align:center;
  font:700 var(--name-font) "Timeless Radiance Serif", system-ui, sans-serif;
  text-transform:uppercase;
  color:#192f37;
  line-height:1.1;
  white-space:normal;
  word-break:break-word;
  z-index:2;
}

/* Focus/pressed state */
.suit[aria-pressed="true"],
.suit:focus{
  outline:none;
  border-color:#192f37;
  box-shadow:0 0 0 3px color-mix(in oklab, #192f37 18%, transparent);
}

/* Corner indices (A on first line, suit on next) */
.suit::before,
.suit::after{
  position:absolute;
  white-space:pre;
  font-family:"Timeless Radiance Serif", system-ui, sans-serif;
  font-size:var(--corner-font);
  font-weight:700;
  line-height:1.05;
  color:#192f37;
  text-align:center;
  pointer-events:none; /* never block taps */
}

/* top-left */
.suit::before{
  top: var(--corner-pad);
  left: var(--corner-pad);
}

/* bottom-right (rotated like real cards) */
.suit::after{
  bottom: var(--corner-pad);
  right: var(--corner-pad);
  transform: rotate(180deg);
}

/* suit-specific content */
.suit[data-suit="spade"]::before,
.suit[data-suit="spade"]::after   { content:"A\A♠"; }
.suit[data-suit="heart"]::before,
.suit[data-suit="heart"]::after   { content:"A\A♥"; }
.suit[data-suit="diamond"]::before,
.suit[data-suit="diamond"]::after { content:"A\A♦"; }
.suit[data-suit="club"]::before,
.suit[data-suit="club"]::after    { content:"A\A♣"; }

/* Make cards larger on phones (2 per row if you use a grid container) */
@media (max-width: 520px){
  .suits{ grid-template-columns: repeat(2, 1fr); }
}


.peek-logo {
    visibility: hidden !important;
}

.powered-by {
    visibility: hidden !important;
}

/* ===== Base ===== */
* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    color: var(--text);
    background: var(--page);
    font-family: "Arizona Text", ui-serif, Georgia, "Times New Roman", serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block
}

/* ===== Utilities ===== */
.container {
    width: var(--container);
    margin: 0 auto;
    padding: 0 2px
}

.section {
    padding: clamp(20px, 4vw, 42px) 0 64px
}

.center {
    text-align: center
}

.small {
    font-size: .92rem
}

.eyebrow {
    font-family: "Timeless Radiance Serif", system-ui, sans-serif;
    letter-spacing: .08em;
    color: var(--ink);
    margin: .25rem 0
}

.lede {
    font-family: "Timeless Radiance Serif", serif;
    color: #515a5c;
    font-size: 1.125rem
}

.muted {
    color: var(--muted)
}

/* ===== TRUE MODAL LOCK ===== */
html.locked {
    overflow: hidden;
    overscroll-behavior: contain;
}

html.locked #app {
    pointer-events: none;
    user-select: none;
}

/* ===== Header / Nav (hide-on-scroll) ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--mist);
    transition: transform .35s ease, opacity .35s ease;
    will-change: transform;
}

.site-header.is-hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.navwrap {
    height: var(--header-h);
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 16px;
}

/* BRAND with logo + wordmark */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--nav-ink);
    text-decoration: none;
}

.brand-logo {
    height: 50px;
    width: auto;
    display: block;
}

@media (max-width: 860px) {
    .brand-logo {
        height: 24px;
    }
}

.brand-wordmark {
    font-family: "Michigan Sans03", serif;
    font-weight: 700;
    letter-spacing: .02em;
    color: currentColor;
    margin: 0;
    font-size: clamp(1.1rem, 2.6vw, 1.6rem);
    text-transform: uppercase;
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
    justify-content: end
}

.nav__link {
    font-family: "Timeless Radiance Script", sans-serif;
    font-size: 1.3rem;
    font-weight: 100;
    letter-spacing: .8px;
    line-height: 1.2;
    margin-bottom: .25rem;
    color: var(--nav-ink);
    text-decoration: none;
    padding: 8px 0;
    position: relative;
}

.nav__link:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: transparent;
    transition: background .2s ease;
}

.nav__link:hover:after {
    background: var(--nav-ink)
}

.nav__link.current:after {
    background: var(--nav-ink)
}

.menu {
    display: none;
    border: 0;
    background: transparent;
    color: var(--nav-ink);
    padding: 8px 10px;
    cursor: pointer;
    font-family: "Ringside Wide", system-ui, sans-serif;
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.mobile-nav {
    display: none;
    border-top: 1px solid color-mix(in oklab, var(--nav-ink) 25%, transparent);
    background: var(--mist);
}

.mobile-nav .nav__link,
.mobile-nav .btn {
    display: block;
    padding: 12px 6px;
}

/* ===== Buttons / Links (square corners + CAPS) ===== */
.btn {
    appearance: none;
    cursor: pointer;
    border-radius: 0;
    padding: 12px 16px;
    border: 1px solid color-mix(in oklab, var(--ink) 18%, transparent);
    background: var(--card);
    color: var(--ink);
    box-shadow: none;
    font-weight: 700;
    font-family: "Arizona Sans", "Ringside Wide", system-ui, sans-serif;
    text-transform: uppercase;
    letter-spacing: .08em;
    text-decoration: none;
}

.btn:hover {
    filter: brightness(1.02);
}

.btn--ink {
  background: var(--ink);   /* your dark green */
  color: #fff;
  font-weight: bold;
  border: none;
  padding: 10px 18px;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
}

.btn--ink:hover {
  background: color-mix(in oklab, var(--ink) 90%, black);
}


.btn--ghost {
    background: var(--cream);
}

.btn[disabled] {
    opacity: .5;
    cursor: not-allowed;
}

.btn--outlineLight {
    background: transparent;
    color: #fff;
    border: 1.5px solid #fff;
    text-decoration: none;
}

.btn--outlineLight:hover {
    background: #fff;
    color: var(--ink);
}

.link-cta {
    display: inline-flex;
    align-items: center;
    gap: .5ch;
    color: var(--ink);
    text-decoration: none;
    position: relative
}

.link-cta span {
    background-image: linear-gradient(var(--ochre), var(--ochre));
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 100% 2px;
    padding-bottom: 2px
}

.link-cta:hover span {
    background-size: 100% 3px
}

/* ===== Photo-centric hero ===== */
.hero--photo {
    padding: 0;
    border-bottom: 1px solid color-mix(in oklab, var(--ink) 16%, transparent);
    position: relative
}

.hero--photo .photo-full {
    width: 100%;
    height: auto;
    display: block
}

.hero__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    pointer-events: auto;
}

.hero__cta {
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .35);
    margin-bottom: clamp(24px, 10vh, 120px);
}

.hero__title {
    margin: 0 0 12px;
    font-family: "Michigan Sans03", serif;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: .03em;
    font-size: clamp(28px, 7vw, 72px);
}

.hero__cta .cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ===== Cards (WHITE containers) ===== */
.card {
    background: var(--card);
    border: 1px solid color-mix(in oklab, var(--ink) 16%, transparent);
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.card__header {
    display: flex;
    align-items: center;
    gap: 12px; /* space between logo and text */
    padding: 16px clamp(14px, 3vw, 22px);
    border-bottom: 1px solid color-mix(in oklab, var(--ink) 16%, transparent);
}

.ticket .card__header::before {
    content: "";
    display: inline-block;
    background: url("../assets/4_Aces_Web_Logos-05.png") no-repeat center center;
    background-size: contain;
    width: 50px;   /* adjust size */
    height: 50px;
    flex-shrink: 0;
}

.card__header h3 {
    margin: 0;
    color: var(--ink);
    font-family: "Timeless Radiance Script", serif;
    font-size: 1.5em;
}
.card__body {
    padding: clamp(16px, 3vw, 22px)
}

.actions {
    display: flex;
    align-items: center;
    gap: 12px
}

/* ===== Form (square inputs) ===== */
.form .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative
}

.field--wide {
    grid-column: 1 / -1
}

.field__label {
    font-size: .9rem;
    color: var(--ink-75);
    letter-spacing: .02em;
    font-family: "Timeless Radiance Serif", system-ui, sans-serif
}


input:focus,
textarea:focus,
select:focus {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--ink) 18%, transparent)
}

/* ===== Password Gate (true modal; SQUARE) ===== */
/* Gate container: create an isolated stacking context */
.gate {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  pointer-events: auto;
  isolation: isolate;            /* <-- important */
}

/* Dim/blur overlay behind the panel */
.gate::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(25, 47, 55, .35);
  backdrop-filter: blur(4px);
  z-index: 0;                    /* <-- explicitly behind the panel */
}

/* Panel above the overlay */
.gate__panel {
  position: relative;
  z-index: 1;                    /* <-- explicitly above */
  width: min(520px, 92vw);
  max-width: 520px;
  background: #f9f6e8;
  border: 1px solid color-mix(in oklab, var(--ink) 16%, transparent);
  border-radius: 6px;
  padding: clamp(20px, 3vw, 28px);
  color: var(--ink);
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);  /* optional: add separation */
}

/* Logo sizing (keep if you like the smaller look) */
.gate__logo {
  display: block;
  margin: 0 auto 12px;
  max-width: 180px;
  height: auto;
}

/* Tighter form */
.gate__form {
  display: grid;
  gap: 20px;      /* was 12px */
}

.gate__submit { height: 46px; }


/* Optional: on very small screens, cap the whole panel height */
@media (max-width: 480px) {
  .gate__panel { max-height: 88vh; overflow:auto; }
  .gate__logo{
    width: clamp(130px, 60vw, 200px);  /* width-only; no max-height here */
  }
}

.gate__error {
    color: #b20000;
    min-height: 1.2em
}

/* ===== Info cards & Gallery (kept from your original) ===== */
.info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 14px
}

.info__card {
    background: #fff;
    border: 1px solid var(--ink-25);
    border-radius: 0;
    padding: 14px
}

.masonry {
    column-gap: 12px;
}

.shot {
    break-inside: avoid;
    margin: 0 0 12px;
}

.shot img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--ink-25);
}

@media (min-width: 560px) {
    .masonry {
        columns: 2;
    }
}

@media (min-width: 980px) {
    .masonry {
        columns: 3;
    }
}

/* ===== Footer ===== */
.site-footer {
    margin-top: 40px;
    border-top: 1px solid color-mix(in oklab, var(--ink) 16%, transparent)
}

.footer {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
}

.footer .quail {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer .quail img {
    width: auto;
    height: auto;
    object-fit: fill;
    border-radius: 0;
    background: url("../assets/LG_Quail_2.jpg") center/cover no-repeat;
}

.ui-theme-desert-sand {
    visibility: hidden !important;
}

/* ===== Calendar Wizard (NEW) ===== */
.wizard {
    display: grid;
    gap: 18px;
}

.stepper {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.stepper__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--ink-25);
    background: #fff;
    font-family: "Timeless Radiance Script", system-ui, sans-serif;
    letter-spacing: .08em;
}

.stepper__item[aria-current="step"] {
    background: var(--paper);
    border-color: var(--ink);
}

.stepper__dot {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border: 1px solid var(--ink-25);
}

.stepper__label {
    font-size: 1rem;
    color: var(--ink);
}

.step {
    display: none;
}

.step.is-active {
    display: block;
}

/* make the stepper items feel clickable */
.stepper__item {
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.stepper__item[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: .55;
    pointer-events: none;
    /* prevents hover/press affordance */
    filter: grayscale(25%);
}



/* Suit grid */
.suits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}


.suit {
  border: 1px solid var(--ink-25);
  padding: 14px;
  background:#f9f6e8 url("../assets/cardtexture.png") repeat;
  cursor: pointer;
  user-select: none;
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}


.suit:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}


.suit[aria-pressed="true"],
.suit:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--ink) 18%, transparent);
}

.suit__icon {
    width: 28px;
    height: 28px;
}

.suit__name {
    font-family: "Timeless Radiance Serif", system-ui, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ink);
    font-size: 1rem;
}

/* Calendar */
.cal {
    border: 1px solid var(--ink-25);
    background: #fff;
}

.cal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid var(--ink-25);
}

.cal__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.cal__dow,
.cal__day {
    padding: 7px;
    border-bottom: 1px solid var(--ink-25);
    border-right: 1px solid var(--ink-25);
    min-height: 44px;
    display: grid;
    place-items: center;
    font-size: 16px;
}

/* remove border only on Saturday column */
/* First header cell (Sunday) */
.cal__dow:nth-child(1) {
  border-left: 1px solid var(--ink-25);
}

/* First cell in each week row */
.cal__day:nth-child(7n+1) {
  border-left: 1px solid var(--ink-25);
}
/* Optional: let header + grid edges define the box, not the container */
.cal { border: none; }


.cal__dow {
    font-family: "Timeless Radiance Serif", system-ui, sans-serif;
    font-size: .7rem;
    color: var(--ink-75);
    text-transform: uppercase;
    letter-spacing: .08em;
    background:  #faf7ed;
}

.cal__day {
    background: #fff;
    cursor: pointer;
}

.cal__day.is-out {
    color: #bbb;
    cursor: default;
}

.cal__day.is-busy {
    position: relative;
    color: #999;
}

.cal__day.is-busy::after {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 6px;
    height: 6px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: var(--ink-25);
}

.cal__day.is-selected {
    outline: 2px solid var(--ink);
    outline-offset: -2px;
    background: color-mix(in oklab, var(--ink) 6%, white);
}

.cal__day.end-disabled {
    opacity: .45;
    cursor: not-allowed;
}



.helper {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink-75);
    font-size: .9rem;
}

.badge {
    display: inline-block;
    padding: 4px 6px;
    border: 1px solid var(--ink-25);
    background: #fff;
    font-family: "Ringside Wide", system-ui, sans-serif;
    font-size: .65rem;
    letter-spacing: .06em;
    text-transform: uppercase
}

/* Nav buttons */
.wizard__nav {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
}

/* Confirmation */
.confirm-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.confirm-list li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed var(--ink-25);
    padding: 8px 0;
}

/* Success */
.success {
    text-align: center;
    padding: 24px 10px;
}

.success h4 {
    margin: 0 0 8px;
    font-family: "Michigan Sans03", serif;
    color: var(--ink);
}

/* Responsive */
@media (max-width: 720px) {
    .suits {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 860px) {
    .nav {
        display: none
    }

    .menu {
        display: inline-flex
    }
}

@media (max-width: 980px) {
    .form .grid {
        grid-template-columns: 1fr 1fr
    }

    .info {
        grid-template-columns: 1fr
    }
}

/* Range selection styling: make the duration look continuous */
.cal__day.range-start,
.cal__day.in-range,
.cal__day.range-end {
    background: rgba(25, 47, 55, .06);
}

/* only show the outer edges of the range */
.cal__day.in-range {
    border-left-color: transparent;
    border-right-color: transparent;
}

.cal__day.range-start {
    border-right-color: transparent;
    /* hide inner edge to the right */
}

.cal__day.range-end {
    border-left-color: transparent;
    /* hide inner edge to the left */
}

/* keep the selection ring only on the ends (not every cell) */
.cal__day.range-start.is-selected,
.cal__day.range-end.is-selected {
    outline: 2px solid var(--ink);
    outline-offset: -2px;
}

/* ===== Booking layout + Ticket ===== */
.booking {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    align-items: start;
}

@media (max-width: 980px) {
    .booking {
        grid-template-columns: 1fr;
    }
}

.ticket {
    position: sticky;
    top: calc(var(--header-h) + 14px);
    background: var(--card);
    border: 1px solid color-mix(in oklab, var(--ink) 16%, transparent);
    border-radius: 0;
    padding: 16px 16px 14px;
}

/* cleaner top separator for the ticket */
.ticket::before {
    content: "";
    display: block;
    height: 0;
    margin: -16px -16px 12px;
    /* span full width of the card */
    border-top: 1px dashed color-mix(in oklab, var(--ink) 22%, transparent);
}

/* Mirror the dashed frill at the bottom of the ticket */
.ticket::after {
  content: "";
  display: block;
  height: 0;
  margin: 10px -16px -14px;  /* mirrors the ::before spacing */
  border-top: 1px dashed color-mix(in oklab, var(--ink) 22%, transparent);
}

/* Center the day/night row */
.ticket__duration {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 14px;
  font-family: "Timeless Radiance Serif" !important;
}
.ticket__duration .dur { display:flex; align-items:center; gap:6px; }

/* Keep the arrow perfectly centered between dates */
.ticket__range {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: clamp(12px, 2.5vw, 24px);
}
.ticket__range .ti:first-child { justify-self:end;  text-align:right; }
.ticket__range .ti:last-child  { justify-self:start; text-align:left; }
.ticket__range .arrow { justify-self:center; align-self:center; padding:0; border:0; line-height:1; font-weight:700; }


.ticket__title {
    margin: 0 0 2px;
    font-family: "Michigan Sans03", serif;
    letter-spacing: .02em;
    color: var(--ink);
    text-transform: uppercase;
}

.ticket__sub {
    margin: 0 0 10px;
    color: var(--ink-75);
}

.ticket__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
    margin: 10px 0 8px;
}

.ticket__grid dt {
    font-family: "Ringside Wide", system-ui, sans-serif;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ink-75);
}

.ticket__grid dd {
    margin: 2px 0 0;
}

.ticket__hint {
    margin-top: 6px;
}

.ticket {
    padding: 14px 16px 12px;
}

.ticket__title {
    margin: 2px 0 4px;
}

.ticket__sub {
    margin: 0 0 12px;
}

.ticket__grid {
    margin: 12px 0 10px;
}

/* Ticket: simple row */
.ticket__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin: 4px 0 8px;
}
.ticket__label {
  font-family: "Timeless Radiance Script", system-ui, sans-serif;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-75);
}
.ticket__rule {
  border: 0;
  border-top: 1px solid var(--ink-25);
  margin: 8px 0 10px;
}

.ticket__range .ti { display: flex; flex-direction: column; gap: 2px; }
.ticket__range .lbl {
  font-family: "Timeless Radiance Script", system-ui, sans-serif;
  font-size: 1rem;
  letter-spacing: .08em;
  color: var(--ink-75);
}
.ticket__range time {
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

/* Arrow: no box, perfectly centered between the two ends */
.ticket__range .arrow {
  justify-self: center;   /* centers in its grid cell */
  align-self: center;
  padding: 0;             /* no padding box */
  border: 0;              /* remove border */
  line-height: 1;
  font-weight: 700;
}

/* Keep three columns: left date | arrow | right date */
/* Always 3 columns, even on mobile */
.ticket__range {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center;
  column-gap: clamp(10px, 3.5vw, 20px);
}

/* Hug the arrow from each side */
.ticket__range .ti:first-child { justify-self: end;  text-align: right; }
.ticket__range .ti:last-child  { justify-self: start; text-align: left; }

/* Keep the dates on a single line */
.ticket__range time { white-space: nowrap; }

/* Slightly smaller labels/dates on tiny screens */
@media (max-width: 420px) {
  .ticket__range .lbl  { font-size: .62rem; letter-spacing: .07em; }
  .ticket__range time  { font-size: .98rem; }
}

/* Arrow dead-center, with no box/padding */

/* Nights badge (unchanged but included for completeness) */
.ticket__nights {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.n-badge {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  background: color-mix(in oklab, var(--ink) 4%, white);
  border-radius: 999px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.n-text {
  font-family: "Ringside Wide", system-ui, sans-serif;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Stack the range on tiny screens */
@media (max-width: 420px) {
  .ticket__range { row-gap: 6px; }
}

/* --- Duration row --- */
.ticket__duration {
  display: flex;
  justify-content: center;   /* center horizontally */
  gap: 24px;
  margin-top: 14px;
}

.ticket__duration .dur {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Timeless Radiance Serif", system-ui, sans-serif;
  font-size: 1rem;
  color: var(--ink);
}
.ticket__duration .icon {
  font-size: 1.1rem;
  line-height: 1;
}


@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


#durationHelper {
    display: none !important;
}


/* --- Mobile-safe layout for the date picker step --- */
/* 1) Make sure everything sizes inside its box */
*, *::before, *::after { box-sizing: border-box; }


/* hide the old inline helper */

/* Two-column layout: Waiver (1) | Map (2) */
.info.two-col {
  display: grid;                 /* keep grid to match your existing .info */
  grid-template-columns: 1fr 2fr;
  gap: 14px;
}

/* Ensure both cards can grow full width when stacked */
.info.two-col .info__card {
  width: 100%;
}

/* If you previously set a max-width on the waiver, undo it */
.info.two-col .info__card.waiver {
  max-width: none;
}

/* Stack on narrow screens, making each tile 100% width */
@media (max-width: 980px) {
  .info.two-col {
    grid-template-columns: 1fr;
  }
  .info.two-col .info__card,
  .info.two-col .info__card.waiver {
    width: 100%;
    max-width: none;
  }
}

/* Keep the Step 3 ticket compact and centered */
#step3 #confirmTicket {
  max-width: 640px;         /* adjust to taste (560–680 works well) */
  margin: 8px auto 0;       /* center in the card body */
}

/* Optional: slightly tighter padding for compact feel */
#step3 #confirmTicket .card__body {
  padding: 14px clamp(12px, 3vw, 18px);
}

/* Turn OFF sticky for the confirm card on Step 3 */
#confirmTicket.ticket {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
}

/* (Optional) scope sticky behavior to Step 2 only */
#step2 .ticket.card {
  position: sticky;
  top: 12px;           /* whatever you used before */
  z-index: 1;
}


#successActions {
  display: flex;
  justify-content: center; /* center horizontally */
  gap: 12px;               /* spacing between buttons */
  margin-top: 20px;
}


/*MOBILE ADDITIONS FOR ATTENDEE SECTION*/

/* ===== Master Details: mobile layout ===== */
@media (max-width: 480px) {
  /* Card header: stack title + buttons, keep them inside the card */
  #masterDayDetails .card .card__header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  #masterDayDetails .card .actions {
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }
  #masterDayDetails .card .actions .btn {
    flex: 1 1 auto;          /* grow to equal widths */
    min-width: 120px;
  }

  /* Body padding a bit tighter */
  #masterDayDetails .card .card__body {
    padding: 12px;
  }

  /* Make table rows into stacked "cards" */
  #masterDayDetails table {
    display: block;
    width: 100%;
  }
  #masterDayDetails thead {
    display: none;           /* hide wide headers */
  }
  #masterDayDetails tbody {
    display: grid;
    gap: 10px;
  }
  #masterDayDetails tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;   /* main text + small action */
    gap: 6px 10px;
    padding: 10px;
    border: 1px solid var(--ink-25);
    border-radius: 8px;
  }
  #masterDayDetails tbody td {
    border: 0;
    padding: 2px 0;
  }

  /* Guest (name/email) spans full width, on top */
  #masterDayDetails tbody tr td:nth-child(1) {
    grid-column: 1 / -1;
    font-weight: 700;
  }

  /* Response + waiver cells get inline labels */
  #masterDayDetails tbody tr td:nth-child(2)::before {
    content: "Response";
    display: block;
    font-size: .75rem;
    color: var(--ink-75);
    margin-bottom: 2px;
  }
  #masterDayDetails tbody tr td[data-waiver="rancho"]::before {
    content: "Rancho waiver";
    display: block;
    font-size: .75rem;
    color: var(--ink-75);
    margin-bottom: 2px;
  }
  #masterDayDetails tbody tr td[data-waiver="l4a"]::before {
    content: "L4A waiver";
    display: block;
    font-size: .75rem;
    color: var(--ink-75);
    margin-bottom: 2px;
  }

  /* Lay the two waiver cells side-by-side under Response when there’s room */
  #masterDayDetails tbody tr td[data-waiver] {
    display: inline-block;
    margin-right: 12px;
  }

  /* Remove Guest button stays on the right column */
  #masterDayDetails tbody tr td:last-child {
    grid-column: 2 / 3;
    justify-self: end;
  }
  #masterDayDetails tbody tr td:last-child .btn {
    padding: 8px 10px;
    line-height: 1;
    white-space: nowrap;
  }

  /* "Add guest (email)" row: stack label/input/button */
  #masterDayDetails tbody tr td > div {
    /* this targets the inline-grid wrapper you build in JS */
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  #masterDayDetails tbody tr td > div input {
    min-width: 0 !important;   /* let it shrink on small screens */
    width: 100% !important;
  }
  #masterDayDetails tbody tr td > div .btn {
    width: 100%;
  }
}

/* Desktop: simple solid separators inside the table */
#masterDayDetails tbody tr { border-bottom: 1px solid var(--ink-25); }
#masterDayDetails tbody tr:last-child { border-bottom: 0; }

/* Mobile (≤480px): each row becomes a mini-card, no dashed/solid bottom rule */
@media (max-width: 480px) {
  #masterDayDetails tbody tr {
    border: 1px solid var(--ink-25);
    border-radius: 8px;
    border-bottom: 1px solid var(--ink-25); /* the card border, not a separator */
  }
}


/* Mobile header layout */
@media (max-width: 768px) {
  #siteHeader .navwrap {
    display: flex;
    align-items: center;
    justify-content: space-between;  /* logo left, menu right */
  }

  #siteHeader .brand {
    margin-right: auto;              /* stick logo left */
  }

  #siteHeader .menu {
    margin-left: auto;               /* push MENU button to right */
  }
}


/* Push hero buttons down on mobile so the header doesn't overlap */
@media (max-width: 600px) {
  .hero__overlay { align-items: flex-end; }
  .hero__cta { margin-bottom: 12px; }  /* smaller gap so they sit lower */
}

/* Mobile menu polish */
@media (max-width: 860px) {
  .mobile-nav {
    background: var(--mist);
    border-top: 1px solid color-mix(in oklab, var(--nav-ink) 25%, transparent);
    box-shadow: 0 8px 18px rgba(0,0,0,.25);
  }

  .mobile-nav .nav__link {
    display: block;
    text-align: left;
    padding: 14px 18px;           /* comfy tap target */
    margin: 0;
    letter-spacing: .06em;
    border-bottom: 1px solid color-mix(in oklab, var(--nav-ink) 18%, transparent);
  }
  .mobile-nav .nav__link:last-of-type {
    border-bottom: 0;
  }
  .mobile-nav .nav__link:hover {
    background: rgba(255,255,255,.06);
  }

  /* Make the Log out button span the menu width and look primary */
  #logoutBtnMobile.btn {
    width: 100%;
    display: block;
    border-radius: 0;
    border: 0;
    padding: 14px 18px;
    margin: 0;
    text-align: center;
    background: var(--ink);
    color: #fff;
    border-top: 1px solid color-mix(in oklab, var(--nav-ink) 25%, transparent);
  }
}

/* Waiver card grid (inside the left column) */
.waivers {
  display: grid;
  gap: 12px;
}

/* Nice white cards for each waiver */
.waiver-card {
  background: #fff;
  border: 1px solid var(--ink-25);
  padding: 12px;
  text-align: center;
}

.waiver-title {
  margin: 0 0 8px;
  font-family: "Timeless Radiance Script", system-ui, sans-serif;
  letter-spacing: .06em;
  color: var(--ink);
}

/* Slightly tighter on phones */
@media (max-width: 520px) {
  .waiver-card { padding: 10px; }
}

/* Top waiver row: 2-up on desktop, stack on mobile */
.waiver-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
@media (max-width: 720px) {
  .waiver-row { grid-template-columns: 1fr; }
}

/* Waiver cards share the same look as your info cards */
.waiver-card {
  background: #fff;
  border: 1px solid var(--ink-25);
  padding: 12px;
  text-align: center;
}
.waiver-title {
  margin: 0 0 8px;
  font-family: "Timeless Radiance Script", system-ui, sans-serif;
  letter-spacing: .06em;
  color: var(--ink);
}

/* Give the map block some breathing room from waivers */
.map-block { margin-top: 6px; }

/* Optional: a little space above the bottom text section */
.instructions-block { margin-top: 16px; }


