:root {
    --navy: #061d3d;
    --blue: #0c356a;
    --red: #c8102e;
    --teal: #0f766e;
    --amber: #b7791f;
    --ink: #172033;
    --muted: #64748b;
    --line: #dbe3ee;
    --soft: #f5f8fb;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(6, 29, 61, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: light;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background: #ffffff;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

h1,
h2,
h3,
p,
a,
span,
strong,
small,
label,
legend {
    overflow-wrap: anywhere;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

main,
section,
article,
aside,
form,
fieldset,
figure {
    min-width: 0;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    max-width: 100%;
}

input,
select,
textarea {
    width: 100%;
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 82px;
    padding: 10px clamp(16px, 4vw, 56px);
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.brand {
    display: flex;
    align-items: center;
    width: 220px;
    min-width: 180px;
    height: 84px;
    overflow: visible;
}

.brand img {
    width: 220px;
    height: auto;
    object-fit: contain;
}

.main-nav,
.footer-links,
.panel-tabs,
.listing-card__facts,
.listing-card__footer,
.listing-card__meta,
.calendar-actions,
.form-actions,
.table-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-actions--top,
.table-actions {
    flex-wrap: wrap;
}

.main-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.main-nav a,
.nav-button {
    min-height: 38px;
    padding: 9px 12px;
    color: var(--navy);
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
}

.main-nav a:hover,
.nav-button:hover,
.panel-tabs a:hover {
    background: var(--soft);
}

.main-nav .nav-cta {
    color: #ffffff;
    background: var(--red);
    border: 1px solid var(--red);
    box-shadow: 0 10px 22px rgba(200, 16, 46, 0.18);
}

.main-nav .nav-cta:hover {
    color: #ffffff;
    background: #a90d27;
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
}

.menu-toggle span {
    position: absolute;
    width: 20px;
    height: 2px;
    background: var(--navy);
    border-radius: 999px;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.menu-toggle span:nth-child(1) {
    transform: translateY(-7px);
}

.menu-toggle span:nth-child(3) {
    transform: translateY(7px);
}

.menu-toggle.is-open span:nth-child(1) {
    transform: rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: rotate(-45deg);
}

.mobile-header-banner {
    display: none;
}

.inline-form {
    margin: 0;
}

.notice {
    margin: 18px clamp(16px, 4vw, 56px) 0;
    padding: 14px 16px;
    color: #073b35;
    background: #dff7ef;
    border: 1px solid #a6e7d4;
    border-radius: 8px;
}

main {
    min-height: calc(100vh - 190px);
}

.is-owner-app {
    min-width: 0;
    overflow-x: hidden;
    background: #f6f8fb;
}

.is-owner-app main {
    min-height: 100vh;
}

.is-owner-app .panel-tabs {
    display: none;
}

.is-owner-app .notice {
    margin: 12px;
}

.is-owner-app .page-shell {
    padding: 14px;
}

.is-owner-app .section-heading {
    gap: 10px;
    margin-bottom: 14px;
}

.is-owner-app .section-heading h1 {
    font-size: 1.65rem;
}

.is-owner-app .stat-grid,
.is-owner-app .stat-grid--wide,
.is-owner-app .host-alerts,
.is-owner-app .two-column,
.is-owner-app .listing-grid,
.is-owner-app .checkbox-grid,
.is-owner-app fieldset {
    grid-template-columns: 1fr;
}

.is-owner-app .table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.is-owner-app table {
    min-width: 680px;
}

.is-owner-app .form-actions,
.is-owner-app .admin-review-actions,
.is-owner-app .reservation-actions {
    align-items: stretch;
}

.is-owner-app .form-actions > *,
.is-owner-app .admin-review-actions > *,
.is-owner-app .reservation-actions > * {
    width: 100%;
}

.search-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    gap: clamp(18px, 3vw, 36px);
    align-items: stretch;
    padding: clamp(22px, 5vw, 62px) clamp(16px, 4vw, 56px) 26px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.search-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 470px;
}

.hero-visual {
    position: relative;
    min-height: 470px;
    margin: 0;
    overflow: hidden;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.hero-visual img {
    width: 100%;
    height: 100%;
    min-height: 470px;
    object-fit: cover;
}

.hero-visual--home img {
    object-position: center;
}

.hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 29, 61, 0.02) 35%, rgba(6, 29, 61, 0.68) 100%);
}

.hero-visual--home::after {
    display: none;
}

.hero-visual figcaption {
    position: absolute;
    right: 24px;
    bottom: 24px;
    left: 24px;
    z-index: 1;
    display: grid;
    gap: 4px;
    color: #ffffff;
}

.hero-visual figcaption span {
    color: #dbeafe;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-visual figcaption strong {
    max-width: 440px;
    font-size: clamp(1.45rem, 2.4vw, 2.35rem);
    line-height: 1.08;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--red);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0 0 18px;
    color: var(--navy);
    font-size: clamp(2.35rem, 5vw, 4.8rem);
    line-height: 1;
}

h2 {
    margin: 0 0 16px;
    color: var(--navy);
    font-size: clamp(1.35rem, 2vw, 2rem);
    line-height: 1.15;
}

h3 {
    margin: 0 0 8px;
    color: var(--navy);
    font-size: 1.05rem;
}

