:root {
    --ink: #1A1C22;
    --paper: #FBFAF6;
    --surface: #FFFFFF;
    --teal: #1F4D46;
    --teal-dk: #163934;
    --marigold: #F2B544;
    --slate: #5C6470;
    --line: #E7E3D9;
    --line-2: #D8D3C6;
    --radius: 14px;
    --font-display: 'Bricolage Grotesque', sans-serif;
    --font-body: 'Inter', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.admin-bar {
    background: var(--teal-dk);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 9999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.admin-bar-inner {
    display: flex;
    align-items: center;
    gap: 0;
    height: 32px;
}

.admin-bar a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 0 12px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    transition: background 0.15s, color 0.15s;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-bar a:first-child {
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 10px;
    color: var(--marigold);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 14px;
}

.admin-bar a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.admin-bar-spacer {
    flex: 1;
}

.admin-bar-user {
    color: rgba(255, 255, 255, 0.45);
    padding-right: 4px;
    font-size: 11px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

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

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

button, input, select {
    font: inherit;
}

:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--teal);
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate);
    transition: color 0.15s;
}

.nav-links a:hover {
    color: var(--teal);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 32px 0;
    margin-top: 64px;
}

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

.footer-brand {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--teal);
}

.footer-links {
    display: flex;
    list-style: none;
    gap: 20px;
    font-size: 0.875rem;
}

.footer-links a {
    color: var(--slate);
    transition: color 0.15s;
}

.footer-links a:hover {
    color: var(--teal);
}

.footer-note {
    color: var(--slate);
    font-size: 0.875rem;
}

/* Hero */
.hero {
    background: var(--teal);
    color: var(--surface);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.hero-eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.7;
    margin-bottom: 16px;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 12px;
}

.hero-sub {
    font-size: 1.05rem;
    opacity: 0.8;
    margin-bottom: 32px;
}

.hero-search {
    display: flex;
    max-width: 440px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
}

.hero-search input {
    flex: 1;
    border: none;
    padding: 14px 20px;
    font-size: 1rem;
    color: var(--ink);
    background: transparent;
}

.hero-search input::placeholder {
    color: var(--slate);
}

.hero-search button {
    background: var(--marigold);
    border: none;
    padding: 14px 24px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    transition: background 0.15s;
}

.hero-search button:hover {
    background: #e5a830;
}

.hero-noresult {
    margin-top: 16px;
    background: rgba(242, 181, 68, 0.15);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* City tags */
.city-tags {
    padding: 64px 0 48px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.city-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: border-color 0.15s, box-shadow 0.15s;
    display: block;
}

.city-card:hover {
    border-color: var(--teal);
    box-shadow: 0 4px 16px rgba(31, 77, 70, 0.08);
}

.city-card-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.city-card-region {
    color: var(--slate);
    font-size: 0.875rem;
    margin-bottom: 12px;
}

.city-card-count {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--teal);
    font-size: 0.9rem;
}

/* Kinds strip */
.kinds-strip {
    padding-bottom: 64px;
}

.kinds-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.kind-chip {
    display: inline-block;
    background: var(--surface);
    border: 1px solid var(--line-2);
    border-radius: 100px;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--slate);
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}

.kind-chip:hover {
    border-color: var(--teal);
    color: var(--teal);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    border: none;
    transition: background 0.15s;
}

.btn-primary {
    background: var(--teal);
    color: var(--surface);
}

.btn-primary:hover {
    background: var(--teal-dk);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--line-2);
    color: var(--ink);
}

.btn-secondary:hover {
    background: var(--line);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
}

/* Filter bar */
/* Category tabs */
.category-tabs {
    display: flex;
    gap: 8px;
    padding-top: 20px;
    padding-bottom: 12px;
}

.category-tab {
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate);
    background: var(--surface);
    border: 1px solid var(--line);
    transition: all 0.15s;
}

.category-tab:hover {
    border-color: var(--teal);
    color: var(--teal);
}

.category-tab.active {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
}

