/**
 * locales.css — Estilos específicos de páginas de locales (info_local, locales_list)
 * Cargado condicionalmente solo cuando $data['es_local'] = 1
 * Generado en: Etapa 1 Optimización — 2026-06-09
 *
 * Consolida estilos que anteriormente estaban en:
 *   - application/views/info_local.php  (bloque <style> de 130 líneas)
 *   - application/views/includes/_header.php (estilos .local-phone*)
 *   - application/views/includes/locales_list.php (bloque <style> y atributos style="")
 */

/* ─────────────────────────────────────────────────────────────────────────────
   1. CABECERA DEL LOCAL
   ───────────────────────────────────────────────────────────────────────────── */
.il-card-local {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
}

.il-logo {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border: 2px solid rgba(255, 204, 0, 0.35);
  flex-shrink: 0;
}

.il-titulo-local {
  color: #fff;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.15;
}

.il-badge-barrio {
  background: rgba(255, 255, 255, 0.08);
  color: #aaa;
  font-weight: 400;
}

.il-telefono {
  color: #ffcc00;
  font-size: 1.15rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   2. DESCRIPCIÓN
   ───────────────────────────────────────────────────────────────────────────── */
.il-descripcion {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

/* ─────────────────────────────────────────────────────────────────────────────
   3. GALERÍA
   ───────────────────────────────────────────────────────────────────────────── */
.il-carousel {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.il-galeria-img {
  max-height: 420px;
  object-fit: cover;
}

.il-carousel-caption {
  background: rgba(0, 0, 0, 0.45);
  border-radius: 8px;
  padding: 6px 12px;
}

.carousel-item img {
  border-radius: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   4. MAPA
   ───────────────────────────────────────────────────────────────────────────── */
.il-mapa-wrap {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.il-mapa {
  height: 280px;
}

/* Placeholder estático cuando Maps aún no se cargó */
.il-mapa-placeholder {
  height: 280px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.il-mapa-placeholder .il-mapa-direccion {
  font-size: 0.9rem;
  text-align: center;
  padding: 0 16px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   5. PESTAÑAS / TABS
   ───────────────────────────────────────────────────────────────────────────── */
.il-tab-content {
  background: rgba(255, 255, 255, 0.03);
}

#tabsmenu .nav-link {
  color: rgba(255, 255, 255, 0.6);
  border-color: transparent;
  font-size: 0.85rem;
}

#tabsmenu .nav-link.active {
  color: #ffcc00;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.18) rgba(255, 255, 255, 0.18) transparent;
}

#tabsmenu .nav-link:hover:not(.active) {
  color: #fff;
  border-color: transparent;
}

/* ─────────────────────────────────────────────────────────────────────────────
   6. FORMULARIO DE RECLAMO / MENSAJE
   ───────────────────────────────────────────────────────────────────────────── */
#reclamo_form .form-control:focus,
#reclamo_form .form-select:focus {
  border-color: rgba(255, 204, 0, 0.5);
  box-shadow: 0 0 0 0.2rem rgba(255, 204, 0, 0.12);
}

/* ─────────────────────────────────────────────────────────────────────────────
   7. STATS DEL LOCAL
   ───────────────────────────────────────────────────────────────────────────── */
.il-stats-num-wrap {
  min-width: 70px;
}

.il-stats-num {
  color: #ffcc00;
}

.il-stats-nombre {
  color: rgba(255, 255, 255, 0.7);
}

/* ─────────────────────────────────────────────────────────────────────────────
   8. ESTADO DE TELÉFONOS (movido desde _header.php)
   ───────────────────────────────────────────────────────────────────────────── */
.local-phone {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
}

.local-phone--unconfirmed a {
  color: #888;
  text-decoration: none;
}

.local-phone--unconfirmed .icon-phone {
  color: #888;
}

.local-phone--unconfirmed .bi-telephone {
  color: #888;
}

.local-phone-note {
  font-size: 0.75em;
  color: #856404;
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  white-space: nowrap;
}

/* ─────────────────────────────────────────────────────────────────────────────
   9. TARJETAS DE LOCALES RELACIONADOS (locales_list.php)
      Reemplaza todos los style="" inline del archivo locales_list.php
   ───────────────────────────────────────────────────────────────────────────── */
.local-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  transition: background 0.2s;
}

.local-card:hover {
  background: rgba(255, 255, 255, 0.07);
}

.local-card-img {
  object-fit: cover;
  border: 2px solid rgba(255, 204, 0, 0.3);
  border-radius: 4px;
  width: 72px;
  height: 72px;
}

.local-card-nombre {
  color: #ffcc00;
  text-decoration: none;
  font-weight: 600;
}

.local-card-nombre:hover {
  color: #ffd740;
}

.local-card-descripcion {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.local-card-telefono-ok {
  color: #ffcc00;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.local-card-barrio-badge {
  background: rgba(255, 255, 255, 0.08);
  color: #aaa;
  font-weight: 400;
}

.local-card-web {
  background: rgba(100, 180, 255, 0.12);
  color: #9cf;
  border: 1px solid rgba(100, 180, 255, 0.2);
  font-weight: 400;
  font-size: 0.8rem;
  text-decoration: none;
  border-radius: 4px;
  padding: 2px 8px;
}

.local-card-web:hover {
  background: rgba(100, 180, 255, 0.2);
  color: #bde;
}

.local-card-divider {
  opacity: 0.35;
}
