:root {
  --ink: #1f2a24;
  --muted: #68736c;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --line: #e1ddd4;
  --sage: #6d816f;
  --clay: #b66b4e;
  --sun: #e7b451;
  --shadow: 0 18px 50px rgba(31, 42, 36, 0.13);
  --container: 1180px;
  --page-pad: max(22px, calc((100vw - var(--container)) / 2 + 24px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 14px var(--page-pad);
  border-bottom: 1px solid rgba(225, 221, 212, 0.72);
  background: rgba(251, 250, 246, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  font-weight: 800;
  letter-spacing: 0;
  min-width: 0;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  margin-right: 10px;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.9));
}

nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 3vw, 32px);
  color: var(--muted);
  font-size: 0.95rem;
}

nav a,
.site-footer a {
  transition: color 160ms ease;
}

nav a:hover,
.site-footer a:hover {
  color: var(--clay);
}

.header-action,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.header-action,
.primary-button {
  color: #fff;
  background: var(--ink);
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.hero {
  padding: clamp(24px, 4vw, 44px) var(--page-pad) 36px;
}

.listing-hero {
  display: grid;
  gap: 24px;
}

.listing-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
}

.listing-title-row p:not(.kicker) {
  max-width: 760px;
}

.kicker {
  margin: 0 0 10px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3.1rem, 6.4vw, 5.8rem);
}

h2 {
  font-size: clamp(2rem, 3.4vw, 3.15rem);
}

.listing-title-row p:not(.kicker),
.section-copy,
.availability-copy p {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.airbnb-photo-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(190px, 224px));
  gap: 8px;
  min-height: 448px;
}

.photo-tile,
.feature-tile button {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}

.photo-tile-main {
  grid-row: span 2;
}

.photo-tile:first-child {
  border-radius: 8px 0 0 8px;
}

.photo-tile:nth-child(3) {
  border-radius: 0 8px 0 0;
}

.photo-tile:nth-child(5) {
  border-radius: 0 0 8px 0;
}

.photo-tile img,
.feature-tile button img {
  transition: transform 220ms ease, filter 220ms ease;
}

.photo-tile:hover img,
.feature-tile button:hover img {
  transform: scale(1.035);
  filter: brightness(0.92);
}

.show-all-photos {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(31, 42, 36, 0.16);
}

.show-all-photos::before {
  content: "";
  width: 15px;
  height: 15px;
  margin-right: 9px;
  background:
    radial-gradient(circle, currentColor 2px, transparent 3px) 0 0 / 7px 7px,
    radial-gradient(circle, currentColor 2px, transparent 3px) 3.5px 3.5px / 7px 7px;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 var(--page-pad);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}

.amenities-section {
  padding: clamp(48px, 6vw, 76px) var(--page-pad);
  border-top: 1px solid var(--line);
  background: #eef0e9;
}