/* Category badges on cards */
.space-card-categories {
    display: flex;
    gap: 6px;
    margin-bottom: 4px;
}

.category-badge {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--line);
    color: var(--slate);
}

.category-badge.category-coworking {
    background: #E8F5E9;
    color: #2E7D32;
}

.category-badge.category-serviced_office {
    background: #E3F2FD;
    color: #1565C0;
}

.category-badge.category-meeting_venue {
    background: #FFF3E0;
    color: #E65100;
}

/* Category grid (landing page) */
.categories-strip {
    padding-bottom: 48px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.category-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 20px;
    transition: border-color 0.15s, box-shadow 0.15s;
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    border-color: var(--teal);
    box-shadow: 0 4px 16px rgba(31, 77, 70, 0.08);
}

.category-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.category-card p {
    color: var(--slate);
    font-size: 0.85rem;
}

/* Type landing pages */
.type-hero {
    background: var(--teal);
    color: #fff;
    padding: 72px 0;
    position: relative;
    overflow: hidden;
}

.type-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 20%, rgba(255,255,255,0.04) 0%, transparent 60%);
    pointer-events: none;
}

.type-hero-inner {
    position: relative;
    max-width: 680px;
}

.type-hero-headline {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
}

.type-hero-body {
    font-size: 1.05rem;
    opacity: 0.85;
    line-height: 1.7;
    max-width: 580px;
}

.type-cities {
    padding: 56px 0 40px;
}

.type-about {
    padding-bottom: 72px;
}

.type-about-content {
    max-width: 680px;
    color: var(--slate);
    line-height: 1.8;
    font-size: 0.95rem;
}

.type-about-content h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    margin-top: 32px;
    margin-bottom: 8px;
}

.type-about-content p {
    margin-bottom: 16px;
}

.filter-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
    position: sticky;
    top: 60px;
    z-index: 90;
}

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.filter-row-main {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-row-main select,
.filter-row-main input {
    padding: 10px 14px;
    border: 1px solid var(--line-2);
    border-radius: 8px;
    background: var(--surface);
    font-size: 0.875rem;
}

.filter-row-main select {
    min-width: 140px;
}

.filter-row-main input[type="number"] {
    width: 90px;
}

.filter-row-main input[type="date"],
.filter-row-main input[type="time"] {
    width: auto;
}

.btn-toggle-filters {
    padding: 10px 16px;
    border: 1px solid var(--line-2);
    border-radius: 8px;
    background: var(--surface);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--slate);
}

.btn-toggle-filters:hover {
    border-color: var(--teal);
    color: var(--teal);
}

.filter-advanced {
    display: none;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.filter-advanced.open {
    display: flex;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--slate);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.filter-price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-price-inputs input {
    width: 90px;
    padding: 8px 12px;
    border: 1px solid var(--line-2);
    border-radius: 8px;
    font-size: 0.875rem;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid var(--line-2);
    border-radius: 8px;
    font-size: 0.875rem;
}

.filter-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.check-label {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    color: var(--ink);
}

.filter-actions {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-left: auto;
}

/* Overview layout */
.overview-page {
    min-height: 100vh;
}

.overview-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding-top: 24px;
    padding-bottom: 48px;
}

.overview-header {
    margin-bottom: 20px;
}

.overview-header h1 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
}

.overview-header h1 strong {
    color: var(--teal);
}

.overview-subtitle {
    color: var(--slate);
    font-size: 0.875rem;
}

.overview-map {
    border-radius: var(--radius);
    overflow: hidden;
    position: sticky;
    top: 148px;
    height: calc(100vh - 172px);
    border: 1px solid var(--line);
}

/* Space cards */
.space-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.space-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.space-card:hover {
    border-color: var(--teal);
    box-shadow: 0 4px 16px rgba(31, 77, 70, 0.08);
}

.space-card-image {
    position: relative;
    height: 100%;
    min-height: 160px;
}

.space-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.space-card-image img.placeholder-img {
    object-fit: contain;
    padding: 16px;
}

