/* Marketplace Sticky CTA Bar - Mobile First */
/* Research-backed: +55% CTA clicks, +37.5% leads with green buttons */

:root {
    --cta-green: #00A67E;
    --cta-green-hover: #008F6B;
    --cta-whatsapp: #25D366;
    --cta-whatsapp-hover: #1DA851;
    --cta-call: #4A90E2;
    --cta-call-hover: #357ABD;
}

/* Enhanced Sticky Bottom CTA Bar */
.marketplace-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 12px 16px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    border-top: 1px solid #e9ecef;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

.marketplace-sticky-cta .cta-container {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.marketplace-sticky-cta .cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 56px;
}

.marketplace-sticky-cta .cta-btn i {
    font-size: 18px;
}

/* WhatsApp Button */
.marketplace-sticky-cta .cta-whatsapp {
    flex: 1;
    background: var(--cta-whatsapp);
    color: white;
}

.marketplace-sticky-cta .cta-whatsapp:hover {
    background: var(--cta-whatsapp-hover);
    transform: translateY(-1px);
}

/* Call Button */
.marketplace-sticky-cta .cta-call {
    flex: 1;
    background: var(--cta-call);
    color: white;
}

.marketplace-sticky-cta .cta-call:hover {
    background: var(--cta-call-hover);
    transform: translateY(-1px);
}

/* Primary Book CTA - Green for +37.5% conversion */
.marketplace-sticky-cta .cta-book {
    flex: 2;
    background: var(--cta-green);
    color: white;
}

.marketplace-sticky-cta .cta-book:hover {
    background: var(--cta-green-hover);
    transform: translateY(-1px);
}

/* Mobile optimizations */
@media (max-width: 480px) {
    .marketplace-sticky-cta {
        padding: 10px 12px;
    }
    
    .marketplace-sticky-cta .cta-container {
        gap: 8px;
    }
    
    .marketplace-sticky-cta .cta-btn {
        padding: 12px 8px;
        font-size: 13px;
        min-height: 52px;
    }
    
    .marketplace-sticky-cta .cta-btn i {
        font-size: 16px;
    }
    
    .marketplace-sticky-cta .cta-btn .btn-label {
        display: none;
    }
    
    .marketplace-sticky-cta .cta-book .btn-label {
        display: inline;
        font-size: 12px;
    }
}

/* Quick Actions Bar */
.quick-actions-bar {
    display: flex;
    gap: 10px;
    margin: 16px 0;
    padding: 0;
}

.quick-actions-bar .quick-action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s ease;
    min-height: 70px;
}

.quick-actions-bar .quick-action-btn:hover {
    background: #e9ecef;
    border-color: var(--cta-green);
    transform: translateY(-2px);
}

.quick-actions-bar .quick-action-btn i {
    font-size: 20px;
    margin-bottom: 6px;
    color: var(--cta-green);
}

.quick-actions-bar .quick-action-btn span {
    font-size: 12px;
    font-weight: 500;
}

/* Before/After Gallery Enhancement */
.before-after-gallery {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.before-after-gallery .gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.before-after-gallery .gallery-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.before-after-gallery .gallery-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.before-after-gallery .gallery-scroll::-webkit-scrollbar {
    height: 4px;
}

.before-after-gallery .gallery-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.before-after-gallery .gallery-scroll::-webkit-scrollbar-thumb {
    background: var(--cta-green);
    border-radius: 10px;
}

.before-after-gallery .gallery-item {
    min-width: 280px;
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.before-after-gallery .gallery-item .images-row {
    display: flex;
}

.before-after-gallery .gallery-item .image-half {
    flex: 1;
    position: relative;
}

.before-after-gallery .gallery-item .image-half img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.before-after-gallery .gallery-item .image-label {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.before-after-gallery .gallery-item .item-info {
    padding: 12px;
    text-align: center;
}

.before-after-gallery .gallery-item .item-info h6 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
}

.before-after-gallery .gallery-item .item-info p {
    margin: 0;
    font-size: 12px;
    color: #6c757d;
}

/* Empty Gallery State */
.before-after-gallery .empty-gallery {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.before-after-gallery .empty-gallery i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.before-after-gallery .empty-gallery p {
    margin: 0;
    font-size: 14px;
}

/* Green CTA Button Override - Global */
.btn-cta-green,
.btn-book-consultation {
    background: var(--cta-green) !important;
    border-color: var(--cta-green) !important;
    color: white !important;
}

.btn-cta-green:hover,
.btn-book-consultation:hover {
    background: var(--cta-green-hover) !important;
    border-color: var(--cta-green-hover) !important;
    color: white !important;
    transform: translateY(-1px);
}

/* Body padding for sticky bar */
body.has-sticky-cta {
    padding-bottom: 90px;
}

@media (max-width: 480px) {
    body.has-sticky-cta {
        padding-bottom: 80px;
    }
}

/* City Selector Styles */
.city-selector-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.city-selector-header:hover {
    background: #e9ecef;
}

.city-selector-header i {
    color: var(--cta-green);
}

/* Trust Stats Bar */
.trust-stats-bar {
    display: flex;
    justify-content: space-around;
    padding: 16px;
    background: white;
    border-radius: 12px;
    margin: 16px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.trust-stats-bar .stat-item {
    text-align: center;
    flex: 1;
}

.trust-stats-bar .stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--cta-green);
    display: block;
}

.trust-stats-bar .stat-label {
    font-size: 11px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* City Grid */
.city-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 16px 0;
}

.city-grid .city-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 16px 12px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.city-grid .city-card:hover {
    border-color: var(--cta-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 166, 126, 0.15);
}

.city-grid .city-card .city-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: #333;
}

.city-grid .city-card .city-count {
    font-size: 12px;
    color: #6c757d;
}

@media (max-width: 480px) {
    .city-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Clinic Card with CTA */
.clinic-card-marketplace {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
}

.clinic-card-marketplace .card-header-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.clinic-card-marketplace .card-body {
    padding: 16px;
}

.clinic-card-marketplace .clinic-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.clinic-card-marketplace .clinic-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #6c757d;
}

.clinic-card-marketplace .clinic-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #ffc107;
    font-weight: 600;
}

.clinic-card-marketplace .clinic-location {
    display: flex;
    align-items: center;
    gap: 4px;
}

.clinic-card-marketplace .clinic-specialties {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 12px;
}

.clinic-card-marketplace .card-cta {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--cta-green);
    color: white;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}

.clinic-card-marketplace .card-cta:hover {
    background: var(--cta-green-hover);
    color: white;
}

/* AI Section - Secondary positioning */
.ai-section-secondary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    text-align: center;
    border: 1px dashed #dee2e6;
}

.ai-section-secondary h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.ai-section-secondary p {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 16px;
}

.ai-section-secondary .ai-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    border: 2px solid var(--cta-green);
    color: var(--cta-green);
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.ai-section-secondary .ai-btn:hover {
    background: var(--cta-green);
    color: white;
}

.ai-section-secondary .ai-stats {
    margin-top: 12px;
    font-size: 12px;
    color: #6c757d;
}