.amenity-grid,
.review-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.amenity-grid article,
.review-highlights article {
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.amenity-grid strong,
.amenity-grid span,
.review-highlights strong,
.review-highlights p {
  display: block;
}

.amenity-grid strong,
.review-highlights strong {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.amenity-grid span,
.review-highlights p {
  margin: 0;
  color: var(--muted);
}

.quick-facts article {
  min-height: 120px;
  padding: 22px;
  background: var(--surface);
}

.quick-facts strong,
.quick-facts span {
  display: block;
}

.quick-facts strong {
  margin-bottom: 8px;
  font-size: 1.04rem;
}

.quick-facts span {
  color: var(--muted);
}

.section,
.gallery-section,
.reviews,
.availability {
  padding: clamp(58px, 7vw, 88px) var(--page-pad);
}

.section,
.gallery-section,
.availability {
  border-top: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.58fr) minmax(430px, 0.82fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: start;
}

.split h2,
.section-heading h2 {
  max-width: 760px;
}

.section-copy {
  max-width: 680px;
}

.section-copy p:first-child {
  margin-top: 0;
}

.section-heading {
  display: grid;
  gap: 6px;
  max-width: 780px;
  margin-bottom: 24px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(210px, 260px);
  gap: 14px;
}

.feature-tile {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(31, 42, 36, 0.08);
}

.feature-tile button {
  text-align: left;
}

.feature-tile.large {
  grid-column: span 2;
  grid-row: span 2;
}

.feature-tile.wide {
  grid-column: span 2;
}

.feature-tile figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  padding: 8px 10px;
  border-radius: 8px;
  color: #fff;
  background: rgba(31, 42, 36, 0.78);
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.feature-tile button:hover figcaption,
.feature-tile button:focus-visible figcaption {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .feature-tile figcaption {
    transition: none;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vw, 54px);
  color: #fff;
  background: rgba(12, 16, 14, 0.94);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-figure {
  display: grid;
  gap: 12px;
  max-width: min(1120px, 86vw);
  max-height: 86vh;
  margin: 0;
}

.lightbox-figure img {
  width: auto;
  max-width: min(1120px, 86vw);
  height: auto;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.lightbox-figure figcaption {
  display: grid;
  gap: 6px;
  max-width: 760px;
  margin: 0 auto;
  color: #eef2ee;
  text-align: center;
}

.lightbox-figure figcaption strong,
.lightbox-figure figcaption span {
  display: block;
}

.lightbox-figure figcaption strong {
  font-weight: 800;
}

.lightbox-figure figcaption span {
  color: #cbd4cd;
  font-size: 0.95rem;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.lightbox-close {
  top: 22px;
  right: 22px;
  width: 48px;
  height: 48px;
  font-size: 2rem;
}

.lightbox-nav {
  top: 50%;
  width: 54px;
  height: 54px;
  transform: translateY(-50%);
  font-size: 2.5rem;
}

.lightbox-prev {
  left: 22px;
}

.lightbox-next {
  right: 22px;
}

.lightbox-count {
  position: absolute;
  left: 22px;
  bottom: 20px;
  color: #eef2ee;
  font-weight: 800;
}

.reviews {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--ink);
  color: #fff;
}

.reviews .kicker {
  color: var(--sun);
}

.airbnb-review-panel {
  display: grid;
  grid-template-columns: minmax(250px, 0.38fr) minmax(280px, 0.36fr) minmax(220px, 0.26fr);
  gap: 1px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
}

.airbnb-score,
.rating-breakdown,
.review-topics {
  padding: 24px;
  background: #fff;
  color: var(--ink);
}

.score-number {
  display: block;
  font-size: clamp(3.4rem, 7vw, 5.8rem);
  font-weight: 900;
  line-height: 0.92;
}

.airbnb-score strong {
  display: block;
  margin-top: 8px;
  font-size: 1.18rem;
}

.airbnb-score p {
  margin: 10px 0 18px;
  color: var(--muted);
}

.review-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 8px;
  color: #fff;
  background: #ff385c;
  font-weight: 800;
}

.rating-breakdown {
  display: grid;
  gap: 12px;
}

.rating-breakdown div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.rating-breakdown div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.rating-breakdown span {
  color: var(--muted);
}

.review-topics {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 10px;
}

.review-topics span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper);
  font-weight: 800;
}

.airbnb-review-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.airbnb-review-cards article {
  min-height: 230px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.airbnb-review-cards div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.airbnb-review-cards div div {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
  margin-bottom: 0;
}

.airbnb-review-cards strong,
.airbnb-review-cards span {
  display: block;
}

.airbnb-review-cards span {
  color: #c4ccc5;
  font-size: 0.9rem;
}

.airbnb-review-cards article > div > div > span {
  white-space: normal;
}

.airbnb-review-cards p {
  margin: 0;
  color: #eef2ee;
}

.review-stars {
  flex: 0 0 auto;
  color: var(--sun);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.review-load-error {
  color: #eef2ee;
}

.availability {
  display: grid;
  grid-template-columns: minmax(300px, 0.62fr) minmax(420px, 0.82fr);
  gap: clamp(24px, 5vw, 68px);
  align-items: start;
}

.availability-copy {
  max-width: 520px;
}

.booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.calendar-card {
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.calendar-head {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  text-align: center;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
}

.icon-button span {
  font-size: 1.8rem;
  line-height: 1;
}

.calendar-status {
  min-height: 24px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-cell {
  display: grid;
  place-items: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--paper);
  font-weight: 700;
}

.calendar-cell.weekday {
  min-height: 30px;
  border-color: transparent;
  background: transparent;
  color: var(--ink);
  font-size: 0.78rem;
}

.calendar-cell.day {
  color: var(--ink);
}

.calendar-cell.booked {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.calendar-cell.today {
  outline: 2px solid var(--sun);
  outline-offset: 2px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 28px var(--page-pad);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.site-footer strong {
  color: var(--ink);
}

.airvalik-home {
  display: none;
  min-height: calc(100vh - 72px);
  padding: clamp(42px, 7vw, 84px) var(--page-pad);
  background: var(--paper);
}

.show-listings-home main,
.show-listings-home .site-footer {
  display: none;
}

.show-listings-home .airvalik-home {
  display: block;
}

.airvalik-home-head {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-bottom: 32px;
}

.airvalik-home-head img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  filter: drop-shadow(0 0 7px rgba(231, 180, 81, 0.34));
}

.airvalik-home-head h1 {
  font-size: clamp(2.8rem, 5.8vw, 5.4rem);
}

.airvalik-home-head p:not(.kicker) {
  max-width: 520px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.listing-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  align-content: start;
  gap: 16px;
}

.listing-card {
  align-self: start;
  height: fit-content;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(31, 42, 36, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.listing-card:hover,
.listing-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(31, 42, 36, 0.14);
  outline: none;
}

.listing-card > img {
  aspect-ratio: 4 / 3;
}

.listing-card-body {
  padding: 0;
}

.listing-card-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--line);
}
.listing-card-fact {
  display: grid;
  min-width: 0;
  min-height: 76px;
  grid-template-rows: 24px auto;
  place-items: center;
  gap: 6px;
  padding: 12px 6px 13px;
  text-align: center;
}

.listing-card-fact + .listing-card-fact {
  border-left: 1px solid var(--line);
}

.listing-card-fact svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.listing-card-fact-label {
  color: var(--ink);
  font-size: clamp(0.68rem, 1.3vw, 0.8rem);
  font-weight: 650;
  line-height: 1.2;
}


.dev-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 120;
  display: none;
  width: min(760px, 100vw);
  height: 100vh;
  color: var(--ink);
  background: #fbfaf6;
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 60px rgba(31, 42, 36, 0.18);
}

.dev-mode .dev-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.dev-panel-head,
.dev-panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.dev-panel-foot {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.dev-panel-head strong,
.dev-panel-head span {
  display: block;
}

.dev-panel-head span {
  color: var(--muted);
  font-size: 0.9rem;
}

.dev-close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
  font-size: 1.4rem;
}

.dev-panel-body {
  overflow: auto;
  padding: 16px 18px 24px;
}

.dev-field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.dev-field input,
.dev-image-card select,
.dev-image-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.dev-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.82fr);
  gap: 14px;
}

.dev-split h3 {
  margin: 10px 0;
  font-size: 1rem;
}

.dev-image-list,
.dev-glance-list {
  display: grid;
  gap: 10px;
}

.dev-image-card,
.dev-glance-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.dev-glance-card {
  cursor: grab;
}

.dev-glance-card.is-hero {
  border-color: var(--sun);
  box-shadow: 0 0 0 2px rgba(231, 180, 81, 0.22);
}

.dev-image-card img,
.dev-glance-card img {
  width: 92px;
  height: 78px;
  border-radius: 8px;
}

.dev-image-card strong,
.dev-glance-card strong,
.dev-glance-card span {
  display: block;
}

.dev-image-card strong,
.dev-glance-card strong {
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.dev-glance-card span {
  color: var(--muted);
  font-size: 0.8rem;
}

.dev-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.dev-card-actions button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 9px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  font-size: 0.78rem;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    display: none;
  }

  .hero,
  .split,
  .availability {
    grid-template-columns: 1fr;
  }

  .listing-title-row {
    grid-template-columns: 1fr;
  }

  .airbnb-photo-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(300px, 52vw) repeat(2, minmax(180px, 26vw));
    min-height: auto;
  }

  .photo-tile-main {
    grid-column: span 2;
    grid-row: auto;
  }

  .photo-tile:first-child {
    border-radius: 8px 8px 0 0;
  }

  .photo-tile:nth-child(3) {
    border-radius: 0;
  }

  .photo-tile:nth-child(4) {
    border-radius: 0 0 0 8px;
  }

  .photo-tile:nth-child(5) {
    border-radius: 0 0 8px 0;
  }

  .quick-facts,
  .amenity-grid,
  .review-highlights,
  .airbnb-review-cards,
  .listing-card-grid,
  .poi-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .airbnb-review-panel {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 12px;
  }

  .header-action {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.88rem;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 4.8rem);
  }

  .airbnb-photo-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, minmax(230px, 68vw));
  }

  .photo-tile-main {
    grid-column: auto;
  }

  .photo-tile,
  .photo-tile:first-child,
  .photo-tile:nth-child(3),
  .photo-tile:nth-child(4),
  .photo-tile:nth-child(5) {
    border-radius: 8px;
  }

  .show-all-photos {
    right: 12px;
    bottom: 12px;
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.86rem;
  }

  .quick-facts,
  .amenity-grid,
  .review-highlights,
  .airbnb-review-cards,
  .listing-card-grid,
  .gallery-grid,
  .poi-list,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .feature-tile.large,
  .feature-tile.wide {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery-grid {
    grid-auto-rows: minmax(250px, 72vw);
  }
}

