:root {
  --primary: #2563eb;
  --primary-foreground: #ffffff;
  --primary-hover: #1d4ed8;
  --secondary: #64748b;
  --secondary-foreground: #ffffff;
  --accent: #eff6ff;
  --accent-foreground: #1e40af;
  --background: #f8fafc;
  --foreground: #0f172a;
  --card: #ffffff;
  --card-foreground: #0f172a;
  --muted: #64748b;
  --muted-foreground: #94a3b8;
  --border: #e2e8f0;
  --input: #f1f5f9;
  --ring: #3b82f6;
  --radius: 1rem;
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --header-bg: rgba(255, 255, 255, 0.8);
  --card-footer-bg: #f8fafc;
  --badge-bg: #ffffff;
  --site-footer-bg: #0f172a;
  --muted-bg: #f1f5f9;
}

[data-theme="dark"] {
  --primary: #3b82f6;
  --primary-foreground: #ffffff;
  --primary-hover: #60a5fa;
  --secondary: #94a3b8;
  --secondary-foreground: #f8fafc;
  --accent: #1e293b;
  --accent-foreground: #e2e8f0;
  --background: #0f172a;
  --foreground: #f8fafc;
  --card: #1e293b;
  --card-foreground: #f8fafc;
  --muted: #64748b;
  --muted-foreground: #94a3b8;
  --border: #334155;
  --input: #1e293b;
  --ring: #3b82f6;
  --header-bg: rgba(15, 23, 42, 0.8);
  --card-footer-bg: #1e293b;
  --badge-bg: #1e293b;
  --site-footer-bg: #0f172a;
  --muted-bg: #111827;
}

/* Global Admin Action Buttons */
.action-btn, .btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--muted-bg);
  color: var(--foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  padding: 0;
}

.action-btn:hover, .btn-icon:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--card);
  transform: translateY(-1px);
}

.action-btn svg, .btn-icon svg {
  width: 14px;
  height: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

* {
  -webkit-tap-highlight-color: transparent;
}

/* Global overflow fix for Android */
img, video, canvas, svg {
  max-width: 100%;
  height: auto;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.container {
  width: min(1200px, 100% - 4rem);
  margin-inline: auto;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.23);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background-color: white;
  color: var(--primary);
  border-color: white;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.brand img {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.brand strong {
  font-size: 1.25rem;
  color: var(--foreground);
  display: block;
}

.brand small {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
  display: block;
}

.nav-center {
  display: flex;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--secondary);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  background: var(--accent);
  border: none;
  color: var(--primary);
  padding: 0.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
}

/* Mobile Menu */
.nav-links-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--card);
  padding: 1.5rem;
  flex-direction: column;
  gap: 1.25rem;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-links-mobile.open {
  display: flex;
  animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero */
.hero {
  position: relative;
  padding: 6rem 0;
  background-color: #1e3a8a;
  color: white;
  min-height: 550px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.active {
  opacity: 0.7;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero .container {
  position: relative;
  z-index: 10;
}

.hero-content {
  max-width: 900px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1;
}

.hero-nav {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 20;
}

.hero-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 10px;
  margin: 0 5px;
  background-clip: content-box;
}

.hero-dot.active {
  background: white;
  width: 2rem;
  border-radius: 1rem;
  border-color: white;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 20;
  transition: all 0.2s ease;
}

.hero-arrow:hover {
  background: white;
  color: var(--primary);
}

.hero-arrow.prev { left: 2rem; }
.hero-arrow.next { right: 2rem; }

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-content p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2.5rem;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
}

/* Quick Filters */
.quick-section {
  padding: 3rem 0;
  position: relative;
  z-index: 20;
}

.quick-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border);
}

.quick-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.5rem;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.quick-header h2 {
  font-size: 1.5rem;
}

.quick-filters {
  display: flex;
  gap: 1rem;
}

