:root {
  --ink: #0f172a;
  --muted: #64748b;
  --blue: #2169c8;
  --blue-hover: #1956a6;
  --blue-light: #eaf2fc;
  --gold: #f2ae17;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --shadow: 0 10px 30px rgba(20, 35, 60, 0.08);
  --shadow-sm: 0 4px 14px rgba(20, 35, 60, 0.05);
  --radius: 14px;
}
h1 {
  font-family: "Bevan", serif;
  font-style: normal;
  font-size: 4em;
}

* {
  box-sizing: border-box;
}
.city-hero .crumbs {
  display: none;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fbfcfe;
  line-height: 1.55;
}

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

button, input, select, textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: auto;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  white-space: nowrap;
}

.brand img {
  width: 175px;
  height: 60px;
  object-fit: contain;
  display: block;
}

.navlinks {
  display: flex;
  gap: 28px;
  font-weight: 700;
  font-size: 15px;
}

.navlinks a {
  transition: color 0.15s ease;
}

.navlinks a:hover,
.navlinks a.active {
  color: var(--blue);
}

.menu-btn {
  display: none;
  border: 0;
  background: none;
  font-size: 27px;
  cursor: pointer;
}

/* ХЛІБНІ КРИХТИ */
.crumbs {
  padding: 18px 0 6px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.crumbs a {
  color: var(--blue);
  font-weight: 600;
}

.crumbs a:hover {
  text-decoration: underline;
}

.crumbs span {
  margin: 0 4px;
  color: #a0aec0;
}

/* =========================================
   НОВИЙ HERO СЕКЦІЯ ГОЛОВНОЇ СТОРІНКИ
   ========================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: 55px 0 45px;
  text-align: center;
}

.hero-home {
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
}

.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  opacity: 0.55;
  z-index: 1;
}

.hero-glow-blue {
  top: -180px;
  left: 12%;
  background: radial-gradient(circle, rgba(33, 105, 200, 0.35) 0%, transparent 70%);
}

.hero-glow-gold {
  top: -140px;
  right: 15%;
  background: radial-gradient(circle, rgba(242, 174, 23, 0.3) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #dbeafe;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  color: #1e40af;
  box-shadow: 0 4px 14px rgba(30, 64, 175, 0.08);
  margin-bottom: 18px;
}

.badge-sparkle {
  font-size: 14px;
}

.hero-title {
  font-size: clamp(38px, 6vw, 60px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -2px;
  color: #0f172a;
  margin: 0 auto 14px;
  max-width: 900px;
}

.hero-title-gradient {
  background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 45%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding-right: 4px;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.5;
  color: #475569;
  max-width: 720px;
  margin: 0 auto 30px;
  font-weight: 450;
}

.hero-subtitle strong {
  color: #0f172a;
  font-weight: 700;
}

.subtitle {
  font-size: 13px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 16px;
}

.hero-cities-wrapper {
  max-width: 1050px;
  margin: 0 auto 28px;
}

/* СІТКА КАРТОК МІСТ */
.city-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.city-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  min-height: 165px;
  display: flex;
  align-items: flex-end;
  background: #cbd5e1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.city-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
}

.city-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(0deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.08) 65%), var(--city-image);
  background-size: cover;
  background-position: center;
  z-index: -1;
  transition: transform 0.35s ease;
}

.city-card:hover:before {
  transform: scale(1.08);
}

.city-card span {
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  padding: 12px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  width: 100%;
  text-align: left;
}

/* ПЛАВАЮЧИЙ ПОШУК НА ГОЛОВНІЙ */
.searchbar {
  display: flex;
  gap: 10px;
  max-width: 840px;
  margin: 0 auto 18px;
  background: #ffffff;
  padding: 8px;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
  border: 1px solid #e2e8f0;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.searchbar:focus-within {
  box-shadow: 0 20px 45px rgba(33, 105, 200, 0.16);
  border-color: #93c5fd;
}

.search-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrap .search-icon {
  position: absolute;
  left: 14px;
  opacity: 0.5;
  font-size: 16px;
  pointer-events: none;
}

.searchbar input {
  width: 100%;
  height: 52px;
  border: none;
  background: #f8fafc;
  border-radius: 12px;
  padding: 0 16px 0 44px;
  font-size: 15px;
  color: #0f172a;
  outline: none;
  transition: background 0.2s;
}

