/* ========================================
   CarmenApp - Estilos
   Diseño: Mobile-first, Minimalista, Moderno
   Inspiración: Google Maps + Airbnb + Uber Eats
   ======================================== */

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f8f9fa; color: #1a1a2e;
    line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
input, textarea { font-family: inherit; outline: none; }

/* ─── Contenedor ─── */
.ca-container { max-width: 640px; margin: 0 auto; padding: 0 16px; }

/* ─── Header ─── */
.ca-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #eaeaea;
}
.ca-header-inner {
    display: flex; align-items: center;
    justify-content: space-between; height: 56px;
}
.ca-logo { display: flex; align-items: center; gap: 8px; }
.ca-logo-icon {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 18px;
}
.ca-logo-icon--large {
    width: 64px; height: 64px; font-size: 28px; border-radius: 16px;
}
.ca-logo-text { font-weight: 700; font-size: 18px; color: #1a1a2e; }
.ca-header-actions { display: flex; gap: 4px; }
.ca-btn-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #666; font-size: 18px; transition: all 0.2s;
}
.ca-btn-icon:hover { background: #f0f0f0; color: #1a1a2e; }

/* ─── Menú móvil ─── */
.ca-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.4);
    z-index: 200; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.ca-overlay.active { opacity: 1; pointer-events: auto; }
