/* Custom styles extending Tailwind */

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Search Type Cards */
.search-type-card {
    cursor: pointer;
    position: relative;
}

.search-type-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.search-type-card input:checked + .search-type-inner {
    border-color: #14b8a6;
    background: linear-gradient(135deg, #f0fdfa 0%, #e6fffa 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.15);
}

.search-type-inner i {
    color: #6b7280;
    transition: color 0.3s ease;
}

.search-type-card input:checked + .search-type-inner i {
    color: #14b8a6;
}

/* Quick Filters */
.quick-filter {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.quick-filter:hover {
    background: #14b8a6;
    color: white;
    border-color: #14b8a6;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.2);
}

/* Map Controls */
.map-control-btn {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.map-control-btn:hover {
    background: #14b8a6;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

/* Job Cards */
.job-card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.job-card-header {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.job-count {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #10b981;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
}

/* Animal Cards */
.animal-card {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.animal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    background: #f0fdfa;
}

.animal-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.animal-card:hover .animal-icon {
    background: linear-gradient(135deg, #99f6e4 0%, #5eead4 100%);
    transform: scale(1.1);
}

/* Stat Counter Animation */
.counter {
    animation: fadeInUp 0.8s ease-out;
}

/* Enhanced Navbar Styles */
#navbar {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#navbar .container {
    transition: padding 0.3s ease;
}

/* Logo styling */
#navbar .logo-container {
    position: relative;
    overflow: hidden;
}

#navbar .logo-container img {
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

#navbar .logo-container:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

/* Navigation Links */
#navbar .nav-link {
    position: relative;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    letter-spacing: 0.025em;
}

#navbar .nav-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #14b8a6, #0d9488);
    transition: width 0.3s ease;
}

#navbar .nav-link:hover::before {
    width: 100%;
}

#navbar .nav-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(20, 184, 166, 0.1);
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

#navbar .nav-link:hover::after {
    width: 100px;
    height: 100px;
}

/* User Icon Enhancement */
#navbar .user-icon {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0fdfa, #e6fffa);
    transition: all 0.3s ease;
    cursor: pointer;
}

#navbar .user-icon:hover {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(20, 184, 166, 0.3);
}

#navbar .user-icon i {
    transition: all 0.3s ease;
}

#navbar .user-icon:hover i {
    color: white;
    transform: scale(1.1);
}

/* Mobile Menu Button Enhancement */
#mobileMenuBtn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

#mobileMenuBtn:hover {
    background: rgba(20, 184, 166, 0.1);
}