.searchbar input:focus {
  background: #ffffff;
}

.searchbar select {
  height: 52px;
  min-width: 170px;
  border: none;
  background: #f8fafc;
  border-radius: 12px;
  padding: 0 16px;
  font-size: 15px;
  color: #334155;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  padding: 0 24px;
  min-height: 52px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(33, 105, 200, 0.22);
  transition: background 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}

.btn:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
}

.btn-hero-search {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  font-size: 15px;
}

.btn-hero-search:hover {
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

/* ШВИДКІ ТРЕНДОВІ ЧІПСИ */
.hero-quick-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-chip {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.quick-chip:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.12);
}

/* =========================================
   КАРТКИ ЗАКЛАДІВ ТА ПОДІЙ
   ========================================= */
.section {
  padding: 38px 0;
}

.section-title {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 18px;
  letter-spacing: -0.5px;
}

.section-sub {
  color: var(--muted);
  font-size: 15px;
  margin: -8px 0 20px;
  max-width: 720px;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card.event-card,
.card.event-card-vertical,
.event-card,
.event-card-vertical,
.card.place-card,
.place-card {
  display: flex !important;
  flex-direction: column !important;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(20, 35, 60, 0.12);
  border-color: #bcd4f5;
}

/* ВИПРАВЛЕНО: додано .event-card .photo та встановлено гарантовану ширину/висоту для фото */
.place-card .photo,
.event-card .photo,
.event-card-vertical .photo,
.top-img {
  position: relative;
  width: 100% !important;
  min-width: 100% !important;
  height: 190px !important;
  background-color: #f1f5f9;
  background-image: url("../assets/place-placeholder.svg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  flex-shrink: 0;
  overflow: hidden;
  display: block;
}

.place-card-large .photo {
  height: 200px;
}

/* ВИПРАВЛЕНО: додано .event-card .photo > span для відображення дати поверх фото */
.place-card .photo > span:not(.city-tag),
.event-card .photo > span:not(.city-tag),
.event-card-vertical .photo > span:not(.city-tag) {
  position: absolute;
  left: 10px;
  bottom: 10px;
  top: auto;
  right: auto;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(4px);
  max-width: calc(100% - 20px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

/* ВИПРАВЛЕНО: додано .event-card .photo .free-badge */
.place-card .photo .free-badge,
.event-card .photo .free-badge,
.event-card-vertical .photo .free-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  bottom: auto;
  right: auto;
  width: auto;
  height: auto;
  background: #22c55e;
  color: #fff;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(22, 101, 52, 0.25);
  z-index: 3;
}

.free-detail-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 10px 0 2px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
  font-size: 13px;
  font-weight: 800;
}

.free-note {
  margin: 12px 0 18px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f0fdf4;
  color: #166534;
  font-size: 13px;
  border: 1px solid #dcfce7;
}

.place-card .photo .city-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: auto;
  left: auto;
  width: auto;
  height: auto;
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  text-transform: capitalize;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  z-index: 2;
}

.card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-body h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.25;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}

.meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
  min-height: 34px;
}

.address {
  font-size: 12px;
  color: #4e5b70;
  margin-top: auto;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rating {
  color: var(--gold);
  font-weight: 800;
  font-size: 13px;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.rating small {
  color: var(--muted);
  font-weight: 500;
  font-size: 11px;
}

.rating-placeholder {
  min-height: 20px;
  margin-top: auto;
}

.map-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 800;
  font-size: 13px;
}

.map-link:hover {
  text-decoration: underline;
}

/* ==================================================
   СТИЛІ ДЛЯ СТОРІНКИ ПОШУКУ (SEARCH.HTML)
   ================================================== */
.search-page {
  padding-bottom: 50px;
}

.search-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.page-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 900;
  margin: 0 0 6px;
  letter-spacing: -1px;
}

