@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #0f172a;
  --panel: #111827;
  --accent: #22d3ee;
  --accent-strong: #0ea5e9;
  --text: #e5e7eb;
  --muted: #94a3b8;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', 'Helvetica Neue', sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.08), transparent 30%),
    radial-gradient(circle at 80% 0%, rgba(14, 165, 233, 0.12), transparent 35%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
  line-height: 1.1;
  transition: color 120ms ease;
}

.brand:hover {
  color: var(--accent);
}

.brand-text {
  text-align: center;
}

.language-wrapper {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: 8px;
}

.language-select {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.language-select option {
  color: #0b1224;
}

main {
  padding: 48px 20px 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.hero {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.1;
}

p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: #b3ecff;
  padding: 4px 8px;
  border-radius: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  background: var(--accent);
  color: #0b1224;
  transition: transform 120ms ease, box-shadow 180ms ease, background 120ms ease;
  box-shadow: 0 15px 40px rgba(34, 211, 238, 0.16);
}

.button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: none;
}

.button:hover {
  transform: translateY(-2px);
}

.nav-admin {
  position: relative;
  display: inline-flex;
}

.nav-admin-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 50;
  min-width: 220px;
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

.nav-admin-item.button.secondary {
  width: 100%;
  justify-content: flex-start;
}

.nav-admin-badge {
  margin-left: 6px;
  background: #ff7043;
  color: #fff;
  border-radius: 10px;
  padding: 2px 6px;
  font-size: 12px;
  line-height: 1.2;
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.25);
}

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

.search-grid label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

.map-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

.latest-panel {
  margin-top: 20px;
}

.latest-carousel {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.carousel-window {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.carousel-track {
  display: flex;
  transition: transform 500ms ease;
  width: 100%;
}

.carousel-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
}

.latest-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 240px;
}

.latest-cover.placeholder {
  background: linear-gradient(130deg, rgba(34, 211, 238, 0.12), rgba(14, 165, 233, 0.12));
}

.latest-meta {
  padding: 14px;
  display: grid;
  gap: 6px;
}

.dot-row {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.4);
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease;
}

.dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

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

.map-frame {
  position: relative;
  width: 100%;
  height: 420px;
  min-height: 360px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.map-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.04), rgba(14, 165, 233, 0.06));
  color: var(--muted);
  z-index: 1;
}

.listing-card {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.01);
  transition: border-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.listing-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.listing-card.active {
  border-color: var(--accent-strong);
  box-shadow: 0 14px 40px rgba(14, 165, 233, 0.22);
}

.listing-shell {
  display: grid;
  gap: 16px;
}

.listing-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: 2fr 1fr;
}

.listing-main {
  display: grid;
  gap: 12px;
}

.listing-aside {
  display: grid;
  gap: 10px;
  align-self: start;
  position: sticky;
  top: 24px;
}

.fact-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
}

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

.amenity-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.02);
}

.amenity-icon {
  font-size: 18px;
}

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

.amenity-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.04));
  cursor: pointer;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease, background 120ms ease;
  color: var(--text);
  width: 100%;
  text-align: left;
}

.amenity-option:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.amenity-option.selected {
  border-color: var(--accent-strong);
  box-shadow: 0 12px 36px rgba(14, 165, 233, 0.2);
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.08), rgba(14, 165, 233, 0.12));
}

.amenity-option-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.amenity-emoji {
  font-size: 20px;
}

.amenity-name {
  color: var(--text);
}

.amenity-check {
  width: 26px;
  height: 26px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #0b1224;
  background: rgba(255, 255, 255, 0.8);
}

.amenity-ev {
  border: 1px dashed rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  padding: 12px 14px;
  display: grid;
  gap: 8px;
}

.amenity-ev-label {
  font-weight: 700;
  color: var(--muted);
}

.ev-toggle-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ev-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}

.ev-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.ev-toggle.active {
  background: var(--accent);
  color: #0b1224;
  border-color: var(--accent-strong);
  box-shadow: 0 10px 28px rgba(34, 211, 238, 0.2);
}

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

.site-footer {
  padding: 18px 20px 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  margin-top: 32px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.footer-text code {
  font-size: 12px;
}

.footer-cookie {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.privacy-block ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #cbd5e1;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.card-title {
  margin: 0 0 6px;
  font-size: 18px;
}

.meta-grid {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

code {
  background: rgba(148, 163, 184, 0.1);
  padding: 3px 6px;
  border-radius: 8px;
  font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
}

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

label {
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  padding: 12px 14px;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 15px;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

select {
  width: 100%;
  height: 44px;
  padding: 10px 14px;
  padding-right: 36px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 15px;
  line-height: 1.3;
  transition: border-color 120ms ease, box-shadow 120ms ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 12px center, right 6px center;
  background-size: 7px 7px;
  background-repeat: no-repeat;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2);
}

@media (max-width: 640px) {
  main {
    padding: 32px 16px 64px;
  }

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

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

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

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

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

  .listing-aside {
    position: static;
  }
}
