/* Theme: Modern Professional */
* { box-sizing: border-box; }
:root {
    --bg-dark: #0f172a;
    --bg-gray: #334155;
    --bg-light-gray: #f8fafc;
    --text-white: #ffffff;
    --text-dark: #1e293b;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-light-gray);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

header {
    background-color: var(--bg-dark);
    color: var(--text-white);
    padding: 16px 24px;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 50;
}

header a {
    color: var(--text-white);
    text-decoration: none;
    margin-right: 24px;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.2s ease;
}

header a:hover {
    color: #93c5fd;
}

header .auth-links {
    float: right;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.card {
    background-color: var(--text-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #475569;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-sizing: border-box;
    font-family: inherit;
    font-size: 0.95rem;
    background-color: #fcfcfc;
    transition: all 0.2s ease;
    color: var(--text-dark);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--accent);
    background-color: var(--text-white);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

button, .btn {
    background-color: var(--accent);
    color: var(--text-white);
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

button:hover, .btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

button:active, .btn:active {
    transform: translateY(0);
}

footer {
    background-color: var(--bg-dark);
    color: #cbd5e1;
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
    font-size: 0.9rem;
    border-top: 1px solid #1e293b;
}

/* Utilities */
.text-center { text-align: center; }
.mb-3 { margin-bottom: 1.25rem; }
.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.google-map { width: 100%; height: 350px; background-color: #e2e8f0; margin-top: 15px; border-radius: var(--radius-md); overflow: hidden; }

/* Mobile Navigation */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    background: transparent;
    color: var(--text-white);
    border: none;
    padding: 5px;
    transition: opacity 0.2s ease;
}

.menu-toggle:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}
.nav-links i { font-size: 18px; margin-right: 6px; }

/* Icon mode logic */
.nav-icons-only .nav-text { display: none; }
.nav-icons-only i { margin-right: 0; font-size: 20px; }

.nav-links .auth-links {
    display: flex;
    align-items: center;
    gap: 15px;
}
.nav-links hr { display: none; border: none; height: 1px; background: #334155; margin: 15px 0; width: 100%; }

@media (max-width: 992px) {
    .nav-icons-only .nav-text { display: inline; }
    .nav-icons-only i { margin-right: 8px; font-size: 18px; }
    .container { padding: 15px; }
    
    .menu-toggle { display: block; }
    
    .logo-section { width: 100%; display: flex; justify-content: space-between; align-items: center; }
    
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--bg-dark);
        border-top: 1px solid #1e293b;
        position: absolute;
        top: 65px;
        left: 0;
        z-index: 1000;
        padding: 24px;
        box-sizing: border-box;
        align-items: flex-start;
        box-shadow: var(--shadow-lg);
    }
    .nav-links.active { display: flex; }
    .nav-links hr { display: block; }
    .nav-links a { margin: 10px 0; width: 100%; font-size: 1.05rem; }
    .nav-links .auth-links {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
    }
    .d-flex { flex-direction: column; }
    .card form.d-flex { flex-direction: column; gap: 15px; }
    .card form.d-flex input, .card form.d-flex select, .card form.d-flex button { width: 100% !important; margin: 0; }
    
    /* Layout stacking */
    div[style*="display: grid;"] {
        grid-template-columns: 1fr !important;
    }
    
    table { width: 100%; border-collapse: collapse; }
    table thead { display: none; }
    table, table tbody, table tr, table td { display: block; width: 100%; box-sizing: border-box; }
    table tr { margin-bottom: 20px; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 5px; box-shadow: var(--shadow-sm); }
    table td { text-align: right; padding: 12px 12px 12px 50%; position: relative; border-bottom: 1px solid #f1f5f9; }
    table td:last-child { border-bottom: none; }
    table td:before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 45%;
        padding-right: 15px;
        white-space: nowrap;
        text-align: left;
        font-weight: 600;
        color: #64748b;
    }
}
@media (max-width: 768px) {
    .search-hero-card {
        padding: 20px 15px !important;
    }
    .search-hero-card h2 {
        font-size: 1.25rem !important;
        margin-bottom: 15px !important;
    }
    .search-hero-card form {
        gap: 10px !important;
        flex-direction: column !important;
    }
    .search-hero-card form input, 
    .search-hero-card form select, 
    .search-hero-card form button {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        flex: none !important;
        box-sizing: border-box !important;
    }
}
