/* ===================================================================
   WikiTravel Design System & Stylesheet (wiki-travel.ru)
   Theme: Luxury Light Eco-Modern with Emerald & Amber Accents
=================================================================== */

:root {
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.92);

  --accent-emerald: #059669;
  --accent-emerald-light: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.2);
  
  --accent-amber: #d97706;
  --accent-amber-light: #f59e0b;
  --accent-blue: #2563eb;

  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --border-subtle: #e2e8f0;
  --border-active: rgba(16, 185, 129, 0.45);

  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 16px 32px -4px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(16, 185, 129, 0.15);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

button, input, select {
  font-family: inherit;
  border: none;
  outline: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 14px 24px;
}

.header-container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(5, 150, 105, 0.25);
  transition: transform 0.3s ease;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.08) rotate(5deg);
}

.logo-icon {
  font-size: 1.8rem;
  background: rgba(16, 185, 129, 0.12);
  padding: 6px 10px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.accent-text {
  color: var(--accent-emerald);
}

.logo-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* Search Bar */
.header-search-bar {
  flex: 1;
  max-width: 580px;
  position: relative;
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-full);
  padding: 8px 18px;
  height: 44px;
  box-sizing: border-box;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.header-search-bar:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.header-search-bar:focus-within {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 0 3.5px rgba(5, 150, 105, 0.15), 0 4px 14px rgba(0, 0, 0, 0.06);
  background: #ffffff;
}

.search-icon {
  margin-right: 10px;
  font-size: 1rem;
  opacity: 0.75;
  display: flex;
  align-items: center;
}

.header-search-bar input {
  width: 100%;
  background: transparent;
  color: var(--text-main);
  font-size: 0.92rem;
  font-weight: 500;
  border: none;
  outline: none;
}

.header-search-bar input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.clear-search-btn {
  background: #e2e8f0;
  color: #475569;
  font-size: 0.75rem;
  cursor: pointer;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.2s ease;
  margin-left: 6px;
}

.clear-search-btn:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.map-toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.map-toggle-btn:hover {
  background: #e2e8f0;
}

.map-toggle-btn.active {
  background: var(--accent-emerald);
  color: #ffffff;
  border-color: var(--accent-emerald);
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

.catalog-counter {
  font-size: 0.82rem;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.3);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 1px 3px rgba(5, 150, 105, 0.05);
}

.header-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-nav-catalog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.btn-nav-catalog:hover {
  background: #e2e8f0;
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
  transform: translateY(-1px);
}

.btn-nav-booking {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
  transition: var(--transition);
}

.btn-nav-booking:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.45);
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumb-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-link:hover {
  color: var(--accent-emerald);
}

.breadcrumb-sep {
  opacity: 0.4;
  font-size: 0.8rem;
}

.breadcrumb-current {
  color: var(--text-main);
  font-weight: 600;
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

/* Hero Section */
.hero-section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 36px 24px 20px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  line-height: 1.2;
  color: var(--text-main);
}

