/* ========================================================================== */
/* ГЛОБАЛЬНЫЙ СТИЛЬ: YO.PLACES GLASSMORPHISM THEME - BY MINNAR >_<            */
/* ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:
    "Inter",
    -apple-system,
    sans-serif;
}
body,
html {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: #f0f2f5;
  transition: background 0.5s;
}

.app-container {
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: 1fr 380px;
  height: 100vh;
  width: 100vw;
}

/* MOOD THEMES */
body.mood-romantic {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}
body.mood-party {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}
body.mood-work {
  background: linear-gradient(135deg, #d7d2cc 0%, #304352 100%);
}
body.mood-hungry {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

/* ======================================================================== */
/* ФИКСИРОВАННАЯ ПАНЕЛЬ СВЕРХУ (на всех устройствах)                         */
/* ======================================================================== */
.top-panel {
  grid-column: 1 / -1;
  grid-row: 1;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.top-panel-header {
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid #eee;
}

.brand-logo {
  font-size: 22px;
  font-weight: 800;
  color: #1d1d1f;
  white-space: nowrap;
}

.search-container {
  display: flex;
  background: #f5f5f7;
  border-radius: 12px;
  padding: 8px;
  flex: 1;
  max-width: 500px;
}
#search-input {
  border: none;
  background: transparent;
  flex: 1;
  padding: 8px;
  outline: none;
  font-size: 15px;
}
#search-button {
  border: none;
  background: #007aff;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}
#search-button:hover {
  background: #005bb5;
}

.top-panel-controls {
  padding: 12px 20px;
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.mood-selector {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mood-label {
  font-size: 12px;
  color: #666;
  font-weight: 600;
}
.mood-buttons {
  display: flex;
  gap: 6px;
}
.mood-btn {
  padding: 8px 12px;
  border: 2px solid #e0e0e0;
  background: white;
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s;
}
.mood-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.mood-btn.active {
  border-color: #007aff;
  background: #007aff;
  transform: scale(1.05);
}

.layer-selector-row {
  display: flex;
  gap: 6px;
  background: #f5f5f7;
  padding: 4px;
  border-radius: 12px;
}
.layer-tab {
  border: none;
  background: transparent;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: #888;
  font-size: 14px;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.layer-tab.active {
  color: white;
}
.layer-tab.active[data-layer="light"] {
  background: #ff9500;
}
.layer-tab.active[data-layer="satellite"] {
  background: #5856d6;
}
.layer-tab.active[data-layer="dark"] {
  background: #1c1c1e;
}

.categories-grid-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  flex: 1;
}
.category-item {
  background: white;
  border: 1px solid #ddd;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: 0.3s;
  font-size: 13px;
}
.category-item:hover {
  background: #f0f7ff;
}
.category-item.active {
  background: #007aff;
  color: white;
  border-color: #007aff;
}

.night-filter {
  margin-left: auto;
}
.night-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 12px;
  background: #f5f5f7;
  border-radius: 10px;
  transition: 0.3s;
  font-size: 13px;
  font-weight: 600;
}
.night-toggle:hover {
  background: #e8e8e8;
}
.night-toggle input {
  display: none;
}
.night-slider {
  width: 36px;
  height: 20px;
  background: #ccc;
  border-radius: 10px;
  position: relative;
  transition: 0.3s;
}
.night-slider::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: 0.3s;
}
.night-toggle input:checked + .night-slider {
  background: #007aff;
}
.night-toggle input:checked + .night-slider::after {
  left: 18px;
}

/* ======================================================================== */
/* КАРТА И ПАНЕЛЬ РЕЗУЛЬТАТОВ                                                */
/* ======================================================================== */
.map-canvas-container {
  grid-column: 1;
  grid-row: 2;
  height: 100%;
  z-index: 1;
  position: relative;
}

.results-panel {
  grid-column: 2;
  grid-row: 2;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-left: 1px solid #eee;
  box-shadow: -2px 0 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 100;
  position: relative;
}

.results-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  scroll-behavior: smooth;
}