/* Navbar Scroll Effect */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.navbar-scrolled .container {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.navbar-scrolled .logo-container img {
    height: 2.25rem;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Map Marker Clusters */
.marker-cluster {
    background: #14b8a6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.marker-cluster-small {
    width: 40px;
    height: 40px;
    font-size: 0.875rem;
}

.marker-cluster-medium {
    width: 50px;
    height: 50px;
    font-size: 1rem;
}

.marker-cluster-large {
    width: 60px;
    height: 60px;
    font-size: 1.125rem;
}

/* Category Filter Buttons */
.category-filter {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 0.5rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    min-height: 80px;
    font-size: 0.75rem;
}

.category-filter i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: #9ca3af;
    transition: color 0.3s ease;
}

.category-filter span:not(.count) {
    font-weight: 500;
    color: #4b5563;
    text-align: center;
    line-height: 1.2;
}

.category-filter .count {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    background: #6b7280;
    color: white;
    border-radius: 50%;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 600;
    transition: background 0.3s ease;
}

.category-filter.active {
    border-color: var(--category-color);
    background: linear-gradient(135deg, rgba(var(--category-color-rgb), 0.1), rgba(var(--category-color-rgb), 0.05));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-filter.active i {
    color: var(--category-color);
}

.category-filter.active .count {
    background: var(--category-color);
}

.category-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Set CSS custom properties for category colors */
.category-filter[data-category="vet"] { --category-color-rgb: 13, 148, 136; }
.category-filter[data-category="clinic"] { --category-color-rgb: 20, 184, 166; }
.category-filter[data-category="hotel"] { --category-color-rgb: 139, 92, 246; }
.category-filter[data-category="grooming"] { --category-color-rgb: 245, 158, 11; }
.category-filter[data-category="school"] { --category-color-rgb: 59, 130, 246; }
.category-filter[data-category="pharmacy"] { --category-color-rgb: 239, 68, 68; }
.category-filter[data-category="lab"] { --category-color-rgb: 16, 185, 129; }
.category-filter[data-category="emergency"] { --category-color-rgb: 220, 38, 38; }
.category-filter[data-category="shop"] { --category-color-rgb: 249, 115, 22; }

/* Enhanced Popup Styles */
.leaflet-popup-content-wrapper {
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0;
    padding: 0;
    width: 280px !important;
}

.service-popup {
    min-width: 280px;
}

.popup-header {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
}

.popup-header i {
    font-size: 1.5rem;
}

.category-badge {
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: auto;
}

.popup-content {
    padding: 1rem;
}

.popup-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #111827;
}

.popup-content .rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.popup-content .info {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.popup-content .info i {
    width: 1rem;
    color: #9ca3af;
}

.popup-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.popup-actions .btn {
    text-decoration: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-actions .btn-primary {
    flex: 1;
    padding: 0.75rem;
    background: #14b8a6;
    color: white;
}

.popup-actions .btn-primary:hover {
    background: #0d9488;
    transform: translateY(-1px);
}

.popup-actions .btn-secondary {
    width: 2.5rem;
    height: 2.5rem;
    background: #f3f4f6;
    color: #6b7280;
}

.popup-actions .btn-secondary:hover {
    background: #e5e7eb;
    color: #374151;
}

/* Map Legend Styles */
.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    transition: opacity 0.3s ease;
}

.legend-item.inactive {
    opacity: 0.4;
}

.legend-marker {
    width: 20px;
    height: 20px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.legend-marker i {
    transform: rotate(45deg);
    color: white;
    font-size: 0.75rem;
}

.legend-text {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
}

.legend-name {
    font-weight: 500;
    color: #374151;
}

.legend-count {
    color: #6b7280;
    font-size: 0.75rem;
}

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f3f4f6;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Enhanced Mobile Menu */
#mobileMenu {
    background: linear-gradient(180deg, #ffffff, #fafafa);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobileMenu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    opacity: 0.05;
    pointer-events: none;
}

#mobileMenuOverlay {
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

#mobileMenu .mobile-nav-header {
    position: relative;
    padding: 2rem 1.5rem 1.5rem;
    margin-bottom: 2rem;
}

#mobileMenu .mobile-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    overflow: hidden;
}

#mobileMenu .mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #14b8a6, #0d9488);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

#mobileMenu .mobile-nav-link:hover::before {
    transform: scaleY(1);
}

#mobileMenu .mobile-nav-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 184, 166, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#mobileMenu .mobile-nav-link:hover::after {
    opacity: 1;
}

#mobileMenu .mobile-nav-link i {
    margin-right: 1rem;
    width: 20px;
    text-align: center;
    color: #14b8a6;
}

#closeMobileMenu {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

#closeMobileMenu:hover {
    background: rgba(20, 184, 166, 0.1);
    transform: rotate(90deg);
}

/* Mobile Menu Animation */
.mobile-menu-open {
    transform: translateX(0) !important;
}

/* Animated Hamburger Menu */
.hamburger {
    position: relative;
    width: 24px;
    height: 20px;
}

.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #374151;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(9px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-9px);
}

/* Form Input Focus States */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    ring: 2px;
    ring-color: #14b8a6;
    ring-offset: 2px;
}

/* Button Press Effect */
button:active {
    transform: scale(0.98);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Category filters responsive grid */
    #categoryFilters {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .category-filter {
        padding: 0.5rem 0.25rem;
        min-height: 70px;
        font-size: 0.6875rem;
    }
    
    .category-filter i {
        font-size: 1rem;
    }
    
    .category-filter .count {
        width: 1rem;
        height: 1rem;
        font-size: 0.5625rem;
    }
    
    /* Popup responsive sizing */
    .leaflet-popup-content {
        width: 260px !important;
    }
    
    .service-popup {
        min-width: 260px;
    }
    
    .popup-header {
        padding: 0.75rem;
    }
    
    .popup-content {
        padding: 0.75rem;
    }
    
    .popup-actions {
        flex-direction: column;
    }
    
    .popup-actions .btn-secondary {
        width: 100%;
        height: 2.5rem;
    }
}