.search-panel,
.filter-panel,
.booking-panel,
.auth-box {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.search-panel {
    display: grid;
    grid-template-columns: 1.25fr 1fr 0.55fr 1fr auto;
    gap: 12px;
    align-items: end;
    width: min(100%, 920px);
    padding: 14px;
}

label {
    position: relative;
    display: grid;
    gap: 6px;
    color: var(--navy);
    font-weight: 700;
}

label span {
    font-size: 0.82rem;
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--ink);
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
}

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

input:focus,
select:focus,
textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(12, 53, 106, 0.14);
}

small,
.muted {
    color: var(--muted);
    font-size: 0.86rem;
}

label small,
.form-error {
    color: var(--red);
}

.autocomplete-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 80;
    display: grid;
    max-height: 240px;
    overflow-y: auto;
    padding: 6px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 36px rgba(6, 29, 61, 0.16);
}

.autocomplete-menu[hidden] {
    display: none;
}

.autocomplete-menu button {
    justify-content: flex-start;
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    color: var(--navy);
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 800;
}

.autocomplete-menu button:hover,
.autocomplete-menu button.is-active {
    color: var(--red);
    background: #fff1f2;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 16px;
    color: #ffffff;
    background: var(--red);
    border: 1px solid var(--red);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 800;
    white-space: nowrap;
}

.button:hover {
    background: #a90d27;
}

.button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.button--ghost {
    color: var(--navy);
    background: #ffffff;
    border-color: var(--line);
}

.button--ghost:hover {
    background: var(--soft);
}

.button--light {
    color: var(--navy);
    background: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 14px 28px rgba(6, 29, 61, 0.18);
}

.button--light:hover {
    background: #f8fbff;
}

.button--small {
    min-height: 34px;
    padding: 7px 11px;
    font-size: 0.9rem;
}

.text-link {
    color: var(--red);
    font-weight: 800;
}

.map-panel {
    position: relative;
    min-height: 470px;
    overflow: hidden;
    background: #dfe8ef;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.map-panel--wide {
    min-height: 330px;
    margin-bottom: 18px;
}

.map-panel--detail {
    aspect-ratio: 4 / 1;
    width: 100%;
    min-height: 170px;
    max-height: 230px;
}

.map-fallback {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.map-fallback a {
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-weight: 800;
}

.leaflet-container {
    width: 100%;
    height: 100%;
    min-height: inherit;
}

.section,
.page-shell {
    padding: 38px clamp(16px, 4vw, 56px);
}

.section--band {
    background: var(--soft);
}

.content-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: clamp(22px, 4vw, 52px);
    align-items: center;
    padding: clamp(42px, 7vw, 86px) clamp(16px, 4vw, 56px);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.96)),
        repeating-linear-gradient(90deg, rgba(12, 53, 106, 0.08) 0 1px, transparent 1px 54px);
    border-bottom: 1px solid var(--line);
}

.content-hero h1 {
    max-width: 860px;
    font-size: clamp(2.05rem, 4vw, 4rem);
}

.content-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 1.08rem;
}

.content-hero__panel {
    display: grid;
    gap: 10px;
    padding: 24px;
    color: var(--navy);
    background: #ffffff;
    border: 1px solid var(--line);
    border-left: 5px solid var(--red);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.content-hero__panel--red {
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), #8d0b20);
    border-color: #b20d29;
}

.content-hero__panel strong {
    font-size: 1.25rem;
}

.content-hero__panel span {
    color: inherit;
    opacity: 0.82;
}

.content-section p,
.contact-grid p,
.content-band p {
    margin: 0;
    color: var(--muted);
}

.content-grid,
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: 22px;
    align-items: start;
}

.contact-form,
.contact-side article {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(6, 29, 61, 0.07);
}

.contact-form {
    display: grid;
    gap: 16px;
    padding: 22px;
}

.contact-form h2,
.contact-form p {
    margin: 0;
}

.contact-form > .button {
    justify-self: start;
}

.contact-side {
    display: grid;
    gap: 14px;
}

.contact-side article {
    display: grid;
    gap: 10px;
    padding: 20px;
}

.content-grid article,
.contact-grid article,
.contact-note {
    padding: 22px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(6, 29, 61, 0.07);
}

.content-grid article,
.contact-grid article {
    display: grid;
    align-content: start;
    gap: 10px;
}

.content-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: var(--navy);
    color: #ffffff;
}

.content-band h2,
.content-band .eyebrow {
    color: #ffffff;
}

.content-band p {
    max-width: 760px;
    color: #dbeafe;
}

.contact-note {
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    background: var(--soft);
}

.section-heading,
.results-header,
.listing-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.listing-list {
    display: grid;
    gap: 14px;
}

.listing-card {
    display: grid;
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.listing-list .listing-card {
    grid-template-columns: 260px minmax(0, 1fr);
}

.listing-card__image {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--soft);
}

.listing-list .listing-card__image {
    aspect-ratio: auto;
    min-height: 210px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-top: 22px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 40px;
    padding: 8px 12px;
    color: var(--navy);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-weight: 800;
}

.pagination a:hover,
.pagination a.is-active {
    color: #ffffff;
    background: var(--red);
    border-color: var(--red);
}

.listing-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-card__image span {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 8px;
    color: #ffffff;
    background: var(--teal);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
}

