:root { 
    --primary: #01312D; 
    --secondary: #3A7717;
    --accent: #72BF00;
    --highlight: #BFF202;
    --bg: #EAFDE7; 
    --text: #01312D;
    --white: #FFFFFF;
    --success: #3A7717;
    --error: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
}
* { box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
body { background: var(--bg); margin: 0; padding-bottom: 60px; color: var(--text); }

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(1, 49, 45, 0.1);
    border-top: 5px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Navbar */
.navbar { 
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(10px);
    padding: 0.8rem 1rem; 
    box-shadow: 0 4px 20px -5px rgba(0,0,0,0.1); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    height: 65px; 
    transition: all 0.3s ease;
}
.logo { 
    font-weight: 800; 
    color: var(--primary); 
    font-size: 1.4rem; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    text-decoration: none; 
    letter-spacing: -0.5px; 
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.logo i {
    color: var(--primary); /* Icon needs color since text-fill-color affects it */
    -webkit-text-fill-color: var(--primary);
}
.nav-links { display: flex; align-items: center; gap: 25px; }
.nav-links a { 
    color: var(--text); 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 0.95rem; 
    transition: all 0.2s; 
    padding: 8px 12px;
    border-radius: 20px;
}
.nav-links a:hover, .nav-links a.active { 
    color: var(--primary); 
    background: rgba(114, 191, 0, 0.15); /* Accent with opacity */
}
.lang-switch { 
    cursor: pointer; 
    color: var(--text); 
    font-weight: bold; 
    padding: 6px 12px; 
    border-radius: 20px; 
    background: white; 
    transition: 0.2s;
    border: 1px solid rgba(0,0,0,0.05);
}
.lang-switch:hover { background: var(--secondary); color: white; }

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1002;
    background: transparent;
    border: none;
    padding: 0;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--primary);
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) { top: 0px; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

.hamburger.open span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger.open span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
}

/* Mobile Nav Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.1); /* Lighter overlay */
    backdrop-filter: blur(1px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1024px) {
    .navbar { 
        justify-content: space-between; 
        padding: 0.8rem 1.5rem;
    }
    
    .hamburger { display: block; }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 75px;
        right: 15px;
        left: auto; 
        width: auto;
        min-width: 220px;
        max-width: 300px;
        height: auto;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        box-shadow: 0 10px 40px rgba(0,0,0,0.15);
        padding: 15px;
        z-index: 999;
        gap: 10px;
        align-items: stretch;
        border-radius: 16px;
        border: 1px solid rgba(255,255,255,0.8);
        transform-origin: top right;
    }
    
    .nav-links.active {
        display: flex;
        animation: scaleIn 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    }

    .mobile-hide {
        display: none !important;
    }
    
    @keyframes scaleIn {
        from { opacity: 0; transform: scale(0.9); }
        to { opacity: 1; transform: scale(1); }
    }

    .nav-links a, .nav-links span {
        font-size: 1rem;
        width: 100%;
        padding: 10px 15px;
        border-radius: 12px;
        color: #374151;
        display: flex;
        align-items: center;
        gap: 12px;
        border: none;
        background: transparent;
        transition: all 0.2s;
    }
    
    .nav-links span {
        background: var(--bg);
        color: var(--primary);
        font-weight: 700;
        justify-content: center;
    }

    .nav-links a:hover {
        background: rgba(114, 191, 0, 0.15); /* Light accent tint */
        color: var(--primary);
        transform: translateX(3px);
    }
    
    .nav-links .lang-switch {
        margin-top: 5px;
        background: var(--primary);
        color: white;
        justify-content: center;
    }
    
    .nav-links .lang-switch:hover {
        background: var(--secondary);
        opacity: 0.9;
        transform: none;
    }

    .logo { font-size: 1.3rem; }
}

/* Removed Mobile Filters CSS as requested */

/* Filters (Index) */
.filters { background: white; padding: 15px; margin-bottom: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.filter-form { display: flex; gap: 10px; max-width: 1000px; margin: 0 auto; flex-wrap: wrap; }
.filter-input { flex: 1; padding: 10px; border: 1px solid #ddd; border-radius: 5px; min-width: 150px; }
.filter-btn { background: var(--primary); color: white; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; }

/* Location Button & Distance Badge */
.location-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, white 0%, var(--bg) 100%);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: 1px solid rgba(1, 49, 45, 0.1);
    box-shadow: 0 2px 4px rgba(1, 49, 45, 0.05);
    width: 100%;
}

