﻿.leaflet-cluster-anim .leaflet-marker-icon,
.leaflet-cluster-anim .leaflet-marker-shadow {
  -webkit-transition:
    -webkit-transform 0.3s ease-out,
    opacity 0.3s ease-in;
  -moz-transition:
    -moz-transform 0.3s ease-out,
    opacity 0.3s ease-in;
  -o-transition:
    -o-transform 0.3s ease-out,
    opacity 0.3s ease-in;
  transition:
    transform 0.3s ease-out,
    opacity 0.3s ease-in;
}

.leaflet-cluster-spider-leg {
  -webkit-transition:
    -webkit-stroke-dashoffset 0.3s ease-out,
    -webkit-stroke-opacity 0.3s ease-in;
  -moz-transition:
    -moz-stroke-dashoffset 0.3s ease-out,
    -moz-stroke-opacity 0.3s ease-in;
  -o-transition:
    -o-stroke-dashoffset 0.3s ease-out,
    -o-stroke-opacity 0.3s ease-in;
  transition:
    stroke-dashoffset 0.3s ease-out,
    stroke-opacity 0.3s ease-in;
}

.marker-cluster-small {
  background-color: rgba(181, 226, 140, 0.6);
}

.marker-cluster-small div {
  background-color: rgba(110, 204, 57, 0.6);
}

.marker-cluster-medium {
  background-color: rgba(241, 211, 87, 0.6);
}

.marker-cluster-medium div {
  background-color: rgba(240, 194, 12, 0.6);
}

.marker-cluster-large {
  background-color: rgba(253, 156, 115, 0.6);
}

.marker-cluster-large div {
  background-color: rgba(241, 128, 23, 0.6);
}

.marker-cluster {
  background-clip: padding-box;
  border-radius: 20px;
}

.marker-cluster div {
  width: 30px;
  height: 30px;
  margin-left: 5px;
  margin-top: 5px;
  text-align: center;
  border-radius: 15px;
  font:
    12px "Helvetica Neue",
    Arial,
    Helvetica,
    sans-serif;
}

.marker-cluster span {
  line-height: 30px;
}

:root {
  --font-main: system-ui, -apple-system, sans-serif;
  --bg-app: #f0f2f5;
  --bg-surface: rgba(255, 255, 255, 0.85);
  --bg-card: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-accent: var(--color-primary);
  --color-primary: #2563eb;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #06b6d4;
  --color-purple: #8b5cf6;
  --color-pink: #db2777;
  --color-star: #fbbf24;
  --brand-metro: #009a44;
  --brand-urbano: #d9281c;
  --brand-inter: #2757f5;
  --border-subtle: rgba(0, 0, 0, 0.05);
  --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
  --shadow-float: 0 20px 40px -5px rgba(37, 99, 235, 0.2);
  --primary-gradient: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    #1d4ed8 100%
  );
  --header-height: 70px;
  --dock-height: 90px;
}

body.dark-mode {
  --bg-app: #0f172a;
  --bg-surface: rgba(30, 41, 59, 0.85);
  --bg-card: #1e293b;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-accent: var(--color-primary);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

*::-webkit-scrollbar {
  display: none;
}

html {
  scroll-behavior: smooth;
  height: 100%;
  overflow: hidden;
  overscroll-behavior-y: none;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-app);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
  transition:
    background-color 0.4s ease,
    color 0.4s ease;
  min-height: 100%;
  overscroll-behavior-y: none;
  top: 0px !important;
}