.listing-card__body {
    display: grid;
    gap: 10px;
    padding: 14px;
}

.listing-card__meta {
    flex-wrap: wrap;
    color: var(--red);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.listing-card__body p {
    margin: 0;
    color: var(--muted);
}

.listing-card__facts {
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.88rem;
}

.listing-card__facts span {
    padding: 5px 8px;
    background: var(--soft);
    border-radius: 6px;
}

.listing-card__footer {
    justify-content: space-between;
    margin-top: 4px;
}

.category-cloud,
.amenity-list,
.tag-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.home-intro {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: clamp(22px, 4vw, 52px);
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(248, 251, 255, 0.96), rgba(255, 255, 255, 0.96)),
        repeating-linear-gradient(90deg, rgba(12, 53, 106, 0.08) 0 1px, transparent 1px 54px);
    border-block: 1px solid var(--line);
}

.home-intro__copy {
    max-width: 900px;
}

.home-intro h2 {
    max-width: 850px;
    margin-bottom: 18px;
    font-size: clamp(1.75rem, 3vw, 3rem);
    letter-spacing: 0;
}

.home-intro p {
    max-width: 820px;
    color: var(--muted);
    font-size: clamp(1rem, 1.35vw, 1.18rem);
}

.home-intro__badges,
.cta-band__points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.home-intro__badges span {
    padding: 9px 12px;
    color: var(--navy);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(6, 29, 61, 0.07);
    font-weight: 800;
}

.home-stats {
    display: grid;
    gap: 12px;
}

.home-stat {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 96px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-left: 5px solid var(--red);
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(6, 29, 61, 0.1);
}

.home-stat strong {
    color: var(--red);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 0.95;
}

.home-stat span {
    color: var(--muted);
    font-weight: 700;
}

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

.feature-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.feature-steps article {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    min-height: 156px;
    padding: 22px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--blue);
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(6, 29, 61, 0.08);
}

.feature-steps__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), #8b1024);
    border-radius: 8px;
    box-shadow: 0 12px 24px rgba(200, 16, 46, 0.22);
    font-weight: 900;
}

.feature-steps h3 {
    font-size: 1.16rem;
}

.feature-steps p,
.cta-band p {
    margin: 0;
    color: var(--muted);
}

.cta-band {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    align-items: center;
    justify-content: space-between;
    gap: clamp(22px, 4vw, 46px);
    overflow: hidden;
    background:
        linear-gradient(135deg, #c8102e 0%, #b20d29 62%, #8d0b20 100%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 48px);
    border: 1px solid #b20d29;
    border-radius: 8px;
    box-shadow: 0 22px 48px rgba(200, 16, 46, 0.22);
}

.cta-band h2,
.cta-band .eyebrow {
    color: #ffffff;
}

.cta-band p {
    max-width: 760px;
    color: #ffe4ea;
}

.cta-band__content,
.cta-band__action {
    position: relative;
    z-index: 1;
}

.cta-band__points span {
    padding: 8px 11px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 800;
}

.cta-band__action {
    display: grid;
    gap: 12px;
    justify-items: start;
}

.cta-band__action .button {
    min-height: 58px;
    padding: 15px 28px;
    color: var(--red);
    font-size: 1.05rem;
    box-shadow: 0 18px 34px rgba(86, 7, 19, 0.24);
}

.cta-band__action span {
    color: #ffe4ea;
    font-size: 0.92rem;
    font-weight: 700;
}

.category-cloud a,
.amenity-list span,
.tag-stack span {
    padding: 9px 12px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-weight: 700;
}

.search-layout {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.filter-panel,
.booking-panel {
    position: sticky;
    top: 102px;
    display: grid;
    gap: 14px;
    padding: 18px;
}

.filter-panel {
    grid-template-rows: auto minmax(0, 1fr);
    max-height: calc(100vh - 122px);
    overflow: hidden;
}

.filter-panel__header {
    display: grid;
    gap: 2px;
}

.filter-panel__header h1 {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    line-height: 1.12;
}

.filter-panel__toggle,
.filter-panel__summary {
    display: none;
}

.filter-panel__summary {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.filter-panel form,
.booking-panel form,
.auth-box {
    display: grid;
    gap: 14px;
}

.filter-panel form {
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 0;
    overflow: hidden;
}

.filter-fields {
    display: grid;
    gap: 14px;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
}

.filter-group {
    display: grid;
    gap: 11px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.filter-group h2 {
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
    font-size: 0.98rem;
}

.filter-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    padding-top: 14px;
    background: #ffffff;
    border-top: 1px solid var(--line);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.listing-hero {
    padding: 34px clamp(16px, 4vw, 56px) 20px;
    background: #f8fbff;
}

.listing-hero p {
    margin: 0;
    color: var(--muted);
}

.price-box {
    min-width: 160px;
    padding: 16px;
    text-align: right;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.price-box span,
.price-box small {
    display: block;
    color: var(--muted);
}

.price-box strong {
    display: block;
    color: var(--red);
    font-size: 1.5rem;
}

.media-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    grid-auto-rows: 180px;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0 clamp(16px, 4vw, 56px) 28px;
    background: #f8fbff;
}

.media-grid figure {
    position: relative;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    background: var(--soft);
    border-radius: 8px;
}

.media-grid figure:first-child {
    grid-row: span 2;
}

.media-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-grid figcaption {
    position: absolute;
    left: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
    padding: 5px 8px;
    color: #ffffff;
    background: rgba(6, 29, 61, 0.78);
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
}

.media-grid__more-link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    color: #ffffff;
}

.media-grid__more-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(6, 29, 61, 0.62);
}

.media-grid__more-link span {
    position: absolute;
    inset: 14px;
    z-index: 1;
    display: grid;
    place-items: center;
    padding: 14px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 8px;
    font-size: clamp(1rem, 1.8vw, 1.35rem);
    font-weight: 900;
}

.listing-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: 24px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.listing-detail {
    display: grid;
    gap: 18px;
    min-width: 0;
    max-width: 100%;
}

.listing-detail p {
    margin: 0;
}

.room-list {
    display: grid;
    gap: 12px;
}

.room-photo-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 86px));
    gap: 8px;
    margin-top: 12px;
}