@media (max-width: 640px) {
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    /* Even smaller screens - 2 column grid for categories */
    #categoryFilters {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-filter {
        padding: 0.5rem;
        min-height: 75px;
        font-size: 0.75rem;
    }
    
    .category-filter i {
        font-size: 1.125rem;
    }
    
    /* Map marker size adjustments for mobile */
    .custom-marker .marker-pin {
        width: 32px;
        height: 32px;
    }
    
    .custom-marker .marker-pin i {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    /* Ultra small screens adjustments */
    .category-filter {
        padding: 0.375rem;
        min-height: 65px;
        font-size: 0.6875rem;
    }
    
    .category-filter i {
        font-size: 1rem;
        margin-bottom: 0.125rem;
    }
    
    .popup-header {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .popup-content {
        padding: 0.5rem;
    }
    
    .popup-content h3 {
        font-size: 1rem;
    }
    
    .popup-content .info {
        font-size: 0.8125rem;
    }
    
    /* Legend responsive adjustments */
    #mapLegend {
        right: 4rem !important;
        bottom: 2rem !important;
        max-width: 200px;
    }
    
    .legend-text {
        font-size: 0.8125rem;
    }
    
    .legend-count {
        font-size: 0.6875rem;
    }
}

/* Featured Clinics Showcase Styles */
.featured-clinic-card {
    position: relative;
    overflow: hidden;
}

.featured-clinic-card:hover {
    transform: translateY(-8px);
}

.featured-clinic-card:hover .animate-float {
    animation-play-state: paused;
}

/* Additional Navbar Enhancements */
#navbar {
    position: relative;
}

#navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(20, 184, 166, 0.3) 20%, 
        rgba(20, 184, 166, 0.3) 80%, 
        transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#navbar:hover::after {
    opacity: 1;
}

/* Navigation Link Glow Effect */
@keyframes linkGlow {
    0% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.4); }
    100% { box-shadow: 0 0 0 10px rgba(20, 184, 166, 0); }
}

#navbar .nav-link:focus {
    outline: none;
    animation: linkGlow 1s infinite;
}

/* Premium Button Styles */
.premium-button {
    position: relative;
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    overflow: hidden;
    transition: all 0.3s ease;
}

.premium-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.premium-button:hover::before {
    width: 300px;
    height: 300px;
}

.premium-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(20, 184, 166, 0.3);
}

/* Enhanced gradient backgrounds for clinic cards */
.featured-clinic-card .relative:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.featured-clinic-card:hover .relative:before {
    left: 100%;
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Stats counter animation */
.featured-stat {
    position: relative;
    padding: 1rem;
    transition: all 0.3s ease;
}

.featured-stat:hover {
    transform: scale(1.05);
}

.featured-stat .counter {
    position: relative;
    overflow: hidden;
}

/* Enhanced heart button interaction */
.featured-clinic-card .fa-heart {
    transition: all 0.3s ease;
}

.featured-clinic-card .fa-heart:hover {
    color: #ef4444;
    transform: scale(1.2);
}

/* Shimmer effect for CTA button */
.bg-gradient-to-r {
    position: relative;
    overflow: hidden;
}

.bg-gradient-to-r:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.bg-gradient-to-r:hover:before {
    left: 100%;
}

/* Responsive adjustments for Featured Clinics */
@media (max-width: 1024px) {
    .featured-clinic-card {
        margin-bottom: 1.5rem;
    }
    
    .featured-clinic-card .relative h-48 {
        height: 12rem;
    }
}

@media (max-width: 768px) {
    /* Stack clinic cards in single column on mobile */
    .grid.grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .featured-clinic-card .relative {
        height: 10rem;
    }
    
    .featured-clinic-card .p-6 {
        padding: 1rem;
    }
    
    /* Adjust stats grid for mobile */
    .grid.grid-cols-2.md\\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .featured-stat {
        padding: 0.75rem;
    }
    
    .featured-stat .text-3xl {
        font-size: 1.5rem;
    }
    
    /* CTA button responsive */
    .bg-gradient-to-r.px-8.py-4 {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    /* Very small screens */
    .featured-clinic-card .text-2xl {
        font-size: 1.25rem;
    }
    
    .featured-clinic-card .text-sm {
        font-size: 0.75rem;
    }
    
    .featured-clinic-card .p-6 {
        padding: 0.75rem;
    }
    
    .featured-clinic-card .flex.gap-2 {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .featured-clinic-card .w-12.h-12 {
        width: 100%;
        height: 2.5rem;
    }
    
    /* Single column stats on very small screens */
    .grid.grid-cols-2.md\\:grid-cols-4 {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .featured-stat .text-3xl {
        font-size: 1.25rem;
    }
}

/* Category Filter Bar Styles */
#filterBar {
    transition: all 0.3s ease;
}

#categoryFiltersContainer {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#categoryFiltersContainer::-webkit-scrollbar {
    display: none;
}

/* Horizontal Category Filter Styles */
#categoryFiltersContainer .category-filter-h {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 9999px;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    flex-shrink: 0;
}

#categoryFiltersContainer .category-filter-h i {
    font-size: 1rem;
    color: #9ca3af;
    transition: color 0.3s ease;
}

