/* =========================================================
   WauWau Map Switzerland (wauwaumap.ch) - Master Stylesheet
   ========================================================= */

:root {
  --primary: #dc2626;         /* Swiss red */
  --primary-hover: #b91c1c;
  --secondary: #0f172a;       /* Deep slate */
  --accent-green: #16a34a;    /* Alpine nature */
  --accent-blue: #0284c7;     /* Swiss lake */
  --accent-amber: #d97706;    /* Warm gastro */
  --accent-purple: #8b5cf6;   /* Service */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.5;
  overflow-x: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* =========================================================
   EMERGENCY TOP TICKER
   ========================================================= */
.emergency-top-bar {
  background: linear-gradient(90deg, #991b1b, #dc2626);
  color: white;
  padding: 6px 16px;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.emergency-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.emergency-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.emergency-tag-btn {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  text-decoration: none;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.emergency-tag-btn:hover {
  background-color: #ffffff;
  color: #991b1b;
  transform: translateY(-1px);
}

/* =========================================================
   MAIN APP HEADER
   ========================================================= */
.app-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding: 10px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  z-index: 999;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

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

.brand-icon {
  font-size: 1.7rem;
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border: 1.5px solid #fecaca;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.12);
}

.brand-title-wrap h1 {
  font-size: 1.35rem;
  font-weight: 850;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.swiss-flag {
  font-size: 1.1rem;
}

.brand-subtitle {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 600;
}

/* CANTON SELECTOR */
.canton-selector-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  padding: 5px 12px;
  border-radius: 12px;
  transition: border-color 0.2s ease;
}

.canton-selector-wrap:hover {
  border-color: var(--primary);
}

.canton-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.canton-select {
  border: none;
  background: transparent;
  font-weight: 800;
  font-size: 0.88rem;
  color: #0f172a;
  outline: none;
  cursor: pointer;
}

/* NAVIGATION TABS */
.nav-tabs-wrapper {
  display: flex;
  background-color: #f1f5f9;
  padding: 5px;
  border-radius: 14px;
  gap: 4px;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
}

.nav-tab-btn {
  border: none;
  background: transparent;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.nav-tab-btn:hover {
  color: #0f172a;
  background-color: rgba(255, 255, 255, 0.7);
}

.nav-tab-btn.active {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
}

/* HEADER ACTIONS */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-cta-business {
  background: linear-gradient(135deg, #15803d, #16a34a);
  color: #ffffff;
  border: none;
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.3);
  transition: all 0.2s ease;
}

.btn-cta-business:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.4);
}

.btn-dashboard-pill, .btn-favorites-pill, .btn-auth-pill {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.btn-dashboard-pill:hover, .btn-favorites-pill:hover, .btn-auth-pill:hover {
  background-color: #f1f5f9;
}

.btn-auth-pill.logged-in {
  border-color: #93c5fd;
  background-color: #eff6ff;
  color: #1d4ed8;
}

.lang-switch-wrap {
  display: flex;
  gap: 2px;
}

.lang-switch-btn {
  background-color: #f1f5f9;
  border: 1px solid var(--border-color);
  padding: 5px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  color: #64748b;
}

.lang-switch-btn.active {
  background-color: var(--secondary);
  color: #ffffff;
  border-color: var(--secondary);
}

/* =========================================================
   MAIN APP BODY (VIEWS)
   ========================================================= */
.app-container {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
}

.tab-view {
  display: none;
  width: 100%;
  height: 100%;
  overflow-y: auto;
}

.tab-view.active {
  display: flex;
}

.section-container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 20px 60px 20px;
  overflow-y: auto;
}

.section-header-box, .view-header {
  margin-bottom: 28px;
  text-align: center;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.section-header-box::before, .view-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #dc2626, #ef4444, #10b981);
}

.section-header-box h2, .view-header h2 {
  font-size: 1.85rem;
  font-weight: 850;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  color: #0f172a;
}

.section-header-box p, .view-header p {
  color: #64748b;
  font-size: 0.98rem;
  max-width: 720px;
  margin: 0 auto;
}

/* =========================================================
   VIEW: MAP SPLIT
   ========================================================= */
#view-map.active {
  display: flex;
  flex-direction: row;
}

.map-sidebar {
  width: 440px;
  max-width: 100%;
  background-color: #ffffff;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100%;
  z-index: 500;
}

.sidebar-search-area {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: #ffffff;
}

.search-input-box {
  position: relative;
}

.search-input-box input {
  width: 100%;
  padding: 9px 12px 9px 36px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 0.88rem;
  background-color: #f8fafc;
}

.search-input-box input:focus {
  outline: none;
  border-color: var(--primary);
  background-color: #ffffff;
}

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.95rem;
}

.sidebar-row-filters {
  display: flex;
  gap: 8px;
}

.filter-select {
  flex: 1;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 0.84rem;
  font-weight: 500;
  background-color: #f8fafc;
  color: #334155;
  outline: none;
  cursor: pointer;
}

.btn-locate-me {
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.category-pills-scroll {
  display: flex;
  overflow-x: auto;
  gap: 6px;
  padding: 9px 16px;
  background-color: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  scrollbar-width: thin;
}

.cat-pill {
  white-space: nowrap;
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.cat-pill:hover {
  background-color: #f8fafc;
  border-color: var(--primary);
  transform: translateY(-1px);
}

.cat-pill.active {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

.sidebar-list-header {
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  border-bottom: 1px solid #f1f5f9;
}

.sidebar-spots-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* SPOT CARD */
.spot-card {
  background-color: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.spot-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.12), 0 8px 10px -4px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1;
}

.spot-card-img {
  height: 135px;
  background-color: #cbd5e1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  transition: transform 0.5s ease;
}

.spot-card:hover .spot-card-img {
  transform: scale(1.03);
}

.spot-category-badge {
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  backdrop-filter: blur(4px);
}

.btn-card-fav {
  background: rgba(255, 255, 255, 0.85);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: transform 0.15s;
}

.btn-card-fav:hover {
  transform: scale(1.15);
}

.spot-card-content {
  padding: 12px;
}

.spot-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 3px;
}

.spot-card-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.spot-rating {
  font-size: 0.76rem;
  font-weight: 700;
  background-color: #fef3c7;
  color: #92400e;
  padding: 2px 6px;
  border-radius: 4px;
}

.spot-card-location {
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 6px;
  font-weight: 500;
}

.spot-card-desc {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.45;
  margin-bottom: 10px;
}

.spot-card-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.card-btn-action {
  border: 1px solid var(--border-color);
  background-color: #f8fafc;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-btn-action:hover {
  background-color: #f1f5f9;
}

.btn-show-map {
  background-color: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.btn-call-sm {
  background-color: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

/* MAP WRAPPER */
.map-viewport-wrapper {
  flex: 1;
  position: relative;
  height: 100%;
}

#map-container {
  width: 100%;
  height: 100%;
  background-color: #e5e7eb;
}

/* CUSTOM LEAFLET PINS */
.custom-pin {
  background: transparent;
  border: none;
}

.pin-bubble {
  width: 38px;
  height: 38px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
  border: 2px solid #ffffff;
  position: relative;
  z-index: 2;
  transition: transform 0.2s ease;
}

.pin-bubble:hover {
  transform: rotate(-45deg) scale(1.15);
}

.pin-icon {
  transform: rotate(45deg);
  font-size: 1.15rem;
  display: block;
}

.leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.leaflet-popup-content {
  margin: 0 !important;
  line-height: 1.4;
}

/* LEAFLET LAYER SWITCHER */
.leaflet-control-layers {
  border-radius: 10px !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: var(--shadow-md) !important;
  padding: 8px 12px !important;
  font-family: inherit !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(4px);
}

.leaflet-control-layers-base label {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-bottom: 4px !important;
  cursor: pointer !important;
}

.spot-popup-card {
  width: 280px;
}

.popup-thumb {
  height: 110px;
  background-size: cover;
  background-position: center;
  padding: 8px;
  position: relative;
}

.popup-cat-badge {
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.popup-body {
  padding: 12px;
}

.popup-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}

.popup-kreis {
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 6px;
}

.popup-desc {
  font-size: 0.82rem;
  color: #475569;
  margin-bottom: 10px;
}

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

.popup-btn {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background-color: #f8fafc;
  color: #334155;
}

/* =========================================================
   CARDS GRID & DIRECTORIES
   ========================================================= */
.gastro-filter-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.sub-filter-btn, .sub-service-btn {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sub-filter-btn:hover, .sub-service-btn:hover {
  background-color: #f1f5f9;
}

.sub-filter-btn.active, .sub-service-btn.active {
  background-color: var(--secondary);
  color: #ffffff;
  border-color: var(--secondary);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.gastro-card, .service-card {
  background-color: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.gastro-card:hover, .service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.12), 0 8px 10px -4px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1;
}

.gastro-card-hero, .service-card-hero {
  height: 175px;
  background-color: #cbd5e1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  padding: 14px;
  transition: transform 0.5s ease;
}

.gastro-card:hover .gastro-card-hero, .service-card:hover .service-card-hero {
  transform: scale(1.04);
}

.service-type-badge {
  font-size: 0.76rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 8px;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  backdrop-filter: blur(4px);
}

.badge-type-store { background: #ec4899; }
.badge-type-sitter { background: #8b5cf6; }
.badge-type-leisure { background: #06b6d4; }

.gastro-badge-wrap, .service-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.badge-tag, .service-tag {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.badge-indoor { background: #dcfce7; color: #166534; }
.badge-terrace { background: #e0f2fe; color: #0369a1; }
.badge-water { background: #fef3c7; color: #92400e; }
.badge-treats { background: #fce7f3; color: #9d174d; }

.gastro-card-body, .service-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

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

.gastro-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.gastro-kreis {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.gastro-desc {
  font-size: 0.86rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
}

.service-open-hours {
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 8px;
}

.service-features-list {
  list-style: none;
  margin-bottom: 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.service-features-list li {
  font-size: 0.8rem;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 5px;
}

.gastro-actions-row {
  display: flex;
  gap: 8px;
}

/* =========================================================
   TOURS & WALKS
   ========================================================= */
.tours-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.tour-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.tour-hero {
  height: 190px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.tour-hero-overlay {
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0) 100%);
  width: 100%;
  padding: 16px 20px;
  color: #ffffff;
}

.tour-title {
  font-size: 1.3rem;
  font-weight: 800;
}

.tour-metrics-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  background-color: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  padding: 10px 16px;
  gap: 10px;
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
}

.metric-value {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
}

.tour-body {
  padding: 18px;
}

.tour-desc {
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 14px;
}

.tour-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.tour-feature-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  padding: 10px 12px;
  border-radius: 8px;
}

.tour-feature-box strong {
  display: block;
  font-size: 0.8rem;
  color: #1e293b;
  margin-bottom: 3px;
}

.tour-feature-box p {
  font-size: 0.82rem;
  color: #475569;
}

.tour-highlights-box h4 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #1e293b;
}

.tour-highlights-box ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 6px;
}

.tour-highlights-box li {
  font-size: 0.84rem;
  color: #334155;
}

.btn-tour-nav {
  background-color: var(--secondary);
  color: #ffffff;
  padding: 9px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* =========================================================
   HEALTH, FIRST AID & HAZARDS
   ========================================================= */
.health-block {
  margin-bottom: 34px;
}

.health-block-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: #0f172a;
}

.vet-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.vet-card h4 {
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 3px;
}

.vet-address {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.vet-open-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: #dc2626;
  background: #fef2f2;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 10px;
}

.vet-services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
  flex: 1;
}

.vet-tag {
  background-color: #f1f5f9;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
}

.first-aid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.aid-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.aid-card.critical { border-top: 4px solid #dc2626; }
.aid-card.moderate { border-top: 4px solid #f59e0b; }

.aid-card h4 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.aid-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  margin-top: 8px;
  display: block;
}

.aid-card p, .aid-card li {
  font-size: 0.86rem;
  color: #334155;
  line-height: 1.5;
}

.aid-card ol {
  padding-left: 18px;
  margin-top: 4px;
}

.aid-warning {
  margin-top: 12px;
  background-color: #fef2f2;
  border-left: 3px solid #dc2626;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #991b1b;
}

.hazards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.hazard-card {
  background-color: #ffffff;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 90px);
}

.hazard-card h4 {
  font-size: 1rem;
  font-weight: 800;
  color: #9a3412;
  margin-bottom: 6px;
}

.hazard-card p {
  font-size: 0.84rem;
  color: #431407;
  line-height: 1.5;
  margin-bottom: 10px;
}

.hazard-rules-list {
  padding-left: 16px;
  font-size: 0.82rem;
  color: #7c2d12;
}

/* =========================================================
   GUIDE & CALCULATOR
   ========================================================= */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.guide-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.guide-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-card p, .guide-card li {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.6;
}

.guide-card ul {
  padding-left: 20px;
  margin-top: 8px;
}

.guide-alert-card {
  border-left: 4px solid var(--primary);
  background: #fef2f2;
}

.guide-alert-card h3 { color: #991b1b; }

.calc-box-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.calc-title-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.calc-form-group {
  margin-bottom: 18px;
}

.calc-form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: #1e293b;
}

.calc-select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 0.9rem;
  background-color: #f8fafc;
}

.calc-card {
  margin-top: 20px;
  border-radius: 10px;
  padding: 18px;
}

.calc-card.badge-danger { background-color: #fef2f2; border: 1px solid #fecaca; }
.calc-card.badge-warning { background-color: #fffbeb; border: 1px solid #fde68a; }
.calc-card.badge-success { background-color: #f0fdf4; border: 1px solid #bbf7d0; }

.calc-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.calc-card-header h4 {
  font-size: 1.1rem;
  font-weight: 800;
}

.lessons-badge-list {
  display: flex;
  gap: 10px;
  margin: 12px 0;
  flex-wrap: wrap;
}

.lesson-chip {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 6px 12px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
}

/* =========================================================
   MODAL WINDOWS & FORMS
   ========================================================= */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2500;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-window {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background-color: rgba(0,0,0,0.6);
  color: #ffffff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* AUTH MODAL STYLES */
.auth-modal-content {
  padding: 28px 24px;
}

.auth-header {
  text-align: center;
  margin-bottom: 20px;
}

.auth-icon-badge {
  font-size: 2.2rem;
  display: inline-block;
  margin-bottom: 6px;
}

.auth-header h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.auth-role-tabs {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 18px;
  gap: 4px;
}

.auth-role-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  text-align: center;
}

.auth-role-tab.active {
  background: #ffffff;
  color: var(--secondary);
  box-shadow: var(--shadow-sm);
}

.auth-form .form-group, .biz-form .form-group {
  margin-bottom: 14px;
}

.auth-form label, .biz-form label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 4px;
}

.auth-form input, .biz-form input, .biz-form textarea, .biz-form select, .form-select {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 0.88rem;
  background: #f8fafc;
  outline: none;
}

.auth-form input:focus, .biz-form input:focus, .biz-form textarea:focus {
  border-color: var(--primary);
  background: #ffffff;
}

.btn-submit-primary {
  width: 100%;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white;
  border: none;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  transition: opacity 0.2s;
}

.btn-submit-primary:hover {
  opacity: 0.95;
}

.btn-logout-action {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

/* BUSINESS ONBOARDING FORM */
.biz-modal-content {
  padding: 28px 24px;
}

.biz-modal-header {
  margin-bottom: 20px;
  text-align: center;
}

.biz-badge-flag {
  background: #dcfce7;
  color: #166534;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  display: inline-block;
  margin-bottom: 8px;
}

.biz-modal-header h2 {
  font-size: 1.45rem;
  font-weight: 800;
}

.form-section {
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 18px;
  background: #f8fafc;
}

.form-section legend {
  font-size: 0.85rem;
  font-weight: 800;
  color: #1e293b;
  padding: 0 8px;
}

.category-radio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.cat-radio-card {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-radio-card input[type="radio"] {
  width: auto;
}

.cat-radio-content {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
}

.form-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkbox-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.check-option-pill {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.check-option-pill input {
  width: auto;
}

/* DASHBOARD MODAL */
.dash-modal-content {
  padding: 28px 24px;
}

.dash-header {
  margin-bottom: 20px;
}

.live-pill-badge {
  background: #dcfce7;
  color: #166534;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 6px;
}

.stats-counter-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.stat-widget {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  padding: 14px;
  border-radius: 10px;
  text-align: center;
}

.stat-widget-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.stat-widget-lbl {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.dashboard-biz-card {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.dashboard-biz-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.dashboard-btn-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.btn-dash-edit {
  background: var(--secondary);
  color: #ffffff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-dash-delete {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

/* FAVORITES MODAL */
.fav-modal-content {
  padding: 24px;
}

.fav-list-scroll {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  max-height: 60vh;
  overflow-y: auto;
}

/* SPOT DETAIL MODAL */
.modal-spot-hero {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.modal-hero-overlay {
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
  width: 100%;
  padding: 18px;
  color: white;
}

.modal-hero-overlay h2 {
  font-size: 1.4rem;
  font-weight: 800;
}

.modal-badge {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

.modal-spot-details {
  padding: 20px;
}

.modal-quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.stat-box {
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: 8px;
}

.stat-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
}

.stat-value {
  font-size: 0.88rem;
  font-weight: 700;
}

.feature-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feature-tag {
  background-color: #f1f5f9;
  color: #334155;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.modal-tip-box {
  background-color: #fefce8;
  border: 1px solid #fef08a;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.modal-buttons-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.modal-btn {
  flex: 1;
  min-width: 160px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-call-primary { background-color: #dc2626; color: white; }
.btn-directions-primary { background-color: #0f172a; color: white; }

/* MOBILE BOTTOM TAB BAR */
.mobile-bottom-nav {
  display: none;
}

/* =========================================================
   RESPONSIVE DESIGN (MOBILE / TABLET & DESKTOP ENHANCEMENT)
   ========================================================= */

/* DESKTOP ENHANCEMENTS (> 960px) */
@media (min-width: 961px) {
  .section-container {
    max-width: 1280px;
    padding: 32px 28px 60px 28px;
  }

  .gastro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
  }

  .map-sidebar {
    width: 460px;
  }
}

/* MOBILE & SMARTPHONE (< 960px) */
@media (max-width: 960px) {
  #view-map.active {
    flex-direction: column-reverse;
  }

  .map-sidebar {
    width: 100%;
    height: 48vh;
    border-right: none;
    border-top: 1px solid var(--border-color);
  }

  .map-viewport-wrapper {
    height: 52vh;
  }

  .app-header {
    padding: 8px 12px;
    gap: 8px;
  }

  .header-left {
    width: 100%;
    justify-content: space-between;
  }

  .brand-title-wrap h1 {
    font-size: 1.1rem;
  }

  .nav-tabs-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px;
  }

  .form-row-grid {
    grid-template-columns: 1fr;
  }

  .section-container {
    padding: 16px 12px 90px 12px;
  }

  /* MOBILE BOTTOM NAV BAR ACTIVE ON PHONES */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    z-index: 2000;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  }

  .mobile-nav-btn {
    flex: 1;
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
    padding: 4px 0;
  }

  .mobile-nav-icon {
    font-size: 1.25rem;
    line-height: 1;
    margin-bottom: 2px;
  }

  .mobile-nav-label {
    font-size: 0.68rem;
    font-weight: 700;
  }

  .mobile-nav-btn.active {
    color: #dc2626;
  }

  .mobile-nav-btn.active .mobile-nav-icon {
    transform: scale(1.15);
  }
}