.room-photo-thumb {
    display: block;
    width: 100%;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
}

.room-photo-thumb img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.listing-video {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 360px;
    background: #000000;
    border-radius: 8px;
}

.listing-media-section {
    scroll-margin-top: 110px;
}

.listing-media-compact {
    display: grid;
    grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.05fr);
    gap: 14px;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.listing-media-video,
.listing-media-thumbs figure {
    position: relative;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.listing-media-video {
    display: grid;
    gap: 0;
}

.listing-media-video .listing-video {
    aspect-ratio: 16 / 9;
    max-height: none;
    object-fit: cover;
}

.listing-media-video figcaption,
.listing-media-thumbs figcaption {
    padding: 9px 10px;
    color: var(--muted);
    background: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
}

.listing-media-thumbs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
}

.listing-media-compact > .listing-media-thumbs:first-child {
    grid-column: 1 / -1;
}

.listing-media-thumbs img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.listing-media-thumb {
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: 0;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
}

.listing-media-thumb:focus-visible {
    outline: 3px solid rgba(200, 16, 46, 0.35);
    outline-offset: 2px;
}

.mobile-object-cta,
.mobile-inline-cta,
.mobile-media-more {
    display: none;
}

.availability-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: -6px 0 12px;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.availability-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.availability-legend i {
    width: 12px;
    height: 12px;
    border-radius: 5px;
}

.availability-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.availability-controls strong {
    min-width: 128px;
    color: var(--navy);
    text-align: center;
    font-size: 0.95rem;
}

.availability-legend .is-free {
    background: #dff7ef;
    border: 1px solid #86efac;
}

.availability-legend .is-blocked {
    background: #fee2e2;
    border: 1px solid #fecaca;
}

.availability-calendar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.availability-room {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(6, 29, 61, 0.06);
}

.availability-room__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.availability-room__header h3,
.availability-room__header p {
    margin: 0;
}

.availability-room__header strong,
.availability-room__header small {
    display: block;
}

.availability-room__header strong {
    color: var(--red);
    font-size: 0.98rem;
    text-align: right;
}

.availability-room__header small {
    color: var(--muted);
    text-align: right;
    font-size: 0.78rem;
    font-weight: 700;
}

.availability-months {
    display: grid;
    gap: 0;
}

.availability-month {
    min-width: 0;
    padding: 10px;
    background: #f8fbff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.availability-month h4 {
    margin: 0 0 8px;
    color: var(--navy);
    font-size: 0.86rem;
}

.availability-weekdays,
.availability-month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px;
}

.availability-weekdays {
    margin-bottom: 4px;
}

.availability-weekdays span {
    color: var(--muted);
    text-align: center;
    font-size: 0.68rem;
    font-weight: 900;
}

.availability-month-grid span {
    display: grid;
    place-items: center;
    min-height: 28px;
    padding: 3px 2px;
    border-radius: 5px;
    border: 1px solid var(--line);
    font-size: 0.76rem;
    font-weight: 900;
}

.availability-month-grid .is-empty {
    background: transparent;
    border-color: transparent;
}

.availability-month-grid .is-free {
    color: #166534;
    background: #dff7ef;
    border-color: #86efac;
}

.availability-month-grid .is-blocked {
    color: #991b1b;
    background: #fee2e2;
    border-color: #fecaca;
}

.availability-month-grid .is-past {
    opacity: 0.45;
}

.room-row,
.calendar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.calendar-row--stack {
    display: grid;
    gap: 16px;
    align-items: stretch;
}

.calendar-row__header,
.room-calendar-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.calendar-row__header h2,
.calendar-row__header p,
.room-calendar-card__header h3,
.room-calendar-card__header p {
    margin: 0;
}

.room-calendar-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.room-calendar-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.host-calendar-tools {
    display: grid;
    gap: 12px;
}