.results-counter {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-light);
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ПАНЕЛЬ ФІЛЬТРІВ У ПОШУКУ */
.listing-toolbar {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.2fr;
  gap: 12px;
  background: #fff;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}

.toolbar-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.toolbar-icon {
  position: absolute;
  left: 14px;
  pointer-events: none;
  font-size: 15px;
  opacity: 0.5;
}

.listing-toolbar input {
  width: 100%;
  height: 48px;
  border: 1px solid #d9e2ec;
  border-radius: 10px;
  padding: 0 16px 0 42px;
  font-size: 14px;
  background: #f8fafc;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.listing-toolbar select {
  width: 100%;
  height: 48px;
  border: 1px solid #d9e2ec;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14px;
  background: #f8fafc;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.listing-toolbar input:focus,
.listing-toolbar select:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(33, 105, 200, 0.12);
}

/* СІТКА ЗНАЙДЕНИХ МІСЦЬ */
.place-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed #edf2f7;
}

.card-footer-row .map-link {
  margin-top: 0;
}

/* КОЛИ НІЧОГО НЕ ЗНАЙДЕНО */
.empty-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: 16px;
  border: 1px dashed #cbd5e1;
}

.empty-icon {
  font-size: 42px;
  margin-bottom: 12px;
}

.empty-results h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 8px;
}

.empty-results p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

/* GOOGLE PLACES СЕКЦІЯ */
.google-search-section {
  margin-top: 28px;
  padding: 32px;
  background: linear-gradient(180deg, #ffffff, #f4f8fd);
  border-radius: 20px;
  border: 1px solid #dbe7f5;
  box-shadow: var(--shadow-sm);
}

.google-badge {
  display: none;
  background: #e0edff;
  color: #1a56a6;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.google-search-row {
  display: flex;
  gap: 12px;
  margin: 20px 0 24px;
}

.google-search-row input {
  display: none;
  flex: 1;
  height: 52px;
  border: 1px solid #cfdceb;
  border-radius: 12px;
  padding: 0 18px;
  font-size: 15px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  outline: none;
}

.google-search-row input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(33, 105, 200, 0.15);
}

.google-results {
  margin-bottom: 20px;
}

.google-map-results {
  margin-top: 16px;
}

/* КАРТИ */
.map-wrap {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(20, 35, 60, 0.08);
  margin: 16px 0;
  background: #edf4f9;
}

#city-map,
#google-map {
  width: 100%;
  height: 460px;
  background: #edf4f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 500;
}

/* =========================================
   CITY HERO (ДЛЯ СТОРІНОК МІСТ)
   ========================================= */
.city-hero {
  position: relative;
  min-height: 480px;
  background-color: #0f172a;
  background-image: 
    linear-gradient(90deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.82) 45%, rgba(15, 23, 42, 0.25) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.8) 0%, transparent 40%),
    var(--city-image);
  background-size: cover;
  background-position: center 40%;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 50px 0 40px;
  margin-bottom: 25px;
  box-shadow: inset 0 -20px 30px -10px rgba(15, 23, 42, 0.5);
}

.city-hero-content {
  max-width: 820px;
}

.hero-top-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.city-hero .crumbs {
  padding: 0;
  color: #94a3b8;
  font-size: 13px;
}

.city-hero .crumbs a {
  color: #60a5fa;
}

.city-status-badge {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #f8fafc;
}

.city-title {
  font-size: clamp(34px, 5.5vw, 56px);
  font-weight: 900;
  line-height: 1.08;
  margin: 0 0 12px;
  letter-spacing: -1.5px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.city-title .text-accent {
  background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 50%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.city-desc {
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.5;
  color: #cbd5e1;
  max-width: 640px;
  margin: 0 0 24px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.city-quick-search {
  max-width: 600px;
  margin-bottom: 28px;
}

.quick-input-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 6px 8px 6px 16px;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.quick-input-box:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  border-color: #38bdf8;
}

.quick-input-box .icon {
  font-size: 16px;
  margin-right: 10px;
  opacity: 0.6;
}

.quick-input-box input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 15px;
  color: #0f172a;
}

.btn-hero {
  min-height: 42px;
  padding: 0 20px;
  font-size: 14px;
  border-radius: 10px;
}

.city-stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 8px 14px;
  border-radius: 12px;
  color: #fff;
  transition: all 0.2s ease;
  text-decoration: none;
}

.stat-pill:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.stat-icon {
  font-size: 20px;
}

.stat-pill strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.stat-pill small {
  display: block;
  font-size: 11px;
  color: #94a3b8;
}

.stat-map-pill {
  background: rgba(33, 105, 200, 0.35);
  border-color: rgba(96, 165, 250, 0.4);
}