.gallery-placeholder {
    background: #F0EDE6;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 260px;
    margin-bottom: 24px;
}

.gallery-placeholder .placeholder-img {
    width: 240px;
    height: auto;
    opacity: 0.7;
}

.rating-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--surface);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--marigold);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.space-card-body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
}

.space-card-brand {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--teal);
    font-weight: 600;
    margin-bottom: 2px;
}

.space-card-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.space-card-location {
    color: var(--slate);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.space-card-kind {
    font-size: 0.8rem;
    color: var(--teal);
    font-weight: 500;
    margin-bottom: auto;
}

.space-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.space-card-price {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--teal);
}

.space-card-capacity {
    font-size: 0.8rem;
    color: var(--slate);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--slate);
}

.empty-state p {
    margin-bottom: 16px;
}

/* Detail page */
.detail-page {
    padding-top: 24px;
    padding-bottom: 64px;
}

/* Gallery – Airbnb-style mosaic */
.gallery {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    grid-template-rows: 150px 150px;
    gap: 6px;
    height: 306px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 32px;
    position: relative;
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

/* 5 images: hero spans left column, 4 fill right 2×2 */
.gallery-5 .hero {
    grid-column: 1;
    grid-row: 1 / 3;
}
.gallery-5 img:nth-child(2) { grid-column: 2; grid-row: 1; }
.gallery-5 img:nth-child(3) { grid-column: 3; grid-row: 1; }
.gallery-5 img:nth-child(4) { grid-column: 2; grid-row: 2; }
.gallery-5 img:nth-child(5) { grid-column: 3; grid-row: 2; }

/* 4 images: hero left, 2 top-right, 1 spanning bottom-right */
.gallery-4 {
    grid-template-columns: 1.6fr 1fr 1fr;
    grid-template-rows: 150px 150px;
}
.gallery-4 .hero { grid-column: 1; grid-row: 1 / 3; }
.gallery-4 img:nth-child(2) { grid-column: 2; grid-row: 1; }
.gallery-4 img:nth-child(3) { grid-column: 3; grid-row: 1; }
.gallery-4 img:nth-child(4) { grid-column: 2 / 4; grid-row: 2; }

/* 3 images: hero left, 2 stacked right */
.gallery-3 {
    grid-template-columns: 1.6fr 1fr;
    grid-template-rows: 150px 150px;
}
.gallery-3 .hero { grid-column: 1; grid-row: 1 / 3; }
.gallery-3 img:nth-child(2) { grid-column: 2; grid-row: 1; }
.gallery-3 img:nth-child(3) { grid-column: 2; grid-row: 2; }

/* 2 images: side by side */
.gallery-2 {
    grid-template-columns: 1.6fr 1fr;
    grid-template-rows: 306px;
}
.gallery-2 .hero { grid-column: 1; grid-row: 1; }
.gallery-2 img:nth-child(2) { grid-column: 2; grid-row: 1; }

/* 1 image: full width */
.gallery-1 {
    grid-template-columns: 1fr;
    grid-template-rows: 306px;
}
.gallery-1 .hero { grid-column: 1; grid-row: 1; }

/* Show all photos button — absolutely positioned, not a grid item */
.gallery-show-all {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--surface);
    border: 1px solid var(--line-2);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: background 0.15s, box-shadow 0.15s;
    z-index: 2;
}

.gallery-show-all:hover {
    background: var(--paper);
    box-shadow: 0 4px 12px rgba(0,0,0,0.16);
}

/* Lightbox */
.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox.active {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
}

.lightbox-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 60px;
}

.lightbox-image-wrap {
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image-wrap img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    z-index: 2;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    z-index: 2;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.3);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.detail-brand {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--teal);
    font-weight: 600;
    margin-bottom: 4px;
}

