:root {
  color-scheme: light;
  --ink: #17333b;
  --muted: #688087;
  --line: #d5e4e2;
  --page: #f2f8f7;
  --surface: #ffffff;
  --soft: #e7f4f1;
  --deep: #153a47;
  --aqua: #1f9d91;
  --coral: #e85f43;
  --coral-dark: #c94d34;
  --rating-empty: #d2e2df;
  --danger: #b83b31;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
  line-height: 1.5;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, strong { font-weight: 600; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(242,248,247,.96); backdrop-filter: blur(12px); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; text-transform: uppercase; letter-spacing: .02em; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; }
.brand-mark img { display: block; width: 42px; height: 42px; }
.brand span:last-child { display: flex; flex-direction: column; }
.brand small { color: var(--muted); font-size: 11px; font-weight: 400; letter-spacing: .04em; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a { padding: 9px 12px; border-radius: 5px; text-decoration: none; }
.main-nav a:hover, .main-nav a.active { background: #dff3ef; color: #0c6862; }
.main-nav .city-link { margin-left: 6px; border: 1px solid #bfd6d4; background: transparent; color: var(--ink); }
.city-link { display: inline-flex; align-items: center; gap: 6px; }
.city-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mobile-menu { display: none; border: 1px solid var(--line); background: var(--surface); padding: 8px 12px; border-radius: 5px; }
.catalog-hero { padding: 64px 0 48px; background: linear-gradient(to bottom, transparent 58%, var(--page) 100%), radial-gradient(circle at 78% 28%, rgba(48,197,175,.26), transparent 22%), radial-gradient(circle at 91% 58%, rgba(238,105,76,.18), transparent 19%), var(--page); }
.catalog-hero h1, .text-hero h1, .detail-hero h1 { margin-bottom: 14px; font-size: clamp(32px, 5vw, 54px); line-height: 1.05; letter-spacing: -.025em; }
.catalog-hero > .container > p:not(.eyebrow) { max-width: 660px; color: #547078; }
.eyebrow { margin-bottom: 8px; color: #167f76; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.search-form { max-width: 720px; display: grid; grid-template-columns: 1fr auto; margin-top: 24px; padding: 6px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); box-shadow: 0 1px 3px rgba(16,51,61,.08); }
.search-form label { display: block; }
.search-form input { width: 100%; height: 44px; border: 0; padding: 0 12px; outline: none; color: var(--ink); background: transparent; }
.search-form button, .primary-button { border: 0; border-radius: 5px; padding: 11px 18px; background: var(--coral); color: white; font-weight: 600; text-decoration: none; cursor: pointer; }
.search-form button:hover, .primary-button:hover { background: var(--coral-dark); }
.catalog-search { max-width: 760px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 12px; margin-top: 24px; }
.catalog-search label { min-width: 0; }
.catalog-search input { min-height: 46px; box-shadow: 0 1px 3px rgba(16,51,61,.05); }
.catalog-search .primary-button { min-width: 104px; min-height: 46px; padding-inline: 24px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.filter-row a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); text-decoration: none; }
.filter-row a.active { border-color: var(--deep); background: var(--deep); color: white; }
.catalog-section, .detail-section, .text-section { padding: 34px 0 56px; }
.section-heading, .detail-title, .reviews-heading, .admin-heading, .panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section-heading { margin-bottom: 20px; }
.section-heading h2, .admin-heading h1 { margin-bottom: 4px; }
.section-heading p, .admin-heading p { margin-bottom: 0; color: var(--muted); }
.secondary-button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid #bfd6d4; border-radius: 5px; padding: 9px 14px; background: var(--surface); color: var(--ink); text-decoration: none; cursor: pointer; }
.secondary-button:hover { border-color: var(--aqua); }
.pool-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.pool-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); box-shadow: 0 1px 3px rgba(16,51,61,.07); }
.card-photo { position: relative; height: 210px; border: 0; padding: 0; overflow: hidden; background: var(--soft); cursor: pointer; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s ease; }
.card-photo:hover img { transform: scale(1.025); }
.card-photo > span { position: absolute; right: 10px; bottom: 10px; padding: 5px 8px; border-radius: 5px; background: rgba(18,48,57,.85); color: white; }
.pool-card-body { flex: 1; display: flex; flex-direction: column; padding: 18px; }
.verified { display: inline-flex; align-items: center; margin-bottom: 10px; color: #08756e; font-size: 13px; }
.pool-card h3 { margin-bottom: 5px; font-size: 20px; line-height: 1.25; }
.pool-card h3 a { text-decoration: none; }
.pool-card h3 a:hover { color: var(--coral); }
.pool-card p { margin-bottom: 0; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0; }
.price { white-space: nowrap; color: var(--deep); }
.price small { display: block; color: var(--muted); font-weight: 400; text-align: right; }
.rating { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--muted); white-space: nowrap; }
.rating-icons { display: inline-flex; align-items: center; gap: 2px; line-height: 0; }
.rating-star { width: 17px; height: 17px; filter: drop-shadow(0 1px 1px rgba(20,62,68,.18)); }
.no-rating { color: var(--muted); font-size: 14px; }
.rating-medium .rating-star, .rating-large .rating-star { width: 18px; height: 18px; }
.rating-medium .rating-icons, .rating-large .rating-icons { gap: 3px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tag { padding: 5px 8px; border-radius: 5px; background: #e4f5f1; color: #16675f; font-size: 13px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid #e1ecea; }
.card-foot a { color: var(--coral); font-weight: 600; text-decoration: none; }
.empty-state { padding: 54px 24px; border: 1px dashed #b8d0cd; border-radius: 5px; text-align: center; background: var(--surface); }
.empty-state .primary-button { display: inline-flex; }
.detail-hero { padding: 36px 0 32px; background: linear-gradient(to bottom, transparent 52%, var(--page) 100%), radial-gradient(circle at 84% 30%, rgba(48,197,175,.22), transparent 27%), var(--page); }
.detail-hero > .container > a { display: inline-block; margin-bottom: 18px; color: var(--coral); text-decoration: none; }
.detail-title { align-items: flex-start; }
.detail-title p { max-width: 680px; color: var(--muted); }
.detail-hero-aside { min-width: 390px; display:flex; flex-direction:column; align-items:flex-end; gap:16px; }
.hero-rating-card { min-width:220px; padding:13px 16px; border:1px solid rgba(191,214,212,.85); border-radius:5px; background:rgba(255,255,255,.72); backdrop-filter:blur(6px); }
.hero-rating-card > small { display:block; margin-bottom:6px; color:var(--muted); }
.hero-rating-card .rating { color:var(--ink); }
.rating-count { color:var(--muted); text-decoration:none; border-radius:3px; }
.rating-count:hover { color:#08736f; text-decoration:none; }
.rating-count:focus-visible { outline:2px solid var(--coral); outline-offset:3px; }
.hero-quick-facts { width:100%; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border:1px solid rgba(191,214,212,.82); border-radius:5px; background:rgba(255,255,255,.62); backdrop-filter:blur(6px); }
.hero-quick-facts span { min-width:0; padding:11px 13px; }
.hero-quick-facts span + span { border-left:1px solid var(--line); }
.hero-quick-facts small, .hero-quick-facts strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hero-quick-facts small { margin-bottom:2px; color:var(--muted); font-size:12px; }
.hero-quick-facts strong { font-size:14px; }
.detail-grid { display: grid; grid-template-columns: minmax(0,1.75fr) minmax(280px,.75fr); gap: 20px; align-items: start; }
.detail-main, .detail-aside, .admin-panel { border: 1px solid var(--line); border-radius: 5px; background: var(--surface); box-shadow: 0 1px 3px rgba(16,51,61,.07); }
.detail-main { padding: 20px; }
.detail-aside { padding: 20px; }
.detail-gallery { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(150px,.7fr); gap: 8px; margin-bottom: 24px; }
.detail-gallery button { display: block; width: 100%; border: 0; border-radius: 5px; padding: 0; overflow: hidden; background: var(--soft); cursor: zoom-in; }
.detail-gallery img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .2s; }
.detail-gallery button:hover img { transform: scale(1.02); }
.gallery-main { height: 320px; }
.gallery-thumbs { display: grid; gap: 8px; }
.gallery-thumbs button { height: 156px; }
.detail-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.detail-nav a { padding: 7px 10px; border-radius: 5px; background: #eef6f4; text-decoration: none; }
.fact-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-bottom: 28px; }
.fact-grid > div { padding: 12px; border-radius: 5px; background: #edf6f4; }
.fact-grid strong, .fact-grid span { display: block; }
.fact-grid span { margin-top: 4px; color: var(--muted); font-size: 13px; }
.content-block { margin-top: 28px; }
.content-block h2 { margin-bottom: 12px; }
.source-box { margin-top: 22px; padding: 16px; border-radius: 5px; background: #eef8f5; color: #31575d; }
.source-box p { margin: 6px 0 0; }
.reviews-block { margin-top: 34px; }
.reviews-heading { align-items: flex-start; margin-bottom: 16px; }
.reviews-heading h2 { margin-bottom: 8px; }
.demo-warning, .success, .error, .notice { margin-bottom: 16px; padding: 10px 12px; border-radius: 5px; }
.demo-warning { background: #fff1ec; color: #7a5145; }
.success { background: #e8f7ef; color: #17653b; }
.error { background: #fff0ef; color: var(--danger); }
.notice { margin: 16px 24px 0; background: #e8f7ef; color: #17653b; }
.review { padding: 20px 0; border-top: 1px solid var(--line); }
.review header { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.review header > div { display: flex; flex-direction: column; }
.review header a { color: var(--coral); }
.review p { margin-bottom: 8px; }
.demo-label { color: var(--muted); }
.review-form { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.star-picker { min-width: 0; margin: 0; border: 0; padding: 0 0 0 12px; }
.star-picker legend { margin-bottom: 6px; color: #31515a; }
.star-options { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-options input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.star-options label { display: block; width: 30px; height: 30px; cursor: pointer; color: var(--rating-empty); }
.star-options svg { display: block; width: 30px; height: 30px; overflow: visible; filter: drop-shadow(0 1px 1px rgba(20,62,68,.16)); }
.star-options path { fill: currentColor; transition: color .14s, transform .14s; transform-origin: center; }
.star-options input:checked ~ label, .star-options label:hover, .star-options label:hover ~ label { color: var(--coral); }
.star-options label:hover path { transform: scale(1.08); }
.star-options input:focus-visible + label { outline: 2px solid rgba(31,157,145,.38); outline-offset: 2px; border-radius: 4px; }
.star-picker output { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
label { display: grid; gap: 6px; color: #31515a; }
input, textarea, select { width: 100%; border: 1px solid #c9dedb; border-radius: 5px; padding: 10px 11px; background: var(--surface); color: var(--ink); }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid rgba(31,157,145,.25); border-color: var(--aqua); }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-bottom: 14px; }
.review-form > label { margin-bottom: 14px; }
.detail-aside h2 { margin: 2px 0 6px; }
.aside-actions { display: grid; gap: 8px; margin: 16px 0; }
.aside-actions .primary-button, .aside-actions .secondary-button { width:100%; min-width:0; }
.contact-link { white-space:nowrap; font-size:15px; }
.website-button { color:#0b6d66; }
.contact-panel { margin:18px 0; padding:16px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.contact-panel h3 { margin-bottom:10px; }
.contact-row { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:9px 0; color:var(--ink); text-decoration:none; }
.contact-row + .contact-row { border-top:1px solid #e5efed; }
.contact-row span { color:var(--muted); font-size:13px; }
.contact-row strong { text-align:right; overflow-wrap:anywhere; }
.contact-row-email { flex-direction:column; align-items:flex-start; gap:3px; }
.contact-row-email strong { display:block; width:100%; overflow:hidden; color:var(--ink); font-size:13px; text-align:left; text-overflow:ellipsis; white-space:nowrap; }
.social-links { display:flex; flex-wrap:wrap; gap:7px; margin-top:12px; }
.social-link { padding:7px 10px; border-radius:5px; background:#e5f4f1; color:#116c64; font-size:13px; font-weight:600; text-decoration:none; }
.social-link:hover { background:#d8eee9; }
.aside-block { padding: 18px 0; border-top: 1px solid var(--line); }
.aside-block > p { display: grid; margin-bottom: 14px; }
.aside-block > p small { color: var(--muted); }
.mini-map { position: relative; height: 170px; display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: linear-gradient(90deg,transparent 72%,#cae9e5 72%), repeating-linear-gradient(22deg,#eef6f4 0 24px,#fff 24px 34px); text-decoration: none; }
.map-roads::before, .map-roads::after { content:""; position:absolute; left:-10%; width:120%; height:10px; border-radius:99px; background:white; box-shadow:0 0 0 1px #d4e4e1; }
.map-roads::before { top:48%; transform:rotate(4deg); }
.map-roads::after { top:24%; transform:rotate(72deg); }
.mini-map > b { position:absolute; left:56%; top:38%; z-index:2; color:var(--coral); font-size:38px; text-shadow:0 4px 9px rgba(0,0,0,.18); }
.mini-map > em { position:absolute; left:8px; bottom:8px; z-index:3; max-width:calc(100% - 16px); padding:6px 8px; border-radius:5px; background:rgba(255,255,255,.92); box-shadow:0 1px 3px rgba(16,51,61,.12); font-style:normal; font-weight:600; }
.mini-map small { display:block; color:var(--muted); font-weight:400; }
.price-row { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; padding:9px 0; }
.price-row > span { min-width:0; display:grid; }
.price-row small { color:var(--muted); font-weight:400; }
.price-row strong { flex:0 0 auto; min-width:92px; display:flex; flex-direction:column; align-items:flex-end; text-align:right; white-space:nowrap; }
.check-list { list-style:none; padding:0; margin:0; }
.check-list li { margin-bottom:9px; }
.check-list li::before { content:'✓'; margin-right:8px; color:var(--aqua); }
.verified-date { color:var(--muted); }
.icon-label { display:inline-flex; align-items:center; gap:8px; }
.status-icon { width:18px; height:18px; flex:0 0 auto; fill:none; stroke:var(--aqua); stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.text-hero { padding:56px 0 38px; background:radial-gradient(circle at 85% 20%,rgba(48,197,175,.22),transparent 26%),var(--page); }
.text-hero p { max-width:720px; color:var(--muted); }
.text-section .narrow > p { font-size:18px; line-height:1.7; }
.breadcrumbs { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:18px; color:var(--muted); font-size:14px; }
.breadcrumbs a { color:var(--coral); text-decoration:none; }
.category-seo { padding:12px 0 64px; }
.category-seo .narrow { padding:28px; border:1px solid var(--line); border-radius:5px; background:var(--surface); }
.category-seo h2, .category-seo h3 { margin:24px 0 10px; }
.category-seo h2:first-child, .category-seo h3:first-child { margin-top:0; }
.category-seo p { color:#405f66; line-height:1.75; }
.site-footer { padding:44px 0 20px; border-top:1px solid var(--line); background:linear-gradient(135deg,#e8f4f1 0%,#f2f8f7 55%,#eef2ed 100%); }
.footer-grid { display:grid; grid-template-columns:minmax(300px,1.7fr) 1fr 1fr; gap:48px; }
.footer-grid p { max-width:430px; margin:14px 0 0; color:var(--muted); }
.footer-grid nav { display:flex; flex-direction:column; align-items:flex-start; gap:8px; }
.footer-grid nav strong { margin-bottom:4px; color:var(--deep); }
.site-footer a { text-decoration:none; }
.site-footer nav a { color:#49666d; }
.site-footer nav a:hover { color:var(--coral); }
.footer-brand .brand { width:max-content; }
.footer-bottom { display:flex; justify-content:space-between; gap:24px; margin-top:34px; padding-top:18px; border-top:1px solid rgba(191,214,212,.8); color:var(--muted); font-size:13px; }
.lightbox { width:min(960px,calc(100% - 32px)); max-width:960px; border:1px solid var(--line); border-radius:6px; padding:12px; background:var(--surface); color:var(--ink); box-shadow:0 24px 70px rgba(4,22,27,.34); }
.lightbox::backdrop { background:rgba(4,22,27,.82); }
.lightbox-head { display:flex; justify-content:flex-end; margin-bottom:8px; }
.lightbox button { border:1px solid var(--line); border-radius:5px; background:var(--surface); color:var(--ink); cursor:pointer; }
.lightbox-head button { width:38px; height:38px; font-size:24px; }
.lightbox-body { display:grid; grid-template-columns:42px minmax(0,1fr) 42px; align-items:center; gap:10px; }
.lightbox-body > button { height:50px; font-size:30px; }
.lightbox figure { margin:0; min-width:0; }
.lightbox img { display:block; width:100%; max-height:72vh; object-fit:contain; border-radius:5px; background:#e8f3f1; }
.lightbox figcaption { margin-top:8px; color:var(--muted); text-align:center; }

/* Admin */
.admin-body { min-height:100vh; background:#f3f6f6; }
.admin-shell { min-height:100vh; display:grid; grid-template-columns:250px minmax(0,1fr); }
.admin-sidebar { position:sticky; top:0; height:100vh; display:flex; flex-direction:column; padding:24px 16px; background:#102d36; color:#e8f3f2; }
.admin-logo { display:flex; flex-direction:column; margin:0 8px 28px; color:white; font-size:19px; font-weight:600; text-decoration:none; }
.admin-logo small { color:#9eb4b3; font-size:12px; font-weight:400; }
.admin-sidebar nav { display:grid; gap:5px; }
.admin-sidebar nav a, .admin-sidebar .link-button { display:flex; align-items:center; justify-content:space-between; gap:10px; width:100%; border:0; border-radius:5px; padding:10px 12px; background:transparent; color:inherit; text-align:left; text-decoration:none; cursor:pointer; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background:#1b4550; color:white; }
.menu-badge { display:inline-flex; align-items:center; justify-content:center; min-width:22px; height:22px; padding:0 6px; border-radius:999px; background:var(--coral); color:#fff; font-size:12px; font-weight:700; line-height:1; }
.admin-sidebar form { margin-top:auto; }
.admin-main { min-width:0; }
.admin-top { min-height:60px; display:flex; align-items:center; gap:12px; padding:0 24px; border-bottom:1px solid var(--line); background:var(--surface); }
.admin-menu { display:none; }
.admin-content { padding:28px 24px 50px; }
.admin-heading { margin-bottom:22px; }
.stats-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:20px; }
.stats-grid article { padding:18px; border:1px solid var(--line); border-radius:5px; background:var(--surface); }
.stats-grid span, .stats-grid small { display:block; color:var(--muted); }
.stats-grid strong { display:block; margin:6px 0; font-size:32px; }
.admin-panel { margin-bottom:18px; }
.panel-heading { padding:16px 18px; border-bottom:1px solid var(--line); }
.panel-heading h2 { margin:0; }
.admin-table-wrap { overflow:auto; }
.admin-table { width:100%; border-collapse:collapse; }
.admin-table th, .admin-table td { padding:13px 16px; border-bottom:1px solid var(--line); text-align:left; vertical-align:middle; }
.admin-table th { color:var(--muted); font-size:13px; }
.admin-table td small { display:block; color:var(--muted); }
.admin-table a { color:#0a706b; font-weight:600; }
.status { display:inline-flex; padding:4px 7px; border-radius:5px; font-size:12px; }
.status-published { background:#e3f5eb; color:#17653b; }
.status-draft, .status-pending { background:#fff1dc; color:#83550f; }
.status-archived, .status-rejected { background:#eef1f2; color:#5f7075; }
.form-columns { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:18px; align-items:start; }
.form-section { padding:18px; }
.form-section h2 { margin-bottom:14px; }
.form-section > p { color:var(--muted); }
.form-section > label, .settings-form > label { margin-bottom:14px; }
.form-section textarea { width:100%; }
.sticky-panel { position:sticky; top:78px; }
.checks { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.check { display:inline-flex; grid-template-columns:auto 1fr; align-items:center; gap:7px; padding:7px 9px; border:1px solid var(--line); border-radius:5px; }
.check input { width:auto; }
.photo-admin-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.photo-admin-grid figure { margin:0; overflow:hidden; border:1px solid var(--line); border-radius:5px; }
.photo-admin-grid img { width:100%; height:130px; display:block; object-fit:cover; background:var(--soft); }
.photo-admin-grid figcaption { min-height:48px; padding:8px; color:var(--muted); font-size:13px; }
.photo-admin-grid figure > div { display:flex; justify-content:space-between; padding:8px; border-top:1px solid var(--line); }
.photo-admin-grid form { margin:0; }
.photo-admin-grid button { border:0; background:transparent; color:#0a706b; cursor:pointer; }
.photo-admin-grid button:disabled { color:var(--muted); }
.danger-link { color:var(--danger) !important; }
.upload-box, .empty-inline { margin-top:14px; padding:14px; border:1px dashed #b8d0cd; border-radius:5px; background:#f8fbfa; }
.upload-box { display:grid; gap:10px; }
.review-admin-list { padding:0 18px; }
.review-admin-list article { padding:18px 0; border-bottom:1px solid var(--line); }
.review-admin-list article header, .review-admin-list article footer { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.review-admin-list article header > div { display:grid; }
.review-admin-list article header a { color:#0a706b; }
.review-admin-list article footer form { display:flex; flex-wrap:wrap; gap:6px; }
.review-admin-list article footer button { border:1px solid var(--line); border-radius:5px; padding:6px 9px; background:var(--surface); cursor:pointer; }
.dictionary-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.dictionary { padding:0 18px 18px; }
.dictionary .panel-heading { margin:0 -18px 14px; }
.dictionary ul { padding:0; list-style:none; }
.dictionary li { display:flex; justify-content:space-between; gap:10px; padding:8px 0; border-bottom:1px solid var(--line); }
.dictionary code { color:var(--muted); }
.dictionary form { display:grid; gap:10px; margin-top:16px; }
.settings-form { max-width:680px; }
.login-body { min-height:100vh; display:grid; place-items:center; padding:20px; background:radial-gradient(circle at 70% 20%,rgba(48,197,175,.25),transparent 28%),var(--page); }
.login-card { width:min(430px,100%); padding:28px; border:1px solid var(--line); border-radius:6px; background:var(--surface); box-shadow:0 20px 60px rgba(16,51,61,.12); }
.login-card .brand { margin-bottom:28px; }
.login-card form { display:grid; gap:14px; margin:20px 0 14px; }

@media (max-width: 980px) {
  .pool-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .detail-grid { grid-template-columns:1fr; }
  .detail-aside { position:static; }
  .stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .form-columns { grid-template-columns:1fr; }
  .sticky-panel { position:static; }
  .dictionary-grid { grid-template-columns:1fr; }
  .detail-hero-aside { min-width:320px; }
}
@media (max-width: 760px) {
  .container { width:min(100% - 28px,1180px); }
  .main-nav { display:none; position:absolute; left:14px; right:14px; top:64px; padding:10px; border:1px solid var(--line); border-radius:5px; background:var(--surface); box-shadow:0 12px 30px rgba(16,51,61,.12); }
  .main-nav.open { display:grid; }
  .main-nav .city-link { margin-left:0; }
  .mobile-menu { display:block; }
  .pool-grid { grid-template-columns:1fr; }
  .catalog-hero { padding:42px 0 34px; }
  .detail-title { flex-direction:column; }
  .detail-hero-aside { width:100%; min-width:0; align-items:flex-start; }
  .detail-gallery { grid-template-columns:1fr; }
  .gallery-main { height:280px; }
  .gallery-thumbs { grid-template-columns:1fr 1fr; }
  .gallery-thumbs button { height:130px; }
  .fact-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .footer-grid { grid-template-columns:1fr; gap:20px; }
  .footer-bottom { flex-direction:column; gap:6px; }
  .admin-shell { display:block; }
  .admin-sidebar { position:fixed; left:-270px; z-index:40; width:250px; transition:left .2s; }
  .admin-sidebar.open { left:0; }
  .admin-menu { display:inline-flex; border:1px solid var(--line); border-radius:5px; background:var(--surface); padding:7px 10px; }
  .photo-admin-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 480px) {
  .header-inner { min-height:64px; }
  .brand small { display:none; }
  .search-form { grid-template-columns:1fr; }
  .search-form button { width:100%; }
  .catalog-search { grid-template-columns:1fr; gap:10px; }
  .catalog-search .primary-button { width:100%; }
  .section-heading, .detail-title, .admin-heading { align-items:flex-start; flex-direction:column; }
  .card-photo { height:190px; }
  .form-grid, .stats-grid { grid-template-columns:1fr; }
  .star-picker { padding-left:0; }
  .detail-main, .detail-aside { padding:16px; }
  .fact-grid { gap:8px; }
  .lightbox { width:calc(100% - 20px); padding:10px; }
  .lightbox-body { grid-template-columns:34px minmax(0,1fr) 34px; gap:6px; }
  .lightbox-body > button { height:44px; }
  .admin-content { padding:22px 14px 40px; }
  .admin-top { padding:0 14px; }
  .photo-admin-grid { grid-template-columns:1fr; }
}
