/* Havasu Holiday — gold / charcoal theme. Self-contained: loaded after material-kit-pro.min.css. */
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/CormorantGaramond-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/CormorantGaramond-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/CormorantGaramond-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/CormorantGaramond-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --stay-gold: #f0c14b;
  --stay-gold-deep: #d4a017;
  --stay-gold-hover: #b8860b;
  --stay-navy: #2b2b2b; /* charcoal — kept name for existing class hooks */
  --stay-charcoal: #2b2b2b;
  --stay-charcoal-deep: #1a1a1a;
  --stay-heading: #1f1f1f;
  --stay-cream: #faf7f0;
  --stay-text: #3d3d3d;
  --stay-muted: #6e6e6e;
  --stay-input: #f3f1ec;
  --stay-border: #e2ddd3;
  --stay-hero: linear-gradient(145deg, #1a1a1a 0%, #2f2f2f 45%, #3a3428 100%);
  --stay-shadow-gold: 0 8px 26px -10px rgba(184, 134, 11, .4), 0 2px 6px rgba(26, 26, 26, .12);
  --bs-primary: #2b2b2b; --bs-primary-rgb: 43, 43, 43;
  --bs-link-color: #2b2b2b; --bs-link-hover-color: #b8860b;
}

body { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.12rem; color: var(--stay-text); background: var(--stay-cream); }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { color: var(--stay-heading); font-family: "Roboto Slab", Georgia, serif; }
.navbar, .btn, .form-control, .form-select, .badge, label, .nav-link, .small-ui, table { font-family: Roboto, Helvetica, Arial, sans-serif; }
a { color: var(--stay-heading); }
a:hover { color: var(--stay-gold-hover); }
.text-muted, .text-secondary { color: var(--stay-muted) !important; }
.text-gold { color: var(--stay-gold-deep) !important; }
.text-navy { color: var(--stay-navy) !important; }

/* Navbar: sticky frosted */
.stay-nav-wrap { position: sticky; top: 0; z-index: 1030; }
.navbar.blur { background-color: rgba(250, 247, 240, .94) !important; background-image: none !important; backdrop-filter: saturate(200%) blur(30px); -webkit-backdrop-filter: saturate(200%) blur(30px); border-bottom: 3px solid var(--stay-gold); box-shadow: 0 8px 24px -14px rgba(184,134,11,.4); }
.navbar-brand { color: var(--stay-navy) !important; font-size: 1.35rem; letter-spacing: .02em; }
.navbar-brand .dot { color: var(--stay-gold); }
.navbar .nav-link { color: var(--stay-navy) !important; font-weight: 500; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--stay-gold-hover) !important; }
.nav-badge { background: var(--stay-gold); color: var(--stay-navy); border-radius: 999px; font-size: .7rem; font-weight: 700; padding: 1px 7px; margin-left: 4px; }
.navbar-toggler { border: 0; }