input,
textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.app-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      circle at 0% 0%,
      rgba(37, 99, 235, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(236, 72, 153, 0.08) 0%,
      transparent 50%
    );
  pointer-events: none;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOutUp {
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

@keyframes pulse {
  0% {
    opacity: 0.6;
  }

  50% {
    opacity: 0.3;
  }

  100% {
    opacity: 0.6;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulseText {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

@keyframes blinkRed {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes gps-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

@keyframes pulseHighlight {
  0% {
    transform: scale(1);
    box-shadow: var(--shadow-soft);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.5);
    background-color: var(--bg-card);
  }

  100% {
    transform: scale(1);
    box-shadow: var(--shadow-soft);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.gpu-accelerated {
  backface-visibility: hidden;
  transform: translateZ(0);
}

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

.highlight-flash {
  animation: pulseHighlight 2s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 1000 !important;
  position: relative;
  transform-origin: center center;
  backface-visibility: hidden;
}

.logo-text {
  font-display: swap;
}

.icon {
  font-family: "remixicon";
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 24px;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.2s;
}

.icon-orange {
  background: rgba(249, 115, 22, 0.1);
  color: #f97316;
}

.icon-teal {
  background: rgba(20, 184, 166, 0.1);
  color: #14b8a6;
}

.icon-violet {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.icon-yellow {
  background: rgba(234, 179, 8, 0.1);
  color: #eab308;
}

.icon-blue {
  background: rgba(37, 99, 235, 0.1);
  color: var(--color-primary);
}

.icon-green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
}

.icon-purple {
  background: rgba(139, 92, 246, 0.1);
  color: var(--color-purple);
}

.icon-red {
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-error);
}

button,
.icon-btn,
.dock-item,
.dock-item-home,
.transport-card,
.square-card,
.filter-chip,
.btn-realtime-popup,
.btn-fav-popup,
.back-btn-floating,
.gps-btn-floating,
.search-result-item,
.fav-card {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn .icon {
  font-size: 28px;
}

.icon-btn-small {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 4px;
  display: flex;
}

.back-btn {
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  padding: 0;
}

.floating-btn,
.back-btn-floating,
.gps-btn-floating {
  position: absolute;
  top: calc(var(--header-height) + 20px);
  z-index: 500;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-btn:active,
.back-btn-floating:active,
.gps-btn-floating:active {
  transform: scale(0.9);
}

.back-btn-floating {
  left: 20px;

  width: 44px;
  height: 44px;
  background: var(--bg-surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  color: var(--text-accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.back-btn-floating:active {
  transform: scale(0.9);
}

.gps-btn-floating {
  right: 20px;
  top: calc(var(--header-height) + 20px) !important;
  bottom: auto !important;
  width: 44px;
  height: 44px;
  background: var(--bg-surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  color: var(--text-accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gps-dot-animated {
  width: 16px;
  height: 16px;
  background-color: var(--color-primary);
  border: 3px solid white;
  border-radius: 50%;
  animation: gps-pulse 2s infinite;
}

.search-box {
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 0 12px;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  pointer-events: auto;
  transition: box-shadow 0.2s;
}

.search-box:focus-within {
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.25);
  border-color: var(--text-accent);
}

.search-icon {
  color: var(--text-secondary);
  font-size: 20px;
}

.search-box input {
  border: none;
  background: transparent;
  width: 100%;
  height: 100%;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
}

.search-box input::placeholder {
  color: #94a3b8;
}

.search-dropdown {
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  max-height: 250px;
  overflow-y: auto;
  pointer-events: auto;
  display: none;
  border: 1px solid var(--border-subtle);
}

.search-dropdown.visible {
  display: block;
  animation: fadeInUp 0.2s ease-out;
}

.search-result-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:active {
  background: var(--bg-app);
}

.result-icon {
  font-size: 18px;
  color: var(--text-secondary);
}

.result-info strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.result-info span {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.tabs-pills {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 5px;
  justify-content: center;
}

.tab-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: 0.3s;
  white-space: nowrap;
}

.tab-pill.active {
  background: var(--text-primary);
  color: var(--bg-card);
  border-color: var(--text-primary);
}

#app {
  padding: 20px;
  padding-top: calc(var(--header-height) + 20px);
  padding-bottom: calc(var(--dock-height) + 20px);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  padding-top: env(safe-area-inset-top, 0px);
  z-index: 200;
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.logo-text {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
}

.theme-switch {
  width: 44px;
  height: 24px;
  background: #cbd5e1;
  border-radius: 20px;
  position: relative;
  border: none;
}

body.dark-mode .theme-switch {
  background: var(--text-accent);
}

.switch-handle {
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: 0.3s;
}

body.dark-mode .switch-handle {
  transform: translateX(20px);
}

.glass-dock {
  position: fixed;
  bottom: calc(10px + env(safe-area-inset-bottom, 10px));
  left: 20px;
  right: 20px;
  height: 70px;
  max-width: 500px;
  margin: 0 auto;
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 35px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-float);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5px;
  z-index: 1000;
  pointer-events: none;
  transition: all 0.3s ease;
}

.dock-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-secondary);
  transition: 0.3s;
  pointer-events: auto;
}

.dock-item.active {
  color: var(--text-accent);
}

.dock-item .icon {
  font-size: 28px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dock-item:active .icon {
  transform: translateY(-4px) scale(0.9);
  text-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
  font-weight: 600;
}

.dock-item span {
  font-size: 10px;
  font-weight: 700;
  margin-top: 4px;
}

.dock-center-wrapper {
  position: relative;
  width: 70px;
  height: 70px;
  display: flex;
  justify-content: center;
}

.dock-item-home {
  position: absolute;
  bottom: 20px;
  width: 64px;
  height: 64px;
  background: var(--primary-gradient);
  border-radius: 50%;
  border: 4px solid var(--bg-app);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
  transition: transform 0.2s;
  pointer-events: auto;
}

.dock-item-home .icon {
  font-size: 32px;
}

.dock-item-home.active {
  transform: scale(1.1);
}

.view-section {
  display: none !important;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.3s;
}

.view-section.active {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
}

#cortes-view.active {
  display: flex !important;
  flex-direction: column;
}

#paradas-view.active,
#lugares-view.active,
#camaras-view.active,
#repostar-map-view.active,
#movilidad-sostenible-view.active {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100dvh !important;
  z-index: 150;
  margin: 0;
  padding: 0;
  background: var(--bg-app);
  overflow: hidden;
}

#repostar-view.map-mode {
  transform: none !important;
  will-change: auto !important;
  z-index: 2000 !important;
}

.section-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0;
}

.section-header p {
  color: var(--text-secondary);
  margin: 4px 0 0 0;
}

.section-header.with-back-btn {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.empty-state {
  text-align: center;
  margin-top: 30px;
  color: var(--text-secondary);
}

.error-msg {
  text-align: center;
  color: var(--text-secondary);
  padding: 20px;
}

#weather-section {
  margin-bottom: 20px;
  min-height: 100px;
}

.weather-card-premium {
  position: relative;
  background: var(--primary-gradient);
  color: white;
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: var(--shadow-float);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.weather-card-premium::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  filter: blur(30px);
}

.weather-left,
.weather-right {
  z-index: 10;
}

.weather-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.weather-meta-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  justify-content: flex-end;
}

.weather-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: white;
  backdrop-filter: blur(4px);
}

.weather-meta-item.aq-badge {
  background: var(--aqi-color);
  box-shadow: 0 2px 8px var(--aqi-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.weather-icon-lg {
  margin-bottom: 5px;
  display: block;
}

body.dark-mode .weather-meta-item:not(.aq-badge) {
  background: rgba(0, 0, 0, 0.2);
}

.location-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 2px;
  background: none;
  padding: 0;
  color: inherit;
}

.location-badge .icon {
  font-size: 14px;
}

.weather-temp {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.weather-desc {
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.9;
  text-transform: capitalize;
}

.weather-icon-lg {
  font-size: 40px;
  margin-bottom: 4px;
}

.weather-humidity {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.8;
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.weather-humidity .icon {
  font-size: 14px;
}

.skeleton-weather {
  height: 100px;
  background: rgba(150, 150, 150, 0.1);
  border-radius: 18px;
  animation: pulse 1.5s infinite;
}

.transport-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.transport-card {
  background: var(--bg-card);
  padding: 20px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.transport-card:active {
  transform: scale(0.98);
}

.card-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
}

.card-public {
  background: rgba(37, 99, 235, 0.1);
  color: var(--color-primary);
}

.card-personal {
  background: rgba(236, 72, 153, 0.1);
  color: var(--color-pink);
}

.card-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--color-warning);
}

.card-info {
  background: rgba(6, 182, 212, 0.1);
  color: var(--color-info);
}

.transport-info {
  flex: 1;
}

.transport-info h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.transport-info p {
  margin: 4px 0 0 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.arrow-icon {
  color: var(--text-secondary);
  opacity: 0.5;
  font-size: 24px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-bottom: 20px;
}

@media (min-width: 768px) {
  .dashboard-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.square-card {
  background: var(--bg-card);
  border-radius: 20px;
  height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  border: 1px solid var(--border-subtle);
  width: 100%;
  padding: 10px;
  text-align: center;
}

.square-card:active {
  transform: scale(0.95);
}

.square-card span {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.square-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.mobility-card {
  background: var(--bg-card);
  padding: 16px;
  border-radius: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--card-color, #ccc);
}

#paradas-view > div,
#lugares-view > div,
#movilidad-sostenible-view > div {
  width: 100%;
  height: 100%;
  position: relative !important;
}

#map-paradas,
#map-lugares,
#map-repostar,
#map-sostenible {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-card);
  z-index: 1;
}

#map-repostar {
  background-color: var(--bg-app);
}

#fuel-map-screen {
  will-change: transform, opacity;
}

#fuel-map-screen.active-map {
  display: block !important;
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw !important;
  height: 100dvh !important;
  z-index: 150;
  background: var(--bg-app);
  margin: 0 !important;
  padding: 0 !important;
}

.map-loader {
  position: absolute;
  inset: 0;
  z-index: 2500 !important;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

body.dark-mode .map-loader {
  background: rgba(15, 23, 42, 0.95);
}

.map-loader.visible {
  opacity: 1;
  pointer-events: auto;
}

#repostar-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999 !important;
  background: var(--bg-app);
  opacity: 0;
  display: none;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#repostar-loader.visible {
  opacity: 1;
  display: flex;
  pointer-events: auto;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(37, 99, 235, 0.15);
  border-left-color: var(--text-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

.map-loader p {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0;
  animation: pulseText 1.5s infinite ease-in-out;
}

.map-filters {
  position: absolute;
  top: calc(var(--header-height) + 20px);
  left: 50%;
  transform: translateX(-50%);
  right: auto;
  z-index: 500;
  display: flex;
  gap: 8px;
  justify-content: center;
  pointer-events: auto;
}

.filter-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-chip.active {
  background: var(--chip-color);
  color: white;
  border-color: var(--chip-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.map-search-container {
  position: absolute;
  top: calc(var(--header-height) + 70px);
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 360px;
  z-index: 1001 !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.map-header-bar {
  position: absolute;
  top: calc(var(--header-height) + 15px);
  left: 0;
  right: 0;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  z-index: 1002;
  pointer-events: none;
}

.map-header-bar > * {
  pointer-events: auto;
  position: static !important;
  transform: none !important;
  margin: 0 !important;
  flex-shrink: 0;
}

.map-header-bar .center-content {
  flex: 1;
  min-width: 0;
  display: flex !important;
  align-items: center;
  gap: 6px !important;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 4px;
}

.map-header-bar .center-content:not(.search-group) {
  justify-content: center;
}

.search-group {
  width: 100%;
  max-width: 400px;
  margin: 0 10px;
}

.search-group .search-box {
  flex: 1;
  width: auto !important;
}

@media (max-width: 380px) {
  .filter-chip {
    padding: 6px 8px !important;
    font-size: 0.75rem !important;
  }

  .filter-chip i {
    font-size: 14px !important;
  }

  .filter-chip span {
    white-space: nowrap;
  }
}

.btn-scroll-down {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 10px 20px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-scroll-down .icon {
  font-size: 1.2rem;
}

.btn-scroll-down:hover {
  background: var(--bg-app);
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.btn-scroll-down:active {
  transform: translateX(-50%) scale(0.96);
}

.transport-marker-container {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  color: white;
  border: 2px solid white;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
  overflow: hidden;
}

.transport-marker-container:hover {
  transform: scale(1.15);
  z-index: 1000 !important;
}

.transport-marker-container .icon {
  font-size: 18px;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  display: block !important;
}

.leaflet-popup-content-wrapper {
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
  border-radius: 16px !important;
  box-shadow: var(--shadow-float) !important;
  padding: 0 !important;
  border: 2px solid var(--popup-border-color, var(--border-subtle)) !important;
}

.leaflet-popup-tip-container {
  display: none !important;
}

.popup-border-metro .leaflet-popup-content-wrapper {
  border-color: var(--brand-metro) !important;
}

.popup-border-urbano .leaflet-popup-content-wrapper {
  border-color: var(--brand-urbano) !important;
}

.popup-border-inter .leaflet-popup-content-wrapper {
  border-color: var(--brand-inter) !important;
}

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

.popup-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.popup-actions .btn-realtime-popup {
  margin: 0;
}

.custom-cluster {
  background-color: var(--bg-card);
  border-radius: 50%;
  border: 2px solid var(--text-accent);
  color: var(--text-accent);
  font-weight: 800;
  font-family: var(--font-main);
  text-align: center;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.custom-cluster:active {
  transform: scale(0.95);
}

.cluster-small {
  width: 30px;
  height: 30px;
  font-size: 0.9rem;
}

.cluster-medium {
  width: 40px;
  height: 40px;
  font-size: 1rem;
  border-width: 3px;
}

.cluster-large {
  width: 50px;
  height: 50px;
  font-size: 1.1rem;
  border-width: 4px;
  background-color: var(--text-accent);
  color: white;
  border-color: white;
}

.cluster-metro-theme {
  border-color: var(--brand-metro) !important;
  color: var(--brand-metro) !important;
  background: var(--bg-card);
}

.cluster-urbano-theme {
  border-color: var(--brand-urbano) !important;
  color: var(--brand-urbano) !important;
  background: var(--bg-card);
}

.cluster-inter-theme {
  border-color: var(--brand-inter) !important;
  color: var(--brand-inter) !important;
  background: var(--bg-card);
}

.btn-navigate-popup {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
  transition:
    transform 0.2s,
    background-color 0.2s;
}

.btn-navigate-popup:active {
  transform: scale(0.95);
  background: #1d4ed8;
}

.btn-navigate-popup i {
  font-size: 1.1em;
}

.lines-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 100px;
  contain: paint;
}

.line-row-item {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition:
    transform 0.2s,
    background-color 0.2s;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.line-row-item:active {
  transform: scale(0.98);
  background: var(--bg-app);
}

.line-icon-box {
  width: 50px;
  height: 50px;
  background-color: var(--line-color, #333);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.line-info-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.line-info-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.line-info-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-arrow {
  color: var(--text-secondary);
  opacity: 0.5;
  font-size: 1.2rem;
}

.big-line-badge {
  background: var(--line-color, #000);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  padding: 5px 15px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.line-badges-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 8px;
}

.line-badge {
  background-color: var(--line-color, #999);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.detail-tabs {
  display: flex;
  background: var(--bg-card);
  padding: 5px;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-soft);
}

.detail-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: 0.3s;
}

.detail-tab.active {
  background: var(--bg-app);
  color: var(--text-primary);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.tab-content {
  display: none;
  animation: fadeInUp 0.3s ease;
}

.tab-content.active {
  display: block;
}

.map-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
  background: var(--bg-surface);
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.legend-box {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  display: inline-block;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stops-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.stops-column {
  position: relative;
  border-left: 2px solid var(--column-color, #ccc);
  padding-left: 14px;
  margin-left: 6px;
}

.stops-column-header {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 15px;
  text-align: center;
  margin-left: -14px;
  color: var(--column-color);
  background: var(--bg-card);
  padding: 5px 0;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border-subtle);
}

.stop-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
  position: relative;
}

.stop-dot {
  position: absolute;
  left: -21px;
  top: 8px;
  width: 12px;
  height: 12px;
  background: var(--bg-card);
  border: 3px solid var(--column-color);
  border-radius: 50%;
  z-index: 2;
}

.stop-info-wrapper {
  background: var(--bg-card);
  padding: 10px;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.stop-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  cursor: pointer;
}

.transfers-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.transfer-badge {
  background-color: var(--badge-color, #999);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  min-width: 20px;
  text-align: center;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  margin-bottom: 20px;
}

.schedule-table th,
.schedule-table td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}

.schedule-table th {
  background: rgba(0, 0, 0, 0.02);
  font-weight: 700;
  color: var(--text-primary);
}

.schedule-header {
  margin-top: 20px;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--text-accent);
  display: block;
}

.schedule-day-title {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.times-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.time-chip {
  background: var(--bg-app);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.fares-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding-bottom: 40px;
}

@media (min-width: 600px) {
  .fares-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.fare-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
}

.fare-card:active {
  transform: scale(0.98);
}

.fare-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--fare-color, #333);
}

.fare-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.fare-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.fare-badge {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.fare-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--fare-color, #333);
  margin-bottom: 5px;
}

.fare-price span {
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.7;
}

.fare-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.fares-legal-note {
  font-size: 0.75rem;
  text-align: center;
  color: var(--text-secondary);
  opacity: 0.6;
  margin-top: 20px;
}

.favorites-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 100px;
  contain: paint;
}

.fav-card {
  background: var(--bg-card);
  padding: 16px;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border-subtle);
}

.fav-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fav-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.fav-text h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.fav-text p {
  margin: 2px 0 0 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

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

.fuel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  margin-top: 20px;
  justify-content: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.fuel-option-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 1 / 1;
  height: auto;
}

.fuel-option-card:active {
  transform: scale(0.95);
}

.fuel-badge {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.fuel-option-card span {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.info-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 20px 0 10px 5px;
  color: var(--text-primary);
}

.info-card-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-card {
  background: var(--bg-card);
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.info-body-text {
  background: var(--bg-card);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  line-height: 1.6;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.rules-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.rule-card {
  border-radius: 12px;
  padding: 15px;
  display: flex;
  gap: 15px;
  align-items: flex-start;
  border: 1px solid transparent;
}

.rule-card.allowed {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}

.rule-card.forbidden {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
}

.rule-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.rule-card.allowed .rule-icon {
  color: var(--color-success);
}

.rule-card.forbidden .rule-icon {
  color: var(--color-error);
}

.rule-content h4 {
  margin: 0 0 8px 0;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rule-card.allowed h4 {
  color: #059669;
}

.rule-card.forbidden h4 {
  color: #dc2626;
}

.rule-content ul {
  margin: 0;
  padding-left: 15px;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.rule-content li {
  margin-bottom: 6px;
}

.rule-content p {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.4;
}

.rule-note {
  display: block;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-style: italic;
}

.limits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.limits-list li {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border-subtle);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.limits-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.limits-list li strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.limits-list li i {
  color: var(--text-accent);
  margin-right: 5px;
  vertical-align: text-bottom;
}

.highlight-box {
  margin-top: 20px;
  background: var(--bg-surface);
  border-left: 4px solid var(--text-accent);
  padding: 12px;
  border-radius: 8px;
}

.highlight-box strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.highlight-box p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.access-section-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 5px;
}

.access-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-soft);
}

.access-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 5px;
}

.access-header h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.location-chip {
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: var(--bg-app);
  padding: 2px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
}

.time-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.time-row {
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.time-row.weekend {
  background: rgba(239, 68, 68, 0.08);
  border-left: 3px solid var(--color-error);
}

.time-row.weekday {
  background: rgba(59, 130, 246, 0.08);
  border-left: 3px solid var(--color-primary);
}

.time-row.generic {
  background: var(--bg-app);
  border-left: 3px solid var(--text-secondary);
}

.day-label {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 2px;
  opacity: 0.8;
}

.hours {
  font-weight: 600;
  color: var(--text-primary);
}

.delivery-info {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.delivery-info i {
  color: var(--text-accent);
}

.parking-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.2s;
}

.parking-row:first-child {
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.parking-row:last-child {
  border-bottom: none;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

.parking-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.parking-status {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.status-libre {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}

.status-pocas {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
}

.status-completo {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
}

.status-cerrado {
  background: rgba(100, 116, 139, 0.15);
  color: #64748b;
}

.map-legend-floating {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--bg-surface);
  backdrop-filter: blur(10px);
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.map-legend-floating .legend-item {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-legend-floating .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.ora-tariff-card {
  background: var(--bg-card);
  border-radius: 16px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.ora-tariff-card.blue-zone {
  border-top: 5px solid #2563eb;
}

.ora-tariff-card.green-zone {
  border-top: 5px solid #10b981;
}

.ora-tariff-card.red-zone {
  border-top: 5px solid #ef4444;
}

.tariff-header {
  background: var(--bg-surface);
  padding: 12px 16px;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
}

.blue-zone .tariff-header {
  color: #2563eb;
}

.green-zone .tariff-header {
  color: #10b981;
}

.red-zone .tariff-header {
  color: #ef4444;
}

.limit-badge {
  font-size: 0.7rem;
  background: var(--bg-app);
  color: var(--text-primary);
  padding: 3px 8px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}

.tariff-body {
  padding: 16px;
}

.tariff-section strong {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 700;
}

.price-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.price-row span:last-child {
  font-weight: 700;
}

.tariff-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 10px 0;
}

.tariff-section.alert strong {
  color: var(--color-error);
}

.ora-streets-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.streets-group {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 15px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.streets-group.red-border {
  border-left: 4px solid #ef4444;
}

.streets-group.blue-border {
  border-left: 4px solid #2563eb;
}

.streets-group.green-border {
  border-left: 4px solid #10b981;
}

.streets-header {
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.streets-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.streets-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 6px 0;
  border-bottom: 1px dashed var(--border-subtle);
  line-height: 1.4;
}

.streets-list li:last-child {
  border-bottom: none;
}

.streets-list strong {
  color: var(--text-primary);
}

.event-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--event-color, #64748b);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s;
}

.event-card:active {
  transform: scale(0.98);
}

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.event-type-badge {
  background: var(--event-bg-light, rgba(0, 0, 0, 0.05));
  color: var(--event-color, #64748b);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.event-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin: 0;
}

.event-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 8px;
  display: block;
}

.event-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-subtle);
}

.event-date {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-locate-event {
  background: var(--bg-app);
  color: var(--text-accent);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: 0.2s;
}

.cortes-toolbar {
  position: relative;
  z-index: 500 !important;
  pointer-events: auto;
}

#cortes-list-container {
  position: relative;
  z-index: 1;
}

#notification-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 90%;
  max-width: 400px;
  pointer-events: none;
}

.notification-toast {
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 18px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
  animation: slideInDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  opacity: 0;
  transform: translateY(-20px);
}

.notification-toast.hiding {
  animation: fadeOutUp 0.3s forwards;
}

.notification-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.notification-message {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 2px 0 0 0;
  line-height: 1.3;
}

.toast-error .notification-icon {
  color: var(--color-error);
}

.toast-success .notification-icon {
  color: var(--color-success);
}

.toast-info .notification-icon {
  color: #3b82f6;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.modal-overlay.visible {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-card);
  width: 100%;
  max-width: 400px;
  border-radius: 24px;
  box-shadow: var(--shadow-float);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  max-height: 80vh;
}

.modal-overlay.visible .modal-card {
  transform: scale(1);
}

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

.modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  min-height: 150px;
}

.btn-realtime-popup {
  display: block;
  margin: 10px auto 0 auto;
  background: var(--text-accent);
  color: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
  transition: transform 0.2s;
}

.btn-realtime-popup:active {
  transform: scale(0.9);
}

.btn-realtime-popup i {
  font-size: 18px;
  line-height: 36px;
}

.btn-fav-popup {
  background: var(--bg-surface);
  color: var(--color-star);
  border: 1px solid var(--color-star);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-fav-popup.active {
  background: var(--color-star);
  color: white;
  box-shadow: 0 4px 10px rgba(251, 191, 36, 0.4);
}

.btn-fav-popup:active {
  transform: scale(0.9);
}

.btn-fav-popup i {
  font-size: 18px;
}

.time-bus {
  color: var(--color-primary);
}

.time-metro {
  color: var(--brand-metro);
}

.time-llegando {
  color: var(--color-error);
  text-transform: uppercase;
  font-size: 0.85rem;
  animation: blinkRed 1s infinite;
}

.arrival-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.arrival-badge-box {
  color: #fff;
  border-radius: 8px;
  font-weight: 800;
  width: 40px;
  height: 32px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-align: center;
  font-size: 0.95rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.arrival-dest-text {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  margin-left: 10px;
  margin-right: 10px;
}

.arrival-time-value {
  font-weight: 800;
  font-size: 1.1rem;
  min-width: 60px;
  text-align: right;
}

#places-filters-overlay {
  z-index: 2000;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

#places-filters-panel {
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-float);
  border-radius: 16px;
  scrollbar-width: none;
  position: absolute;
  bottom: 120px;
  left: 15px;
  right: 15px;
  background: var(--bg-card);
  padding: 20px;
  max-height: 60vh;
  overflow-y: auto;
  transform: translateY(calc(100% + 150px));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#places-filters-panel::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  #places-filters-panel {
    max-width: 400px;
    margin: 0 auto;
    bottom: 20px;
    left: auto;
    right: 20px;
    border-radius: 24px;
    transform: translateY(120%);
  }
}

#filters-container-list label:active {
  transform: scale(0.97);
  filter: brightness(0.9);
}

.filter-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--text-accent);
  cursor: pointer;
}

.home-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 20px;
  margin-bottom: 30px;
}

@media (min-width: 600px) {
  .home-dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.summary-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.summary-card:active {
  transform: scale(0.98);
}

.summary-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.summary-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.summary-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  opacity: 0.9;
}

.summary-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 4px;
}

.summary-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
}

.widget-event .summary-icon {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.widget-parking .summary-icon {
  background: rgba(37, 99, 235, 0.15);
  color: #2563eb;
}

.widget-bus .summary-icon {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.widget-fuel .summary-icon {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.skeleton-text {
  height: 20px;
  background: rgba(150, 150, 150, 0.1);
  border-radius: 6px;
  width: 60%;
  animation: pulse 1.5s infinite;
  margin-bottom: 5px;
}

.mini-list-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-event-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding-left: 10px;
  border-left: 3px solid #f59e0b;
}

.bus-lines-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

.bus-line-pill {
  background: var(--color-error);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.bus-status-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.fuel-price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.fuel-price-item {
  background: rgba(0, 0, 0, 0.03);
  padding: 6px;
  border-radius: 8px;
  text-align: center;
}

.fuel-type-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  display: block;
  font-weight: 700;
  margin-bottom: 2px;
}

.fuel-price-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.goog-te-banner-frame.skiptranslate {
  display: none !important;
}

.goog-te-banner-frame {
  display: none !important;
}

.goog-text-highlight {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
  text-decoration: none !important;
}

font {
  background-color: transparent !important;
  box-shadow: none !important;
}

.goog-text-highlight:hover,
font:hover {
  background-color: transparent !important;
  box-shadow: none !important;
}

#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.skiptranslate {
  display: none;
}

.notranslate {
  -webkit-translate: no;
  translate: no;
}

.lang-grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.lang-btn {
  border: none;
  border-radius: 12px;
  padding: 12px 0;
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 0.95rem;
  color: white;
  cursor: pointer;
  transition:
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.2s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  background-size: 200% auto;
}

.lang-btn:active {
  transform: scale(0.92);
}

.lang-es {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.lang-en {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.lang-fr {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.lang-it {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.lang-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  padding: 20px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  transform: translateY(150%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.cookie-icon {
  font-size: 2rem;
  color: var(--text-accent);
  background: var(--bg-app);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cookie-text h3 {
  margin: 0 0 5px 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.cookie-text p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.cookie-btn {
  flex: 1;
  padding: 14px;
  border-radius: 14px;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.cookie-btn:active {
  transform: scale(0.96);
}

.cookie-btn.primary {
  background: var(--text-accent);
  color: white;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.cookie-btn.secondary {
  background: var(--bg-app);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

@media (min-width: 768px) {
  .cookie-banner {
    bottom: 20px;
    border-radius: 24px;
    left: 20px;
    right: auto;
    width: 350px;
  }
}

.btn-nearby-float {
  position: absolute;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-accent);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  transition:
    transform 0.2s,
    bottom 0.3s;
  pointer-events: auto;
  white-space: nowrap;
}

.btn-nearby-float:active {
  transform: translateX(-50%) scale(0.95);
}

.btn-nearby-float .icon {
  font-size: 18px;
}

.nearby-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.nearby-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.nearby-card {
  background: var(--bg-card);
  width: 100%;
  max-width: 400px;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  max-height: 70vh;
}

.nearby-overlay.visible .nearby-card {
  transform: scale(1);
}

.nearby-header {
  padding: 0 20px 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
}

.nearby-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.nearby-content {
  overflow-y: auto;
  padding: 10px 15px 40px 15px;
}

.nearby-item {
  display: flex;
  align-items: center;
  background: var(--bg-app);
  padding: 10px;
  border-radius: 12px;
  margin-bottom: 8px;
  border: 1px solid var(--border-subtle);
}

.nearby-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
  color: white;
}

.nearby-info {
  flex: 1;
  min-width: 0;
}

.nearby-name {
  font-weight: 700;
  font-size: 0.9rem;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nearby-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.distance-badge {
  background: var(--text-primary);
  color: var(--bg-card);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.7rem;
}

.nearby-actions {
  display: flex;
  gap: 8px;
  margin-left: 8px;
}

#nearby-list-content .icon-btn-small.active i {
  font-size: 1.2rem !important;
  color: #fbbf24 !important;
}

.gap-3 {
  gap: 12px;
}

#nearby-list-content .icon-btn-small i {
  font-size: 1.2rem !important;
  color: var(--text-secondary);
}

#nearby-list-content .icon-btn-small.active i.ri-star-fill {
  color: #fbbf24 !important;
}

#nearby-list-content .icon-btn-small i.ri-search-line {
  color: var(--text-primary) !important;
}

.radar-icon-container {
  background: transparent;
}

.radar-circle {
  background-color: #ffffff;
  border: 3px solid #d9281c;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  color: #d9281c;
  font-size: 16px;
  transition: transform 0.2s ease;
}

.radar-icon-container:hover .radar-circle {
  transform: scale(1.1);
  background-color: #d9281c;
  color: #fff;
  border-color: #fff;
}

@keyframes dash-move {
  to {
    stroke-dashoffset: -30;
  }
}

.leaflet-overlay-pane path[stroke-dasharray] {
  animation: dash-move 1.5s linear infinite;
}

.popup-radar h3 {
  margin: 0 0 8px 0;
  font-size: 1rem;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 5px;
}

.popup-radar p {
  margin: 4px 0;
  font-size: 0.9rem;
  color: #475569;
}

.popup-radar .badge {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  color: white;
  text-transform: uppercase;
  font-weight: 700;
}

.popup-radar .badge.fijo {
  background-color: #e67e22;
}

.popup-radar .badge.movil {
  background-color: #d9281c;
}

.popup-radar .badge.tramo {
  background-color: #8e44ad;
}

.wordle-board {
  display: grid;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
  padding: 10px;
}

.wordle-cell {
  width: 50px;
  height: 50px;
  border: 2px solid var(--border-subtle);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-primary);
  background: var(--bg-card);
  transition: all 0.3s ease;
}

.wordle-cell.pop {
  transform: scale(1.1);
  border-color: var(--text-secondary);
}

.wordle-cell.correct {
  background: var(--color-success) !important;
  color: white !important;
  border-color: var(--color-success) !important;
}

.wordle-cell.present {
  background: var(--color-warning) !important;
  color: white !important;
  border-color: var(--color-warning) !important;
}

.wordle-cell.absent {
  background: var(--text-secondary) !important;
  color: white !important;
  border-color: var(--text-secondary) !important;
}

.wordle-cell.active {
  border-color: var(--text-accent) !important;
  box-shadow: 0 0 0 2px var(--text-accent);
  background-color: var(--bg-surface);
  transform: scale(1.05);
  z-index: 10;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-20px);
  }

  60% {
    transform: translateY(-10px);
  }
}

.wordle-cell.winner {
  animation: bounce 0.6s ease;
  background-color: var(--color-success) !important;
  color: white !important;
  border-color: var(--color-success) !important;
}

@keyframes shake {
  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }

  20%,
  80% {
    transform: translate3d(2px, 0, 0);
  }

  30%,
  50%,
  70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%,
  60% {
    transform: translate3d(4px, 0, 0);
  }
}

.shake {
  animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.sudoku-board {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 0;
  border: 2px solid var(--text-primary);
  background: var(--border-subtle);
  aspect-ratio: 1 / 1;
  max-width: 400px;
  margin: 0 auto 20px auto;
  border-radius: 4px;
  touch-action: manipulation;
}

.sudoku-cell {
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  z-index: 1;
}

.sudoku-cell:nth-child(3n) {
  border-right: 2px solid var(--text-primary);
}

.sudoku-cell:nth-child(9n) {
  border-right: none;
}

.sudoku-cell:nth-child(n + 19):nth-child(-n + 27),
.sudoku-cell:nth-child(n + 46):nth-child(-n + 54) {
  border-bottom: 2px solid var(--text-primary);
}

.sudoku-cell:nth-child(n + 73) {
  border-bottom: none;
}

.sudoku-cell.fixed {
  font-weight: 800;
  color: var(--text-primary);
  background: var(--bg-app);
}

.sudoku-cell.selected {
  background: rgba(37, 99, 235, 0.3) !important;
  border: 2px solid var(--text-accent) !important;
  z-index: 10;
}

.sudoku-cell.highlighted::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--text-accent);
  opacity: 0.15;
  pointer-events: none;
  z-index: -1;
}

body.dark-mode .sudoku-cell.highlighted::before {
  opacity: 0.25;
  background-color: #3b82f6;
}

.sudoku-cell.same-number {
  background: rgba(37, 99, 235, 0.5) !important;
  font-weight: 700;
  color: white !important;
}

.sudoku-cell.error {
  color: var(--color-error) !important;
  background: rgba(239, 68, 68, 0.2);
}

.sudoku-cell.error::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--color-error);
}

.sudoku-stats-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 0 5px;
}

#wordle-game-container,
#sudoku-board-wrapper {
  position: relative !important;
}

#wordle-native-input,
#sudoku-hidden-input {
  position: absolute !important;
  top: 50px !important;
  left: 0 !important;
  width: 100% !important;
  height: 200px !important;
  opacity: 0 !important;
  z-index: -1;
  pointer-events: none;
  margin: 0 !important;
}

.memory-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 400px;
  margin: 0 auto;
  perspective: 1000px;
}