.quick-select {
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  background: var(--card);
  color: var(--foreground);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-select:hover {
  border-color: var(--primary);
}

.quick-pills {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}

.quick-pills::-webkit-scrollbar {
  display: none;
}

.pill {
  white-space: nowrap;
  padding: 0.625rem 1.25rem;
  background-color: var(--muted-bg);
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

.pill:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-1px);
}

.pill-green {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #dcfce7;
  color: #15803d;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border: 1px solid #bbf7d0;
}

[data-theme="dark"] .pill-green {
  background: #052e16;
  color: #86efac;
  border-color: #166534;
}

/* Sections */
.section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

.section:last-of-type {
  border-bottom: none;
}

.section-head {
  margin-bottom: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--foreground);
  line-height: 1.2;
}

.view-all {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.view-all:hover {
  gap: 0.75rem;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
}

.cards-grid.small {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--card);
  border-radius: 1.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.card-cover {
  position: relative;
  aspect-ratio: 16/11;
  overflow: hidden;
}

.card-badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.badge-featured {
  background: var(--primary);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.badge-store {
  background: var(--badge-bg);
  color: var(--foreground);
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.card-body {
  padding: 1.5rem 1.5rem 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-cat {
  font-size: 0.625rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.075em;
  margin-bottom: 0.5rem;
  display: block;
}

.card-body h3 {
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
  color: var(--foreground);
  font-weight: 700;
  line-height: 1.4;
  flex: 1;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  padding: 1rem 1.5rem;
  margin: 0 -1.5rem;
  border-top: 1px solid var(--border);
  background-color: var(--card-footer-bg);
}

.card-footer .location, .card-footer .rating {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.card-footer .location {
  color: var(--foreground);
  font-weight: 600;
  flex: 1;
}

.card-footer .rating {
  color: var(--primary);
  font-weight: 700;
}

.card-footer svg {
  opacity: 0.7;
}

/* Trending Carousel */
.trending-carousel {
  overflow: hidden;
  padding: 1rem 0 3rem;
  position: relative;
  width: 100%;
}

.trending-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: scroll 90s linear infinite;
}

.trending-carousel:hover .trending-track {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    /* We scroll exactly half of the track because we have 2 identical sets */
    transform: translateX(calc(-50% - 1rem));
  }
}

.mini-card {
  flex: 0 0 260px;
  background: var(--card);
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s ease;
}

.mini-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.mini-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.mini-card-body {
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
}

.mini-card strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.mini-card-address {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.3;
  background: var(--accent);
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  border: 1px solid transparent;
  align-self: flex-start;
}

.mini-card-address svg {
  flex-shrink: 0;
  color: var(--primary);
  stroke-width: 2.5;
}

[data-theme="dark"] .mini-card-address {
  background: var(--accent);
  border-color: var(--border);
}

/* Category Area */
.categories-area {
  background-color: var(--muted-bg);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.25rem;
}

.category-card {
  padding: 1.25rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.cat-icon-wrapper {
  width: 3.5rem;
  height: 3.5rem;
  background-color: var(--accent);
  color: var(--primary);
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.cat-icon-wrapper svg {
  width: 1.75rem;
  height: 1.75rem;
}

.category-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.category-card:hover .cat-icon-wrapper {
  background-color: var(--primary);
  color: white !important;
  transform: scale(1.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover .cat-icon-wrapper i,
.category-card:hover .cat-icon-wrapper svg {
  color: white !important;
  stroke: white !important;
  fill: none !important;
}

.category-card strong {
  display: block;
  font-size: 1.125rem;
  color: var(--foreground);
}

.category-card small {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
}

/* CTA Section */
.cta-section {
  padding: 4rem 0 6rem;
}

.cta-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 2rem;
  padding: 4rem;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.3);
}

.cta-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  transform: rotate(-15deg);
}

.cta-content {
  max-width: 600px;
  position: relative;
  z-index: 1;
}

.cta-card h2 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 1rem 0 1.5rem;
  color: white;
}

.cta-card p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--primary);
  color: white;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.whatsapp-btn:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
}

/* Footer */
.site-footer {
  background-color: var(--card);
  color: var(--foreground);
  padding: 5rem 0 3rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.footer-brand img {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  object-fit: cover;
  filter: none;
}


.footer-brand strong {
  font-size: 1.25rem;
  color: var(--foreground);
  display: block;
}

.footer-brand small {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
  display: block;
}

.footer-about p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 2.75rem;
  height: 2.75rem;
  background: var(--muted-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  color: var(--foreground);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background: var(--primary);
  color: white !important;
  border-color: var(--primary);
  transform: translateY(-3px);
}

.footer-social a[aria-label="Instagram"]:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.footer-social a[aria-label="YouTube"]:hover {
  background: #ff0000;
}

.footer-col h3 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.75rem;
  color: var(--foreground);
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2.5rem;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.admin-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.3;
  color: var(--muted-foreground);
  transition: opacity 0.2s ease, color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  padding: 0.25rem;
}

.admin-link-icon:hover {
  opacity: 0.8;
  color: var(--primary);
  transform: rotate(45deg);
}

/* Mobile responsive rules moved to comprehensive responsive section below */

/* Theme Toggle */
.theme-toggle-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
}