.ca-mobile-menu {
    position: fixed; top: 0; right: -300px; width: 280px; height: 100%;
    background: #fff; z-index: 201; transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}
.ca-mobile-menu.active { right: 0; }
.ca-mobile-menu-header {
    display: flex; align-items: center; gap: 8px;
    padding: 16px; border-bottom: 1px solid #eaeaea;
}
.ca-mobile-menu-header .ca-logo-icon { width: 28px; height: 28px; font-size: 14px; }
.ca-mobile-menu-header .ca-btn-icon { margin-left: auto; }
.ca-mobile-menu-body { padding: 8px; }
.ca-mobile-link {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 12px; border-radius: 10px; color: #333;
    font-weight: 500; transition: background 0.2s;
}
.ca-mobile-link:hover { background: #f5f5f5; }
.ca-mobile-link i { width: 20px; color: #2563eb; }
.ca-divider { border: none; border-top: 1px solid #eaeaea; margin: 12px 0; }
.ca-mobile-info { padding: 8px 12px; color: #888; font-size: 13px; }

/* ─── Hero / Buscador ─── */
.ca-hero {
    padding: 32px 0 40px;
    background: linear-gradient(180deg, #fff 0%, #f8f9fa 100%);
}
.ca-hero-content { text-align: center; }
.ca-hero-icon { margin-bottom: 16px; }
.ca-hero-title {
    font-size: 24px; font-weight: 800; color: #1a1a2e;
    margin-bottom: 8px; line-height: 1.3;
}
.ca-hero-sub { color: #666; font-size: 15px; margin-bottom: 24px; }

/* ─── Buscador ─── */
.ca-search-form { position: relative; max-width: 480px; margin: 0 auto; }
.ca-search-box {
    display: flex; align-items: center;
    background: #fff; border-radius: 14px;
    border: 2px solid #e0e0e0;
    padding: 4px 4px 4px 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ca-search-box:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37,99,235,0.1);
}
.ca-search-icon { color: #999; font-size: 16px; margin-right: 10px; flex-shrink: 0; }
.ca-search-input {
    flex: 1; border: none; background: none;
    padding: 12px 0; font-size: 15px; color: #1a1a2e;
}
.ca-search-input::placeholder { color: #aaa; }
.ca-search-btn {
    background: #2563eb; color: #fff; border: none;
    padding: 10px 20px; border-radius: 10px;
    font-weight: 600; font-size: 14px; white-space: nowrap;
    transition: background 0.2s;
}
.ca-search-btn:hover { background: #1d4ed8; }

/* ─── Sugerencias ─── */
.ca-suggestions {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0;
    background: #fff; border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    z-index: 50; display: none; overflow: hidden;
}
.ca-suggestions.active { display: block; }
.ca-suggestion-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; transition: background 0.15s;
    border-bottom: 1px solid #f0f0f0;
}
.ca-suggestion-item:last-child { border-bottom: none; }
.ca-suggestion-item:hover { background: #f5f7ff; }
.ca-suggestion-img {
    width: 40px; height: 40px; border-radius: 8px;
    background: #f0f0f0; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: #666;
}
.ca-suggestion-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.ca-suggestion-info { text-align: left; flex: 1; }
.ca-suggestion-name { font-weight: 600; font-size: 14px; color: #1a1a2e; }
.ca-suggestion-cat { font-size: 12px; color: #888; }
.ca-suggestion-arrow { color: #ccc; font-size: 14px; }

/* ─── Búsqueda rápida ─── */
.ca-quick-search { margin-top: 24px; }
.ca-quick-label { font-size: 13px; color: #888; margin-bottom: 10px; }
.ca-quick-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ca-tag {
    padding: 6px 14px; background: #fff; border: 1px solid #e0e0e0;
    border-radius: 20px; font-size: 13px; color: #555;
    transition: all 0.2s;
}
.ca-tag:hover { border-color: #2563eb; color: #2563eb; background: #f5f7ff; }

/* ─── Secciones ─── */
.ca-section { padding: 32px 0; }
.ca-section--gray { background: #f0f2f5; }
.ca-section-header { margin-bottom: 20px; }
.ca-section-title {
    font-size: 20px; font-weight: 700; color: #1a1a2e;
}
.ca-section-desc { color: #888; font-size: 14px; margin-top: 4px; }
.ca-section-subtitle {
    font-size: 16px; font-weight: 600; color: #1a1a2e;
    margin-bottom: 12px;
}

/* ─── Grid de Categorías ─── */
.ca-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}
.ca-category-card {
    display: flex; flex-direction: column; align-items: center;
    gap: 6px; padding: 16px 8px;
    background: #fff; border-radius: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.ca-category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.ca-category-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #2563eb;
}
.ca-category-name { font-weight: 600; font-size: 12px; text-align: center; color: #333; }
.ca-category-count { font-size: 11px; color: #999; }

/* ─── Grid de Negocios Destacados ─── */
.ca-business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}
.ca-business-card {
    background: #fff; border-radius: 14px; overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.ca-business-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.ca-business-card-img {
    height: 100px; background: #f0f0f0; position: relative;
    overflow: hidden;
}
.ca-business-card-img img { width: 100%; height: 100%; object-fit: cover; }
.ca-business-card-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; color: #ccc;
}
.ca-business-card-info { padding: 12px; position: relative; }
.ca-business-card-logo {
    width: 40px; height: 40px; border-radius: 10px;
    position: absolute; top: -20px; right: 12px;
    border: 2px solid #fff; object-fit: cover;
}
.ca-business-card-title {
    font-size: 14px; font-weight: 600; color: #1a1a2e;
    margin-bottom: 4px; line-height: 1.3;
}
.ca-business-card-cat {
    display: block; font-size: 12px; color: #888; margin-bottom: 8px;
}
.ca-business-card-cat i { margin-right: 4px; }
.ca-business-card-footer {
    display: flex; justify-content: space-between; align-items: center;
}
.ca-business-card-views { font-size: 11px; color: #bbb; }
.ca-business-card-views i { margin-right: 2px; }

/* ─── Lista de Negocios ─── */
.ca-business-list {
    display: flex; flex-direction: column; gap: 12px;
}
.ca-business-list-item {
    display: flex; align-items: center; gap: 14px;
    padding: 14px; background: #fff; border-radius: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.ca-business-list-item:hover {
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.ca-business-list-img {
    width: 56px; height: 56px; border-radius: 12px; flex-shrink: 0;
    overflow: hidden; background: #f0f0f0;
}
.ca-business-list-img img { width: 100%; height: 100%; object-fit: cover; }
.ca-business-list-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #ccc;
}
.ca-business-list-info { flex: 1; min-width: 0; }
.ca-business-list-info h3 { font-size: 15px; font-weight: 600; color: #1a1a2e; margin-bottom: 2px; }
.ca-business-list-cat { font-size: 12px; color: #888; display: block; }
.ca-business-list-cat i { margin-right: 4px; }
.ca-business-list-addr {
    display: block; font-size: 12px; color: #999; margin-top: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ca-business-list-footer {
    display: flex; gap: 8px; align-items: center; margin-top: 6px;
}
.ca-list-arrow { color: #ddd; font-size: 14px; flex-shrink: 0; }

/* ─── Estados ─── */
.ca-status { font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.ca-status i { font-size: 8px; }
.ca-status--open i { color: #22c55e; }
.ca-status--open { color: #16a34a; }
.ca-status--closed i { color: #ef4444; }
.ca-status--closed { color: #dc2626; }
.ca-status--large { font-size: 14px; }
.ca-status--large i { font-size: 10px; }

/* ─── Badges ─── */
.ca-badge {
    padding: 3px 8px; border-radius: 6px; font-size: 10px; font-weight: 600;
}
.ca-badge-featured {
    position: absolute; top: 8px; left: 8px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}

/* ─── Perfil de Negocio ─── */
.ca-business-profile { padding-bottom: 40px; }
.ca-profile-cover {
    height: 180px; background: linear-gradient(135deg, #1e3a5f, #2563eb);
    position: relative; overflow: hidden;
}
.ca-profile-cover img { width: 100%; height: 100%; object-fit: cover; }
.ca-profile-cover-placeholder { width: 100%; height: 100%; }
.ca-back-btn {
    position: absolute; top: 12px; left: 12px;
    width: 40px; height: 40px; border-radius: 12px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: #333;
}
.ca-profile-header {
    padding: 0 16px; margin-top: -32px; display: flex;
    align-items: flex-end; gap: 14px; position: relative; z-index: 2;
}
.ca-profile-logo {
    width: 72px; height: 72px; border-radius: 16px;
    border: 3px solid #fff; object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.ca-profile-info { padding-top: 36px; }
.ca-profile-name { font-size: 22px; font-weight: 700; color: #1a1a2e; margin-bottom: 4px; }
.ca-profile-category { font-size: 14px; color: #666; display: block; margin-bottom: 6px; }
.ca-profile-category i { margin-right: 4px; color: #2563eb; }

/* ─── Acciones ─── */
.ca-actions-row {
    display: flex; gap: 8px; padding: 16px; overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.ca-actions-row::-webkit-scrollbar { display: none; }
.ca-action-btn {
    display: flex; flex-direction: column; align-items: center;
    gap: 4px; padding: 12px 16px; border-radius: 14px;
    background: #fff; border: 1px solid #eaeaea;
    min-width: 72px; font-size: 11px; color: #555;
    transition: all 0.2s; flex-shrink: 0;
}
.ca-action-btn i { font-size: 20px; }
.ca-action-btn:hover { border-color: #2563eb; color: #2563eb; background: #f5f7ff; }
.ca-action-btn--whatsapp i { color: #25D366; }
.ca-action-btn--whatsapp:hover { border-color: #25D366; color: #25D366; }
.ca-action-btn--share i { color: #6366f1; }

/* ─── Grid del Perfil ─── */
.ca-profile-grid {
    display: flex; flex-direction: column; gap: 20px; padding: 0 16px;
}
.ca-profile-section { background: #fff; border-radius: 14px; padding: 16px; }
.ca-profile-desc { font-size: 14px; color: #555; line-height: 1.7; }

/* ─── Horarios ─── */
.ca-hours-list { display: flex; flex-direction: column; gap: 4px; }
.ca-hours-row {
    display: flex; align-items: center; gap: 12px;
    padding: 8px 0; font-size: 14px;
}
.ca-hours-row--today { font-weight: 600; }
.ca-hours-day { flex: 1; color: #555; }
.ca-hours-time { color: #333; }
.ca-hours-time--closed { color: #ef4444; }
.ca-hours-today {
    background: #2563eb; color: #fff; padding: 2px 10px;
    border-radius: 6px; font-size: 11px; font-weight: 600;
}

/* ─── Servicios ─── */
.ca-services-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ca-service-tag {
    padding: 6px 14px; background: #eef2ff; color: #2563eb;
    border-radius: 8px; font-size: 13px; font-weight: 500;
}

/* ─── Galería ─── */
.ca-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.ca-gallery-item {
    aspect-ratio: 1; border-radius: 10px; overflow: hidden;
}
.ca-gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* ─── Redes Sociales ─── */
.ca-social-row { display: flex; flex-wrap: wrap; gap: 10px; }
.ca-social-link {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: 10px;
    font-size: 14px; font-weight: 500;
    transition: all 0.2s;
}
.ca-social-link--facebook { background: #eef2ff; color: #1877f2; }
.ca-social-link--facebook:hover { background: #1877f2; color: #fff; }
.ca-social-link--instagram { background: #fce4ec; color: #e4405f; }
.ca-social-link--instagram:hover { background: #e4405f; color: #fff; }
.ca-social-link--tiktok { background: #f0f0f0; color: #000; }
.ca-social-link--tiktok:hover { background: #000; color: #fff; }

/* ─── Contacto ─── */
.ca-contact-list { display: flex; flex-direction: column; gap: 2px; }
.ca-contact-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 0; font-size: 14px; color: #444;
    transition: color 0.2s;
}
.ca-contact-item i { width: 20px; color: #2563eb; font-size: 16px; }
.ca-contact-item:hover { color: #2563eb; }

/* ─── Navegación de retroceso ─── */
.ca-back-nav { margin-bottom: 20px; }
.ca-back-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 14px; color: #666; margin-bottom: 8px;
    transition: color 0.2s;
}
.ca-back-link:hover { color: #2563eb; }
.ca-page-title { font-size: 22px; font-weight: 700; color: #1a1a2e; }
.ca-page-sub { color: #888; font-size: 14px; margin-top: 4px; }

/* ─── Info Banner ─── */
.ca-info-banner {
    display: flex; align-items: center; gap: 16px;
    padding: 20px; background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    border-radius: 16px;
}
.ca-info-banner-icon { font-size: 36px; flex-shrink: 0; }
.ca-info-banner-text h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.ca-info-banner-text p { font-size: 13px; color: #555; line-height: 1.5; }

/* ─── Estados vacíos ─── */
.ca-empty-state {
    text-align: center; padding: 48px 16px; color: #888;
}
.ca-empty-state i { font-size: 48px; color: #ddd; margin-bottom: 16px; display: block; }
.ca-empty-state p { font-size: 15px; margin-bottom: 8px; }
.ca-text-muted { color: #999; font-size: 13px; }
.ca-empty { color: #999; font-size: 14px; padding: 20px 0; }
.ca-error { text-align: center; padding: 80px 16px; }
.ca-error h2 { font-size: 48px; color: #ddd; }
.ca-error p { color: #888; margin: 8px 0 20px; }

/* ─── Botones ─── */
.ca-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: 12px;
    font-weight: 600; font-size: 14px;
    transition: all 0.2s;
}
.ca-btn-primary { background: #2563eb; color: #fff; }
.ca-btn-primary:hover { background: #1d4ed8; }

/* ─── Footer ─── */
.ca-footer {
    background: #1a1a2e; color: #fff; padding: 32px 0 48px;
    margin-top: 40px;
}
.ca-footer-content { text-align: center; }
.ca-footer-brand .ca-logo-icon {
    margin: 0 auto 8px; width: 40px; height: 40px; font-size: 20px;
}
.ca-footer-brand .ca-logo-text { color: #fff; font-size: 20px; display: block; margin-bottom: 8px; }
.ca-footer-brand p { color: #aaa; font-size: 13px; margin-bottom: 16px; }
.ca-footer-info p { color: #888; font-size: 13px; margin-bottom: 4px; }
.ca-footer-info i { margin-right: 6px; }
.ca-footer-bottom { margin-top: 20px; padding-top: 16px; border-top: 1px solid #333; }
.ca-footer-bottom p { font-size: 12px; color: #666; }

/* ─── Resultados de búsqueda (legacy) ─── */
.ca-search-page { margin-top: 8px; }
.ca-search-form--page { margin-bottom: 16px; }
.ca-results-count { font-size: 14px; color: #666; margin-bottom: 16px; }

/* ─── Search Hero ─── */
.ca-search-hero {
    position: relative;
    padding: 48px 0 40px;
    overflow: hidden;
}
.ca-search-hero-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #2563eb 50%, #1d4ed8 100%);
}
.ca-search-hero-bg::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.ca-search-hero-content {
    position: relative; z-index: 2;
    text-align: center;
}
.ca-search-hero-title {
    font-size: 28px; font-weight: 800; color: #fff;
    margin-bottom: 8px; line-height: 1.3;
}
.ca-search-hero-title i { margin-right: 8px; opacity: 0.7; }
.ca-search-hero-sub {
    font-size: 15px; color: rgba(255,255,255,0.75);
    margin-bottom: 28px;
}
.ca-search-hero-form {
    max-width: 560px; margin: 0 auto;
}
.ca-search-hero-box {
    display: flex; align-items: center;
    background: #fff; border-radius: 16px;
    padding: 5px 5px 5px 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.ca-search-hero-box:focus-within {
    box-shadow: 0 8px 32px rgba(37,99,235,0.3), 0 0 0 3px rgba(255,255,255,0.3);
}
.ca-search-hero-box > i {
    color: #999; font-size: 18px; margin-right: 12px; flex-shrink: 0;
}
.ca-search-hero-input {
    flex: 1; border: none; background: none;
    padding: 14px 0; font-size: 15px; color: #1a1a2e;
}
.ca-search-hero-input::placeholder { color: #bbb; }
.ca-search-hero-btn {
    width: 48px; height: 48px; border-radius: 12px;
    background: #2563eb; color: #fff; border: none;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; cursor: pointer; transition: background 0.2s;
    flex-shrink: 0;
}
.ca-search-hero-btn:hover { background: #1d4ed8; }

/* ─── Search Results Header ─── */
.ca-search-results-header {
    margin-bottom: 20px;
}
.ca-results-count-bar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px;
}
.ca-results-count-bar .ca-results-count {
    font-size: 15px; color: #555;
}
.ca-results-count-bar .ca-results-count strong {
    color: #2563eb; font-weight: 700;
}

/* ─── Filter Chips ─── */
.ca-search-filters {
    display: flex; gap: 8px; overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}
.ca-search-filters::-webkit-scrollbar { display: none; }
.ca-filter-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 24px;
    background: #fff; border: 1.5px solid #e5e7eb;
    font-size: 13px; font-weight: 500; color: #555;
    white-space: nowrap; flex-shrink: 0;
    transition: all 0.2s;
}
.ca-filter-chip:hover {
    border-color: #2563eb; color: #2563eb;
    background: #f0f5ff;
}
.ca-filter-chip--active {
    background: #2563eb; color: #fff; border-color: #2563eb;
}
.ca-filter-chip--active:hover {
    background: #1d4ed8; color: #fff; border-color: #1d4ed8;
}

/* ─── Search Result Cards ─── */
.ca-search-results-list {
    display: flex; flex-direction: column; gap: 14px;
}
.ca-search-card {
    display: flex; background: #fff; border-radius: 16px;
    overflow: hidden; transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}
.ca-search-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
    border-color: #e0e7ff;
}
.ca-search-card-img {
    width: 120px; min-height: 120px; flex-shrink: 0;
    position: relative; overflow: hidden; background: #f0f0f0;
}
.ca-search-card-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s;
}
.ca-search-card:hover .ca-search-card-img img {
    transform: scale(1.05);
}
.ca-search-card-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; color: #ccc;
    background: linear-gradient(135deg, #f0f0f0, #e8e8e8);
}
.ca-badge-featured {
    position: absolute; top: 8px; left: 8px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff; padding: 3px 8px; border-radius: 6px;
    font-size: 10px; font-weight: 700;
    display: inline-flex; align-items: center; gap: 3px;
    box-shadow: 0 2px 6px rgba(245,158,11,0.3);
}
.ca-search-card-status {
    position: absolute; bottom: 8px; left: 8px;
    padding: 3px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 600;
    backdrop-filter: blur(4px);
}
.ca-search-card-status--open {
    background: rgba(34,197,94,0.9); color: #fff;
}
.ca-search-card-status--closed {
    background: rgba(239,68,68,0.9); color: #fff;
}
.ca-search-card-status i { font-size: 7px; margin-right: 3px; }

.ca-search-card-body {
    flex: 1; padding: 14px 16px;
    display: flex; flex-direction: column;
    min-width: 0;
}
.ca-search-card-top {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 8px; margin-bottom: 4px;
}
.ca-search-card-name {
    font-size: 16px; font-weight: 700; color: #1a1a2e;
    line-height: 1.3;
    transition: color 0.2s;
}
.ca-search-card:hover .ca-search-card-name { color: #2563eb; }
.ca-search-card-rating {
    display: flex; align-items: center; gap: 3px;
    font-size: 13px; font-weight: 700; color: #f59e0b;
    flex-shrink: 0;
    background: #fffbeb; padding: 2px 8px; border-radius: 8px;
}
.ca-search-card-rating i { font-size: 11px; }
.ca-search-card-cat {
    font-size: 12px; color: #888; margin-bottom: 4px;
    display: flex; align-items: center; gap: 4px;
}
.ca-search-card-cat i { color: #2563eb; font-size: 11px; }
.ca-search-card-addr {
    font-size: 12px; color: #999; margin-bottom: 6px;
    display: flex; align-items: center; gap: 4px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ca-search-card-addr i { color: #ef4444; font-size: 11px; }
.ca-search-card-desc {
    font-size: 13px; color: #777; line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.ca-search-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: auto;
    padding-top: 8px; border-top: 1px solid #f5f5f5;
}
.ca-search-card-views {
    font-size: 12px; color: #bbb;
    display: flex; align-items: center; gap: 4px;
}
.ca-search-card-arrow {
    width: 28px; height: 28px; border-radius: 8px;
    background: #f5f7ff; color: #2563eb;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; transition: all 0.2s;
}
.ca-search-card:hover .ca-search-card-arrow {
    background: #2563eb; color: #fff;
}

/* ─── Empty State Mejorado ─── */
.ca-empty-icon {
    width: 80px; height: 80px; margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eef2ff, #dbeafe);
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.ca-empty-icon > i {
    font-size: 32px; color: #2563eb;
}
.ca-empty-pulse {
    position: absolute; inset: -8px;
    border-radius: 50%;
    border: 2px solid #2563eb;
    opacity: 0.2;
    animation: caPulse 2s infinite;
}
@keyframes caPulse {
    0% { transform: scale(0.8); opacity: 0.3; }
    100% { transform: scale(1.3); opacity: 0; }
}
.ca-search-empty {
    text-align: center; padding: 48px 16px;
}

/* ─── Search Responsive ─── */
@media (min-width: 480px) {
    .ca-search-card-img { width: 140px; min-height: 140px; }
}
@media (min-width: 640px) {
    .ca-search-hero-title { font-size: 36px; }
    .ca-search-hero { padding: 56px 0 48px; }
    .ca-search-card-img { width: 180px; min-height: 160px; }
    .ca-search-card-body { padding: 18px 22px; }
    .ca-search-card-name { font-size: 18px; }
}

/* ─── Mapa ─── */
.ca-map-container { border-radius: 12px; overflow: hidden; }

/* ─── Responsive ─── */
@media (min-width: 480px) {
    .ca-categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }
    .ca-business-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}
@media (min-width: 640px) {
    .ca-container { padding: 0 24px; }
    .ca-hero-title { font-size: 32px; }
    .ca-hero { padding: 48px 0; }
    .ca-profile-cover { height: 240px; }
    .ca-gallery { grid-template-columns: repeat(4, 1fr); }
    .ca-home-categories { grid-template-columns: repeat(3, 1fr); }
}

/* ─── Home: Grid de Categorías con imagen ─── */
.ca-home-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.ca-home-cat-card {
    display: flex; flex-direction: column;
    background: #fff; border-radius: 16px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.ca-home-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.ca-home-cat-img {
    position: relative; height: 140px;
    background: #f0f0f0 center/cover no-repeat;
    overflow: hidden;
}
.ca-home-cat-img::after {
    content: '';
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.08);
    transition: background 0.3s;
}
.ca-home-cat-card:hover .ca-home-cat-img::after {
    background: rgba(0,0,0,0.02);
}
.ca-home-cat-img:hover {
    background-size: 110%;
}
.ca-home-cat-overlay {
    position: absolute; inset: 0;
    opacity: 0.85;
    transition: opacity 0.3s;
}
.ca-home-cat-card:hover .ca-home-cat-overlay {
    opacity: 0.75;
}
.ca-home-cat-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 56px; height: 56px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(4px);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: #333;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}
.ca-home-cat-card:hover .ca-home-cat-icon {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}
.ca-home-cat-info {
    padding: 14px 16px;
}
.ca-home-cat-info h3 {
    font-size: 15px; font-weight: 700; color: #1a1a2e;
    margin-bottom: 4px;
    transition: color 0.2s;
}
.ca-home-cat-card:hover .ca-home-cat-info h3 {
    color: #2563eb;
}
.ca-home-cat-count {
    font-size: 12px; color: #888; font-weight: 500;
}
.ca-home-cat-count span {
    font-weight: 700; color: #2563eb;
    margin-right: 3px;
}

/* ─── Home: Responsive categorías ─── */
@media (max-width: 479px) {
    .ca-home-categories { gap: 10px; }
    .ca-home-cat-img { height: 120px; }
    .ca-home-cat-icon { width: 48px; height: 48px; font-size: 20px; border-radius: 12px; }
}
@media (min-width: 768px) {
    .ca-home-categories { grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .ca-home-cat-img { height: 160px; }
}
@media (min-width: 1024px) {
    .ca-home-categories { grid-template-columns: repeat(3, 1fr); }
}

/* ========================================
   Listing Page Responsive Cards
   ======================================== */

/* Tablet: make image column narrower */
@media (max-width: 1024px) {
    .list-view .geodir-category-img {
        flex: 0 0 220px;
        max-width: 220px;
    }
    .list-view .geodir-category-img .geodir-category-img-wrap {
        height: 200px;
    }
}

/* Tablet small: even narrower image */
@media (max-width: 860px) {
    .list-view .geodir-category-img {
        flex: 0 0 180px;
        max-width: 180px;
    }
    .list-view .geodir-category-img .geodir-category-img-wrap {
        height: 170px;
    }
}

/* Mobile: stack card vertically */
@media (max-width: 768px) {
    .list-view .geodir-category-listing {
        flex-direction: column;
    }
    .list-view .geodir-category-img {
        flex: none;
        max-width: 100%;
        width: 100%;
    }
    .list-view .geodir-category-img .geodir-category-img-wrap {
        height: 200px;
    }
    .list-view .geodir-category-content {
        padding: 14px 16px;
    }
    .geodir-category-listing:after {
        display: none;
    }
    .listing-item {
        padding: 0 8px !important;
        margin-bottom: 14px;
    }
    .geodir-category-content-title-item h3.title-sin_map {
        font-size: 16px;
    }
    .geodir-category-text .small-text {
        font-size: 13px;
    }
    .listing-rating-count-wrap {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-wrap: wrap;
    }
}

/* Mobile small: smaller image */
@media (max-width: 480px) {
    .list-view .geodir-category-img .geodir-category-img-wrap {
        height: 170px;
    }
    .listing-item {
        padding: 0 4px !important;
    }
    .geodir-category-content {
        padding: 12px 12px;
    }
    .geodir-category-content-title-item h3.title-sin_map {
        font-size: 15px;
    }
    .geodir-category-location a {
        font-size: 12px;
    }
    .facilities-list .small-text {
        font-size: 12px;
    }
    .geodir-category-footer {
        flex-wrap: wrap;
        gap: 6px;
    }
}

/* Fix: ensure the listing-item-container is not using grid on mobile */
@media (max-width: 768px) {
    .listing-item-container.init-grid-items .listing-item,
    .listing-item-container.list-view .listing-item {
        width: 100% !important;
        float: none;
    }
}