/* ======================================================================== */
/* КАРТОЧКИ МЕСТ                                                              */
/* ======================================================================== */
.place-card-block {
  background: white;
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 15px;
  border: 1px solid #eee;
  transition: 0.2s;
  cursor: pointer;
  animation: slideIn 0.3s ease-out;
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.place-card-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}
.place-card-block.route-active {
  border: 2px solid #007aff;
  background: #f8fbff;
}
.place-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}
.place-rating-badge {
  color: #f5a623;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 10px;
}

.vibe-check {
  display: flex;
  gap: 6px;
  margin: 10px 0;
  flex-wrap: wrap;
}
.vibe-tag {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.vibe-tag.quiet {
  background: #e8f5e9;
  color: #2e7d32;
}
.vibe-tag.medium {
  background: #fff3e0;
  color: #f57c00;
}
.vibe-tag.loud {
  background: #ffebee;
  color: #c62828;
}
.vibe-tag.cheap {
  background: #e3f2fd;
  color: #1565c0;
}
.vibe-tag.mid {
  background: #f3e5f5;
  color: #7b1fa2;
}
.vibe-tag.expensive {
  background: #fce4ec;
  color: #c2185b;
}

.yo-opinion-box {
  background: #f0f7ff;
  padding: 12px;
  border-radius: 10px;
  font-size: 13px;
  color: #444;
  margin: 10px 0;
  border-left: 3px solid #007aff;
}
.route-btn {
  width: 100%;
  background: #2ecc71;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.route-btn:hover {
  background: #27ae60;
}

/* ======================================================================== */
/* ФУТЕР И ССЫЛКИ                                                             */
/* ======================================================================== */
.minnar-footer {
  grid-column: 1 / -1;
  grid-row: 3;
  padding: 10px;
  text-align: center;
  font-size: 11px;
  color: #888;
  background: rgba(255, 255, 255, 0.9);
  border-top: 1px solid #eee;
  z-index: 1001;
}
.author-link,
.privacy-link {
  color: #007aff;
  text-decoration: none;
  font-weight: 600;
}
.author-link:hover,
.privacy-link:hover {
  text-decoration: underline;
}

/* ======================================================================== */
/* ПЛАШКА СОГЛАСИЯ С ПОЛИТИКОЙ                                                */
/* ======================================================================== */
.consent-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s;
}
.consent-card {
  background: white;
  border-radius: 24px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease-out;
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.consent-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #007aff, #00c6ff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 36px;
  box-shadow: 0 10px 30px rgba(0, 122, 255, 0.3);
}
.consent-card h2 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #1d1d1f;
}
.consent-card p {
  color: #666;
  margin-bottom: 15px;
  line-height: 1.6;
}
.consent-text {
  font-size: 14px;
}

.consent-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 25px;
}
.consent-btn-primary {
  padding: 15px;
  background: linear-gradient(135deg, #007aff, #00c6ff);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: 0.3s;
  box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}
.consent-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}
.consent-btn-secondary {
  padding: 12px;
  background: #f5f5f7;
  color: #666;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.consent-btn-secondary:hover {
  background: #e8e8e8;
}

/* ======================================================================== */
/* ПАМЯТКА ПРИ 0 МЕСТ                                                         */
/* ======================================================================== */
.hint-box {
  background: linear-gradient(135deg, #fff3cd, #ffe69c);
  border: 2px solid #ffc107;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: #856404;
}
.hint-box i {
  font-size: 20px;
  color: #856404;
  margin-top: 2px;
}
.hint-box-content {
  flex: 1;
}
.hint-box-content strong {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}
.hint-box-content button {
  margin-top: 8px;
  background: #ffc107;
  color: #856404;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 12px;
}
.hint-box-content button:hover {
  background: #ffb300;
}

/* ======================================================================== */
/* ГЕО-МОДАЛКА И КНОПКИ КАРТЫ                                                 */
/* ======================================================================== */
.geo-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s;
}
.red-white-card {
  background: white;
  width: 350px;
  border-radius: 20px;
  overflow: hidden;
}
.red-white-header {
  background: #ff3b30;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 40px;
}
.red-white-body {
  padding: 25px;
  text-align: center;
}
.red-white-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}
.red-white-text {
  color: #666;
  margin-bottom: 20px;
  font-size: 14px;
}
.btn-geo-primary {
  width: 100%;
  padding: 15px;
  background: #ff3b30;
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 10px;
}
.btn-geo-secondary {
  width: 100%;
  padding: 15px;
  background: #f0f0f0;
  border: none;
  border-radius: 12px;
  cursor: pointer;
}
.ios-hint-box-rw {
  display: none;
  margin-top: 15px;
  text-align: left;
  font-size: 12px;
  color: #555;
  background: #f9f9f9;
  padding: 10px;
  border-radius: 8px;
}
.ios-hint-box-rw.visible {
  display: block;
}
.manual-city-input input {
  width: 100%;
  padding: 12px;
  border: 2px solid #007aff;
  border-radius: 10px;
  outline: none;
  text-align: center;
}