.theme-toggle-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.5);
}

.theme-dropdown {
  position: absolute;
  bottom: calc(100% + 1rem);
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.5rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transform-origin: bottom right;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 160px;
}

.theme-toggle-container.active .theme-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  color: var(--foreground);
  font-size: 0.9375rem;
  font-family: inherit;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.theme-option:hover {
  background: var(--accent);
  color: var(--primary);
}

.theme-option.active {
  background: var(--accent);
  color: var(--primary);
  font-weight: 500;
}

/* Search Page Styles */
.search-hero {
  padding: 4rem 0 3rem;
  text-align: center;
  background-color: transparent;
}

.search-hero-container {
  max-width: 800px;
  margin: 0 auto;
}

.search-subtitle {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: inline-block;
}

.search-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 2.5rem;
  line-height: 1.1;
  color: var(--foreground);
}

.search-title .text-primary {
  color: var(--primary);
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--card);
  border-radius: 9999px;
  padding: 0.5rem;
  padding-left: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.search-input-wrapper svg {
  color: var(--muted-foreground);
  flex-shrink: 0;
  margin-right: 0.75rem;
}

.search-input-wrapper input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 1rem 0;
  font-size: 1.125rem;
  color: var(--foreground);
  outline: none;
  min-width: 0;
}

.search-input-wrapper input::placeholder {
  color: var(--muted-foreground);
}

.search-input-wrapper .btn {
  border-radius: 9999px;
  padding: 0.75rem 2rem;
  margin-left: 0.5rem;
}

.search-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  padding-bottom: 6rem;
}

.search-sidebar {
  position: sticky;
  top: 7rem;
  height: max-content;
}

.sidebar-block {
  background: var(--card);
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.sidebar-block h3 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cat-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  color: var(--foreground);
  font-size: 0.9375rem;
  transition: all 0.2s;
  text-decoration: none;
}

.cat-link:hover {
  background: var(--accent);
  color: var(--primary);
}

.cat-link.active {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

.cat-link small {
  font-size: 0.875rem;
  opacity: 0.7;
}

.results-header {
  margin-bottom: 2rem;
}

.results-header p {
  color: var(--muted-foreground);
  font-size: 1rem;
  font-weight: 500;
}

@media (max-width: 992px) {
  .search-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .search-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .search-input-wrapper {
    flex-direction: column;
    padding: 1rem;
    border-radius: 1.5rem;
  }
  
  .search-input-wrapper input {
    width: 100%;
    text-align: center;
  }
  
  .search-input-wrapper svg {
    margin: 0 0 0.5rem 0;
  }
  
  .search-input-wrapper .btn {
    width: 100%;
    margin-left: 0;
    margin-top: 1rem;
  }
}
/* --- High-Fidelity Ad Page Styles --- */
.ad-page-wrapper {
    background: var(--bg);
    min-height: 100vh;
    padding-bottom: 5rem;
}

.ad-banner-hero {
    height: 400px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.ad-banner-hero .banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.1));
}