/* Hero */
.stay-hero { position: relative; min-height: 380px; background: var(--stay-hero); color: #fff; display: flex; align-items: center; padding: 6.5rem 0 7rem; margin-top: -86px; }
.stay-hero.photo { background-size: cover; background-position: center; }
.stay-hero.photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,26,26,.45), rgba(43,43,43,.18) 55%, rgba(26,26,26,.5)); }
.stay-hero > .container { position: relative; z-index: 1; }
.stay-hero h1, .stay-hero h2 { color: var(--stay-gold); border: 0; outline: none; box-shadow: none; }
.stay-hero .lead { color: #e8e0d0; }
.stay-hero h1 { font-weight: 700; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.stay-hero h1.display-5, .stay-hero .display-5 { border: 0 !important; outline: none !important; box-shadow: none !important; background: transparent !important; }
.stay-hero.photo h1, .stay-hero.photo h2, .stay-hero.photo .lead { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.stay-hero.compact { min-height: 240px; padding: 6rem 0 5rem; }

/* Raised content card under the hero */
.stay-raised { position: relative; z-index: 2; margin: -4.5rem 1rem 2rem; border-radius: 1rem; overflow: visible; }
/* Soft UI .blur + backdrop-filter can fail to paint newly expanded content until another click; keep the look without the filter. */
.card.blur.stay-raised, .stay-raised.card.blur {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: rgba(255, 255, 255, .97) !important;
}
.card.blur { background: rgba(255,255,255,.9) !important; backdrop-filter: saturate(200%) blur(30px); }
.shadow-blur { box-shadow: inset 0 0 1px 1px hsla(0,0%,100%,.9), 0 20px 27px 0 rgba(0,0,0,.05) !important; }

/* Gold cards */
.stay-card { background: var(--stay-cream); border: 2px solid var(--stay-gold); border-radius: 12px; box-shadow: var(--stay-shadow-gold); }
.stay-card .card-body { padding: 1.25rem 1.4rem; }
.gold-rule { display: block; width: 64px; height: 3px; background: var(--stay-gold); border-radius: 3px; margin: .5rem 0 1rem; border: 0; opacity: 1; }
.gold-rule.center { margin-left: auto; margin-right: auto; }
.section-title { font-weight: 700; margin-bottom: 0; }

/* Listing cards */
.listing-card { overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; height: 100%; }
.listing-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px -12px rgba(183,121,31,.5); }
.listing-card .photo { position: relative; aspect-ratio: 4 / 3; background: #e9ecf2 center/cover no-repeat; border-bottom: 2px solid var(--stay-gold); }
.listing-card .photo .heart { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,.92); border: 0; border-radius: 50%; width: 38px; height: 38px; display: grid; place-items: center; color: var(--stay-navy); }
.listing-card .photo .heart.saved { color: #c0392b; }
.listing-card .photo .stay-badge { position: absolute; top: 12px; left: 12px; }
.listing-card .title { color: var(--stay-navy); font-family: Roboto, sans-serif; font-weight: 600; font-size: 1rem; line-height: 1.3; }
.listing-card .price { color: var(--stay-navy); font-family: Roboto, sans-serif; font-weight: 700; }
a.listing-link { text-decoration: none; color: inherit; display: block; height: 100%; }

/* Badges */
.stay-badge { display: inline-block; background: var(--stay-gold); color: var(--stay-navy); border-radius: 999px; padding: .28em .8em; font: 700 .68rem/1.2 Roboto, sans-serif; text-transform: uppercase; letter-spacing: .06em; }
.stay-badge.outline { background: transparent; border: 1.5px solid var(--stay-gold); }
.stay-badge.navy { background: var(--stay-navy); color: #fff; }
.stay-badge.muted { background: #e4e7ee; color: var(--stay-navy); }
.stay-badge.danger { background: #fde2e1; color: #9b1c1c; }
.stay-badge.success { background: #def7ec; color: #03543f; }

/* Stars */
.stars, .star { color: var(--stay-gold); text-shadow: 0 0 6px rgba(247,183,51,.45); }
/* Star + rating + review count stay a single compact unit (used in the listing booking box and cards). */
.stars-rating { display: inline-flex; align-items: baseline; gap: 5px; flex-shrink: 0; white-space: nowrap; }
.stars-rating .stars { line-height: 1; }

/* Buttons: charcoal primary, gold accents */
.btn { text-transform: none; letter-spacing: .01em; font-weight: 600; border-radius: .6rem; }
.btn-primary, .bg-gradient-primary, .btn.bg-gradient-primary { background-image: linear-gradient(195deg, #3d3d3d 0%, #1a1a1a 100%) !important; background-color: #2b2b2b !important; color: #fff !important; border: 0; box-shadow: 0 3px 3px 0 rgba(26,26,26,.2), 0 3px 1px -2px rgba(26,26,26,.25), 0 1px 5px 0 rgba(184,134,11,.2); }
.btn-primary:hover, .bg-gradient-primary:hover { box-shadow: 0 14px 26px -12px rgba(26,26,26,.5), 0 4px 23px 0 rgba(240,193,75,.3) !important; color: #fff !important; }
.btn-gold { background: var(--stay-gold); color: var(--stay-navy) !important; border: 0; }
.btn-gold:hover { background: var(--stay-gold-deep); color: #fff !important; }
.btn-outline-primary { color: var(--stay-navy) !important; border: 1.5px solid var(--stay-navy) !important; background: transparent; }
.btn-outline-primary:hover, .btn-outline-primary.active { background: var(--stay-navy) !important; color: #fff !important; }
.btn-outline-gold { color: var(--stay-gold-hover) !important; border: 1.5px solid var(--stay-gold) !important; background: transparent; }
.btn-outline-gold:hover { background: var(--stay-gold) !important; color: var(--stay-navy) !important; }
.btn-link { color: var(--stay-heading); }
.btn:disabled { opacity: .55; }

/* Forms */
.form-control, .form-select { background-color: var(--stay-input) !important; border: 1px solid var(--stay-border) !important; border-radius: .55rem !important; padding: .55rem .75rem !important; color: var(--stay-navy); background-image: none; }
.form-select { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%232b2b2b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important; background-repeat: no-repeat !important; background-position: right .75rem center !important; background-size: 14px 10px !important; padding-right: 2.2rem !important; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--stay-navy) !important; box-shadow: 0 0 0 2px rgba(247,183,51,.45) !important; outline: 0; }
.form-label, label { color: var(--stay-navy); font-weight: 500; font-size: .85rem; margin-bottom: .25rem; }
.form-check-input:checked { background-color: var(--stay-navy) !important; border-color: var(--stay-navy) !important; }
.form-check-input { border: 1px solid #b8bfcc; }
.form-switch .form-check-input:checked:after { background-color: #fff; }
.validation-message, .invalid { color: #9b1c1c; font-size: .85rem; }

/* Filter chips */
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .85rem; border-radius: 999px; border: 1.5px solid var(--stay-border); background: #fff; color: var(--stay-navy); font: 500 .85rem Roboto, sans-serif; cursor: pointer; transition: all .15s; user-select: none; }
.chip:hover { border-color: var(--stay-gold); box-shadow: 0 0 0 2px rgba(247,183,51,.3); }
.chip.active { background: var(--stay-navy); border-color: var(--stay-navy); color: #fff; }
.chip .material-icons-round { font-size: 1.05rem; width: 1.05rem; overflow: hidden; flex-shrink: 0; }

/* Search bar */
.search-bar { background: #fff; border-radius: 1rem; padding: 1rem; box-shadow: 0 10px 30px -10px rgba(0,0,0,.35); border: 2px solid var(--stay-gold); }
.search-bar label { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }

/* Gallery */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 200px 200px; gap: 8px; border-radius: 14px; overflow: hidden; border: 2px solid var(--stay-gold); }
.gallery .g { background: #e9ecf2 center/cover no-repeat; cursor: pointer; }
.gallery .g:first-child { grid-row: span 2; }
.gallery.count-1 { grid-template-columns: 1fr; grid-template-rows: 400px; }
.gallery.count-2 { grid-template-columns: 2fr 1fr; }
.gallery.count-3 { grid-template-columns: 2fr 1fr; }
.gallery.count-4 { grid-template-columns: 2fr 1fr 1fr; }
.gallery.count-4 .g:nth-child(4) { grid-column: span 2; }
.gallery.count-2 .g:first-child, .gallery.count-1 .g:first-child { grid-row: span 2; }
.gallery.count-2 .g:nth-child(2) { grid-row: span 2; }
@media (max-width: 768px) { .gallery { grid-template-columns: 1fr; grid-template-rows: 260px; } .gallery .g:not(:first-child) { display: none; } }
.lightbox { position: fixed; inset: 0; background: rgba(26,26,26,.94); z-index: 2000; display: flex; align-items: center; justify-content: center; flex-direction: column; color: #fff; }
.lightbox img { max-width: 92vw; max-height: 78vh; border-radius: 10px; border: 2px solid var(--stay-gold); }
.lightbox .close { position: absolute; top: 18px; right: 24px; color: #fff; font-size: 2rem; background: none; border: 0; }

/* Amenity list */
.amenity { display: flex; align-items: center; gap: .6rem; padding: .35rem 0; color: var(--stay-navy); }
.amenity .material-icons-round { color: var(--stay-gold-deep); width: 1.25rem; overflow: hidden; flex-shrink: 0; }

/* Calendar */
.cal { user-select: none; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; font-family: Roboto, sans-serif; }
.cal-dow { text-align: center; font-size: .72rem; color: var(--stay-muted); text-transform: uppercase; padding: .2rem 0; }
.cal-day { aspect-ratio: 1 / 1; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: .85rem; background: #fff; border: 1px solid var(--stay-border); color: var(--stay-navy); cursor: pointer; position: relative; padding: 2px; }
.cal-day:hover:not(.disabled) { border-color: var(--stay-gold); box-shadow: 0 0 0 2px rgba(247,183,51,.35); }
.cal-day.empty { background: transparent; border: 0; cursor: default; }
.cal-day.disabled, .cal-day.past { color: #b8bfcc; background: #f4f5f7; cursor: not-allowed; text-decoration: line-through; }
.cal-day.past { text-decoration: none; }
.cal-day.selected { background: var(--stay-navy); color: #fff; border-color: var(--stay-navy); }
.cal-day.in-range { background: rgba(247,183,51,.25); border-color: rgba(247,183,51,.6); }
.cal-day.today { font-weight: 700; outline: 2px solid var(--stay-gold); }
.cal-day .px { font-size: .62rem; color: var(--stay-muted); }
.cal-day.selected .px { color: #fde68a; }
/* host calendar */
.cal-day.booked { background: #2b2b2b; color: #fff; text-decoration: none; }
.cal-day.onhold { background: #6b6b6b; color: #fff; text-decoration: none; }
.cal-day.blocked { background: repeating-linear-gradient(45deg, #eef0f4, #eef0f4 4px, #dfe3ea 4px, #dfe3ea 8px); color: #6b7280; text-decoration: none; }
.cal-day.imported { background: repeating-linear-gradient(45deg, #fff4d6, #fff4d6 4px, #fde7a8 4px, #fde7a8 8px); color: #7a5300; text-decoration: none; }
.cal-day .tag { font-size: .56rem; line-height: 1; text-transform: uppercase; letter-spacing: .03em; }
.cal-legend { display: flex; gap: 1rem; flex-wrap: wrap; font: .8rem Roboto, sans-serif; }
.cal-legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; border: 1px solid var(--stay-border); }
.cal-legend .l-booked::before { background: #2b2b2b; } .cal-legend .l-hold::before { background: #6b6b6b; }
.cal-legend .l-blocked::before { background: #dfe3ea; } .cal-legend .l-imported::before { background: #fde7a8; } .cal-legend .l-open::before { background: #fff; }

/* Tables */
.table thead th { color: var(--stay-navy); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; border-bottom: 2px solid var(--stay-gold); }
.table td { vertical-align: middle; color: var(--stay-text); }

/* Stats */
.stat { text-align: center; padding: 1rem; }
.stat .v { font: 700 1.9rem Roboto, sans-serif; color: var(--stay-navy); }
.stat .k { font: 500 .75rem Roboto, sans-serif; color: var(--stay-muted); text-transform: uppercase; letter-spacing: .05em; }

/* Messaging */
.thread { max-height: 520px; overflow-y: auto; padding: .5rem; }
.msg { max-width: 78%; padding: .6rem .9rem; border-radius: 14px; margin-bottom: .6rem; font-size: 1.02rem; }
.msg.me { margin-left: auto; background: var(--stay-navy); color: #fff; border-bottom-right-radius: 4px; }
.msg.them { background: #fff; border: 1.5px solid var(--stay-gold); color: var(--stay-navy); border-bottom-left-radius: 4px; }
.msg.system { margin: .4rem auto; background: transparent; color: var(--stay-muted); font-style: italic; text-align: center; font-size: .9rem; }
.msg .meta { font: .68rem Roboto, sans-serif; opacity: .7; margin-top: 2px; }
.inbox-item { display: flex; gap: .8rem; align-items: center; padding: .75rem; border-radius: 10px; text-decoration: none; color: inherit; border: 1px solid transparent; }
.inbox-item:hover, .inbox-item.active { background: var(--stay-cream); border-color: var(--stay-gold); }
.inbox-item.unread .who { font-weight: 700; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--stay-gold); }
.avatar.lg { width: 64px; height: 64px; }
.thumb { width: 72px; height: 54px; border-radius: 8px; object-fit: cover; border: 1.5px solid var(--stay-gold); }

/* Price breakdown */
.breakdown .row-line { display: flex; justify-content: space-between; padding: .2rem 0; font-size: 1.02rem; }
.breakdown .total { border-top: 2px solid var(--stay-gold); margin-top: .5rem; padding-top: .5rem; font-weight: 700; color: var(--stay-navy); font-family: Roboto, sans-serif; }
.breakdown .muted { color: var(--stay-muted); font-size: .9rem; }
.sticky-book { position: sticky; top: 96px; }

.alert-stay { border-radius: 10px; border: 1.5px solid var(--stay-gold); background: #fff8e6; color: #6b4a00; padding: .75rem 1rem; font-family: Roboto, sans-serif; font-size: .9rem; }
.alert-stay.error { border-color: #e8a3a3; background: #fdf0f0; color: #8a1c1c; }
.alert-stay.ok { border-color: #9bd3b5; background: #effaf4; color: #0b5132; }
code.copy { background: var(--stay-input); border: 1px solid var(--stay-border); padding: .35rem .5rem; border-radius: 6px; display: block; word-break: break-all; color: var(--stay-navy); font-size: .8rem; }

footer.stay-footer { border-top: 2px solid var(--stay-gold); background: var(--stay-charcoal-deep); color: #c8c4bc; padding: 2rem 0; margin-top: 3rem; font-family: Roboto, sans-serif; font-size: .9rem; }
footer.stay-footer a { color: var(--stay-gold); }

.page-pad { padding-top: 1.5rem; padding-bottom: 2rem; }
.blazor-error-boundary { background: #8a1c1c; padding: 1rem; color: #fff; }
.blazor-error-boundary::after { content: "An error has occurred."; }
#blazor-error-ui { background: #fff8e6; border-top: 2px solid var(--stay-gold); bottom: 0; display: none; left: 0; padding: .6rem 1.25rem; position: fixed; width: 100%; z-index: 3000; font-family: Roboto, sans-serif; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }

/* ---- Setup / status chips ---- */
.chip.ok { border-color: #9bd3b5; background: #effaf4; color: #0b5132; cursor: default; }

/* ---- Honeypot (bots fill it, humans never see it) ---- */
.stay-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---- Tables ---- */
.stay-table th { font: 600 .75rem Roboto, sans-serif; text-transform: uppercase; letter-spacing: .04em; color: var(--stay-muted); border-bottom: 2px solid var(--stay-gold) !important; }
.stay-table td { vertical-align: middle; }
.sp-list { max-height: 340px; overflow-y: auto; overflow-x: hidden; border: 1px solid var(--stay-border); border-radius: 8px; }

/* ---- Maps ---- */
.stay-map { width: 100%; border-radius: 12px; border: 2px solid var(--stay-gold); overflow: hidden; background: var(--stay-input); z-index: 0; }
.stay-map .leaflet-popup-content a { color: var(--stay-heading); font-weight: 600; }

/* ---- Photo dropzone ---- */
.dropzone { position: relative; border: 2px dashed var(--stay-gold); border-radius: 12px; background: var(--stay-cream); text-align: center; padding: 1.6rem 1rem; transition: all .15s; }
.dropzone:hover, .dropzone.hover { background: #fff3d1; border-color: var(--stay-gold-deep); box-shadow: var(--stay-shadow-gold); }
.dropzone.busy { opacity: .7; }
.dropzone input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone .dz-inner { pointer-events: none; color: var(--stay-navy); font-family: Roboto, sans-serif; }
.dropzone .dz-inner > i { font-size: 2rem; margin-bottom: .35rem; }
.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .6rem; }
.thumb-tile { position: relative; border-radius: 10px; overflow: hidden; border: 1.5px solid var(--stay-border); background: #fff; aspect-ratio: 4 / 3; }
.thumb-tile.cover { border: 2px solid var(--stay-gold); }
.thumb-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-flag { position: absolute; top: 6px; left: 6px; }
.thumb-actions { position: absolute; bottom: 4px; right: 4px; background: rgba(255,255,255,.92); border-radius: 8px; display: flex; }

/* ---- Notifications bell + prefs ---- */
.stay-bell { position: relative; }
.stay-bell .nav-badge { position: absolute; top: -2px; right: -6px; }
.notif-unread { border-left: 3px solid var(--stay-gold); background: var(--stay-cream); }
.stay-prefs { border-top: 2px solid var(--stay-gold); }

/* ---- iCal how-to ---- */
.stay-howto { border: 1px solid var(--stay-border); border-radius: 10px; padding: .6rem .8rem; background: var(--stay-cream); }
.stay-howto summary { cursor: pointer; }
.cal-legend .l-onhold::before { background: #93a2c6; }

/* ===== Havasu Holiday — legacy text lockup (CA poppy + wordmark); text wordmark in nav/footer; logo image lives in the hero band ===== */
.brand-lockup { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; line-height: 1; padding: .15rem 0; }
.brand-poppy { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--stay-gold); box-shadow: 0 2px 10px -2px rgba(183,121,31,.55); flex: 0 0 auto; }
.brand-stay { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 700; font-size: 2.1rem; color: var(--stay-navy); letter-spacing: .01em; }
.brand-by { font-family: "Cormorant Garamond", "Brush Script MT", "Segoe Script", cursive; font-style: italic; font-weight: 400; font-size: .82rem; color: var(--stay-gold-deep);
  writing-mode: vertical-rl; transform: rotate(180deg) skewY(-6deg); white-space: nowrap; letter-spacing: .04em; margin-left: -.15rem; align-self: center; line-height: 1; }
.navbar-brand.brand-lockup:hover .brand-stay { color: var(--stay-gold-hover); }
.footer-lockup .brand-poppy { width: 32px; height: 32px; }
.footer-lockup .brand-stay { color: #fff; font-size: 1.7rem; }
.footer-lockup .brand-by { color: var(--stay-gold); font-size: .72rem; }
@media (max-width: 575.98px) {
  .brand-poppy { width: 32px; height: 32px; }
  .brand-stay { font-size: 1.65rem; }
  .brand-by { font-size: .66rem; }
}

/* ===== Gold + charcoal polish ===== */
.navbar.blur { border-bottom: 3px solid var(--stay-gold); }
.navbar .nav-link.active { box-shadow: inset 0 -2px 0 var(--stay-gold); color: var(--stay-gold-hover) !important; }
.stay-hero { border-bottom: 4px solid var(--stay-gold); }
.stay-hero:not(.photo) { background: var(--stay-hero) !important; }
.stay-hero.photo { background-color: #1a1a1a; background-size: cover !important; background-position: center !important; }
.stay-hero.photo h1, .stay-hero.photo h2 { color: #fff !important; }
.stay-hero.photo .lead { color: #f3ede2 !important; }
.sp-gallery .g { position: relative; }
.sp-gallery a.g { display: block; }
.sp-gallery .g:hover { filter: brightness(1.08); }
.sp-book { position: sticky; top: 100px; }
.stay-hero h1, .stay-hero h2 { color: var(--stay-gold) !important; }
.stay-hero .lead { color: #e8e0d0 !important; }
.stay-hero h1 em, .stay-hero .text-gold { color: var(--stay-gold) !important; }
.btn-primary, .bg-gradient-primary, .btn.bg-gradient-primary { background-image: linear-gradient(195deg, #3d3d3d 0%, #1a1a1a 100%) !important; background-color: #2b2b2b !important; color: #fff !important; box-shadow: 0 3px 8px -2px rgba(26,26,26,.45), 0 0 0 1px rgba(240,193,75,.25); }
.btn-primary:hover, .bg-gradient-primary:hover { background-image: linear-gradient(195deg, #4a4a4a 0%, #2b2b2b 100%) !important; color: var(--stay-gold) !important; }
.btn-gold { background: var(--stay-gold); color: var(--stay-charcoal-deep) !important; }
.card { border-top: 3px solid var(--stay-gold); }
.listing-card, .stay-card { border: 2px solid var(--stay-gold); }
.badge.bg-primary, .badge.bg-gradient-primary { background: var(--stay-gold) !important; color: var(--stay-charcoal-deep) !important; }
.stay-footer { border-top: 4px solid var(--stay-gold); background: var(--stay-charcoal-deep); }
.gold-rule { height: 4px; width: 80px; background: linear-gradient(90deg, var(--stay-gold), var(--stay-gold-deep)); }
.form-control:focus, .form-select:focus { border-color: var(--stay-gold) !important; box-shadow: 0 0 0 .2rem rgba(240,193,75,.3) !important; }

/* Logo image in the dark hero band: cream/white card around the white-background mark */
.brand-logo-hero-card {
  display: inline-block;
  margin: 0 auto 1.25rem;
  padding: .4rem .7rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 32px -10px rgba(0,0,0,.5), 0 2px 8px rgba(0,0,0,.16);
}
.brand-logo-hero {
  display: block;
  height: 168px;
  width: auto;
  max-width: min(88vw, 480px);
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}
.stay-hero.has-brand.compact { min-height: 380px; padding: 6.5rem 0 6.25rem; }
.stay-hero.has-brand:not(.compact) { padding-bottom: 7.5rem; }
@media (max-width: 575.98px) {
  .brand-logo-hero { height: 96px; max-width: min(86vw, 340px); }
  .brand-logo-hero-card { margin-bottom: 1rem; padding: .3rem .5rem; border-radius: 12px; }
  .stay-hero.has-brand.compact { min-height: 320px; padding: 6rem 0 5.5rem; }
}

/* Text wordmark (replaces logo image) — Cormorant Garamond, matching Ventana Properties */
.brand-wordmark { font-family: 'Cormorant Garamond', 'CormorantGaramond', Georgia, serif; font-weight: 600; font-size: 1.75rem; letter-spacing: .04em; line-height: 1; color: var(--stay-navy); white-space: nowrap; transition: color .2s; }
.navbar-brand.brand-lockup:hover .brand-wordmark { color: var(--stay-gold-hover); }
.footer-lockup .brand-wordmark { color: #fff; font-size: 1.4rem; }
@media (max-width: 575.98px) { .brand-wordmark { font-size: 1.4rem; } }

/* Guest calendar: booked / blocked (incl. imported iCal) nights must be obvious, not just faint grey like past days. */
.cal-day.unavailable { background: repeating-linear-gradient(45deg, #e3e7ee, #e3e7ee 4px, #cdd3de 4px, #cdd3de 8px); color: #5b6474; text-decoration: line-through; border-color: #c3cad6; }
.cal-legend .l-unavail::before { background: repeating-linear-gradient(45deg, #e3e7ee, #e3e7ee 3px, #cdd3de 3px, #cdd3de 6px); }

/* Mobile fit: grid cells and long feed names / URLs must never widen the page. */
.cal-grid > * { min-width: 0; }
.cal-day > small, .cal-day .tag { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-row { min-width: 0; }
.copy-row code.copy { min-width: 0; overflow-wrap: anywhere; }
.copy-row .btn { flex: 0 0 auto; }
.feed-card, .feed-card > * { min-width: 0; }
.feed-card .feed-main { min-width: 0; flex: 1 1 auto; overflow-wrap: anywhere; }
.feed-card .feed-name { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.cal-toolbar { flex-wrap: wrap; }
@media (max-width: 575.98px) {
    .cal-host .card-body { padding: .75rem; }
    .cal-host .cal-grid { gap: 2px; }
    .cal-host .cal-day { font-size: .78rem; padding: 1px; border-radius: 6px; }
    .cal-host .cal-day > small { font-size: .55rem; }
    .cal-host h4 { font-size: 1.05rem; }
    /* Upcoming imported blocks: stack each row as a small card. */
    .stack-sm, .stack-sm tbody, .stack-sm tr, .stack-sm td { display: block; width: 100%; }
    .stack-sm tr { border: 1px solid var(--stay-border); border-radius: 8px; padding: .4rem .6rem; margin-bottom: .5rem; background: #fff; }
    .stack-sm td { border: 0 !important; padding: .1rem 0 !important; overflow-wrap: anywhere; }
    .stack-sm td:empty { display: none; }
    .stack-sm td:first-child { font-weight: 600; color: var(--stay-navy); }
}

/* Smart-pricing suggestions stay stacked on tablets too, so the Why column never forces a side scroll. */
@media (max-width: 991.98px) {
    .sp-list .stack-sm, .sp-list .stack-sm tbody, .sp-list .stack-sm tr, .sp-list .stack-sm td { display: block; width: 100%; }
    .sp-list .stack-sm tr { border: 1px solid var(--stay-border); border-radius: 8px; padding: .4rem .6rem; margin-bottom: .5rem; background: #fff; }
    .sp-list .stack-sm td { border: 0 !important; padding: .1rem 0 !important; overflow-wrap: anywhere; }
}

/* Local eats (Dashboard Arizona restaurant menus) */
.local-eats-card h5 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 1.35rem; color: var(--stay-charcoal); }
.local-eats-icon { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 12px; background: var(--stay-charcoal); color: var(--stay-gold); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }

/* Hero title: fluid size for long listing titles (up to 200 chars).
   Width is the content container minus ~100px each side on desktop (~16px on small screens). */
.stay-hero h1.hero-title { text-wrap: pretty; overflow-wrap: anywhere; max-width: calc(100% - 32px); margin-left: auto; margin-right: auto; line-height: 1.25; }
.stay-hero h1.hero-title.len-md { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); }
.stay-hero h1.hero-title.len-lg { font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem); line-height: 1.2; }
.stay-hero h1.hero-title.len-xl { font-size: clamp(1.2rem, .95rem + 1.2vw, 1.85rem); line-height: 1.25; }
@media (min-width: 768px) {
  .stay-hero h1.hero-title { max-width: calc(100% - 200px); }
}
@media (max-width: 575.98px) {
  .stay-hero h1.hero-title.len-md { font-size: clamp(1.25rem, 4.6vw, 1.7rem); }
  .stay-hero h1.hero-title.len-lg, .stay-hero h1.hero-title.len-xl { font-size: clamp(1.15rem, 4.2vw, 1.5rem); }
  .stay-hero.has-brand.compact { min-height: 360px; padding: 5.75rem 0 5.75rem; }
}
.card-title-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Host reply on a guest review: two-line clamp with a See more / See less toggle. */
.host-response { border-left: 3px solid var(--stay-gold); }
.host-response-body.is-clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.host-response-toggle.btn {
  margin-bottom: 0 !important;
  margin-top: .15rem;
  color: var(--stay-gold-deep) !important;
  text-decoration: none;
  font-weight: 600;
  box-shadow: none !important;
  background: none !important;
  border: 0 !important;
  min-height: 0;
  line-height: 1.3;
}
.host-response-toggle.btn:hover, .host-response-toggle.btn:focus-visible {
  color: var(--stay-gold-hover) !important;
  text-decoration: underline;
}

.local-eats-text { min-width: 0; }
.local-eats-card .local-eats-btn { flex: 0 0 auto; white-space: nowrap; padding: .65rem 1.4rem; overflow: visible; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; }
@media (max-width: 575.98px) { .local-eats-card .local-eats-btn { width: 100%; } }

/* Host calendar: nightly price override row ($ prefix stays inside the input, button never shrinks). */
.price-override-row { display: flex; gap: .5rem; align-items: stretch; min-width: 0; }
.price-override-field { position: relative; flex: 1 1 auto; min-width: 0; display: block; }
.price-override-field .price-prefix { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--stay-charcoal); font-weight: 600; pointer-events: none; z-index: 2; }
.price-override-field .form-control { padding-left: 1.6rem !important; width: 100%; }
.price-override-row .btn { flex: 0 0 auto; white-space: nowrap; }

/* Notification preferences: fixed checkbox columns that stay inside the card, brand-gold checkboxes. */
.notif-prefs-wrap { max-width: 100%; }
.notif-prefs { table-layout: fixed; width: 100%; }
.notif-prefs col.notif-col { width: 4.25rem; }
@media (max-width: 575.98px) {
  .notif-prefs col.notif-col { width: 2.7rem; }
  .notif-prefs thead th { font-size: .58rem !important; letter-spacing: 0 !important; padding-left: .2rem !important; padding-right: .2rem !important; }
  .notif-tip { flex-direction: column; gap: 0; }
  .notif-tip-btn { min-width: 1.15rem; min-height: 1.15rem; padding: 0; }
  .notif-prefs tbody th, .notif-prefs tbody th * { overflow-wrap: normal; word-break: normal; }
}
.notif-prefs th, .notif-prefs td { overflow-wrap: break-word; hyphens: manual; padding-left: .35rem !important; padding-right: .35rem !important; }
.notif-prefs thead th { text-align: center; vertical-align: bottom; white-space: nowrap; font: 600 .72rem Roboto, sans-serif; text-transform: uppercase; letter-spacing: .04em; color: var(--stay-muted); border-bottom: 2px solid var(--stay-gold) !important; }
.notif-prefs tbody th, .notif-prefs tbody th * { text-align: left; white-space: normal !important; }
.notif-prefs td.text-center { text-align: center; }
.notif-check { appearance: auto !important; -webkit-appearance: checkbox !important; accent-color: var(--stay-gold-deep); width: 1.1rem; height: 1.1rem; margin: 0 auto; display: block; float: none; cursor: pointer; background: none !important; box-shadow: none !important; }
.notif-check:focus-visible { outline: 2px solid var(--stay-gold); outline-offset: 2px; }

.notif-tip { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .15rem; }
.notif-tip-btn { border: 0; background: transparent; color: var(--stay-gold-deep); padding: .15rem; line-height: 1; cursor: pointer; min-width: 1.35rem; min-height: 1.35rem; }
.notif-tip-btn:hover, .notif-tip-btn:focus-visible { color: var(--stay-gold-hover); outline: none; }
.notif-tip-bubble { display: none; position: absolute; right: 0; top: calc(100% + .4rem); z-index: 8; width: min(14.5rem, 70vw); padding: .55rem .7rem; background: var(--stay-charcoal); color: var(--stay-cream); border: 1px solid var(--stay-gold); border-radius: .4rem; box-shadow: var(--stay-shadow-gold); text-align: left; white-space: normal; text-transform: none; letter-spacing: 0; font: 400 .75rem/1.35 Roboto, sans-serif; font-weight: 400; }
.notif-tip:hover .notif-tip-bubble, .notif-tip:focus-within .notif-tip-bubble { display: block; }
.notif-prefs thead th .notif-tip-bubble { white-space: normal; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--stay-cream); }

/* push status */
.text-gold-deep { color: var(--stay-gold-deep); }


/* admin confirm dialogs */
.stay-dialog-back { position: fixed; inset: 0; z-index: 1080; background: rgba(15, 28, 63, .45); display: flex; align-items: center; justify-content: center; padding: 1.25rem; }
.stay-dialog { width: min(28rem, 100%); box-shadow: 0 16px 48px rgba(15, 28, 63, .2); }
.archive-json { max-height: 32rem; overflow: auto; background: #f6f4ee; border-radius: 10px; padding: 1rem; white-space: pre-wrap; word-break: break-word; }


/* Record cards: replace wide host/admin tables so nothing scrolls sideways. */
.record-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; min-width: 0; width: 100%; }
@media (min-width: 992px) {
  .record-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.record-card { min-width: 0; overflow: hidden; display: flex; flex-direction: column; }
.record-card-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .6rem 1rem; background: var(--stay-charcoal); color: var(--stay-cream); padding: .85rem 1.15rem; border-bottom: 2px solid var(--stay-gold); }
.record-card-head-main { min-width: 0; flex: 1 1 8rem; }
.record-card-title { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.25rem; font-weight: 600; color: var(--stay-cream); margin: 0; line-height: 1.25; overflow-wrap: anywhere; word-break: break-word; }
.record-card-title a { color: var(--stay-cream); }
.record-card-title a:hover { color: var(--stay-gold); }
.record-card-code { font-family: Roboto, Helvetica, Arial, sans-serif; font-size: .8rem; color: #e8d9a8; overflow-wrap: anywhere; word-break: break-word; }
.record-card .card-body { min-width: 0; }
.record-listing { display: block; font-weight: 600; color: var(--stay-navy); margin: 0 0 .85rem; overflow-wrap: anywhere; word-break: break-word; line-height: 1.35; }
.record-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem .75rem; margin: 0 0 1rem; min-width: 0; }
.record-meta dt { font-family: Roboto, Helvetica, Arial, sans-serif; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--stay-muted); margin: 0 0 .1rem; }
.record-meta dd { margin: 0; color: var(--stay-navy); overflow-wrap: anywhere; word-break: break-word; }
.record-meta-wide { grid-column: 1 / -1; }
.record-actions { display: flex; flex-wrap: wrap; gap: .45rem; min-width: 0; }
.record-actions .btn { white-space: normal; text-align: center; }