.calendar-action-form {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
    gap: 10px;
    align-items: end;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.room-calendar-card .calendar-action-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.room-calendar-card .calendar-action-form button {
    justify-self: start;
}

.room-calendar-card .calendar-action-form label {
    min-width: 0;
}

.room-calendar-card .inline-ical-form input {
    flex: 1 1 220px;
    min-width: 0;
}

.calendar-management-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.calendar-management-grid h4 {
    margin: 0 0 8px;
}

.mini-list {
    display: grid;
    gap: 8px;
}

.mini-list > div,
.mini-list > p {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 10px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.mini-list span {
    color: var(--muted);
    font-weight: 800;
}

.text-button {
    width: fit-content;
    min-height: 0;
    padding: 0;
    color: var(--red);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-weight: 900;
}

.reservation-actions,
.admin-review-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.admin-review-actions form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.room-row p,
.calendar-row p {
    margin: 0;
    color: var(--muted);
}

.seasonal-price-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.seasonal-price-strip span {
    padding: 6px 8px;
    color: var(--navy);
    background: #eef6ff;
    border: 1px solid #cfe3ff;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 900;
}

.auth-shell {
    display: grid;
    place-items: center;
    min-height: 68vh;
    padding: 38px 16px;
    background: var(--soft);
}

.auth-box {
    width: min(100%, 460px);
    padding: 22px;
}

.auth-box h1 {
    font-size: clamp(1.85rem, 3vw, 2.35rem);
    line-height: 1.12;
}

.panel-tabs {
    position: sticky;
    top: 82px;
    z-index: 40;
    flex-wrap: wrap;
    padding: 12px clamp(16px, 4vw, 56px);
    background: #ffffff;
    border-bottom: 1px solid var(--line);
}

.panel-tabs a {
    min-height: 36px;
    padding: 8px 11px;
    border-radius: 6px;
    font-weight: 800;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

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

.stat--accent {
    border-color: rgba(200, 16, 46, 0.28);
    box-shadow: 0 14px 34px rgba(200, 16, 46, 0.08);
}

.host-alerts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.host-alert {
    display: grid;
    gap: 8px;
    min-height: 112px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-left: 5px solid var(--navy);
    border-radius: 8px;
    box-shadow: 0 14px 32px rgba(6, 29, 61, 0.07);
}

.host-alert span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.host-alert strong {
    color: var(--navy);
}

.host-alert--urgent,
.host-alert--warning {
    border-left-color: var(--red);
}

.host-alert--success {
    border-left-color: #0f766e;
}

.section-heading--compact {
    margin-bottom: 10px;
}

.section-heading--compact h2 {
    margin: 0;
}

.admin-cache-card {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 520px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-left: 5px solid var(--red);
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(6, 29, 61, 0.08);
}

.admin-cache-card div {
    display: grid;
    gap: 2px;
}

.admin-cache-card strong {
    color: var(--navy);
}

.admin-cache-card span {
    color: var(--muted);
    font-size: 0.88rem;
}

.stat {
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.stat span {
    display: block;
    color: var(--muted);
    font-weight: 700;
}

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

.two-column,
.three-column {
    display: grid;
    gap: 18px;
}

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

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

.table-wrap {
    overflow-x: auto;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
}

th,
td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

th {
    color: var(--muted);
    background: var(--soft);
    font-size: 0.82rem;
    text-transform: uppercase;
}

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

.status {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 8px;
    color: var(--navy);
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 800;
}

.status--published,
.status--confirmed,
.status--paid {
    color: #075e54;
    background: #dcfce7;
    border-color: #86efac;
}

.status--pending,
.status--inquiry,
.status--accepted_hold,
.status--hold_24h {
    color: #7a4b00;
    background: #fef3c7;
    border-color: #f8d36b;
}

.status--cancelled,
.status--expired {
    color: #991b1b;
    background: #fee2e2;
    border-color: #fecaca;
}

.status--rejected,
.status--blocked,
.status--archived {
    color: #991b1b;
    background: #fee2e2;
    border-color: #fecaca;
}

.status--draft,
.status--inactive {
    color: #475569;
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.edit-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.edit-summary span {
    min-height: 34px;
    padding: 8px 10px;
    color: var(--navy);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-weight: 800;
}

.quality-card {
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
    gap: 18px;
    margin-bottom: 18px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(6, 29, 61, 0.07);
}

.quality-card h2,
.quality-card p {
    margin: 0;
}

.quality-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.quality-list span,
.quality-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 9px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 900;
}

.quality-list .is-complete {
    color: #075e54;
    background: #dcfce7;
    border-color: #86efac;
}

.quality-list .is-missing {
    color: #7a4b00;
    background: #fef3c7;
    border-color: #f8d36b;
}

.quality-pill {
    color: var(--navy);
    background: var(--soft);
}

.form-alert {
    display: grid;
    gap: 6px;
    padding: 12px;
    color: #991b1b;
    background: #fff1f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    font-weight: 800;
}

.form-alert p {
    margin: 0;
}

.form-hint {
    margin: 0;
    padding: 10px 12px;
    color: var(--muted);
    background: #eef6ff;
    border: 1px solid #cfe3ff;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 700;
}

.editor-form {
    display: grid;
    gap: 18px;
}

fieldset {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

legend {
    padding: 0 8px;
    color: var(--navy);
    font-weight: 900;
}

.span-2 {
    grid-column: span 2;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.checkbox-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 8px 10px;
    background: var(--soft);
    border-radius: 6px;
    font-weight: 700;
}

.checkbox-grid input {
    width: auto;
    min-height: auto;
}

.room-editor-list,
.room-editor-add {
    display: grid;
    gap: 12px;
}

.room-editor-add h3 {
    margin: 4px 0 0;
}

.room-editor-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.room-editor-card--new {
    background: #ffffff;
}

.room-editor-card__header,
.room-editor-fields {
    display: grid;
    gap: 12px;
}

.room-editor-card__header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.room-editor-card__header h3 {
    margin: 0;
}

.room-editor-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.danger-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-self: end;
    width: auto;
    min-width: 0;
    padding: 8px 10px;
    color: #991b1b;
    background: #fff1f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 900;
}

.danger-check input {
    flex: 0 0 auto;
    width: auto;
    min-height: auto;
}

.danger-check span {
    display: grid;
    gap: 1px;
    font-size: 0.9rem;
    line-height: 1.15;
}

.danger-check small {
    color: #b91c1c;
    font-size: 0.72rem;
    font-weight: 700;
}

.room-amenity-editor {
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.room-amenity-editor summary {
    cursor: pointer;
    color: var(--navy);
    font-weight: 900;
}

.room-amenity-editor .checkbox-grid {
    margin-top: 12px;
}

.booking-options {
    grid-template-columns: 1fr;
    padding: 12px;
}

.booking-option {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
    padding: 10px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.booking-option input {
    width: auto;
    min-height: auto;
    margin-top: 5px;
}

.booking-option strong,
.booking-option small,
.booking-option em {
    display: block;
}

.booking-option em {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.82rem;
    font-style: normal;
}

.booking-option.is-available {
    border-color: #86efac;
    background: #f0fdf4;
}

.booking-option.is-unavailable {
    border-color: #fecaca;
    background: #fff1f2;
    opacity: 0.78;
}

.listing-contact-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.96)),
        repeating-linear-gradient(90deg, rgba(12, 53, 106, 0.08) 0 1px, transparent 1px 44px);
    border: 1px solid var(--line);
    border-left: 5px solid var(--red);
    border-radius: 8px;
}

.listing-contact-card h2,
.listing-contact-card p {
    margin: 0;
}

body.is-lightbox-open {
    overflow: hidden;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 14px;
    padding: max(18px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    color: #ffffff;
    background: rgba(6, 29, 61, 0.96);
}

.lightbox[hidden] {
    display: none;
}

.lightbox__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.lightbox__counter {
    color: #dbeafe;
    font-weight: 800;
}

.lightbox__close {
    width: auto;
    min-height: 40px;
    padding: 9px 13px;
    color: var(--navy);
    background: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 900;
}

.lightbox__stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 0;
}

.lightbox__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--navy);
    background: rgba(255, 255, 255, 0.92);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-size: 1.8rem;
    font-weight: 900;
    transform: translateY(-50%);
}

.lightbox__nav:disabled {
    opacity: 0.3;
}

.lightbox__prev {
    left: 8px;
}

.lightbox__next {
    right: 8px;
}

.lightbox__caption {
    min-height: 24px;
    color: #dbeafe;
    text-align: center;
    font-weight: 800;
}

.message-auth-page,
.message-start-layout {
    display: grid;
    gap: 18px;
}

.message-auth-card,
.message-start-card,
.message-listing-summary,
.message-reply-form {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(6, 29, 61, 0.08);
}

.message-auth-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    padding: clamp(22px, 4vw, 36px);
    background:
        linear-gradient(135deg, rgba(248, 251, 255, 0.98), rgba(255, 255, 255, 0.98)),
        repeating-linear-gradient(90deg, rgba(12, 53, 106, 0.08) 0 1px, transparent 1px 54px);
}

