:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --panel: #ffffff;
  --border: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --primary: #0f766e;
  --primary-strong: #0d5e59;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  /* Prevent layout jumps when scrollbars appear/disappear */
  scrollbar-gutter: stable;
  overflow-y: scroll;
}

h1, h2, h3 {
  margin: 0;
  color: var(--text);
}

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

a {
  color: var(--primary);
  text-decoration: none;
}

.hero {
  background: radial-gradient(circle at 12% 20%, rgba(11, 26, 38, 0.10), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(11, 26, 38, 0.12), transparent 30%),
    #6abcff;
  color: #ffffff;
  padding: 72px 20px 60px;
}

.hero__content {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.hero__text {
  flex: 1;
  min-width: 0;
}

.hero__logo {
  width: clamp(110px, 12vw, 150px);
  height: auto;
  display: block;
  margin: 0;
  flex: 0 0 auto;
}

.hero__eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 8px;
}

.hero h1 {
  color: #ffffff;
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 12px;
}

.hero__subhead {
  color: rgba(255, 255, 255, 0.88);
  max-width: 640px;
}

.info-title-link {
  color: inherit;
  text-decoration: none;
}

.info-title-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .hero__content {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .hero__logo {
    display: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.btn-primary {
  background: #fefefe;
  color: var(--primary-strong);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
}

.layout {
  max-width: 1200px;
  margin: -40px auto 40px;
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 18px;
}

.search-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-header h2 {
  font-size: 18px;
  margin-bottom: 6px;
}

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

.searchbar input {
  width: 100%;
  padding: 14px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 15px;
  transition: border-color 120ms ease, box-shadow 120ms ease;
  outline: none;
}

.search-options {
  margin-top: 4px;
}

.toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
}

.searchbar input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18);
}

.search-status {
  font-size: 13px;
  color: var(--muted);
}

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

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

.chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #f5f7fa;
  color: var(--text);
  padding: 8px 12px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 120ms ease;
}

.chip:hover {
  background: #eef1f5;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 12px 16px;
}

.btn-secondary {
  background: #eef1f5;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
}

.drawer {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fdfdfd;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.drawer-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

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

.field-with-suggestions {
  position: relative;
}

.suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  list-style: none;
  margin: 0;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-height: 220px;
  overflow-y: auto;
  z-index: 10;
  display: none;
}

.suggestions.show {
  display: block;
}

.suggestions li {
  padding: 10px 12px;
  font-size: 15px;
  cursor: pointer;
  border-radius: 8px;
}

.suggestions li:hover {
  background: #eef1f5;
}

.field-label {
  font-size: 13px;
  color: var(--muted);
}

.field input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 14px;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18);
}

.field input:disabled {
  background: #f4f4f5;
  cursor: not-allowed;
}

.drawer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.map-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
}

#map {
  width: 100%;
  height: clamp(400px, 50vh, 600px);
  border-radius: 12px;
  overflow: hidden;
}

.info-panel {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fafafa;
  padding: 14px;
  overflow-y: visible;
  overflow-x: hidden;
  max-height: none;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.info-empty,
.info-loading {
  color: var(--muted);
  font-size: 14px;
}

.info-content {
  max-width: 100%;
  overflow: hidden;
}

.info-content h3 {
  margin: 6px 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.pill {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 118, 110, 0.1);
  color: var(--primary-strong);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.info-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-top: 8px;
}

.info-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.info-links .link {
  font-weight: 600;
}

.rating-summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--text);
}

.rating-stars {
  display: inline-flex;
  gap: 2px;
  font-size: 16px;
  color: #d1d5db;
}

.rating-stars .star.filled {
  color: #f59e0b;
}

.reviews-section {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 100%;
  overflow: hidden;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 100%;
}

.review-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  word-wrap: break-word;
  overflow-wrap: break-word;
  overflow: hidden;
}

.review-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.review-card__meta {
  font-size: 12px;
  color: var(--muted);
}

.review-form h5 {
  margin: 0 0 6px 0;
}

.rating-picker {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 8px;
}

.star-btn {
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  color: #d1d5db;
  transition: color 120ms ease, transform 120ms ease;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.star-btn.selected,
.star-btn:hover {
  color: #f59e0b;
  transform: translateY(-1px);
}

.review-form .field textarea {
  resize: vertical;
  min-height: 80px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.review-form .btn {
  margin-top: 12px;
  min-height: 44px;
}

.review-status {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 960px) {
  #map {
    height: clamp(360px, 50vh, 520px);
  }
}

@media (max-width: 640px) {
  .layout {
    margin-top: -24px;
  }
  .panel {
    padding: 14px 14px;
  }
  .hero {
    padding: 56px 16px 52px;
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }
  .layout {
    margin-top: -20px;
    padding: 0 14px 14px;
  }
  .panel {
    padding: 12px 12px;
  }
  .hero {
    padding: 44px 14px 40px;
  }
  .hero h1 {
    font-size: clamp(24px, 6vw, 32px);
  }
  .map-panel {
    padding: 12px;
  }
  #map {
    height: clamp(300px, 45vh, 480px);
  }
  .info-panel {
    max-height: none;
    overflow-y: visible;
    padding: 12px;
  }
  .drawer-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .drawer-actions {
    justify-content: stretch;
  }
  .drawer-actions .btn {
    flex: 1;
    text-align: center;
  }
  .suggestions {
    max-height: 260px;
  }
  .suggestions li {
    padding: 12px 14px;
  }
  .chip {
    padding: 8px 12px;
    font-size: 14px;
  }
  .searchbar input,
  .field input {
    padding: 14px 14px;
    font-size: 15px;
  }

  .review-form .btn {
    width: 100%;
    min-height: 48px;
  }

  .star-btn {
    font-size: 24px;
  }
}