.custom-map-controls {
  position: absolute;
  bottom: 130px;
  right: calc(380px + 20px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}
.ctrl-btn {
  width: 45px;
  height: 45px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: #333;
}
.ctrl-btn:hover {
  background: #f0f0f0;
}

.roulette-btn {
  position: absolute;
  bottom: 50px;
  right: calc(380px + 12px);
  z-index: 1000;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.roulette-btn:hover {
  transform: scale(1.1) rotate(180deg);
}

/* МАРКЕРЫ */
.custom-place-marker {
  background: transparent !important;
  border: none !important;
}
.marker-pin {
  background: #007aff;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  border: 2px solid white;
  transition: 0.2s;
}
.marker-pin i {
  transform: rotate(45deg);
}
.marker-pin.active-pin {
  background: #ff3b30;
  transform: rotate(-45deg) scale(1.3);
  z-index: 9999 !important;
}
.marker-pin.type-food {
  background: #ff6b35;
}
.marker-pin.type-shop {
  background: #2ecc71;
}
.marker-pin.type-education {
  background: #f39c12;
}
.marker-pin.type-leisure {
  background: #27ae60;
}
.marker-pin.type-tourism {
  background: #9b59b6;
}
.marker-pin.type-default {
  background: #007aff;
}

.user-location-icon {
  background: transparent !important;
}
.user-pulse {
  width: 20px;
  height: 20px;
  background: #007aff;
  border-radius: 50%;
  border: 3px solid white;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(0, 122, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 122, 255, 0);
  }
}

.live-counter {
  background: linear-gradient(135deg, #007aff, #00c6ff);
  color: white;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
  font-weight: 600;
}
.live-counter .spinner {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
}
.retry-btn {
  background: #007aff;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* ROULETTE MODAL */
.roulette-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}
.roulette-card {
  background: white;
  border-radius: 24px;
  padding: 30px;
  max-width: 400px;
  width: 90%;
  position: relative;
}
.roulette-header {
  text-align: center;
  margin-bottom: 20px;
}
.roulette-header i {
  font-size: 48px;
  color: #667eea;
  margin-bottom: 10px;
}
.roulette-spinner {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border: 4px solid #f0f0f0;
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: #667eea;
}
.roulette-result {
  text-align: center;
}
.roulette-result h3 {
  font-size: 22px;
  margin-bottom: 10px;
}
.roulette-result p {
  color: #666;
  margin-bottom: 8px;
}
.roulette-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.btn-roulette-primary {
  flex: 1;
  padding: 12px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}
.btn-roulette-secondary {
  flex: 1;
  padding: 12px;
  background: #f0f0f0;
  color: #333;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}
.roulette-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0f0f0;
  border: none;
  cursor: pointer;
}

/* BATTLE MODAL */
.battle-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}
.battle-card {
  background: white;
  border-radius: 24px;
  padding: 30px;
  max-width: 600px;
  width: 90%;
  position: relative;
}
.battle-header {
  text-align: center;
  margin-bottom: 20px;
}
.battle-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0f0f0;
  border: none;
  cursor: pointer;
}
.battle-versus {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
.battle-place {
  flex: 1;
  padding: 20px;
  background: #f5f5f7;
  border-radius: 16px;
}
.battle-place h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.battle-score {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-size: 32px;
  font-weight: 800;
  margin: 20px 0;
}
.battle-winner {
  color: #2ecc71;
}
.battle-loser {
  color: #95a5a6;
}

/* ======================================================================== */
/* АДАПТИВ ПОД МОБИЛКИ — всё сверху, карта снизу                             */
/* ======================================================================== */
@media (max-width: 1024px) {
  .app-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr 35vh auto;
    grid-template-rows: auto 1fr 35dvh auto;
    height: 100vh;
    height: 100dvh;
    width: 100vw;
  }

  .top-panel {
    grid-column: 1;
    grid-row: 1;
    position: relative;
  }

  .top-panel-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 15px;
    border-bottom: none;
  }

  .brand-logo {
    display: block;
    font-size: 18px;
  }

  .search-container {
    flex: 1;
    max-width: none;
  }

  .top-panel-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 15px 10px 15px;
  }

  .mood-selector {
    grid-column: 1;
    grid-row: 2;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    width: 100%;
  }
  .mood-label {
    display: none;
  }
  .mood-buttons {
    display: flex;
    gap: 6px;
  }
  .mood-btn {
    padding: 6px 10px;
    font-size: 16px;
  }

  .categories-grid-scroll {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    scrollbar-width: none;
    padding: 4px 0;
  }
  .categories-grid-scroll::-webkit-scrollbar {
    display: none;
  }

  .layer-selector-row {
    position: absolute;
    top: calc(100% + 15px);
    left: 15px;
    right: auto;
    z-index: 1000;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 4px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: auto;
  }
  .layer-tab {
    padding: 8px;
    border-radius: 8px;
  }
  .layer-tab.active {
    color: white;
  }

  .night-filter {
    grid-column: 2;
    grid-row: 2;
    margin-left: 0;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
  .night-toggle {
    width: auto;
    justify-content: center;
    padding: 6px 10px;
    font-size: 12px;
  }
  .night-slider {
    width: 32px;
    height: 18px;
  }
  .night-slider::after {
    width: 14px;
    height: 14px;
  }
  .night-toggle input:checked + .night-slider::after {
    left: 16px;
  }

  .map-canvas-container {
    grid-column: 1;
    grid-row: 2;
    height: 100%;
  }

  .results-panel {
    grid-column: 1;
    grid-row: 3;
    height: 100%;
    border-left: none;
    border-top: 1px solid #eee;
  }

  .minnar-footer {
    display: block;
    grid-column: 1;
    grid-row: 4;
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px)) 10px;
    font-size: 10px;
    border-top: 1px solid #eee;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1001;
  }

  .custom-map-controls {
    bottom: calc(35vh + 50px);
    bottom: calc(35dvh + 50px);
    right: 15px;
    z-index: 1000;
  }
  .roulette-btn {
    bottom: calc(35vh + 50px);
    bottom: calc(35dvh + 50px);
    left: 15px;
    right: auto;
    width: 50px;
    height: 50px;
    font-size: 20px;
    z-index: 1000;
  }
}

@media (max-width: 600px) {
  .top-panel-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 15px;
  }
  .brand-logo {
    text-align: center;
    font-size: 18px;
  }
  .search-container {
    width: 100%;
    max-width: none;
  }

  .top-panel-controls {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0 15px 12px 15px;
  }

  .mood-selector {
    grid-column: 1;
    grid-row: 2;
    justify-content: center;
    width: 100%;
  }
  .mood-buttons {
    justify-content: center;
    width: 100%;
  }
  .mood-btn {
    padding: 6px 10px;
    font-size: 16px;
  }

  .categories-grid-scroll {
    grid-column: 1;
    grid-row: 1;
  }

  .category-item {
    padding: 6px 12px;
    font-size: 12px;
  }

  .night-filter {
    grid-column: 1;
    grid-row: 3;
    justify-content: center;
    width: 100%;
  }
  .night-toggle {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    justify-content: center;
    padding: 6px 12px;
    font-size: 12px;
  }

  .place-card-block {
    padding: 15px;
    border-radius: 12px;
  }
  .results-scroll-area {
    padding: 12px;
  }
}
.brand-name {
  font-weight: 800;
  color: #007aff;
}