#categoryFiltersContainer .category-filter-h .count {
    background: #e5e7eb;
    color: #6b7280;
    border-radius: 9999px;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

#categoryFiltersContainer .category-filter-h:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

#categoryFiltersContainer .category-filter-h.active {
    background: var(--category-bg);
    border-color: var(--category-color);
    color: var(--category-color);
}

#categoryFiltersContainer .category-filter-h.active i {
    color: var(--category-color);
}

#categoryFiltersContainer .category-filter-h.active .count {
    background: var(--category-color);
    color: white;
}

/* Category colors for horizontal filters */
.category-filter-h[data-category="vet"] {
    --category-color: #0d9488;
    --category-bg: #f0fdfa;
}

.category-filter-h[data-category="clinic"] {
    --category-color: #14b8a6;
    --category-bg: #f0fdfa;
}

.category-filter-h[data-category="hotel"] {
    --category-color: #8b5cf6;
    --category-bg: #f3e8ff;
}

.category-filter-h[data-category="grooming"] {
    --category-color: #f59e0b;
    --category-bg: #fef3c7;
}

.category-filter-h[data-category="school"] {
    --category-color: #3b82f6;
    --category-bg: #dbeafe;
}

.category-filter-h[data-category="pharmacy"] {
    --category-color: #ef4444;
    --category-bg: #fee2e2;
}

.category-filter-h[data-category="lab"] {
    --category-color: #10b981;
    --category-bg: #d1fae5;
}

.category-filter-h[data-category="emergency"] {
    --category-color: #dc2626;
    --category-bg: #fee2e2;
}

.category-filter-h[data-category="shop"] {
    --category-color: #f97316;
    --category-bg: #fed7aa;
}

/* Scroll indicators */
#scrollLeft, #scrollRight {
    transition: all 0.2s ease;
    min-width: 36px;
    height: 36px;
}

#scrollLeft:disabled, #scrollRight:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Fade edges for scroll indication */
#categoryFiltersContainer::before,
#categoryFiltersContainer::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    pointer-events: none;
    z-index: 1;
}

#categoryFiltersContainer::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,0.95), transparent);
}

#categoryFiltersContainer::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,0.95), transparent);
}

/* Scroll Arrow Styles */
.scroll-arrow-btn {
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-arrow-btn::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.scroll-arrow-btn:hover::before {
    opacity: 1;
}

.scroll-arrow-btn:hover {
    transform: translateY(2px);
    background: white;
}

.scroll-arrow-btn svg {
    animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(4px);
    }
}

/* Enhanced bounce animation */
#scrollArrow {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-20px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Hide scroll arrow on small viewports */
@media (max-height: 600px) {
    #scrollArrow {
        display: none;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    #scrollArrow {
        bottom: 4rem;
    }
    
    .scroll-arrow-btn {
        padding: 0.75rem;
    }
    
    .scroll-arrow-btn svg {
        width: 1.25rem;
        height: 1.25rem;
    }
}

/* Why Join Section Styles */
.benefit-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.benefit-icon {
    width: 3rem;
    height: 3rem;
    min-width: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1) rotate(5deg);
}

/* PREMIUM PRICING CARDS - LUXURY DESIGN */
.pricing-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    position: relative;
    overflow: hidden;
}

.pricing-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(20, 184, 166, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
}

.pricing-container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.pricing-header-premium {
    text-align: center;
    margin-bottom: 4rem;
}