.message-auth-card h1,
.message-auth-card p,
.message-start-card h1,
.message-start-card p {
    margin: 0;
}

.message-auth-card h1,
.message-start-card h1,
.message-thread-header h1 {
    font-size: clamp(1.8rem, 3.4vw, 3rem);
}

.message-auth-card p {
    max-width: 780px;
    color: var(--muted);
}

.message-auth-actions {
    display: grid;
    gap: 10px;
    min-width: 220px;
}

.message-auth-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.message-auth-grid article {
    display: grid;
    gap: 8px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.message-auth-grid strong {
    color: var(--navy);
    font-size: 1.02rem;
}

.message-auth-grid p {
    margin: 0;
    color: var(--muted);
}

.message-start-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    align-items: start;
}

.message-start-card {
    display: grid;
    gap: 16px;
    padding: clamp(20px, 3vw, 30px);
}

.message-form {
    display: grid;
    gap: 14px;
}

.message-listing-summary {
    position: sticky;
    top: 102px;
    overflow: hidden;
}

.message-listing-summary img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.message-listing-summary div {
    display: grid;
    gap: 8px;
    padding: 16px;
}

.message-listing-summary h2,
.message-listing-summary p {
    margin: 0;
}

.message-listing-summary strong {
    color: var(--red);
}

.message-list {
    display: grid;
    gap: 12px;
}

.message-entry-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, auto);
    gap: 18px;
    align-items: center;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-left: 5px solid transparent;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(6, 29, 61, 0.06);
}

.message-entry-card:hover {
    border-left-color: var(--red);
    box-shadow: 0 18px 36px rgba(6, 29, 61, 0.1);
}

.message-entry-card h2,
.message-entry-card p {
    margin: 0;
}

.message-entry-card h2 {
    font-size: 1.12rem;
}