.memory-card {
  aspect-ratio: 1 / 1;
  background-color: transparent;
  cursor: pointer;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s;
  border-radius: 12px;
  -webkit-tap-highlight-color: transparent;
}

.memory-card.flip {
  transform: rotateY(180deg);
}

.memory-face {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  border: 2px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.memory-front {
  background-color: var(--bg-card);
  color: var(--text-secondary);
  font-size: 1.5rem;
}

.memory-back {
  background-color: var(--bg-surface);
  color: var(--color-primary);
  transform: rotateY(180deg);
  font-size: 2rem;
  border-color: var(--color-primary);
}

.memory-card.matched .memory-back {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
  border-color: var(--color-success);
}

.quiz-options-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-btn {
  background: var(--bg-app);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 16px 20px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
}

.quiz-btn:active {
  transform: scale(0.98);
  background: var(--border-subtle);
}

.quiz-btn.correct {
  background: rgba(16, 185, 129, 0.15) !important;
  color: var(--color-success) !important;
  border-color: var(--color-success) !important;
  font-weight: 800;
}

.quiz-btn.correct i {
  color: var(--color-success);
}

.quiz-btn.wrong {
  background: rgba(239, 68, 68, 0.1) !important;
  color: var(--color-error) !important;
  border-color: var(--color-error) !important;
  opacity: 0.7;
}

.quiz-btn.wrong i {
  color: var(--color-error);
}

.fade-in-right {
  animation: fadeInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.lines-list-container,
.favorites-container,
#cortes-list-container {
  content-visibility: auto;
  contain-intrinsic-size: 100px;
}

.leaflet-container .leaflet-control-attribution {
  background: transparent !important;
  background-color: transparent !important;
  color: rgba(150, 150, 150, 0.6) !important;
  font-size: 10px;
  text-decoration: none;
  padding: 0 5px;
  margin: 0;
  box-shadow: none !important;
}

.leaflet-container .leaflet-control-attribution a {
  color: rgba(150, 150, 150, 0.8) !important;
  text-decoration: none;
}

.map-header-bar .center-content .filter-chip {
  padding: 6px 16px;
  height: 36px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 50px;
}

body.driving-mode-on .glass-dock,
body.driving-mode-on .map-header-bar,
body.driving-mode-on .app-header,
body.driving-mode-on .leaflet-control-container,
body.driving-mode-on .cookie-banner,
body.driving-mode-on #cookie-banner {
  display: none !important;
}