.gradient-text {
  background: linear-gradient(135deg, #059669 0%, #10b981 50%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto;
}

/* Filter Ribbon */
.filter-ribbon {
  max-width: 1440px;
  margin: 24px auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.filter-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.pill-btn:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  border-color: #cbd5e1;
}

.pill-btn.active {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  border-color: #059669;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}

.filter-amenities-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.chip-btn:hover {
  border-color: #cbd5e1;
  color: var(--text-main);
  background: var(--bg-surface-elevated);
}

.chip-btn.active {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
  font-weight: 600;
}

.filter-extra-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  background: var(--bg-surface);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.custom-select-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.custom-select-wrap select {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.reset-filters-btn {
  margin-left: auto;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.reset-filters-btn:hover {
  color: #ef4444;
}

/* Map Section */
.map-wrapper {
  max-width: 1440px;
  margin: 0 auto 30px;
  padding: 0 24px;
  position: relative;
  transition: var(--transition);
}

.map-wrapper.hidden {
  display: none;
}

#interactive-map {
  height: 420px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  z-index: 10;
}

.map-floating-legend {
  position: absolute;
  bottom: 20px;
  right: 44px;
  z-index: 500;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-pin {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.pin-glamping {
  background: var(--accent-emerald);
  box-shadow: 0 0 8px rgba(5, 150, 105, 0.4);
}

.pin-turbaza {
  background: var(--accent-blue);
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.4);
}

/* Catalog Section */
.catalog-section {
  max-width: 1440px;
  margin: 0 auto 60px;
  padding: 0 24px;
}

.catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.catalog-heading {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.results-stats {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.place-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.place-card:hover {
  transform: translateY(-5px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: var(--shadow-hover);
}

.card-media {
  position: relative;
  height: 220px;
  background: #f1f5f9;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.place-card:hover .card-media img {
  transform: scale(1.05);
}

.badge-source {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
}

.badge-source.badge-naturalist, .badge-source.badge-glampi {
  background: rgba(5, 150, 105, 0.9);
  color: #ffffff;
}

.badge-source.badge-mirturbaz {
  background: rgba(37, 99, 235, 0.9);
  color: #ffffff;
}

.card-rating-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
  color: var(--accent-amber);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--text-main);
}

.card-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.tag-badge {
  font-size: 0.75rem;
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.card-price-group {
  display: flex;
  flex-direction: column;
}

.price-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.price-val {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-details {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-details:hover {
  background: #e2e8f0;
}

.btn-book-cta {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-book-cta:hover {
  filter: brightness(1.08);
  transform: scale(1.02);
}

/* Modal Detail */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  color: var(--text-main);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #ffffff;
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-gallery-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 8px;
  height: 320px;
  padding: 16px 16px 0;
}

.modal-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.modal-thumb-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
}

.modal-thumb-img {
  width: 100%;
  height: calc(50% - 4px);
  object-fit: cover;
  border-radius: var(--radius-md);
}

.modal-content-pad {
  padding: 24px;
}

.modal-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.modal-desc-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.modal-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 16px;
  border-radius: var(--radius-md);
}

.feature-check-item {
  font-size: 0.88rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-booking-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface-elevated);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.booking-buttons-group {
  display: flex;
  gap: 12px;
}

.btn-partner-sutochno {
  background: #ff5722;
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.92rem;
}

.btn-partner-yandex {
  background: #fc3f1d;
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.92rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #ffffff;
  padding: 48px 24px;
}

.footer-container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 36px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-emerald);
  margin-bottom: 12px;
}

.footer-desc {
  max-width: 480px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-right h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.footer-right p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.affiliate-disclosure {
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 400px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: inline-block;
}

.empty-state h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--text-main);
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 20px;
/* Load More Button */
.load-more-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 36px auto 20px;
  gap: 12px;
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 14px 34px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  transition: var(--transition);
}

.btn-load-more:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

.btn-load-more-icon {
  font-size: 1.1rem;
  transition: transform 0.4s ease;
}

.btn-load-more:hover .btn-load-more-icon {
  transform: rotate(180deg);
}

.load-more-counter {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Similar Places Recommendations */
.similar-places-section {
  max-width: 1280px;
  margin: 50px auto 30px;
  padding: 0 20px;
}

.similar-places-header {
  margin-bottom: 24px;
}

.similar-places-header h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.similar-places-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Image Lightbox Viewer */
.image-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: zoom-out;
}

.image-lightbox-overlay.active {
  display: flex;
}

.image-lightbox-img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  cursor: default;
  transition: transform 0.2s ease;
}

.image-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.image-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .similar-places-section {
    padding: 0 10px;
    margin: 30px auto 20px;
  }
  .similar-places-header h2 {
    font-size: 1.25rem;
  }
  .similar-places-header p {
    font-size: 0.85rem;
  }

  .hero-section {
    padding: 20px 14px 12px;
  }

  /* Mobile Header & Responsive Search */
  .site-header {
    padding: 10px 14px 12px;
  }

  .header-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .brand-logo {
    gap: 8px;
    flex-shrink: 0;
  }

  .brand-logo-img {
    width: 38px;
    height: 38px;
  }

  .logo-title {
    font-size: 1.25rem;
    line-height: 1.1;
  }

  .logo-subtitle {
    font-size: 0.65rem;
    letter-spacing: 0.03em;
    max-width: 145px;
    line-height: 1.15;
    color: #64748b;
  }

  .header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .map-toggle-btn {
    padding: 6px 12px;
    font-size: 0.82rem;
    gap: 5px;
    border-radius: 9999px;
  }

  .catalog-counter {
    padding: 6px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    gap: 4px;
    border-radius: 9999px;
  }

  /* Full-width modern search bar on row 2 */
  .header-search-bar {
    order: 3;
    width: 100%;
    flex: 1 1 100% !important;
    max-width: 100% !important;
    margin-top: 4px;
    display: flex !important;
    padding: 10px 16px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 9999px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    height: 44px;
  }

  .header-search-bar:focus-within {
    background: #ffffff;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15), 0 3px 10px rgba(0, 0, 0, 0.05);
  }

  .header-search-bar input {
    font-size: 0.88rem;
    color: #0f172a;
    width: 100%;
  }

  .header-search-bar input::placeholder {
    font-size: 0.85rem;
    color: #94a3b8;
  }

  @media (max-width: 440px) {
    .logo-subtitle {
      display: none;
    }
    .brand-logo-img {
      width: 32px;
      height: 32px;
    }
    .logo-title {
      font-size: 1.15rem;
    }
    .catalog-counter {
      padding: 5px 8px;
      font-size: 0.72rem;
    }
    .map-toggle-btn {
      padding: 5px 10px;
      font-size: 0.76rem;
    }
  }

  .catalog-section {
    padding: 0 10px;
    margin-bottom: 40px;
  }

  .filter-ribbon {
    padding: 0 10px;
    gap: 10px;
    margin: 16px auto;
  }

  /* 2-column layout on mobile devices */
  .cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .place-card {
    border-radius: 12px;
  }

  .card-media {
    height: 130px;
  }

  .badge-source {
    top: 6px;
    left: 6px;
    font-size: 0.62rem;
    padding: 2px 6px;
  }

  .ranking-badge {
    top: 6px;
    left: 6px;
    font-size: 0.65rem;
    padding: 3px 6px;
  }

  .card-rating-badge {
    top: 6px;
    right: 6px;
    font-size: 0.65rem;
    padding: 2px 5px;
    gap: 2px;
  }

  .card-content {
    padding: 10px 8px;
  }

  .card-location {
    font-size: 0.68rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .card-title {
    font-size: 0.88rem;
    line-height: 1.25;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.2em;
  }

  .card-desc {
    display: none; /* Hide long description on mobile 2-col cards */
  }

  .card-tags {
    margin-bottom: 8px;
    gap: 4px;
    max-height: 24px;
    overflow: hidden;
  }

  .tag-badge {
    font-size: 0.65rem;
    padding: 2px 5px;
  }

  .card-footer {
    padding-top: 8px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .card-price-group {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
  }

  .price-sub {
    font-size: 0.62rem;
  }

  .price-val {
    font-size: 0.95rem;
  }

  .card-actions {
    display: flex;
    width: 100%;
    gap: 4px;
  }

  .card-actions .btn-details {
    flex: 1;
    text-align: center;
    padding: 6px 4px;
    font-size: 0.72rem;
    border-radius: 6px;
  }

  .card-actions .btn-book-cta {
    flex: 1.2;
    text-align: center;
    justify-content: center;
    padding: 6px 4px;
    font-size: 0.72rem;
    border-radius: 6px;
    white-space: nowrap;
  }

  /* SEO Hero block on mobile */
  .seo-hero-box {
    padding: 0 10px;
    margin: 12px auto 20px;
  }

  .seo-hero-inner {
    padding: 18px 14px;
  }

  .seo-hero-inner h1 {
    font-size: 1.35rem;
  }

  .seo-hero-inner p {
    font-size: 0.88rem;
  }

  .related-seo-box {
    padding: 0 10px;
  }

  .modal-gallery-row {
    grid-template-columns: 1fr;
    height: 220px;
  }

  .modal-thumb-col {
    display: none;
  }

  .modal-booking-panel {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .booking-buttons-group {
    flex-direction: column;
  }
}

/* ===================================================================
   Load More Button & Pagination Styles
   =================================================================== */
.load-more-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 48px auto 60px;
  width: 100%;
  text-align: center;
  gap: 14px;
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff !important;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 16px 40px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(5, 150, 105, 0.35), 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.01em;
  text-decoration: none;
}

.btn-load-more:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(5, 150, 105, 0.45), 0 4px 10px rgba(0, 0, 0, 0.12);
}

.btn-load-more:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(5, 150, 105, 0.3);
}

.btn-load-more .btn-load-more-icon {
  font-size: 1.25rem;
  display: inline-block;
  transition: transform 0.5s ease;
}

.btn-load-more:hover .btn-load-more-icon {
  transform: rotate(180deg);
}

.load-more-counter {
  font-size: 0.92rem;
  color: #64748b;
  font-weight: 500;
}

/* ===================================================================
   Place Detail Page Styles (wiki-travel.ru/places/*)
   =================================================================== */
body.place-detail-page {
  background-color: #f8fafc;
  color: #0f172a;
  min-height: 100vh;
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.place-detail-page .site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 24px;
}

body.place-detail-page .header-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

body.place-detail-page .btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

body.place-detail-page .btn-back:hover {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
}

.place-detail-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px 80px;
  box-sizing: border-box;
}