.btn-back {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: white;
    color: var(--foreground);
    padding: 0.6rem 1.2rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
    z-index: 30;
}

.btn-back:hover {
    transform: translateX(-4px);
    box-shadow: var(--shadow-lg);
}

.ad-content-container {
    margin-top: 2rem;
    position: relative;
    z-index: 40;
}

/* Card de Cabeçalho Flutuante */
.ad-header-card {
    background: var(--card);
    border-radius: 2.5rem;
    padding: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border: 1px solid var(--border);
    margin-bottom: 3rem;
}

.ad-header-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 220px;
}

.btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.85rem 1.5rem;
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
}

.btn-action.whatsapp {
    background: #1d63d3; /* Match the user screenshot blue */
    color: white;
}

.btn-action.outline {
    background: transparent;
    border-color: #e5e7eb;
    color: var(--foreground);
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.ad-header-main {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.ad-header-profile img {
    width: 160px;
    height: 160px;
    border-radius: 2rem;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

.ad-header-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ad-badge-category {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.ad-header-info h1 {
    font-size: 2.5rem;
    margin: 0;
    color: var(--foreground);
}

.ad-subtitle {
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.ad-header-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
}

.meta-item.rating {
    color: var(--foreground);
    font-weight: 700;
}

.meta-item.rating svg {
    color: #ffc107;
}

.price-pill {
    background: #eff6ff;
    color: #2563eb;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.ad-header-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 180px;
}

.ad-header-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    border-radius: 9999px;
}

.ad-header-actions .btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--foreground) !important;
    backdrop-filter: none;
}

.ad-header-actions .btn-outline svg {
    color: var(--foreground);
}

.ad-header-actions .btn-outline:hover {
    background: var(--muted-bg);
    border-color: var(--muted);
}

/* Layout Principal de Conteúdo */
.ad-main-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
}

.ad-left-col {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.content-section {
    background: var(--card);
    padding: 2.5rem;
    border-radius: 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

/* section-label is now globally defined at line 406 */

.content-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.content-section p, .content-text p {
    line-height: 1.8;
    color: var(--foreground);
    font-size: 1.05rem;
    margin: 0;
    text-align: justify;
}

.content-text {
    text-align: justify;
}

/* Card de Notícias */
.news-card {
    background: var(--muted-bg);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
}

.news-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.news-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.news-card p {
    font-size: 0.95rem;
    margin: 0;
}

/* Galeria Refinada */
.ad-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-card {
    position: relative;
    cursor: pointer;
}

.gallery-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.98);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.gallery-modal.open { display: flex; }

.gallery-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 1.5rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
    z-index: 9999999;
}

.gallery-btn:hover { 
    background: rgba(255, 255, 255, 0.3); 
    transform: scale(1.1);
}

.gallery-btn.prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.gallery-btn.next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