#driving-hud {
  background-color: #000000 !important;
  background: #000000 !important;
  opacity: 1 !important;
  z-index: 9999 !important;
}

.taxi-container-card {
  padding: 20px !important;
  cursor: default !important;
}

.taxi-buttons-grid {
  display: flex;
  gap: 10px;
  width: 100%;
}

.taxi-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 5px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.taxi-action-btn.call {
  background: #10b981;
  color: white;
}

.taxi-action-btn.web {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.taxi-action-btn:active {
  transform: scale(0.96);
}

.taxi-container-card .card-icon-wrapper i {
  color: #ffffff !important;
  display: block !important;
  opacity: 1 !important;
}

.parking-warning-note {
  width: 100%;
  max-width: 100%;
  padding: 0 25px;
  margin: 10px auto 20px auto;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text-secondary);
  font-style: italic;
  text-align: center;
  opacity: 0.8;
  display: block;
}

#parkings-table-container {
  margin-top: 10px;
}

body.keyboard-open .glass-dock {
  display: none !important;
  pointer-events: none !important;
  transition: all 0.3s ease;
}

@keyframes balanceGain {
  0% {
    transform: scale(1);
    color: #10b981;
  }

  50% {
    transform: scale(1.2);
    color: #10b981;
    font-weight: 800;
  }

  100% {
    transform: scale(1);
  }
}