.message-entry-card p {
    color: var(--muted);
}

.message-entry-card > div:last-child {
    display: grid;
    gap: 4px;
    justify-items: end;
    color: var(--muted);
    font-size: 0.88rem;
}

.message-entry-card strong {
    color: var(--navy);
}

.message-thread-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.message-thread-header h1,
.message-thread-header p {
    margin: 0;
}

.message-thread {
    display: grid;
    gap: 12px;
    padding: 18px;
    background: #f8fbff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.message-bubble {
    display: grid;
    gap: 6px;
    max-width: min(720px, 88%);
    padding: 13px 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.message-bubble--guest {
    justify-self: start;
    border-left: 4px solid var(--blue);
}

.message-bubble--host {
    justify-self: end;
    border-right: 4px solid var(--red);
}

.message-bubble strong {
    color: var(--navy);
}

.message-bubble p {
    margin: 0;
}

.message-bubble time {
    color: var(--muted);
    font-size: 0.78rem;
}

.message-reply-form {
    display: grid;
    gap: 12px;
    margin-top: 16px;
    padding: 16px;
}

.reviews-list,
.media-admin-grid {
    display: grid;
    gap: 12px;
}

.review-card,
.media-admin-card {
    padding: 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.review-card {
    display: grid;
    gap: 6px;
}

.review-card span {
    color: var(--red);
    font-weight: 800;
}

.review-card p {
    margin: 0;
    color: var(--muted);
}

.review-form {
    display: grid;
    gap: 12px;
    margin-top: 18px;
    padding: 16px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.media-admin-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 22px;
}

.media-admin-card {
    display: grid;
    gap: 12px;
}

.media-admin-card.is-main-media {
    border-color: rgba(200, 16, 46, 0.42);
    box-shadow: 0 18px 42px rgba(200, 16, 46, 0.12);
}

.media-admin-card img,
.media-admin-card video {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #000000;
    border-radius: 8px;
}

.media-admin-card form {
    display: grid;
    gap: 10px;
}

.media-admin-actions,
.inline-ical-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.inline-ical-form {
    flex-wrap: wrap;
    margin-top: 12px;
}

.inline-ical-form input {
    min-width: min(100%, 340px);
}

.timeline {
    display: grid;
    gap: 10px;
}

.timeline p {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.timeline time {
    color: var(--muted);
    font-size: 0.85rem;
}

.empty-state,
.empty-page {
    padding: 24px;
    color: var(--muted);
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    padding: 34px clamp(16px, 4vw, 56px);
    color: var(--navy);
    background: #f8fbff;
    border-top: 1px solid var(--line);
    box-shadow: inset 0 5px 0 var(--red);
}

.site-footer__logo {
    display: inline-flex;
    align-items: center;
    width: 220px;
    max-width: 100%;
    margin-bottom: 10px;
}

.site-footer__logo img {
    width: 220px;
    height: auto;
    object-fit: contain;
}

.site-footer span {
    display: block;
    max-width: 620px;
    color: var(--muted);
}

.footer-links {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-links a {
    min-height: 38px;
    padding: 9px 12px;
    color: var(--navy);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-weight: 800;
}

.footer-links a:hover {
    color: var(--red);
    border-color: rgba(200, 16, 46, 0.35);
    box-shadow: 0 8px 18px rgba(6, 29, 61, 0.07);
}

@media (max-width: 1180px) {
    .search-hero,
    .search-layout,
    .listing-layout {
        grid-template-columns: 1fr;
    }

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

    .search-panel .button {
        grid-column: span 2;
    }

    .filter-panel,
    .booking-panel {
        position: static;
    }

    .filter-panel {
        max-height: none;
        overflow: visible;
    }

    .filter-panel form,
    .filter-fields {
        overflow: visible;
    }

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

    .room-calendar-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-intro,
    .content-hero,
    .content-grid,
    .contact-grid,
    .contact-layout,
    .contact-note,
    .feature-steps,
    .cta-band,
    .listing-media-compact,
    .listing-grid--compact,
    .message-auth-card,
    .message-auth-grid,
    .message-start-layout,
    .host-alerts,
    .quality-card,
    .calendar-management-grid {
        grid-template-columns: 1fr;
    }

    .availability-calendar,
    .availability-months {
        grid-template-columns: 1fr;
    }

    .stat-grid,
    .checkbox-grid,
    .stat-grid--wide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .site-header,
    .section-heading,
    .results-header,
    .listing-hero,
    .room-row,
    .calendar-row,
    .calendar-row__header,
    .room-calendar-card__header,
    .availability-room__header {
        align-items: stretch;
        flex-direction: column;
    }

    .site-header {
        position: static;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .site-footer {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .brand {
        width: 172px;
        min-width: 172px;
        height: 64px;
    }

    .brand img {
        width: 172px;
    }

    .menu-toggle {
        position: relative;
        display: inline-flex;
        justify-self: end;
    }

    .main-nav {
        display: none;
        grid-column: 1 / -1;
        width: 100%;
        padding-top: 8px;
        border-top: 1px solid var(--line);
        justify-content: stretch;
    }

    .main-nav.is-open {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .mobile-header-banner {
        display: block;
        grid-column: 1 / -1;
        width: 100%;
        margin: 8px 0 0;
        overflow: hidden;
        background: var(--soft);
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: 0 14px 28px rgba(6, 29, 61, 0.1);
    }

    .mobile-header-banner img {
        width: 100%;
        aspect-ratio: 16 / 7;
        object-fit: cover;
    }

    .main-nav a,
    .main-nav .nav-button {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .main-nav .inline-form {
        width: 100%;
    }

    .search-hero__content {
        min-height: auto;
    }

    .hero-visual,
    .hero-visual img {
        min-height: 320px;
    }

    .search-panel,
    .form-row,
    .filter-actions,
    .two-column,
    .three-column,
    fieldset,
    .listing-grid,
    .home-intro,
    .content-hero,
    .content-grid,
    .contact-grid,
    .contact-layout,
    .contact-note,
    .feature-steps,
    .stat-grid,
    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .cta-band {
        align-items: stretch;
        flex-direction: column;
    }

    .content-band {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-cache-card {
        align-items: stretch;
        flex-direction: column;
        max-width: none;
    }

    .media-admin-grid {
        grid-template-columns: 1fr;
    }

    .search-panel .button,
    .span-2 {
        grid-column: auto;
    }

    .filter-panel {
        position: relative;
        top: auto;
        max-height: none;
        overflow: visible;
    }

    .filter-panel__header {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }

    .filter-panel__toggle {
        display: inline-flex;
        width: auto;
        min-width: 0;
        margin-top: 8px;
        white-space: normal;
        justify-self: start;
    }

    .filter-panel.is-collapsed {
        gap: 10px;
    }

    .filter-panel.is-collapsed form {
        display: none;
    }

    .filter-panel.is-collapsed .filter-panel__summary {
        display: block;
    }

    .listing-list .listing-card {
        grid-template-columns: 1fr;
    }

    .media-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-rows: auto;
        gap: 8px;
        padding-bottom: 8px;
        overflow-x: hidden;
    }

    .media-grid figure {
        display: none;
    }

    .media-grid figure:first-child {
        display: block;
        grid-column: auto;
        grid-row: auto;
    }

    .media-grid figure {
        aspect-ratio: 16 / 9;
    }

    .media-grid img {
        height: 100%;
    }

    .mobile-media-more {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        margin: 0 clamp(16px, 4vw, 56px) 18px;
        padding: 8px 12px;
        color: #ffffff;
        background: var(--navy);
        border: 1px solid rgba(6, 29, 61, 0.18);
        border-radius: 8px;
        box-shadow: 0 12px 24px rgba(6, 29, 61, 0.12);
        font-size: 0.92rem;
        font-weight: 900;
        text-align: center;
    }

    .mobile-media-more:hover {
        background: var(--red);
    }

    .listing-hero,
    .listing-layout,
    .listing-detail,
    .listing-media-section,
    .listing-media-compact,
    .listing-media-video,
    .listing-media-thumbs,
    .availability-calendar,
    .availability-room,
    .availability-month,
    .reviews-section,
    .booking-panel {
        min-width: 0;
        max-width: 100%;
        overflow-x: hidden;
    }

    .listing-media-compact {
        grid-template-columns: minmax(0, 1fr);
    }

    .listing-video,
    .listing-media-video .listing-video {
        width: 100%;
        max-width: 100%;
    }

    .mobile-object-cta,
    .mobile-inline-cta {
        display: grid;
        gap: 10px;
        padding: 14px 16px;
        background: #ffffff;
        border-block: 1px solid var(--line);
    }

    .mobile-object-cta {
        grid-template-columns: 1fr;
        margin: 0;
    }

    .mobile-inline-cta {
        padding: 14px;
        border: 1px solid var(--line);
        border-left: 5px solid var(--red);
        border-radius: 8px;
        box-shadow: 0 12px 28px rgba(6, 29, 61, 0.08);
    }

    .mobile-inline-cta--split {
        grid-template-columns: 1fr;
    }

    .availability-controls {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        justify-content: stretch;
        width: 100%;
    }

    .availability-controls strong {
        min-width: 0;
    }

    .listing-media-thumbs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

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

    .danger-check {
        justify-self: start;
    }

    .listing-media-thumbs figure {
        border-radius: 8px;
    }

    .listing-media-thumbs figcaption {
        display: none;
    }

    .listing-media-thumb {
        border-radius: 8px;
    }

    .listing-media-thumb img {
        aspect-ratio: 1 / 1;
    }

    .price-box {
        text-align: left;
    }

    .panel-tabs {
        position: static;
    }

    .message-listing-summary {
        position: static;
    }

    .message-entry-card,
    .message-thread-header {
        grid-template-columns: 1fr;
        align-items: stretch;
        flex-direction: column;
    }

    .room-editor-card__header,
    .room-calendar-list,
    .room-editor-fields,
    .calendar-action-form,
    .quality-list {
        grid-template-columns: 1fr;
    }

    .message-entry-card > div:last-child {
        justify-items: start;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.05rem;
    }

    .media-grid {
        grid-template-columns: 1fr;
    }

    .media-grid figure:first-child {
        grid-column: auto;
    }

    .listing-media-thumbs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .availability-month-grid span {
        min-height: 36px;
    }

    .button,
    .button--ghost {
        width: 100%;
    }
}