/* =========================================
   ТОП ВИБІР ТА FOOTER
   ========================================= */
.top-section {
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.top-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.top-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(20, 35, 60, 0.12);
}

/* ВИПРАВЛЕНО: .top-img займає 100% ширини картки на весь банер */
.top-img {
  position: relative;
  width: 100% !important;
  min-width: 100% !important;
  height: 200px !important;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  flex-shrink: 0;
  display: block;
}

.top-card .card-body {
  padding: 16px;
}

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

.map-cta {
  background: linear-gradient(135deg, #eff9f3, #eef7ff);
  padding: 45px 0;
}

.map-box {
  min-height: 150px;
  border-radius: 18px;
  background: linear-gradient(rgba(244, 250, 246, 0.92), rgba(244, 250, 246, 0.92)), url("../assets/map-placeholder.svg") center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid #dcebe1;
  padding: 24px;
}

.map-box h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.map-box p {
  margin: 0 0 16px;
  color: var(--muted);
}

.footer {
  background: #0f172a;
  color: #fff;
  margin-top: 50px;
}

.footer-inner {
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 35px;
}

.footer p,
.footer a {
  color: #94a3b8;
  font-size: 14px;
}

.footer a:hover {
  color: #fff;
}

.footer h4 {
  margin: 0 0 12px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  color: #64748b;
  font-size: 13px;
}

/* =========================================
   АДАПТИВНІСТЬ ДЛЯ ПЛАНШЕТІВ ТА СМАРТФОНІВ
   ========================================= */
@media (max-width: 1024px) {
  .place-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .listing-toolbar {
    grid-template-columns: 1fr 1fr;
  }
  .city-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .three-col {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 24px, 1180px);
  }
  .nav {
    height: 62px;
  }
  .navlinks {
    display: none;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  }
  .navlinks.open {
    display: flex;
  }
  .navlinks a {
    padding: 10px 14px;
  }
  .menu-btn {
    display: block;
  }
  .search-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .listing-toolbar {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 10px;
  }
  .place-grid {
    grid-template-columns: 1fr;
  }
  .searchbar {
    flex-direction: column;
    padding: 10px;
  }
  .searchbar select,
  .btn-hero-search {
    width: 100%;
  }
  .google-search-section {
    padding: 20px 16px;
  }
  .google-search-row {
    flex-direction: column;
  }
  .google-search-row .btn {
    width: 100%;
  }
  #city-map,
  #google-map {
    height: 350px;
  }
  .city-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .top-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .city-hero {
    min-height: auto;
    padding: 35px 0 30px;
  }
  .quick-input-box {
    flex-direction: column;
    padding: 10px;
    gap: 8px;
  }
  .quick-input-box input,
  .quick-input-box .btn-hero {
    width: 100%;
  }
  .city-stats-bar {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .city-stats-bar {
    grid-template-columns: 1fr;
  }
}