@keyframes balanceLoss {
  0% {
    transform: translateX(0);
    color: #ef4444;
  }

  20% {
    transform: translateX(-4px);
  }

  40% {
    transform: translateX(4px);
  }

  60% {
    transform: translateX(-4px);
  }

  80% {
    transform: translateX(4px);
  }

  100% {
    transform: translateX(0);
  }
}

.animate-gain {
  animation: balanceGain 0.6s ease-out;
}

.animate-loss {
  animation: balanceLoss 0.5s ease-in-out;
}

.blackjack-toast {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(251, 191, 36, 0.95);
  color: #000;
  padding: 20px 40px;
  border-radius: 50px;
  font-weight: 900;
  font-size: 2.5rem;
  z-index: 1000;
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.5);
  animation: bjPop 1.5s ease-out forwards;
  pointer-events: none;
}

@keyframes bjPop {
  0% {
    transform: translate(-50%, -50%) scale(0) rotate(-20deg);
    opacity: 0;
  }

  30% {
    transform: translate(-50%, -50%) scale(1.2) rotate(5deg);
    opacity: 1;
  }

  70% {
    transform: translate(-50%, -50%) scale(1.1) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.5) rotate(0deg);
    opacity: 0;
  }
}

.bet-chip {
  border-radius: 50%;
  width: 45px;
  height: 45px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  border: 3px dashed rgba(255, 255, 255, 0.3);
  color: white;
}