.poi-section {
  background: var(--paper);
}

.poi-planner {
  display: grid;
  gap: 18px;
}

.poi-controls,
.poi-filters,
.poi-map-panel,
.poi-card,
.poi-detail,
.poi-empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.poi-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  padding: 16px;
}

.poi-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
}

.poi-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.poi-filter span {
  color: var(--muted);
  font-size: 0.82rem;
}

.poi-filter.is-active {
  color: #fff;
  border-color: var(--ink);
  background: var(--ink);
}

.poi-filter.is-active span {
  color: rgba(255, 255, 255, 0.72);
}

.poi-detail {
  display: grid;
  gap: 12px;
  padding: 14px;
  box-shadow: 0 12px 30px rgba(31, 42, 36, 0.08);
}

.poi-detail[hidden] {
  display: none;
}

.poi-detail-layout {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.poi-detail-gallery-box {
  display: grid;
  gap: 8px;
  width: min(100%, 360px);
}

.poi-detail-main-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #eef0e9;
  cursor: zoom-in;
}

.poi-detail-main-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poi-detail-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.poi-detail-thumbs button {
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #eef0e9;
  cursor: pointer;
}

.poi-detail-thumbs button.is-active {
  border-color: var(--clay);
}

.poi-detail-thumbs img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poi-detail-copy {
  min-width: 0;
  max-height: 360px;
  overflow: auto;
  padding: 2px 4px 2px 0;
}