.gallery-content {
    width: 100%;
    height: calc(100% - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.gallery-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.gallery-footer {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    z-index: 9999999;
    width: 100%;
}

.gallery-indicators {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    width: 100%;
}

.gallery-close-bottom {
    background: white;
    color: black;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 99px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.gallery-close-bottom:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    background: #f3f4f6;
}

.indicator {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.indicator.active {
    background: white;
    transform: scale(1.4);
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}


.gallery-card img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    padding: 1.5rem;
    font-size: 1rem;
    color: var(--foreground);
    font-weight: 500;
    background: var(--card);
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

/* Sidebar e Cards */
.ad-right-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card {
    background: var(--card);
    padding: 2rem;
    border-radius: 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.sidebar-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.schedule-item.closed strong {
    color: #ef4444;
}

.social-btns {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.social-btns .btn {
    flex: 1;
    min-width: 120px;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--foreground);
    font-size: 0.875rem;
    font-weight: 500;
}

.social-btns .btn svg {
    color: var(--primary);
    width: 16px;
    height: 16px;
}

.social-btns .btn:hover {
    background: var(--muted-bg);
    border-color: var(--muted);
}

.contact-main {
    background: var(--card);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.method-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    font-size: 0.95rem;
    color: var(--foreground);
    font-weight: 500;
    transition: all 0.2s ease;
    width: 100%;
    min-width: 0; /* Important for flex child overflow */
}

.method-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.method-item:hover {
    border-color: var(--primary);
    background: var(--accent);
}

.method-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

.btn-block {
    width: 100%;
    justify-content: center;
    padding: 1rem;
    border-radius: 1rem;
}

.sidebar-info-card {
    background: var(--accent);
    padding: 1.5rem;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border: 1px solid var(--border);
    margin-top: 1.5rem;
}

.sidebar-info-card span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    font-weight: 800;
}

.sidebar-info-card strong {
    font-size: 1rem;
}

/* ============================
   COMPREHENSIVE RESPONSIVE RULES
   ============================ */

/* iOS Compatibility & Touch Fixes */
html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    -webkit-overflow-scrolling: touch;
}

input, textarea, select, button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-size: 16px; /* Prevents iOS zoom on focus */
}

/* Safe area for notched iPhones */
.site-header {
    padding-top: env(safe-area-inset-top, 0);
}

.site-footer {
    padding-bottom: env(safe-area-inset-bottom, 0);
}

/* ---- Tablet (max-width: 1024px) ---- */
@media (max-width: 1024px) {
    .ad-header-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
        border-radius: 1.5rem;
    }

    .ad-header-main {
        flex-direction: column;
    }

    .ad-header-meta {
        justify-content: center;
    }

    .ad-header-actions {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .btn-action {
        flex: 1;
        min-width: 140px;
    }

    .ad-main-layout {
        grid-template-columns: 1fr;
    }

    .ad-header-profile img {
        width: 120px;
        height: 120px;
    }

    .ad-header-info h1 {
        font-size: 1.75rem;
    }

    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .container {
        width: min(1200px, 100% - 2rem);
    }
}

/* ---- Mobile (max-width: 768px) ---- */
@media (max-width: 768px) {
    .container {
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        margin-left: auto;
        margin-right: auto;
    }

    /* Android Chrome Auto-zoom fix */
    input, select, textarea {
        font-size: 16px !important;
    }

    /* -- Header / Nav -- */
    .nav-center {
        display: none;
    }

    .nav-actions .btn-primary {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .nav {
        gap: 0.75rem;
        height: 4rem;
    }

    .brand img {
        width: 2.25rem;
        height: 2.25rem;
    }

    .brand strong {
        font-size: 1rem;
    }

    .brand small {
        display: none;
    }

    /* -- Hero -- */
    .hero {
        min-height: 400px;
        padding: 3rem 0;
    }

    .hero-content {
        padding: 1rem;
        text-align: center;
        width: 100%;
        max-width: 100%;
        overflow-wrap: break-word;
    }

    .hero-content h1 {
        font-size: clamp(1.5rem, 8vw, 2.2rem);
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-arrow {
        display: flex;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }

    .hero-dot {
        width: 1rem;
        height: 1rem;
        margin: 0 0.5rem;
    }

    /* -- Sections -- */
    .section {
        padding: 3rem 0;
    }

    .section-head h2 {
        font-size: 1.5rem;
    }

    /* -- Cards Grid -- */
    .cards-grid, .cards-grid.small {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .service-card .card-body {
        padding: 0.75rem 0.75rem 0;
    }

    .service-card .card-body h3 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }

    .service-card .card-cat {
        font-size: 0.55rem;
    }

    .service-card .card-footer {
        padding: 0.5rem 0.75rem;
        margin: 0 -0.75rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        font-size: 0.65rem;
    }

    .card-badges {
        top: 0.5rem;
        left: 0.5rem;
        right: 0.5rem;
    }

    .badge-featured, .badge-store {
        padding: 0.2rem 0.4rem;
        font-size: 0.5rem;
    }

    /* -- Category Grid -- */
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }

    /* -- Trending Carousel -- */
    .trending-carousel {
        overflow: hidden;
        padding-bottom: 1.5rem;
    }

    .trending-track {
        animation: scroll 120s linear infinite !important;
        display: flex;
        gap: 1rem;
        padding: 0 1rem;
    }

    .mini-card {
        flex: 0 0 200px;
    }

    .mini-card strong {
        font-size: 0.875rem;
        padding: 0.75rem;
    }

    /* -- Quick Filters -- */
    .quick-header {
        text-align: center;
        justify-content: center;
    }

    .quick-filters {
        width: 100%;
        flex-direction: column;
    }

    .quick-select {
        width: 100%;
    }

    /* -- Search Page -- */
    .search-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .search-sidebar {
        position: static;
    }

    .search-input-wrapper {
        flex-direction: column;
        padding: 1rem;
        border-radius: 1.5rem;
    }

    .search-input-wrapper input {
        width: 100%;
        text-align: center;
    }

    .search-input-wrapper svg {
        margin: 0 0 0.5rem 0;
    }

    .search-input-wrapper .btn {
        width: 100%;
        margin-left: 0;
        margin-top: 0.75rem;
    }

    /* -- Ad Detail Page -- */
    .ad-banner-hero {
        height: 250px;
    }

    .ad-content-container {
        margin-top: 1rem;
    }

    .ad-header-card {
        padding: 1.25rem;
        border-radius: 1.25rem;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .ad-header-profile {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .ad-header-profile img {
        width: 70%;
        height: auto;
        object-fit: contain;
        border-radius: 1.25rem;
    }

    .ad-header-info h1 {
        font-size: 1.35rem;
    }

    .ad-header-meta {
        gap: 0.75rem;
        font-size: 0.8rem;
    }

    .ad-header-actions {
        flex-direction: column;
        width: 100%;
        min-width: 0;
    }

    .btn-action {
        width: 100%;
        min-width: 0;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .ad-main-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .content-section {
        padding: 1.5rem;
        border-radius: 1.25rem;
    }

    .content-section h2 {
        font-size: 1.35rem;
        margin-bottom: 1rem;
    }

    .sidebar-card {
        padding: 1.5rem;
        border-radius: 1.25rem;
    }

    .btn-back {
        top: 1rem;
        left: 1rem;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    /* -- Gallery -- */
    .ad-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.75rem;
    }

    .gallery-btn {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }

    .gallery-btn.prev { left: 0.5rem; }
    .gallery-btn.next { right: 0.5rem; }

    .gallery-content {
        padding: 1rem;
        height: calc(100% - 140px);
    }

    .gallery-footer {
        bottom: 1rem;
        gap: 1rem;
    }

    .gallery-close-bottom {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    /* -- Footer -- */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand, .footer-social {
        justify-content: center;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 0.75rem;
    }

    /* -- CTA -- */
    .cta-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    /* -- Theme Toggle -- */
    .theme-toggle-container {
        bottom: 1rem;
        right: 1rem;
    }

    .theme-toggle-btn {
        width: 48px;
        height: 48px;
    }

    /* -- Termos / Privacidade -- */
    .content-text h3 {
        font-size: 1.1rem;
    }
}

/* ---- Small Phone (max-width: 480px) ---- */
@media (max-width: 480px) {
    html {
        font-size: 14px; /* Slightly smaller base font for small Androids */
    }

    .container {
        width: 100%;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .hero {
        min-height: 350px;
        padding: 2rem 0;
    }

    .hero-content h1 {
        font-size: 1.35rem;
    }

    .section-head h2 {
        font-size: 1.25rem;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .mini-card {
        flex: 0 0 160px;
    }

    .ad-banner-hero {
        height: 200px;
    }

    .ad-header-card {
        padding: 1rem;
    }

    .ad-header-profile {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .ad-header-profile img {
        width: 70%;
        height: auto;
        object-fit: contain;
        border-radius: 1.25rem;
    }

    .ad-header-info h1 {
        font-size: 1.15rem;
    }

    .ad-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .gallery-card img {
        aspect-ratio: 1;
    }

    .schedule-row {
        grid-template-columns: 100px 1fr 1fr 80px;
        gap: 0.5rem;
        font-size: 0.85rem;
    }

    /* Admin form adjustments */
    .form-grid {
        grid-template-columns: 1fr !important;
    }

    .full-width {
        grid-column: span 1 !important;
    }

    .container-form {
        padding: 0 0.5rem !important;
    }

    .form-card {
        padding: 1.25rem !important;
        border-radius: 1rem !important;
    }
}

/* ---- Landscape Phone Fix ---- */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 300px;
        padding: 2rem 0;
    }

    .gallery-content {
        height: calc(100% - 80px);
        padding: 0.5rem;
    }

    .gallery-footer {
        bottom: 0.5rem;
        gap: 0.5rem;
    }

    .gallery-btn {
        width: 2rem;
        height: 2rem;
    }
}
/* --- Premium Home & Interaction Updates --- */
.rating svg, .meta-item.rating svg {
  color: #facc15 !important; /* Premium Golden Yellow */
  filter: drop-shadow(0 0 2px rgba(250, 204, 21, 0.2));
}

.service-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: var(--primary);
}

.card-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Fix stretched images */
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .card-cover img {
  transform: scale(1.1);
}

.btn-favorite {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-favorite:hover {
  transform: scale(1.1);
  background: white;
}

.btn-favorite svg {
  width: 20px;
  height: 20px;
  color: #64748b;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-favorite.active svg {
  color: #ef4444;
  fill: #ef4444;
  transform: scale(1.2);
}

.whatsapp-float-btn {
  background: #25d366 !important;
  color: white !important;
  border: none !important;
  padding: 0.5rem 1rem !important;
  font-size: 0.8rem !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.whatsapp-float-btn:hover {
  background: #128c7e !important;
  transform: scale(1.05);
}

/* Micro-animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* Home Region Filter */
.home-filters-wrapper {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.region-select-home {
  flex: 1;
  min-width: 200px;
}

/* Mobile Filters Modal */
.btn-filter-mobile {
    display: none;
    width: 100%;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--foreground);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-filter-mobile:hover {
    border-color: var(--primary);
    background: var(--accent);
}

.sidebar-header-mobile {
    display: none;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.btn-close-sidebar {
    background: var(--muted-bg);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--foreground);
    cursor: pointer;
}

.content-text {
    text-align: justify;
}

@media (max-width: 992px) {
    .btn-filter-mobile {
        display: flex;
    }

    .search-sidebar {
        display: none;
    }

    .search-sidebar.active {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 9999;
        background: var(--background);
        padding: 2rem;
        overflow-y: auto;
    }

    .sidebar-header-mobile {
        display: flex;
    }
}

/* ========== PÁGINA DE PLANOS ========== */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    align-items: start;
}

.plan-card {
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    background: var(--card);
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.plan-card.plan-popular {
    border: 2px solid var(--primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.plan-card.plan-popular:hover {
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.15);
}

.plan-badge {
    position: absolute;
    top: -0.875rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.375rem 1.25rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.plan-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    min-height: 1.875rem;
}

.plan-card-badges .plan-badge-top,
.plan-card-badges .pill {
    margin: 0;
}

.plan-badge-top {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--primary);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.plan-save-badge {
    display: block;
    font-size: 0.8rem;
    color: var(--muted-foreground);
    margin-top: -1rem;
    margin-bottom: 1.5rem;
}

.plan-save-badge strong {
    color: #16a34a;
    font-weight: 700;
}

.plan-price-old {
    display: block;
    font-size: 1rem;
    color: var(--muted-foreground);
    text-decoration: line-through;
    margin-bottom: 0;
    font-weight: 500;
    width: 100%;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.plan-desc {
    color: var(--muted-foreground);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.plan-price {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.plan-price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--foreground);
    line-height: 1;
}

.plan-price-period {
    color: var(--muted-foreground);
    font-size: 0.9rem;
}

.plan-price-label {
    font-size: 0.85rem;
    color: var(--muted-foreground);
    display: block;
    margin-top: 0.25rem;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
    flex: 1;
}

.plan-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--muted-foreground);
    line-height: 1.4;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features .feat-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 0.15rem;
}

.plan-features .feat-icon.check {
    color: #16a34a;
}

.plan-features .feat-icon.x {
    color: var(--muted);
}

.plan-cta {
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* ========== TABELA COMPARATIVA ========== */
.plan-compare {
    margin-top: 4rem;
    padding: 2.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
}

.plan-compare h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--foreground);
}

.compare-table {
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border);
}

.compare-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-bottom: 1px solid var(--border);
}

.compare-row:last-child {
    border-bottom: none;
}

.compare-row.compare-header {
    background: var(--muted-bg);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--muted-foreground);
}

.compare-feat {
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    color: var(--foreground);
    border-right: 1px solid var(--border);
}

.compare-cell {
    padding: 1rem 1.25rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--muted-foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.compare-cell.highlight {
    background: var(--accent);
}

.compare-row:nth-child(even):not(.compare-header) {
    background: var(--muted-bg);
}

/* ========== ACCORDION FAQ ========== */
.plan-faq-section {
    margin-top: 4rem;
}

.faq-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.faq-header h2 {
    font-size: 1.75rem;
    color: var(--foreground);
    margin-top: 0.75rem;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    background: var(--card);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-item[open] {
    box-shadow: var(--shadow-md);
}

.faq-question {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    user-select: none;
    transition: background 0.2s ease;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question:hover {
    background: var(--muted-bg);
}

.faq-arrow {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--muted-foreground);
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 1.5rem;
    color: var(--muted-foreground);
    font-size: 0.925rem;
    line-height: 1.7;
    transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease;
}

.faq-item[open] .faq-answer {
    max-height: 500px;
    opacity: 1;
    padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
    margin-bottom: 0.75rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* ========== CTA FAQ (WhatsApp) ========== */
.plan-faq {
    margin-top: 4rem;
    padding: 2.5rem;
    background: var(--muted-bg);
    border-radius: 1.5rem;
    text-align: center;
}

.plan-faq h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--foreground);
}

.plan-faq p {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .plans-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .plan-card {
        padding: 2rem 1.5rem;
    }

    .plan-price-amount {
        font-size: 2rem;
    }

    .compare-row {
        grid-template-columns: 1fr 1fr 1fr;
        font-size: 0.8rem;
    }

    .compare-feat {
        padding: 0.75rem;
    }

    .compare-cell {
        padding: 0.75rem;
    }

    .faq-question {
        font-size: 0.9rem;
        padding: 1rem 1.25rem;
    }

    .faq-answer {
        padding: 0 1.25rem 1rem;
        font-size: 0.875rem;
    }

    .plan-compare {
        padding: 1.5rem;
    }
}

/* ========== Back to Top ========== */
.back-to-top {
    position: fixed;
    bottom: 6.5rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 990;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 5rem;
        right: 1rem;
    }
}