.detail-name {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.detail-address {
    color: var(--slate);
    font-size: 0.9rem;
}

.detail-rating {
    display: flex;
    align-items: baseline;
    gap: 4px;
    text-decoration: none;
}

.detail-rating-star {
    color: var(--marigold);
    font-size: 1.3rem;
}

.detail-rating-num {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

.detail-rating-count {
    font-size: 0.85rem;
    color: var(--slate);
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

.detail-section {
    margin-bottom: 40px;
}

.detail-section h2 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.detail-summary {
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.detail-description {
    color: var(--slate);
    line-height: 1.7;
}

/* Tags */
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tag-kind {
    background: var(--teal);
    color: var(--surface);
}

.tag-amenity {
    border: 1px solid var(--line-2);
    color: var(--ink);
}

.tag-extra {
    border: 1px solid var(--marigold);
    color: var(--ink);
    background: rgba(242, 181, 68, 0.08);
}

/* Offerings */
.offerings-group {
    margin-bottom: 24px;
}

.offerings-group-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--teal);
}

.offering-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.offering-note {
    font-weight: 500;
    margin-bottom: 2px;
}

.offering-capacity {
    font-size: 0.8rem;
    color: var(--slate);
}

.offering-action {
    display: flex;
    align-items: center;
    gap: 12px;
}

.offering-price {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--teal);
}

/* Reviews */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.review-author {
    font-weight: 600;
}

.review-stars {
    color: var(--marigold);
    font-size: 0.9rem;
}

.review-date {
    color: var(--slate);
    font-size: 0.8rem;
    margin-left: auto;
}

.review-body {
    color: var(--slate);
    line-height: 1.6;
}

/* Similar cards */
.similar-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.similar-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.15s;
}

.similar-card:hover {
    border-color: var(--teal);
}

.similar-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.similar-card-body {
    padding: 12px;
}

.similar-card-body h4 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.similar-card-body p {
    font-size: 0.8rem;
    color: var(--slate);
}

/* Right rail */
.detail-rail {
    position: sticky;
    top: 84px;
    align-self: start;
}

.rail-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}

.rail-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

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

.hours-table td {
    padding: 6px 0;
    border-bottom: 1px solid var(--line);
}

.hours-table td:last-child {
    text-align: right;
    color: var(--slate);
}

.hours-closed td {
    color: var(--slate);
    font-style: italic;
}

.detail-map {
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.detail-map-address {
    font-size: 0.8rem;
    color: var(--slate);
}

/* Contact list */
.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li {
    padding: 6px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.85rem;
}

.contact-list li:last-child {
    border-bottom: none;
}

.contact-list a {
    color: var(--teal);
    text-decoration: none;
    word-break: break-all;
}

.contact-list a:hover {
    text-decoration: underline;
}

/* Error page */
.error-page {
    text-align: center;
    padding: 80px 24px;
}

.error-page h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.error-page p {
    color: var(--slate);
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive */
@media (max-width: 1000px) {
    .overview-layout {
        grid-template-columns: 1fr;
    }

    .overview-map {
        position: relative;
        top: auto;
        height: 250px;
        order: -1;
        z-index: 0;
        isolation: isolate;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-rail {
        position: relative;
        top: auto;
    }

    .gallery {
        grid-template-columns: 1fr !important;
        grid-template-rows: 240px !important;
        height: 240px;
    }

    .gallery img:not(.hero) {
        display: none;
    }

    .gallery .hero {
        grid-row: auto !important;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 640px) {
    .space-card {
        grid-template-columns: 1fr;
    }

    .space-card-image {
        height: 180px;
        min-height: auto;
    }

    .hero {
        padding: 48px 0;
    }

    .hero-headline {
        font-size: 1.8rem;
    }

    .hero-search {
        flex-direction: column;
    }

    .hero-search button {
        padding: 12px;
    }

    .filter-row-main {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-row-main select,
    .filter-row-main input {
        width: 100%;
    }

    .similar-cards {
        grid-template-columns: 1fr;
    }

    .detail-name {
        font-size: 1.5rem;
    }

    .detail-header {
        flex-direction: column;
        gap: 12px;
    }
}