.poi-detail-copy span,
.poi-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.poi-detail-copy h3 {
  margin: 0 0 8px;
  font-size: 1.32rem;
  line-height: 1.18;
}

.poi-detail-copy p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.58;
}

.poi-detail-copy h3,
.poi-detail-copy h4,
.poi-detail-copy h5,
.poi-detail-copy h6 {
  margin: 14px 0 8px;
  color: var(--ink);
  line-height: 1.2;
}

.poi-detail-copy h3:first-child,
.poi-detail-copy h4:first-child,
.poi-detail-copy h5:first-child,
.poi-detail-copy h6:first-child {
  margin-top: 0;
}

.poi-detail-copy ul {
  display: grid;
  gap: 7px;
  margin: 0 0 14px 18px;
  padding: 0;
  color: var(--muted);
  line-height: 1.55;
}

.poi-detail-copy li strong,
.poi-detail-copy p strong,
.poi-detail-copy td strong,
.poi-detail-copy th strong {
  color: var(--ink);
}

.poi-markdown-table {
  overflow-x: auto;
  margin: 10px 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.poi-markdown-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 420px;
  background: #fff;
}

.poi-markdown-table th,
.poi-markdown-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-align: left;
  vertical-align: top;
}

.poi-markdown-table th {
  color: var(--ink);
  background: var(--paper);
  font-weight: 800;
}