.speed-sign {
  width: 150px;
  height: 150px;
  border: 15px solid #ef4444;
  font-size: 4rem;
  background: white;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: black;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  margin: 0 auto;
}

.speed-sign .est-label {
  font-size: 0.75rem;
  margin-top: -10px;
  font-weight: 800;
  color: #475569;
}

.speed-sign.estimated {
  border-style: dashed;
  border-color: #94a3b8;
  opacity: 0.8;
}

.speed-sign.estimated .est-label {
  font-size: 0.8rem;
  bottom: 10px;
}

.speed-lanes-container {
  background: rgba(0, 0, 0, 0.3);
  padding: 15px 25px;
  border-radius: 50px;
}

.speed-sign.mini {
  width: 100px !important;
  height: 100px !important;
  font-size: 3rem !important;
  border-width: 10px !important;
}

.slots-3x3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 280px;
  margin: 0 auto;
  background: linear-gradient(145deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.1));
  padding: 12px;
  border-radius: 22px;
  border: 3px solid var(--border-subtle);
  box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.1);
}

.slot-cell {
  aspect-ratio: 1/1;
  background: var(--bg-card);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.05),
    0 2px 4px rgba(0, 0, 0, 0.05);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.slot-icon-wrapper {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--text-primary);
  transform: translateZ(0);
}