/* Посилання-кнопка Google Places */
.google-more {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.google-more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-height: 48px;
  padding: 12px 20px;

  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;

  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;

  cursor: pointer;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.google-more-link span {
  flex: 0 0 auto;
  font-size: 20px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.google-more-link:hover {
  color: #ffffff;
  background: #2563eb;
  border-color: #2563eb;
  box-shadow: 0 8px 20px rgb(37 99 235 / 22%);
  transform: translateY(-1px);
}

.google-more-link:hover span {
  transform: translateX(4px);
}

.google-more-link:active {
  box-shadow: 0 3px 10px rgb(37 99 235 / 18%);
  transform: translateY(0);
}

.google-more-link:focus-visible {
  outline: 3px solid rgb(59 130 246 / 35%);
  outline-offset: 3px;
}

/* Відкрита панель Google */
.google-more-link[aria-expanded="true"] {
  color: #ffffff;
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.google-more-link[aria-expanded="true"] span {
  transform: rotate(90deg);
}

/* Панель, яка з'являється після натискання */
.google-search-panel {
  margin-top: 24px;
  padding: 24px;
  text-align: left;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
}

.google-search-panel[hidden] {
  display: none;
}

/* Планшети */
@media (max-width: 768px) {
  .google-more {
    margin-top: 24px;
    padding-top: 20px;
  }

  .google-more-link {
    width: 100%;
    padding: 12px 16px;
  }

  .google-search-panel {
    margin-top: 18px;
    padding: 18px;
  }
}

/* Мобільні */
@media (max-width: 480px) {
  .google-more-link {
    align-items: center;
    min-height: 52px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 14px;
  }

  .google-more-link span {
    font-size: 18px;
  }

  .google-search-panel {
    padding: 14px;
    border-radius: 12px;
  }

  .google-search-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .google-search-row input,
  .google-search-row .btn {
    width: 100%;
  }
}

/* Менше анімацій для користувачів, які їх вимкнули */
@media (prefers-reduced-motion: reduce) {
  .google-more-link,
  .google-more-link span {
    transition: none;
  }
}
/* Доступні лише для скринрідерів підписи */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  border: 0;
}

/* Основна панель фільтрів */
.listing-toolbar {
  display: grid;
  grid-template-columns:
    minmax(260px, 2fr)
    minmax(150px, 0.8fr)
    minmax(160px, 0.8fr)
    max-content
    minmax(180px, 0.9fr)
    max-content;
  align-items: center;
  gap: 12px;

  margin: 24px 0 30px;
  padding: 16px;

  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgb(15 23 42 / 7%);
}

/* Поле основного пошуку */
.toolbar-input-wrap {
  position: relative;
  min-width: 0;
}

.toolbar-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  z-index: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 20px;
  height: 20px;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
}

.toolbar-input-wrap input {
  width: 100%;
  padding-left: 46px;
  padding-right: 38px;
}

/* Однакова базова стилізація полів */
.listing-toolbar input[type="search"],
.listing-toolbar select {
  min-width: 0;
  height: 48px;
  padding-top: 0;
  padding-bottom: 0;

  color: #0f172a;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;

  font: inherit;
  font-size: 15px;
  line-height: 1;

  outline: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.listing-toolbar input[type="search"] {
  appearance: none;
}

.listing-toolbar input[type="search"]::placeholder {
  color: #64748b;
  opacity: 1;
}

/* Прибирає стандартний хрестик у деяких браузерах */
.listing-toolbar input[type="search"]::-webkit-search-cancel-button {
  margin-right: 2px;
  cursor: pointer;
}

/* Власна стрілка для select */
.listing-toolbar select {
  width: 100%;
  padding-right: 38px;
  padding-left: 14px;

  appearance: none;
  cursor: pointer;

  background-image:
    linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 21px,
    calc(100% - 12px) 21px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.listing-toolbar input[type="search"]:hover,
.listing-toolbar select:hover {
  background-color: #ffffff;
  border-color: #94a3b8;
}

.listing-toolbar input[type="search"]:focus,
.listing-toolbar select:focus {
  background-color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgb(37 99 235 / 14%);
}

/* Фільтр "Безкоштовно" */
.filter-check {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;
  padding: 0 15px;

  color: #334155;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;

  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;

  cursor: pointer;
  user-select: none;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.filter-check input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.filter-check:hover {
  background: #ffffff;
  border-color: #94a3b8;
}

.filter-check:has(input:focus-visible) {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgb(37 99 235 / 14%);
}

.filter-check:has(input:checked) {
  color: #166534;
  background: #dcfce7;
  border-color: #86efac;
}

.filter-check:has(input:checked) span::after {
  content: " ✓";
}

/* Кнопка скидання */
.filter-reset {
  min-height: 48px;
  padding: 0 16px;

  color: #475569;
  background: transparent;
  border: 1px solid #cbd5e1;
  border-radius: 10px;

  font: inherit;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;

  cursor: pointer;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.filter-reset:hover {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fecaca;
}

.filter-reset:focus-visible {
  outline: none;
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgb(239 68 68 / 14%);
}

.filter-reset[hidden] {
  display: none;
}

/* Невеликі ноутбуки та планшети */
@media (max-width: 1100px) {
  .listing-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar-input-wrap {
    grid-column: 1 / -1;
  }

  .filter-check,
  .filter-reset {
    width: 100%;
  }
}

/* Мобільні пристрої */
@media (max-width: 640px) {
  .listing-toolbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;

    margin: 18px 0 24px;
    padding: 12px;
    border-radius: 14px;
  }

  .toolbar-input-wrap {
    grid-column: auto;
  }

  .listing-toolbar input[type="search"],
  .listing-toolbar select,
  .filter-check,
  .filter-reset {
    width: 100%;
    min-height: 50px;
  }

  .filter-check,
  .filter-reset {
    justify-content: flex-start;
    padding-right: 14px;
    padding-left: 14px;
  }
}

/* Дуже вузькі екрани */
@media (max-width: 380px) {
  .listing-toolbar {
    margin-right: -4px;
    margin-left: -4px;
    padding: 10px;
  }

  .listing-toolbar input[type="search"],
  .listing-toolbar select {
    font-size: 14px;
  }

  .toolbar-input-wrap input {
    padding-left: 42px;
  }

  .toolbar-icon {
    left: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .listing-toolbar input,
  .listing-toolbar select,
  .filter-check,
  .filter-reset {
    transition: none;
  }
}

/* ==================================================
   ДЕТАЛЬНА СТОРІНКА ЗАКЛАДУ (PLACE.HTML) ТА ВІДГУКИ
   ================================================== */
.place-page {
  padding: 24px 0 60px;
}

.place-page-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.place-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.place-back-btn:hover {
  color: var(--blue);
  border-color: #93c5fd;
  background: var(--blue-light);
  transform: translateX(-2px);
}

/* HERO / ГОЛОВНИЙ БАНЕР ЗАКЛАДУ */
.place-hero-cover {
  position: relative;
  width: 100%;
  min-height: 420px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  color: #ffffff;
  background-color: #0f172a;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  margin-bottom: 32px;
  isolation: isolate;
}

/* Градієнтне затемнення поверх фото */
.place-hero-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.45) 0%,
    rgba(15, 23, 42, 0.25) 40%,
    rgba(15, 23, 42, 0.92) 100%
  );
  z-index: 1;
}

.place-hero-top,
.place-hero-bottom {
  position: relative;
  z-index: 2;
}

.place-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.place-badges-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.badge-place-type {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-place-free {
  background: #10b981;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.badge-place-status {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
  border: 1px solid rgba(134, 239, 172, 0.4);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-place-status::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 8px #4ade80;
}

.place-hero-rating {
  background: rgba(245, 158, 11, 0.95);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
}

.place-hero-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 10px;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  letter-spacing: -0.5px;
}

.place-hero-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #e2e8f0;
  font-size: 15px;
  font-weight: 500;
  flex-wrap: wrap;
}

.place-hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* СІТКА ОСНОВНОГО ВМІСТУ */
.place-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 32px;
  align-items: start;
}