.poi-markdown-table tr:last-child td {
  border-bottom: 0;
}

.poi-map-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  width: 100%;
}

.poi-map-panel strong {
  font-size: 1rem;
}

.poi-map-panel iframe {
  display: block;
  width: 100% !important;
  height: clamp(420px, 52vw, 640px) !important;
  min-height: 420px;
  border: 0;
  border-radius: 8px;
  background: #eef0e9;
}

.poi-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.poi-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-height: 160px;
  padding: 14px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(31, 42, 36, 0.06);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.poi-card:hover {
  border-color: var(--clay);
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(31, 42, 36, 0.11);
}

.poi-card.is-selected {
  border-color: var(--clay);
  box-shadow: 0 12px 30px rgba(182, 107, 78, 0.16);
}

.poi-media {
  display: grid;
  gap: 8px;
  align-content: start;
}

.poi-thumb {
  width: 100%;
  min-height: 0;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
  background: #eef0e9;
  cursor: pointer;
}

.poi-thumb-empty {
  display: grid;
  place-items: center;
  color: var(--clay);
  font-size: 2rem;
  font-weight: 900;
}

.poi-card-body {
  display: grid;
  align-content: start;
  min-width: 0;
}

.poi-card h3 {
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.2;
  cursor: pointer;
}

.poi-card h3:hover {
  color: var(--clay);
}

.poi-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.poi-read-more {
  display: inline;
  margin-left: 4px;
  padding: 0;
  border: 0;
  color: var(--clay);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.poi-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.poi-card-actions .primary-button,
.poi-card-actions .secondary-button {
  min-height: 40px;
  padding: 0 14px;
}

.poi-empty {
  grid-column: 1 / -1;
  padding: 24px;
  color: var(--muted);
}

.poi-image-viewer {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(16, 21, 18, 0.82);
}

.poi-image-viewer[hidden] {
  display: none;
}

.poi-image-viewer img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(92vw, 860px);
  max-height: min(82vh, 720px);
  object-fit: contain;
  border-radius: 8px;
  background: #101512;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.poi-image-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: #fff;
  background: rgba(16, 21, 18, 0.62);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.poi-image-nav:hover {
  background: rgba(16, 21, 18, 0.82);
}

.poi-image-prev {
  left: max(18px, calc((100vw - 960px) / 2));
}

.poi-image-next {
  right: max(18px, calc((100vw - 960px) / 2));
}

.poi-image-nav[hidden] {
  display: none;
}

.poi-image-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: #fff;
  background: rgba(16, 21, 18, 0.72);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 980px) {
  .poi-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .poi-card,
  .poi-detail-layout {
    grid-template-columns: 1fr;
  }

  .poi-detail-gallery-box {
    width: 100%;
  }

  .poi-detail-copy {
    max-height: none;
  }

  .poi-map-panel iframe {
    height: 420px !important;
    min-height: 420px;
  }
}