.breadcrumbs-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.88rem;
  color: #64748b;
  margin-bottom: 20px;
}

.breadcrumbs-container a {
  color: #059669;
  text-decoration: none;
  font-weight: 500;
}

.breadcrumbs-container a:hover {
  text-decoration: underline;
}

.breadcrumbs-container .current {
  color: #0f172a;
  font-weight: 600;
}

.place-hero-header {
  margin-bottom: 24px;
}

.badge-source {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(5, 150, 105, 0.1);
  color: #059669;
  border: 1px solid rgba(5, 150, 105, 0.2);
  margin-bottom: 10px;
}

.place-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.3rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.place-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fef3c7;
  color: #b45309;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 4px 12px;
  border-radius: 9999px;
}

.location-pill {
  color: #64748b;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Photo Gallery Grid */
.detail-gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
  height: 460px;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  background: #e2e8f0;
}

.main-photo-wrapper {
  height: 100%;
  overflow: hidden;
  background: #f1f5f9;
  position: relative;
}

.detail-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  background: #f1f5f9;
}

.detail-hero-img:hover, .detail-side-img:hover {
  transform: scale(1.02);
}

.side-photos-wrapper {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  height: 100%;
}

.detail-side-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #f1f5f9;
  transition: transform 0.3s ease;
}