.place-main-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.place-side-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 90px;
}

/* КАРТКИ БЛОКІВ */
.place-card-panel {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.panel-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.3px;
}

.place-description-text {
  font-size: 16px;
  line-height: 1.7;
  color: #334155;
  margin: 0 0 20px;
}

/* ЗРУЧНОСТІ / ТЕГИ */
.place-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.amenity-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}

/* САЙДБАР ІНФО-КАРТКА */
.side-info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-info-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.side-info-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.side-info-content h4 {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 0 0 4px;
}

.side-info-content p,
.side-info-content a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.4;
}

.side-info-content a:hover {
  color: var(--blue);
}

.btn-route-action {
  width: 100%;
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  padding: 14px 20px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
  transition: all 0.2s ease;
}

.btn-route-action:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
  color: #ffffff;
}

/* ==================================================
   СЕКЦІЯ ТА СПИСОК ВІДГУКІВ
   ================================================== */
.reviews-summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--line);
  padding: 24px 28px;
  border-radius: 18px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.rating-big-score {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rating-big-number {
  font-size: 48px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
}

.rating-big-stars {
  color: #f59e0b;
  font-size: 20px;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.rating-big-count {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.reviews-items-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.review-item-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  transition: border-color 0.2s ease;
}

.review-item-card:hover {
  border-color: #cbd5e1;
}

.review-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.review-author-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.2);
}

.review-author-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.review-verified-badge {
  color: #10b981;
  font-size: 12px;
  font-weight: 600;
  background: #ecfdf5;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid #a7f3d0;
}

.review-date {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.review-stars {
  color: #f59e0b;
  font-size: 15px;
  letter-spacing: 2px;
}

.review-comment-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: #334155;
  margin: 0;
}

/* ==================================================
   ФОРМА "ЗАЛИШИТИ ВІДГУК" (ПРИКРАШЕНА І ПРЕЗИДЕНТСЬКА)
   ================================================== */
