:root {
    color-scheme: light;
    --paper: #fffaf7;
    --surface: #fffdfb;
    --blush: #faece8;
    --pink: #f5dfdc;
    --ink: #271a1d;
    --muted: #67575b;
    --wine: #76273e;
    --wine-dark: #551b2d;
    --border: #e9d9d7;
    --serif: "Playfair Display", Georgia, serif;
    --sans: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.5; }
[hidden] { display: none !important; }
a { color: inherit; }
button, select, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
:focus-visible { outline: 3px solid #aa526e; outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
.container { width: min(100% - 72px, 1240px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 12px; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { background: var(--paper); border-bottom: 1px solid var(--border); }
.header-inner, .footer-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.wordmark { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; font: 700 27px/1 var(--serif); letter-spacing: -.05em; white-space: nowrap; }
.wordmark > span:last-child { color: var(--wine); }
.brand-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: 9px; border-radius: 50%; background: var(--wine); color: #fff7f3; font: 22px/1 Georgia, serif; letter-spacing: 0; }
.site-header nav { display: flex; gap: clamp(14px, 3vw, 38px); align-items: center; }
.site-header nav a, .plain-button { border: 0; padding: 0; background: none; color: var(--muted); text-decoration: none; white-space: nowrap; font-weight: 600; font-size: .91rem; }
.site-header nav a:hover, .plain-button:hover { color: var(--wine); text-decoration: underline; text-underline-offset: 4px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 9px 18px; border: 1px solid transparent; border-radius: 9px; font-weight: 700; font-size: .91rem; text-align: center; text-decoration: none; white-space: nowrap; }
.button-outline { border-color: #b88291; background: transparent; color: var(--wine); }
.button-outline:hover { background: var(--pink); }
.button-primary { color: white; background: var(--wine); }
.button-primary:hover { background: var(--wine-dark); }
.button-soft { color: var(--wine); background: var(--blush); }
.button-soft:hover { background: var(--pink); }
.header-account { display: block; min-width: 94px; max-width: clamp(112px, 18vw, 185px); overflow: hidden; text-overflow: ellipsis; }

.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 82px); align-items: center; padding-block: 53px 59px; }
.hero-content { padding-block: 16px; }
.eyebrow { display: flex; gap: 8px; align-items: center; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .145em; color: var(--wine); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #a04e66; box-shadow: 0 0 0 3px var(--pink); margin-inline: 3px 3px; }
.small-divider { width: 14px; height: 1px; background: #bd8d9b; margin-inline: 3px; }
.hero h1 { margin: 19px 0 20px; font: 700 clamp(3.25rem, 6vw, 6rem)/.99 var(--serif); letter-spacing: -.07em; }
.hero h1 em { color: var(--wine); font-weight: 700; }
.hero-description { margin: 0 0 24px; color: var(--muted); font-size: clamp(1rem, 1.65vw, 1.18rem); max-width: 355px; }
.search-form { display: flex; align-items: stretch; padding: 6px; gap: 6px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); max-width: 435px; box-shadow: 0 5px 18px #5e28460d; }
.service-select { flex: 1; min-width: 0; padding: 4px 7px 3px 9px; }
.service-select span { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; }
.service-select select { width: 100%; border: 0; padding: 1px 2px 2px 0; color: var(--ink); font-size: .92rem; background: transparent; font-weight: 700; }
.search-form .button { min-height: 49px; }
.location-note { margin: 13px 0 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .76rem; }
.location-mark { width: 11px; height: 11px; margin-right: 2px; border: 1.5px solid currentColor; display: inline-grid; place-items: center; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); flex: 0 0 auto; }
.location-mark::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.hero-visual { position: relative; min-width: 0; border-radius: 14px; background: #bf8d82; }
.hero-visual img { width: 100%; height: auto; aspect-ratio: 1.31; max-height: 482px; object-fit: cover; object-position: center 40%; border-radius: inherit; }
.photo-caption { position: absolute; right: 17px; bottom: 17px; display: flex; align-items: center; gap: 8px; border-radius: 30px; background: #fff8f1; color: var(--wine-dark); font-size: .76rem; font-weight: 700; padding: 6px 12px; box-shadow: 0 4px 16px #3a19212b; }
.photo-caption span { color: var(--wine); }

.browse { background: var(--blush); border-block: 1px solid var(--border); padding-block: 39px 65px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 19px; }
.section-heading h2 { margin: 4px 0 0; font: 700 clamp(2.05rem, 4vw, 3.1rem)/1.12 var(--serif); letter-spacing: -.045em; }
.section-heading p { margin: 0; color: var(--muted); font-size: .94rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip, .segmented button { min-height: 38px; padding: 5px 14px; color: var(--wine-dark); border: 1px solid #e1c6c7; border-radius: 30px; background: var(--surface); font-weight: 700; font-size: .82rem; }
.chip:hover, .segmented button:hover { border-color: var(--wine); }
.chip[aria-pressed="true"], .segmented button[aria-pressed="true"] { border-color: var(--wine); background: var(--wine); color: white; }
.provider-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.provider-card { min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 13px; }
.provider-photo { width: 100%; aspect-ratio: 2; object-fit: cover; background: #e5bfb8; }
.provider-card > div { padding: 15px 17px; }
.provider-card h3 { margin: 4px 0; font: 700 1.35rem/1.2 var(--serif); }
.provider-card .card-location { margin: 0; font-size: .83rem; color: var(--muted); }
.provider-card .card-services { margin: 10px 0 13px; font-size: .8rem; color: var(--muted); }
.provider-card .button { width: 100%; }
.result-section { padding-block: 29px 42px; border-top: 1px solid var(--border); }
.segmented { display: flex; gap: 6px; }
.inline-status { margin: 0; color: var(--muted); }
.inline-status:not(:empty) { margin-bottom: 13px; }
.opening-list, .stack { display: grid; gap: 8px; }
.opening-list + .opening-list { margin-top: 14px; }
.row-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); }
.row-item h3, .row-item p { margin: 0; }
.row-item h3 { font-size: .95rem; }
.row-item p { color: var(--muted); font-size: .83rem; line-height: 1.5; }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.map-view { height: 340px; position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: #eee9db; margin-bottom: 16px; }
.tile-layer, .pin-layer { position: absolute; inset: 0; }
.tile-layer img { width: 256px; height: 256px; max-width: none; position: absolute; }
.map-pin { position: absolute; width: 32px; height: 32px; border: 2px solid white; border-radius: 50% 50% 50% 0; transform: translate(-50%, -90%) rotate(-45deg); background: var(--wine); color: white; box-shadow: 0 2px 6px #33242b6b; padding: 0; }
.map-pin span { display: inline-block; transform: rotate(45deg); }
.map-caption { background: #fffdf3e8; position: absolute; bottom: 0; right: 0; padding: 2px 6px; font-size: .7rem; }
.footer-inner { min-height: 83px; color: var(--muted); font-size: .85rem; }
.footer-inner .wordmark { font-size: 22px; }
.footer-inner .brand-mark { width: 27px; height: 27px; font-size: 17px; }

.panel { width: min(640px, calc(100% - 30px)); max-height: calc(100dvh - 32px); inset: 0; padding: 0; overflow: auto; border: 1px solid var(--border); border-radius: 15px; background: var(--paper); color: var(--ink); box-shadow: 0 15px 100px #3820275e; }
.panel::backdrop { background: #28151eb0; }
.panel-shell { padding: 23px; }
.panel-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 16px; }
.panel-heading h2 { margin: 0; font: 700 2rem/1.16 var(--serif); letter-spacing: -.04em; }
.icon-button { min-width: 40px; min-height: 40px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--wine); font-size: 1.55rem; line-height: 1; }
.panel-content p, .panel-note { color: var(--muted); }
.panel-section { margin-block: 17px; scroll-margin-top: 14px; }
.panel-section:last-child { margin-bottom: 0; }
.panel-section h3 { margin-bottom: 7px; font-size: 1.08rem; }
.panel-section details { border-block-start: 1px solid var(--border); padding-top: 13px; }
.panel-section summary { cursor: pointer; font-weight: 700; color: var(--wine); margin-bottom: 8px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.form-field { display: grid; gap: 3px; color: var(--ink); font-weight: 700; font-size: .85rem; }
.form-field input, .form-field select, .form-field textarea, .field-control { width: 100%; min-height: 42px; border: 1px solid #c5a8ae; border-radius: 7px; padding: 7px 9px; background: var(--surface); color: var(--ink); font-weight: 400; }
.form-feedback { margin: 0; min-height: 0; font-size: .88rem; color: var(--wine-dark); }
.form-feedback:empty { display: none; }
.confirmation { padding: 15px; margin-bottom: 15px; border: 1px solid var(--border); border-radius: 9px; background: var(--blush); }
.confirmation p:last-child { margin-bottom: 0; }
.qr-image { width: 150px; height: 150px; margin-block: 6px; image-rendering: pixelated; }
.toast { z-index: 3; position: fixed; left: 50%; bottom: 20px; width: max-content; max-width: calc(100% - 30px); transform: translateX(-50%); border-radius: 9px; padding: 9px 15px; color: white; background: var(--wine-dark); box-shadow: 0 4px 23px #4420314a; }

@media (max-width: 910px) {
    .container { width: min(100% - 44px, 1240px); }
    .hero { gap: 25px; padding-block: 33px 40px; }
    .hero h1 { font-size: clamp(3rem, 7vw, 4.5rem); }
    .hero-visual img { aspect-ratio: 1.04; }
}

@media (max-width: 680px) {
    .container { width: calc(100% - 30px); }
    .header-inner { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding-block: 10px 6px; min-height: 0; }
    .site-header nav { grid-column: 1 / -1; grid-row: 2; gap: 0; justify-content: space-between; }
    .site-header nav a, .site-header nav button { padding-block: 8px; }
    .header-account { grid-column: 2; grid-row: 1; }
    .hero { display: flex; flex-direction: column; align-items: stretch; gap: 18px; padding-block: 23px 26px; }
    .hero-content { padding-block: 0; }
    .hero h1 { font-size: clamp(3rem, 12.6vw, 4.4rem); margin-block: 12px 15px; }
    .hero-description { margin-bottom: 16px; }
    .hero-visual img { aspect-ratio: 1.65; }
    .photo-caption { right: 9px; bottom: 9px; font-size: .7rem; }
    .browse { padding-block: 26px 37px; }
    .section-heading { align-items: start; flex-direction: column; gap: 7px; }
    .provider-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .provider-card > div { padding: 12px; }
    .provider-card .button { white-space: normal; }
    .footer-inner { flex-wrap: wrap; gap: 10px; padding-block: 15px; }
    .panel-shell { padding: 17px; }
    .row-item { align-items: start; }
    .opening-list .row-item, .admin-row { flex-wrap: wrap; }
}

@media (max-width: 365px) {
    .hero h1 { font-size: clamp(2.55rem, 12.2vw, 3rem); }
    .search-form .button { padding-inline: 9px; }
    .field-grid { grid-template-columns: 1fr; }
}

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