.slot-icon-wrapper.reel-spinning {
  animation: spinBlur 0.1s linear infinite;
  filter: blur(4px);
  opacity: 0.8;
}

@keyframes spinBlur {
  0% {
    transform: translateY(-15%);
  }

  50% {
    transform: translateY(15%);
  }

  100% {
    transform: translateY(-15%);
  }
}

.slot-icon-wrapper.reel-stopping {
  animation: stopBounce 0.5s cubic-bezier(0.25, 1.5, 0.5, 1) forwards;
  filter: blur(0);
}

@keyframes stopBounce {
  0% {
    transform: translateY(-120%);
    opacity: 0;
  }

  40% {
    transform: translateY(15%);
    opacity: 1;
  }

  100% {
    transform: translateY(0);
  }
}

.slot-cell.win-pulse {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: var(--color-success) !important;
  color: var(--color-success) !important;
  z-index: 5;
  animation: winPulsate 1.2s ease-in-out infinite;
}

.slot-cell.win-pulse .slot-icon-wrapper {
  color: var(--color-success) !important;
}

@keyframes winPulsate {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 20px 5px rgba(16, 185, 129, 0.3);
    transform: scale(1.05);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    transform: scale(1);
  }
}

.powerup-btn {
  background: var(--bg-surface);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.powerup-btn:active {
  transform: scale(0.95);
}

.powerup-btn.active {
  border-color: var(--text-accent);
  color: var(--text-accent);
}

.powerup-btn:disabled {
  opacity: 0.5;
  filter: grayscale(1);
}

.geo-recenter-btn {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 1000;
  width: 44px;
  height: 44px;
  background: var(--bg-surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.geo-recenter-btn:active {
  transform: scale(0.9);
}

.geo-recenter-btn i {
  font-size: 1.4rem;
}

.widget-eco .summary-icon {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.widget-eco:active {
  transform: scale(0.98);
}

.widget-achievements .summary-icon {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.widget-achievements .summary-sub {
  font-size: 0.8rem;
  opacity: 0.8;
  line-height: 1.2;
}

#home-achievements-content {
  gap: 12px;
}

#home-achievements-content i {
  color: var(--text-accent);
  margin-right: 4px;
}

.mines-board {
  display: grid;
  gap: 4px;
  margin: 0 auto;
  padding: 10px;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  max-width: 100%;
  overflow-x: auto;
}

.mine-cell {
  aspect-ratio: 1;
  background: var(--bg-app);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.1s;
  border: 1px solid var(--border-subtle);
  min-width: 30px;
}

.mine-cell.revealed {
  background: transparent;
  border-color: transparent;
}

.mine-cell.revealed[data-count="1"] {
  color: #2563eb;
}

.mine-cell.revealed[data-count="2"] {
  color: #10b981;
}

.mine-cell.revealed[data-count="3"] {
  color: #ef4444;
}

.mine-cell.revealed[data-count="4"] {
  color: #8b5cf6;
}

.mine-cell:active {
  transform: scale(0.9);
}

.weather-hero-card {
  padding: 30px;
  border-radius: 24px;
  color: white;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all 0.5s ease;
  box-shadow: var(--shadow-soft);
}

.hero-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#hero-temp {
  font-size: 4rem;
  font-weight: 800;
}

#hero-icon {
  font-size: 4.5rem;
}

.hero-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 15px;
  border-radius: 16px;
  text-align: center;
  font-size: 0.85rem;
}