.leave-review-section {
  position: relative;
  background: #ffffff;
  border: 2px solid transparent;
  background-clip: padding-box;
  border-radius: 22px;
  padding: 32px;
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

/* Декоративна градієнтна рамка-акцент */
.leave-review-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #2563eb 0%, #38bdf8 50%, #f59e0b 100%);
  border-radius: 22px 22px 0 0;
}

.leave-review-header {
  margin-bottom: 24px;
}

.leave-review-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.4px;
}

.leave-review-sub {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* ІНТЕРАКТИВНИЙ БЛОК ВИБОРУ ОЦІНКИ (ЗІРКИ) */
.rating-picker-box {
  background: #f8fafc;
  border: 1px solid var(--line);
  padding: 18px 20px;
  border-radius: 16px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.rating-picker-label {
  font-size: 14px;
  font-weight: 700;
  color: #334155;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rating-picker-hint {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.star-rating-widget {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 6px;
  cursor: pointer;
}

.star-rating-widget input[type="radio"] {
  display: none;
}

.star-rating-widget label {
  font-size: 32px;
  color: #cbd5e1;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
  line-height: 1;
}

.star-rating-widget label:hover,
.star-rating-widget label:hover ~ label,
.star-rating-widget input[type="radio"]:checked ~ label {
  color: #f59e0b;
  transform: scale(1.12);
}

.star-rating-status-text {
  font-size: 13px;
  font-weight: 800;
  color: #d97706;
  min-width: 90px;
  text-align: right;
}

/* ПОЛЯ ФОРМИ ВІДГУКУ */
.review-form-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.form-group-full {
  grid-column: 1 / -1;
}

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

.form-field-wrap label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon .field-icon {
  position: absolute;
  left: 14px;
  font-size: 16px;
  color: #94a3b8;
  pointer-events: none;
}

.input-with-icon input,
.form-field-wrap textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  outline: none;
  transition: all 0.2s ease;
}

.input-with-icon input {
  height: 48px;
  padding: 0 16px 0 42px;
}

.form-field-wrap textarea {
  padding: 14px 16px;
  min-height: 110px;
  resize: vertical;
  line-height: 1.5;
}

.input-with-icon input:focus,
.form-field-wrap textarea:focus {
  background: #ffffff;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

/* ТЕГИ ВРАЖЕНЬ */
.review-tags-picker {
  margin-bottom: 24px;
}

.review-tags-picker p {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin: 0 0 10px;
}

.review-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-checkbox {
  cursor: pointer;
  user-select: none;
}

.tag-checkbox input {
  display: none;
}

.tag-checkbox span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  transition: all 0.2s ease;
}

.tag-checkbox input:checked + span {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.15);
}

/* КНОПКА ВІДПРАВКИ ВІДГУКУ */
.review-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.review-policy-note {
  font-size: 12px;
  color: var(--muted);
  max-width: 320px;
  line-height: 1.4;
  margin: 0;
}

.btn-submit-review {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
  transition: all 0.2s ease;
}

.btn-submit-review:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
}

.btn-submit-review:active {
  transform: translateY(0);
}

