/* styles.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #2563eb;
  --primary-rgb: 37, 99, 235;
  --surface: #ffffff;
  --background: #f3f4f6;
  --text: #111827;
  --text-light: #6b7280;
  --border: #e5e7eb;
}

.dark {
  --primary: #3b82f6;
  --surface: #1f2937;
  --background: #111827;
  --text: #f9fafb;
  --text-light: #9ca3af;
  --border: #374151;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--background);
  color: var(--text);
  overscroll-behavior-y: none;
}

/* Scrollbars Invisibles */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Animaciones de Vista */
.fade-in {
  animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tarjetas y Efectos */
.hover-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-card:active {
  transform: scale(0.97);
}

/* Barra Inferior (Diseño iPhone) */
.pb-safe {
  padding-bottom: env(safe-area-inset-bottom, 20px);
}
.bottom-nav-item {
  transition: all 0.2s ease;
}
.bottom-nav-item.active {
  color: var(--primary);
  transform: translateY(-2px);
}
.bottom-nav-item.active i {
  fill: var(--primary);
  opacity: 0.2;
}

/* Loader */
.pulsing-dot {
  width: 12px;
  height: 12px;
  background-color: var(--primary);
  border-radius: 50%;
  animation: pulse 1s infinite alternate cubic-bezier(0.5, 0, 0.5, 1);
}
@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.5); opacity: 1; box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.5); }
}

/* Chat Burbujas */
.chat-bubble-me {
  background: var(--primary);
  color: white;
  align-self: flex-end;
  border-radius: 20px 20px 0 20px;
  padding: 10px 16px;
  max-w: 80%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.chat-bubble-other {
  background: white;
  color: black;
  align-self: flex-start;
  border-radius: 20px 20px 20px 0;
  padding: 10px 16px;
  max-w: 80%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  border: 1px solid var(--border);
}
.dark .chat-bubble-other {
  background: #374151;
  color: white;
  border-color: #4b5563;
}

/* Mapa Pines */
.custom-marker-icon .pin-photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  overflow: hidden;
  background: white;
  position: relative;
}
.custom-marker-icon .pin-photo::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px 6px 0;
  border-style: solid;
  border-color: white transparent transparent transparent;
}
.custom-marker-icon .pin-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Modales */
.modal-overlay {
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease-out;
}

/* Swipe to Delete (Contenedor) */
.swipe-container {
  overflow: hidden;
  position: relative;
  touch-action: pan-y;
}
.swipe-content {
  position: relative;
  z-index: 2;
  transition: transform 0.2s cubic-bezier(0.1, 0.7, 0.1, 1);
  background: inherit;
}
.swipe-actions {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ef4444;
  color: white;
  z-index: 1;
  font-weight: bold;
  font-size: 0.8rem;
  box-shadow: inset 5px 0 10px rgba(0,0,0,0.1);
}

/* Autocomplete Suggestion List */
.autocomplete-list {
  position: absolute;
  z-index: 5000;
  background: white;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  max-h: 200px;
  overflow-y: auto;
  margin-top: 4px;
}
.dark .autocomplete-list {
  background: #1f2937;
}
.autocomplete-item {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.autocomplete-item:hover {
  background: var(--background);
}
.dark .autocomplete-item:hover {
  background: #374151;
}

/* Verificado Personalizado */
.badge-custom {
  width: 21px;
  height: 21px;
  display: inline-block;
  vertical-align: middle;
  background-image: url('https://i.imgur.com/MBHDsoA.png');
  background-size: contain;
  background-repeat: no-repeat;
  margin-left: 4px;
}
.badge-custom-lg {
  width: 29px;
  height: 29px;
}