.hourly-scroll {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding: 10px 2px 20px 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.hourly-scroll::-webkit-scrollbar {
  display: none;
}

.hourly-item {
  min-width: 70px;
  background: var(--bg-card);
  padding: 15px 8px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
  box-shadow: var(--shadow-soft);
}

.hourly-item .h-time {
  font-size: 0.7rem;
  opacity: 0.6;
  font-weight: 600;
}

.hourly-item i {
  font-size: 1.4rem;
  color: var(--text-accent);
}

.hourly-item .h-temp {
  font-weight: 800;
  font-size: 1rem;
}

.hourly-item .h-wind {
  font-size: 0.65rem;
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 2px;
}

.weather-hero-card {
  padding: 25px;
  border-radius: 28px;
  color: white;
  margin-bottom: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.theme-sunny {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.theme-cloudy {
  background: linear-gradient(135deg, #64748b, #334155);
}

.theme-rainy {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.theme-snowy {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.theme-storm {
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

.theme-fog {
  background: linear-gradient(135deg, #94a3b8, #475569);
}

.daily-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--bg-card);
  border-radius: 16px;
  margin-bottom: 8px;
  border: 1px solid var(--border-subtle);
}

.day-name {
  font-weight: 700;
  width: 50px;
  text-transform: capitalize;
}

.day-temps {
  font-weight: 700;
  display: flex;
  gap: 10px;
}

.day-temps .min {
  opacity: 0.5;
}

.weather-carousel-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-radius: 15px;
  background: var(--bg-card);
  min-height: 100px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.weather-carousel-container::-webkit-scrollbar {
  display: none;
}

.weather-card-snap {
  min-width: 100%;
  scroll-snap-align: center;
  background: transparent;
  border: none;
  box-shadow: none;
  cursor: pointer;
}

.weather-widget-mini {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.weather-widget-mini .w-info {
  display: flex;
  flex-direction: column;
}

.weather-widget-mini .w-loc {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-accent);
  display: flex;
  align-items: center;
  gap: 5px;
}

.weather-widget-mini .w-temp {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 5px 0;
}

.weather-widget-mini .w-desc {
  font-size: 0.9rem;
  opacity: 0.7;
}

.weather-widget-mini .w-icon {
  font-size: 3.5rem;
  color: var(--text-accent);
}

#hud-radio-container {
  margin-top: 10px !important;
}

.radio-nav-btn:active {
  transform: scale(0.9);
  opacity: 0.7;
}

#radio-list-horizontal {
  min-height: 110px;
}

#radio-list-horizontal::-webkit-scrollbar {
  display: none;
}

.radio-station-card {
  flex: 0 0 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s;
  cursor: pointer;
}

.radio-logo-wrapper {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: 18px;
  overflow: hidden;
  background: #222;
  border: 2px solid #333;
}

.radio-logo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.radio-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.radio-station-card.active .radio-play-overlay {
  opacity: 1;
}

.radio-station-card.playing .radio-logo-wrapper {
  border-color: var(--text-accent);
  box-shadow: 0 0 15px var(--text-accent);
}

.radio-play-overlay i {
  color: white;
  font-size: 1.8rem;
}

.radio-card-name {
  font-size: 0.7rem;
  color: #ccc;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  font-weight: 600;
}

.radio-station-card.active .radio-card-name {
  color: var(--text-accent);
}

.radio-equalizer {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding-bottom: 15px;
  z-index: 2;
}

.radio-station-card.playing .radio-equalizer {
  display: flex;
}

.radio-station-card.playing .radio-play-overlay {
  display: none;
}

.eq-bar {
  width: 6px;
  height: 10px;
  background: var(--text-accent);
  border-radius: 3px;
  animation: equalize 0.8s ease-in-out infinite;
}

.eq-bar:nth-child(1) {
  animation-duration: 0.6s;
}

.eq-bar:nth-child(2) {
  animation-duration: 0.9s;
  animation-delay: 0.1s;
}

.eq-bar:nth-child(3) {
  animation-duration: 0.7s;
  animation-delay: 0.2s;
}

.eq-bar:nth-child(4) {
  animation-duration: 1s;
  animation-delay: 0.3s;
}

@keyframes equalize {
  0%,
  100% {
    height: 8px;
  }

  50% {
    height: 28px;
  }
}

.editor-row {
  transition: all 0.2s ease;
  border: 1px solid var(--border-subtle);
}

.editor-row.dragging {
  opacity: 0.4;
  background: var(--bg-app);
  border: 1px dashed var(--text-accent);
}

.editor-row.drag-over {
  border-top: 2px solid var(--text-accent);
  transform: translateY(2px);
}

.widget-driving .summary-icon {
  background: rgba(37, 99, 235, 0.15);
  color: var(--color-primary);
}

.widget-radio .summary-icon {
  background: rgba(139, 92, 246, 0.15);
  color: var(--color-purple);
}

.ri-drag-move-2-fill {
  cursor: grab;
}

.editor-row:active {
  cursor: grabbing;
}

.radio-player-container {
  background: var(--bg-card);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.player-logo-large {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  background: var(--bg-app);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border-subtle);
  overflow: hidden;
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  margin-bottom: 20px;
}

.play-btn-large {
  width: 70px;
  height: 70px;
  background: var(--text-accent);
  color: white;
  border-radius: 50%;
  font-size: 2rem;
  box-shadow: 0 10px 20px var(--text-accent) 4D;
}

.control-btn {
  font-size: 1.8rem;
  opacity: 0.7;
}

.fav-main-btn {
  font-weight: 700;
  font-size: 0.9rem;
  gap: 8px;
}

.radio-list-horizontal-large {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding: 10px 5px;
  scrollbar-width: none;
}

.radio-station-card.is-favorite .radio-logo-wrapper {
  border-color: #fbbf24;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.2);
}

.radio-station-card.is-favorite .radio-card-name {
  color: #fbbf24;
  font-weight: 800;
}

.time-scheduled {
  color: #f59e0b !important;
  font-weight: 800;
}

@keyframes blink-icon-anim {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
  100% {
    opacity: 1;
  }
}

.blink-icon {
  animation: blink-icon-anim 1.5s infinite ease-in-out;
  display: inline-block;
  vertical-align: middle;
}
