﻿/* ===== RESET E BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.lojas-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 10px;
  font-family: Montserrat, Helvetica, sans-serif;
}

/* ===== TÍTULO DA SEÇÃO ===== */
.section-title {
  text-align: center;
  margin: 25px 0 15px 0;
}

.section-title h2 {
  font-size: 20px;
  color: #005088;
  font-weight: 600;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 8px;
}

.section-title h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: #005088;
}

/* ===== GRID DE LOJAS - MOBILE FIRST (2 COLUNAS) ===== */
.lojas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

/* ===== CARD DE LOJA ===== */
.loja-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  text-align: center;
  border: 1px solid #eee;
}

.loja-image {
  margin-bottom: 8px;
}

.loja-image img {
  width: 100%;
  max-width: 140px;
  height: auto;
  border-radius: 6px;
  display: block;
  margin: 0 auto;
  background: #f5f5f5;
}

.loja-bairro {
  font-size: 15px;
  font-weight: 700;
  color: #005088;
  margin: 5px 0 4px 0;
  padding-bottom: 4px;
  border-bottom: 1px solid #ddd;
  text-transform: uppercase;
}

.loja-endereco {
  font-size: 13px;
  color: #444;
  margin: 3px 0;
  line-height: 1.4;
  font-weight: 500;
}

.loja-telefone {
  font-size: 13px;
  color: #005088;
  margin: 2px 0;
  font-weight: 600;
}

.loja-horario {
  font-size: 11px;
  color: #666;
  margin: 1px 0;
}

.loja-botoes {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.btn-mapa, .btn-estacionamento {
  display: block;
  padding: 8px 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  border-radius: 20px;
  background: #f0f5fa;
  color: #005088;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-mapa i, .btn-estacionamento i {
  margin-right: 4px;
  font-size: 13px;
}

.btn-mapa:hover, .btn-estacionamento:hover {
  background: #d0e2f0;
}

/* ===== MODAL DE ESTACIONAMENTO ===== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: 700;
  color: #999;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

.modal-close:hover {
  color: #333;
}

.modal-content h3 {
  font-size: 16px;
  color: #005088;
  margin: 10px 0 5px 0;
  padding-bottom: 3px;
  border-bottom: 1px solid #eee;
}

.modal-content h3:first-child {
  margin-top: 0;
}

.modal-content p {
  font-size: 13px;
  color: #444;
  margin: 3px 0;
  line-height: 1.4;
}

/* ===== TELAS MUITO PEQUENAS (ATÉ 320PX) ===== */
@media (max-width: 320px) {
  .lojas-grid { gap: 6px; }
  .loja-card { padding: 8px 4px; }
  .loja-image img { max-width: 110px; }
  .loja-bairro { font-size: 13px; }
  .loja-endereco { font-size: 11px; }
  .loja-telefone { font-size: 11px; }
  .loja-horario { font-size: 9px; }
  .btn-mapa, .btn-estacionamento { font-size: 11px; padding: 6px 3px; }
  .btn-mapa i, .btn-estacionamento i { font-size: 11px; }
}

/* ===== TABLET (3 COLUNAS) ===== */
@media (min-width: 600px) and (max-width: 899px) {
  .lojas-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .loja-card { padding: 14px 10px; }
  .loja-image img { max-width: 150px; }
  .loja-bairro { font-size: 16px; }
  .loja-endereco { font-size: 14px; }
  .loja-telefone { font-size: 14px; }
  .loja-horario { font-size: 12px; }
  .btn-mapa, .btn-estacionamento { font-size: 14px; padding: 9px 6px; }
  .btn-mapa i, .btn-estacionamento i { font-size: 14px; }
}

/* ===== DESKTOP (4 COLUNAS) ===== */
@media (min-width: 900px) {
  .lojas-container { padding: 20px 15px; }
  .section-title h2 { font-size: 24px; }
  .lojas-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .loja-card { padding: 18px 12px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
  .loja-image img { max-width: 160px; }
  .loja-bairro { font-size: 17px; margin: 8px 0 6px 0; }
  .loja-endereco { font-size: 14px; }
  .loja-telefone { font-size: 14px; }
  .loja-horario { font-size: 12px; }
  .btn-mapa, .btn-estacionamento { font-size: 15px; padding: 10px 8px; }
  .btn-mapa i, .btn-estacionamento i { font-size: 15px; }
}