.pricing-header-premium h3 {
    color: white;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-header-premium p {
    color: #cbd5e1;
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

/* LUXURY PRICING CARDS */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    align-items: start;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
    border-color: rgba(20, 184, 166, 0.5);
}

.pricing-card:hover::before {
    background: linear-gradient(90deg, transparent, #14b8a6, #3b82f6, #14b8a6, transparent);
    height: 4px;
}

/* FEATURED CARD - ABSOLUTELY STUNNING */
.pricing-card.featured {
    background: linear-gradient(135deg, 
        rgba(20, 184, 166, 0.2) 0%, 
        rgba(59, 130, 246, 0.1) 50%, 
        rgba(147, 51, 234, 0.2) 100%);
    border: 2px solid;
    border-image: linear-gradient(135deg, #14b8a6, #3b82f6, #9333ea) 1;
    transform: scale(1.05);
}

.pricing-card.featured::before {
    background: linear-gradient(90deg, #14b8a6, #3b82f6, #9333ea);
    height: 4px;
}

.pricing-card.featured:hover {
    transform: translateY(-8px) scale(1.08);
    box-shadow: 0 50px 100px rgba(20, 184, 166, 0.4);
}

/* PREMIUM BADGE */
.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1e293b;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(251, 191, 36, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.pricing-badge::before {
    content: '👑';
    margin-right: 0.5rem;
    font-size: 1rem;
}

.pricing-badge::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #fbbf24);
    border-radius: 25px;
    z-index: -1;
    animation: badgeGlow 2s ease-in-out infinite alternate;
}

@keyframes badgeGlow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* CARD HEADERS */
.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
}

.pricing-header h4 {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.pricing-card.featured .pricing-header h4 {
    background: linear-gradient(135deg, #14b8a6, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-header p {
    color: #cbd5e1;
    font-size: 1rem;
    font-weight: 500;
}

/* STUNNING PRICE DISPLAY */
.pricing-price {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.pricing-price .text-4xl {
    font-size: 4rem;
    font-weight: 900;
    color: white;
    line-height: 1;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: relative;
}

.pricing-card.featured .pricing-price .text-4xl {
    background: linear-gradient(135deg, #14b8a6, #3b82f6, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: priceShimmer 3s ease-in-out infinite;
}

@keyframes priceShimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.pricing-price .text-xl {
    color: #94a3b8;
    font-weight: 600;
    margin-left: 0.5rem;
    font-size: 1.25rem;
}

.pricing-price::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.5), transparent);
}

.pricing-card.featured .pricing-price::after {
    background: linear-gradient(90deg, transparent, #14b8a6, #3b82f6, #14b8a6, transparent);
    width: 120px;
    height: 3px;
}

/* PREMIUM FEATURES LIST */
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    padding: 1rem 0;
    color: #e2e8f0;
    line-height: 1.6;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.pricing-features li:hover {
    padding-left: 1rem;
    background: rgba(20, 184, 166, 0.1);
    border-radius: 12px;
    border-bottom-color: transparent;
}

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

.pricing-features li i {
    font-size: 1.125rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.pricing-features li i.fa-check {
    color: #10b981;
    background: rgba(16, 185, 129, 0.2);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-features li i.fa-times {
    color: #64748b;
    opacity: 0.5;
}

/* STUNNING CTA BUTTONS */
.pricing-cta button {
    width: 100%;
    padding: 1.25rem 2rem;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.pricing-card:not(.featured) .pricing-cta button {
    background: linear-gradient(135deg, #374151, #4b5563);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.pricing-card:not(.featured) .pricing-cta button:hover {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(20, 184, 166, 0.3);
}

.pricing-card.featured .pricing-cta button {
    background: linear-gradient(135deg, #14b8a6, #3b82f6);
    color: white;
    position: relative;
}

.pricing-card.featured .pricing-cta button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #3b82f6, #9333ea);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pricing-card.featured .pricing-cta button:hover::before {
    opacity: 1;
}

.pricing-card.featured .pricing-cta button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(20, 184, 166, 0.5);
}

.pricing-cta button span {
    position: relative;
    z-index: 1;
}

/* VALUE INDICATORS */
.pricing-value {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .pricing-container {
        padding: 2rem 1rem;
    }
    
    .pricing-header-premium h3 {
        font-size: 2rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing-card {
        padding: 2rem;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-price .text-4xl {
        font-size: 3rem;
    }
}

/* CTA Buttons */
.join-cta-primary {
    position: relative;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: white;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1.125rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.join-cta-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.join-cta-primary:hover::before {
    opacity: 1;
}

.join-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(20, 184, 166, 0.35);
}

.join-cta-secondary {
    padding: 1rem 2.5rem;
    background: white;
    color: #374151;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
    cursor: pointer;
}

.join-cta-secondary:hover {
    background: #f9fafb;
    border-color: #14b8a6;
    color: #14b8a6;
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.8s ease-out;
}

/* Stat Item Join */
.stat-item-join {
    position: relative;
}

.stat-item-join::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 3rem;
    height: 2px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0.3;
}

/* Responsive adjustments for Join Section */
@media (max-width: 768px) {
    .benefit-card {
        padding: 1.25rem;
    }
    
    .pricing-card {
        padding: 1.5rem;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .pricing-card.featured:hover {
        transform: scale(1) translateY(-8px);
    }
    
    .join-cta-primary,
    .join-cta-secondary {
        width: 100%;
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
}