.location-btn:hover {
    background: linear-gradient(135deg, var(--bg) 0%, var(--highlight) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(1, 49, 45, 0.1);
}

.location-btn:active {
    transform: translateY(0);
}

.dist-badge {
    background: var(--secondary);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 5px;
    box-shadow: 0 2px 4px rgba(58, 119, 23, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Grid & Cards (Index) */
.grid-container { 
    max-width: 1000px; 
    margin: 0 auto; 
    padding: 0 15px; 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 20px; 
}

@media (max-width: 600px) {
    .grid-container {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 10px;
    }
}

/* Footer Styles */
.main-footer {
    background-color: white;
    padding-top: 50px;
    margin-top: 50px;
    border-top: 1px solid rgba(1, 49, 45, 0.05);
    color: var(--text);
    font-size: 0.9rem;
    position: relative;
    z-index: 10;
}

.footer-widgets {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-widget h4 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-widget p {
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 12px;
}

.footer-widget ul li a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    opacity: 0.8;
}

.footer-widget ul li a:hover {
    color: var(--secondary);
    padding-left: 5px;
    opacity: 1;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px !important;
}

.contact-list i {
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

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

.footer-bottom {
    border-top: 1px solid #eee;
    padding: 20px 0;
    text-align: center;
    background: white;
}

/* Floating Widget System */
.floating-widget-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 15px;
}

.floating-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.2);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.floating-toggle:hover {
    transform: scale(1.05);
}

.floating-toggle i {
    position: absolute;
    transition: all 0.3s ease;
}

.floating-toggle .fa-times {
    opacity: 0;
    transform: rotate(-180deg);
}

.floating-widget-container.active .floating-toggle .fa-headset {
    opacity: 0;
    transform: rotate(180deg);
}

.floating-widget-container.active .floating-toggle .fa-times {
    opacity: 1;
    transform: rotate(0deg);
}

.floating-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.floating-widget-container.active .floating-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    font-size: 20px;
}

.floating-option:hover {
    transform: scale(1.1);
}

.floating-option.whatsapp { background: #25D366; }
.floating-option.phone { background: var(--info); }
.floating-option.message { background: var(--warning); }

/* Responsive adjustments */
@media (max-width: 1024px) {
    .main-footer {
        padding-bottom: 100px;
    }
    
    .floating-widget-container {
        bottom: 100px;
        right: 20px;
    }
    
    .floating-toggle {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .floating-option {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 400px) {
    .grid-container {
        padding: 0 5px;
    }
}

.maid-card { 
    background: white; 
    border-radius: 16px; 
    overflow: hidden; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.05); 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}
.maid-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
}
.card-header { display: flex; padding: 15px; gap: 15px; align-items: center; border-bottom: 1px solid #f0f0f0; }
.card-img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; background: #eee; border: 2px solid white; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.card-info h3 { margin: 0; font-size: 1.1rem; color: #1f2937; font-weight: 700; }
.rating { color: #f59e0b; font-size: 0.85rem; margin-top: 5px; }
.card-body { padding: 15px; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tag { background: #ecfdf5; color: var(--primary); padding: 4px 10px; border-radius: 15px; font-size: 0.75rem; font-weight: 600; }
.detail-row { display: flex; align-items: center; gap: 10px; color: #6b7280; margin-bottom: 8px; font-size: 0.9rem; }
.card-footer { padding: 12px 15px; background: #f9fafb; display: flex; gap: 10px; border-top: 1px solid #f0f0f0; }

/* Buttons */
.btn { 
    flex: 1; 
    text-align: center; 
    padding: 12px 10px; 
    border-radius: 10px; 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 0.9rem; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    cursor: pointer; 
    border: none; 
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.btn-call { background: var(--primary); color: white; }
.btn-wa { background: #25D366; color: white; }
.btn-rate { background: var(--warning); color: white; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 6px rgba(0,0,0,0.1); opacity: 0.95; }
.btn:active { transform: translateY(0); }

/* Auth Pages (Login/Register) */
.auth-container { display: flex; justify-content: center; align-items: center; min-height: 80vh; padding: 20px; }
.auth-card { background: white; padding: 2rem; border-radius: 1rem; box-shadow: 0 4px 15px rgba(0,0,0,0.1); width: 100%; max-width: 400px; }
.auth-card.wide { max-width: 500px; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.5rem; color: var(--text); font-weight: 500; }
.form-group input, .form-group select, .filter-input { 
    width: 100%; 
    padding: 0.8rem 1rem; 
    border: 1px solid #e5e7eb; 
    border-radius: 10px; 
    font-size: 1rem; 
    transition: all 0.2s;
    background: #f9fafb;
}
.form-group input:focus, .form-group select:focus, .filter-input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(12, 48, 54, 0.1);
}
.auth-btn { width: 100%; padding: 0.8rem; background: var(--primary); color: white; border: none; border-radius: 0.5rem; font-size: 1rem; font-weight: bold; cursor: pointer; }
.auth-btn:hover { opacity: 0.9; }
.error { background: var(--error); color: var(--white); padding: 0.8rem; border-radius: 0.5rem; margin-bottom: 1rem; text-align: center; }
.links { text-align: center; margin-top: 1.5rem; font-size: 0.9rem; }
.links a { color: var(--primary); text-decoration: none; font-weight: bold; }

/* Role Selector (Register) */
.role-selector { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.role-option { flex: 1; border: 2px solid #ddd; border-radius: 0.5rem; padding: 1rem; text-align: center; cursor: pointer; transition: 0.3s; }
.role-option.active { border-color: var(--primary); background: #E0F7FA; color: var(--primary); }
.role-option i { font-size: 1.5rem; margin-bottom: 0.5rem; display: block; }
.maid-fields { display: none; }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 10px; }
.checkbox-label { display: flex; align-items: center; gap: 5px; cursor: pointer; border: 1px solid #ddd; padding: 5px 10px; border-radius: 20px; font-size: 0.9rem; }
.checkbox-label input { width: auto; margin: 0; }

/* Modal */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; justify-content: center; align-items: center; }
.modal-content { background: white; padding: 20px; border-radius: 10px; width: 90%; max-width: 400px; text-align: center; }
.stars { font-size: 2rem; color: #ddd; cursor: pointer; margin: 10px 0; }
.stars i.active { color: var(--warning); }
textarea { width: 100%; padding: 10px; margin: 10px 0; border: 1px solid #ddd; border-radius: 5px; resize: vertical; }

@media (max-width: 600px) { 
    .filter-form { flex-direction: column; gap: 10px; }
    .filter-input, .filter-btn { width: 100%; min-width: 0; }
    .container { padding: 0 10px; }
    .card-header { padding: 12px; }
    .card-body { padding: 12px; }
    .card-footer { padding: 12px; }
    
    .logo { font-size: 1.2rem; }
    .nav-links a { font-size: 0.9rem; padding: 8px; }
    .btn { padding: 10px; font-size: 0.85rem; }
}

/* Bottom Navigation */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
    justify-content: space-around;
    align-items: center;
    padding: 10px 0 25px 0; /* Adjusted padding for safe area */
    z-index: 1000;
    height: 80px;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    transition: transform 0.3s ease;
    border-top: 1px solid rgba(255,255,255,0.5);
}

@media (max-width: 1024px) {
    .bottom-nav { display: flex; }
    body { padding-bottom: 100px; }
    .filters { display: block; }
}

.nav-item {
    text-decoration: none;
    color: #9ca3af;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex: 1;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    padding: 5px;
    -webkit-tap-highlight-color: transparent;
}

.nav-item i {
    font-size: 1.5rem;
    margin-bottom: 5px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active i {
    transform: translateY(-5px);
    filter: drop-shadow(0 4px 6px rgba(12, 48, 54, 0.3));
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 5px;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0); }
    to { opacity: 1; transform: scale(1); }
}

/* Center Plus Button */
.nav-item.center {
    position: relative;
    top: -25px;
    overflow: visible;
}

.nav-plus {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary), #1a5f6b);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 20px rgba(12, 48, 54, 0.4);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 4px solid rgba(255, 255, 255, 0.9);
    margin-bottom: 2px;
}

.nav-plus i {
    color: white;
    font-size: 1.5rem;
    margin: 0;
    transition: transform 0.5s ease;
    filter: none !important; /* Remove drop shadow from icon inside circle */
}

/* Hover/Active states for Plus Button */
.nav-item.center:active .nav-plus {
    transform: scale(0.95);
    box-shadow: 0 4px 10px rgba(12, 48, 54, 0.3);
}

.nav-item.center:active .nav-plus i {
    transform: rotate(90deg);
}

.nav-item.center span {
    margin-top: 5px; /* Adjust text position for center button */
    font-weight: 700;
}

/* Segmented Control Toggle */
.toggle-container {
    display: flex;
    justify-content: center;
    margin: 10px auto 20px;
    background: #e5e7eb;
    padding: 4px;
    border-radius: 25px;
    width: fit-content;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.toggle-option {
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: block;
}

.toggle-option.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transform: scale(1.02);
}

.toggle-option:hover:not(.active) {
    color: var(--primary);
    background: rgba(255,255,255,0.5);
}

@media (max-width: 600px) {
    .toggle-container {
        width: 90%;
        margin: 10px auto;
    }
    .toggle-option {
        flex: 1;
        text-align: center;
        padding: 8px 10px;
        font-size: 0.9rem;
    }
}