/* Two Columns Layout */
.detail-layout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 36px;
  align-items: start;
}

.detail-content-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.section-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
}

.section-card h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 0;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.place-full-description {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #334155;
  white-space: pre-line;
  margin-bottom: 16px;
}

.chips-group, .amenities-grid-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 8px 14px;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #334155;
}

/* Gallery Mosaic */
.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.gallery-thumb {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  background: #f1f5f9;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block;
}

.gallery-thumb:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Sticky Booking Sidebar */
.detail-sidebar-col {
  position: sticky;
  top: 90px;
}

.booking-sticky-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}

.booking-price-header {
  margin-bottom: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.price-prefix {
  font-size: 0.88rem;
  color: #64748b;
  display: block;
  margin-bottom: 4px;
}

.booking-price-val {
  font-size: 2rem;
  font-weight: 800;
  color: #059669;
  line-height: 1.1;
}

.booking-guarantee-note {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.4;
  margin-bottom: 20px;
}

.booking-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.btn-cta-primary {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, #fc3f1d 0%, #ea2600 100%);
  color: #ffffff !important;
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(252, 63, 29, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(252, 63, 29, 0.45);
}

.btn-cta-secondary {
  display: block;
  text-align: center;
  background: #0f172a;
  color: #ffffff !important;
  padding: 13px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  box-sizing: border-box;
}

.btn-cta-secondary:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.booking-features-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: #475569;
}

.b-feat {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .detail-layout-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .detail-gallery-grid {
    grid-template-columns: 1fr;
    height: 280px;
  }

  .side-photos-wrapper {
    display: none;
  }

  .booking-sticky-card {
    position: static;
  }

  .place-title {
    font-size: 1.7rem;
  }

  .place-detail-main {
    padding: 16px 14px 60px;
  }
}


