/* Modern CSS Variables */
:root {
    --primary: #667eea;
    --primary-dark: #764ba2;
    --secondary: #f093fb;
    --accent: #4facfe;
    --success: #4CAF50;
    --warning: #ff9800;
    --error: #f44336;
    --dark: #2c3e50;
    --light: #f8f9fa;
    --text: #333;
    --text-light: #6c757d;
    --border: #e9ecef;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --gradient-light: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: #fff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo .logo-link {
    text-decoration: none;
    color: var(--dark);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo i {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    cursor: pointer;
}

.default-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
}

.user-profile:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a,
.user-dropdown button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.5rem 0;
    background: none;
    border: none;
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.user-dropdown a:hover,
.user-dropdown button:hover {
    color: var(--primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--dark);
    margin: 3px 0;
    transition: var(--transition);
}

/* Slideshow */
.slideshow-section {
    margin-top: 80px;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    border-radius: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 1s ease-in-out, transform 8s ease-in-out;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 600px;
    width: 90%;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translate(-50%, -40%);
    transition: all 0.8s ease-in-out 0.3s;
}

.slide.active .slide-content {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slide-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.slideshow-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    transform: translateY(-50%);
    z-index: 10;
}

.slide-prev,
.slide-next {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.slide-prev:hover,
.slide-next:hover {
    background: white;
    transform: scale(1.1);
}

.slideshow-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

/* Hero Section */
.hero {
    background: var(--gradient);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,1000 1000,0 1000,1000"/></svg>');
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.search-container {
    max-width: 600px;
    margin: 0 auto 3rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: var(--shadow-lg);
}

.search-icon {
    color: var(--text-light);
    margin: 0 1rem;
}

.search-box input {
    flex: 1;
    border: none;
    padding: 1rem 0;
    font-size: 1.1rem;
    background: transparent;
    outline: none;
}

.btn-search {
    background: var(--accent);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-search:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.filter-group {
    text-align: center;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.filter-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.region-select {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.region-select:focus {
    outline: none;
    border-color: white;
    background: rgba(255, 255, 255, 0.3);
}

.region-select option {
    color: var(--dark);
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section.bg-light {
    background: var(--light);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Map Section */
#map {
    height: 500px;
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.map-legend {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 300px;
}

.map-legend h4 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.legend-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-color.plumbing { background: #e74c3c; }
.legend-color.electrical { background: #f39c12; }
.legend-color.carpentry { background: #8e44ad; }
.legend-color.cleaning { background: #3498db; }
.legend-color.musician { background: #e91e63; }
.legend-color.general { background: #2ecc71; }

/* Services Grid */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    background: white;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.hover-box {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    height: 100%;
}

.service-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image {
    transform: scale(1.1);
}

.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    color: white;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.service-card:hover .hover-overlay {
    opacity: 1;
    transform: translateY(0);
}

.hover-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.hover-overlay p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    opacity: 0.9;
}

.whatsapp-btn {
    background: #25D366;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid #25D366;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.whatsapp-btn:hover {
    background: transparent;
    color: #25D366;
    transform: translateY(-2px);
}

.category-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Filters */
.filters {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filter-select {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--border);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: white;
    transition: var(--transition);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Buttons */
.btn-primary {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.see-more-container {
    text-align: center;
}

.see-more-btn {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.see-more-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Forms */
.listing-form {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* WhatsApp Direct */
.whatsapp-direct {
    text-align: center;
    padding: 2rem;
    background: rgba(37, 211, 102, 0.1);
    border-radius: var(--border-radius);
}

.or-text {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.btn-whatsapp-large {
    background: #25D366;
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-whatsapp-large:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 1000;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

/* Notifications */
.notification-area {
    position: fixed;
    top: 100px;
    right: 2rem;
    z-index: 1001;
    max-width: 400px;
}

.notification {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary);
    animation: slideInRight 0.3s ease-out;
}

.notification.success {
    border-left-color: var(--success);
}

.notification.error {
    border-left-color: var(--error);
}

.notification.warning {
    border-left-color: var(--warning);
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Loading */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .slideshow-container {
        height: 50vh;
        min-height: 400px;
    }

    .slide-content {
        padding: 2rem;
    }

    .slide-content h2 {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .listings-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .slideshow-controls {
        padding: 0 1rem;
    }

    .slide-prev,
    .slide-next {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }

    .slideshow-container {
        height: 40vh;
        min-height: 300px;
    }

    .slide-content {
        padding: 1.5rem;
        margin: 1rem;
    }

    .slide-content h2 {
        font-size: 1.5rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .search-box {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .search-box input {
        padding: 1rem;
        text-align: center;
    }

    .btn-search {
        width: 100%;
    }

    .listing-form {
        padding: 2rem 1.5rem;
    }

    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Map Styles */
#map {
    height: 500px;
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

/* Custom Marker Styles */
.custom-marker-container {
    background: transparent !important;
    border: none !important;
}

.custom-marker {
    width: 40px;
    height: 40px;
    border-radius: 50% 50% 50% 0;
    background: var(--primary);
    position: relative;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: pulse 2s infinite;
}

.custom-marker i {
    color: white;
    transform: rotate(45deg);
    font-size: 14px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

/* Map Popup Styles */
.map-popup {
    min-width: 250px;
    padding: 0;
}

.map-popup h3 {
    margin: 0 0 10px 0;
    color: var(--dark);
    font-size: 1.2rem;
    font-weight: 600;
}

.map-popup .popup-type {
    margin: 5px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.map-popup .popup-address,
.map-popup .popup-phone {
    margin: 5px 0;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.map-popup .popup-actions {
    margin-top: 15px;
    text-align: center;
}

.whatsapp-btn-popup {
    background: #25D366;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.whatsapp-btn-popup:hover {
    background: #1da851;
    transform: translateY(-1px);
}

/* Leaflet Popup Customization */
.leaflet-popup-content-wrapper {
    border-radius: var(--border-radius) !important;
    box-shadow: var(--shadow-lg) !important;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 20px !important;
    line-height: 1.5 !important;
}

.leaflet-popup-tip {
    box-shadow: none !important;
}

/* Geolocation Control */
.geolocation-control {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow) !important;
    margin: 10px !important;
}

.geolocation-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: white;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--primary);
}

.geolocation-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

/* Map Legend */
.map-legend {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 300px;
    margin-top: 1rem;
}

.map-legend h4 {
    margin-bottom: 1rem;
    color: var(--dark);
    font-size: 1.1rem;
}

.legend-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-color.plumbing { background: #e74c3c; }
.legend-color.electrical { background: #f39c12; }
.legend-color.carpentry { background: #8e44ad; }
.legend-color.cleaning { background: #3498db; }
.legend-color.musician { background: #e91e63; }
.legend-color.tailoring { background: #9b59b6; }
.legend-color.photography { background: #34495e; }
.legend-color.printing { background: #16a085; }
.legend-color.general { background: #2ecc71; }

/* Responsive Map */
@media (max-width: 768px) {
    #map {
        height: 400px;
    }
    
    .map-legend {
        max-width: 100%;
    }
    
    .legend-items {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

@media (max-width: 480px) {
    #map {
        height: 300px;
    }
    
    .map-popup {
        min-width: 200px;
    }
}

/* WhatsApp Listing Styles */
.whatsapp-listing-options {
    margin-bottom: 3rem;
}

.template-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.template-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.template-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.template-card h4 {
    margin-bottom: 1rem;
    color: var(--dark);
    font-size: 1.3rem;
}

.template-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.btn-template {
    background: #25D366;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
}

.btn-template:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

/* Custom Listing Form */
.custom-listing-form {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.custom-listing-form h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark);
    font-size: 1.5rem;
}

/* Direct Contact Card */
.direct-contact-card {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-icon {
    font-size: 3rem;
    opacity: 0.9;
}

.contact-details h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.contact-details p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.btn-whatsapp-large {
    background: white;
    color: #25D366;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid white;
}

.btn-whatsapp-large:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* Form Enhancements */
.listing-form input,
.listing-form select,
.listing-form textarea {
    border: 2px solid var(--border);
    transition: var(--transition);
}

.listing-form input:focus,
.listing-form select:focus,
.listing-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Success Message */
.submission-success {
    background: var(--success);
    color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin-bottom: 2rem;
    display: none;
}

.submission-success.show {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .template-cards {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .custom-listing-form {
        padding: 1.5rem;
    }
    
    .direct-contact-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .template-card {
        padding: 1.5rem;
    }
    
    .template-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Services Navigation Link */
.services-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 1rem;
}

.services-nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    color: white;
}

.services-nav-link i {
    font-size: 0.9rem;
}

/* User Menu Layout */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Mobile Responsive for Services Link */
@media (max-width: 768px) {
    .services-nav-link {
        margin-right: 0;
        margin-bottom: 1rem;
        justify-content: center;
        order: -1; /* Move to top in mobile */
    }
    
    .user-menu {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-menu.active + .user-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        gap: 1rem;
    }
}

/* Region Filter Styles */
.filter-group {
    text-align: center;
    margin-bottom: 2rem;
}

.filter-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: white;
    font-size: 1.1rem;
}

.region-select {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    min-width: 200px;
}

.region-select:focus {
    outline: none;
    border-color: white;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.region-select:hover {
    background: rgba(255, 255, 255, 0.25);
}

.region-select option {
    color: #333;
    background: white;
    padding: 0.5rem;
}

/* Results Count */
.results-count {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
    margin-top: 0.5rem;
    animation: fadeInUp 0.5s ease-out;
}

/* Active Filter Tag */
.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-left: 1rem;
    animation: fadeInUp 0.3s ease-out;
}

.active-filter-tag button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.active-filter-tag button:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Service Card Transitions */
.service-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* No Results Message */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results h3 {
    margin-bottom: 0.5rem;
    color: var(--text);
}

/* Enhanced Search Box */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.search-icon {
    color: var(--text-light);
    margin: 0 1rem;
}

.search-box input {
    flex: 1;
    border: none;
    padding: 1rem 0;
    font-size: 1.1rem;
    background: transparent;
    outline: none;
}

.btn-search {
    background: var(--accent);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-search:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .region-select {
        min-width: 150px;
        font-size: 0.9rem;
        padding: 0.7rem 1rem;
    }
    
    .filter-label {
        font-size: 1rem;
    }
    
    .active-filter-tag {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .search-box {
        flex-direction: column;
        padding: 1rem;
        border-radius: var(--border-radius);
    }
    
    .search-box input {
        padding: 1rem;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .btn-search {
        width: 100%;
    }
}



.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;               /* wraps icons nicely on small screens */
  gap: 15px;
  margin: 20px 0;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 50%;
  font-size: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 170, 255, 0.4);
}

/* 🎨 Platform-specific hover colors */
.social-link.facebook:hover { background: #1877f2; }
.social-link.twitter:hover { background: #1da1f2; }
.social-link.linkedin:hover { background: #0a66c2; }
.social-link.instagram:hover { background: #e4405f; }

/* 📱 Mobile responsiveness */
@media (max-width: 600px) {
  .social-links {
    gap: 10px;
  }

  .social-link {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

/* 🖥️ Larger screens */
@media (min-width: 1024px) {
  .social-link {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }
}