/* ПОВІДОМЛЕННЯ ПРО УСПІШНЕ ДОДАВАННЯ */
.review-toast-success {
  display: none;
  margin-top: 18px;
  padding: 16px 20px;
  border-radius: 14px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 14px;
  font-weight: 600;
  align-items: center;
  gap: 12px;
  animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* АДАПТИВНІСТЬ ДЛЯ СТОРІНКИ ЗАКЛАДУ */
@media (max-width: 960px) {
  .place-content-grid {
    grid-template-columns: 1fr;
  }
  .place-side-col {
    position: static;
  }
  .place-hero-cover {
    min-height: 340px;
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .place-hero-cover {
    min-height: 300px;
    padding: 18px;
    border-radius: 18px;
  }
  .place-hero-title {
    font-size: 26px;
  }
  .review-form-fields {
    grid-template-columns: 1fr;
  }
  .leave-review-section {
    padding: 20px 16px;
  }
  .rating-picker-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .review-submit-row {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-submit-review {
    width: 100%;
  }
}


/* Homepage search feedback */
.home-search-status {
  margin: 0 0 18px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #eaf2ff;
  color: #173b69;
  font-size: 14px;
  font-weight: 700;
}
.home-search-status[hidden] { display: none !important; }


/* CITY PROMO BANNER — branded visual block on every city page */
.city-promo-banner {
  position: relative; overflow: hidden; isolation: isolate;
  margin: 28px auto 8px; width: min(1200px, calc(100% - 32px));
  min-height: 250px; border-radius: 24px; color: #fff;
  background: #0b2a4a; box-shadow: 0 18px 45px rgba(11,42,74,.18);
}
.city-promo-banner::before { content: ""; position:absolute; inset:0; z-index:-2;
  background-image: var(--promo-image); background-size:cover; background-position:center 48%; transform:scale(1.02); }
.city-promo-banner::after { content:""; position:absolute; inset:0; z-index:-1;
  background:linear-gradient(90deg,rgba(5,19,38,.96) 0%,rgba(5,19,38,.82) 48%,rgba(5,19,38,.18) 100%),linear-gradient(0deg,rgba(5,19,38,.3),transparent); }
.city-promo-inner { min-height:250px; display:flex; align-items:center; justify-content:space-between; gap:24px; padding:30px clamp(22px,5vw,56px); }
.city-promo-copy { max-width:680px; }
.city-promo-eyebrow { display:inline-block; margin-bottom:10px; color:#facc15; font-size:11px; font-weight:900; letter-spacing:.16em; }
.city-promo-copy h2 { margin:0 0 10px; max-width:620px; color:#fff; font-size:clamp(25px,3.5vw,40px); line-height:1.08; font-weight:900; }
.city-promo-copy h2 span { color:#facc15; }
.city-promo-copy p { max-width:550px; margin:0 0 20px; color:rgba(255,255,255,.83); font-size:15px; line-height:1.6; }
.city-promo-cta { display:inline-flex; align-items:center; gap:14px; padding:12px 18px; border-radius:999px; background:#facc15; color:#10233b; text-decoration:none; font-weight:900; box-shadow:0 8px 22px rgba(250,204,21,.2); transition:transform .2s ease,background .2s ease; }
.city-promo-cta:hover { transform:translateY(-2px); background:#ffe066; }
.city-promo-cta span { font-size:20px; line-height:1; }
.city-promo-mark { width:126px; height:126px; flex:0 0 126px; display:flex; flex-direction:column; align-items:center; justify-content:center; border:1px solid rgba(255,255,255,.48); border-radius:50%; background:rgba(7,27,51,.48); box-shadow:0 0 0 10px rgba(255,255,255,.07); backdrop-filter:blur(6px); transform:rotate(7deg); }
.city-promo-mark span,.city-promo-mark small { font-size:10px; font-weight:900; letter-spacing:.2em; }
.city-promo-mark strong { font-size:46px; line-height:1; letter-spacing:-.06em; }
@media(max-width:640px) { .city-promo-banner { width:calc(100% - 24px); margin-top:18px; border-radius:18px; } .city-promo-inner { min-height:260px; padding:24px 20px; } .city-promo-mark { position:absolute; right:20px; top:18px; width:68px; height:68px; min-width:68px; flex-basis:68px; opacity:.9; } .city-promo-mark strong { font-size:25px; } .city-promo-mark span,.city-promo-mark small { font-size:7px; } .city-promo-copy { padding-top:54px; } .city-promo-copy h2 { font-size:27px; } .city-promo-copy p { font-size:14px; } }


/* МістОК — пошук на сторінках міст, візуально узгоджений з головною */
.city-search-section { padding-top: 28px; padding-bottom: 8px; }
.city-searchbar { margin-bottom: 12px; }
.city-searchbar .search-input-wrap { flex: 1 1 auto; min-width: 0; }
.city-searchbar input { width: 100%; min-width: 0; }
.city-search-tags { justify-content: center; }
.city-search-tags .quick-chip { font: inherit; cursor: pointer; border: 1px solid #e2e8f0; }
.city-search-tags .quick-chip.active { background: #0b2a4a; color: #fff; border-color: #0b2a4a; }
@media (max-width: 640px) {
  .city-searchbar { flex-wrap: wrap; }
  .city-searchbar .search-input-wrap { flex-basis: 100%; }
  .city-searchbar .btn-hero-search { width: 100%; }
  .city-search-tags { gap: 8px; }
}
