/* AchaVet - Diretório de Veterinárias */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #2ecc71;
  --green-dark: #1a8a47;
  --blue: #2980b9;
  --text: #2c3e50;
  --muted: #7f8c8d;
  --bg: #f8f9fa;
  --white: #ffffff;
  --border: #e1e8ed;
  --card-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }

/* Header */
.header { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1140px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--green-dark); text-decoration: none; }
.logo span { color: var(--green); }

/* Hero */
.hero { background: linear-gradient(135deg, #1a5c30 0%, #2ecc71 100%); color: white; padding: 60px 20px; text-align: center; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 12px; }
.hero p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 32px; }
.search-box { display: flex; max-width: 560px; margin: 0 auto; background: white; border-radius: 50px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.search-box input { flex: 1; border: none; padding: 16px 24px; font-size: 1rem; outline: none; color: var(--text); }
.search-box button { background: var(--green); color: white; border: none; padding: 16px 28px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.search-box button:hover { background: var(--green-dark); }

/* Badge emergência */
.badge-emergency { display: inline-block; background: #e74c3c; color: white; font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.05em; }
.badge-premium { display: inline-block; background: #f39c12; color: white; font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.05em; }

/* Seções */
.section { max-width: 1140px; margin: 0 auto; padding: 48px 20px; }
.section-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 24px; }
.section-title span { color: var(--green); }

/* Grid de cidades */
.cities-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.city-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 20px; text-decoration: none; color: var(--text); transition: all 0.2s; display: flex; flex-direction: column; align-items: center; text-align: center; }
.city-card:hover { border-color: var(--green); box-shadow: var(--card-shadow); transform: translateY(-2px); }
.city-card .city-icon { font-size: 2rem; margin-bottom: 8px; }
.city-card .city-name { font-weight: 700; font-size: 1.05rem; }
.city-card .city-count { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }

/* Card de clínica */
.clinic-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 16px; transition: box-shadow 0.2s; }
.clinic-card:hover { box-shadow: var(--card-shadow); }
.clinic-card .clinic-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.clinic-name { font-size: 1.15rem; font-weight: 700; }
.clinic-address { color: var(--muted); font-size: 0.9rem; margin: 6px 0; }
.clinic-phone { font-weight: 600; color: var(--green-dark); font-size: 1rem; }
.clinic-actions { display: flex; gap: 10px; margin-top: 14px; }
.btn { display: inline-block; padding: 9px 18px; border-radius: 8px; font-weight: 600; font-size: 0.9rem; text-decoration: none; cursor: pointer; border: none; transition: all 0.2s; }
.btn-primary { background: var(--green); color: white; }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline { background: transparent; color: var(--green-dark); border: 2px solid var(--green); }
.btn-outline:hover { background: var(--green); color: white; }

/* Breadcrumb */
.breadcrumb { font-size: 0.875rem; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--green-dark); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Footer */
.footer { background: #2c3e50; color: #bdc3c7; padding: 40px 20px; margin-top: 60px; }
.footer-inner { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.footer-col h4 { color: white; font-size: 1rem; margin-bottom: 12px; }
.footer-col a { display: block; color: #bdc3c7; text-decoration: none; margin-bottom: 6px; font-size: 0.9rem; }
.footer-col a:hover { color: var(--green); }
.footer-bottom { text-align: center; margin-top: 32px; padding-top: 24px; border-top: 1px solid #3d5166; font-size: 0.85rem; }

/* Responsivo */
@media (max-width: 600px) {
  .hero { padding: 40px 16px; }
  .search-box { flex-direction: column; border-radius: 12px; }
  .search-box button { border-radius: 0 0 12px 12px; }
  .clinic-header { flex-direction: column; gap: 8px; }
}
