/*
Theme Name: Lawyer Theme
Description: A custom theme for the Lawyer Map website — SEO & UX Optimized
Author: Your Name
Version: 2.2 (Enhanced Specialty Hub)
*/

/* ===== Base Styles ===== */
:root {
    --color-primary: #0057B8;
    --color-primary-dark: #004494;
    --color-secondary: #E8A91A;
    --color-background: #FFFFFF;
    --color-sidebar-bg: #F8FAFC;
    --color-text: #333333;
    --color-text-muted: #718096;
    --color-border: #E8ECEF;
    --color-card-active: #f0f7ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Roboto', Arial, sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.7;
    font-size: 16px;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== Top Bar ===== */
#top-bar {
    background-color: var(--color-primary);
    padding: 12px 20px;
    display: flex;
    justify-content: center;
    gap: 25px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

#top-bar .top-bar-link,
#top-bar .subscription-button {
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
    border-radius: 4px;
    padding: 6px 10px;
}

#top-bar .top-bar-link:hover,
#top-bar .subscription-button:hover {
    color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

#top-bar .subscription-button {
    background-color: #00ccff;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
}

#top-bar .subscription-button:hover {
    background-color: #3366ff;
}

#top-bar .top-bar-link .full-text {
    display: inline;
}

#top-bar .top-bar-link .short-text {
    display: none;
}

/* ===== Main Content Layout ===== */
#main-content {
    display: flex;
    flex: 1;
    min-height: calc(100vh - 120px);
}

/* ===== Sidebar ===== */
#sidebar {
    width: 320px;
    padding: 20px;
    background-color: var(--color-sidebar-bg);
    height: calc(100vh - 120px);
    overflow-y: auto;
    position: sticky;
    top: 60px;
    border-right: 1px solid var(--color-border);
    transition: all 0.3s ease;
    z-index: 100;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-border);
}

.user-section i {
    font-size: 28px;
    color: var(--color-primary);
}

.user-section .user-info {
    display: flex;
    flex-direction: column;
}

.user-section .username {
    font-weight: 600;
    font-size: 16px;
    color: #2D3748;
}

.user-section .label {
    font-size: 12px;
    color: var(--color-text-muted);
}

.menu-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
    margin: 20px 0 12px;
    letter-spacing: 0.5px;
}

/* ===== Search Form ===== */
#lawyer-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#lawyer-search-form input,
#lawyer-search-form select {
    flex: 1;
    min-width: 200px;
    padding: 12px 14px;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.2s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

#lawyer-search-form select {
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%20viewBox%3D%220%200%20292.4%20292.4%22%3E%3Cpath%20fill%3D%22%230057B8%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13.6-6.4H19a17.6%2017.6%200%200%200-13.6%206.4%2017.6%2017.6%200%200%200%200%2022.4l136.8%20136.8c.4.4%201.2.8%202%20.8s1.6-.4%202-.8L287%2091.8a17.6%2017.6%200%200%200%200-22.4z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px;
}

#lawyer-search-form input:focus,
#lawyer-search-form select:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 87, 184, 0.15);
}

#lawyer-search-form button {
    padding: 12px 18px;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    min-width: 100px;
    justify-content: center;
}

#lawyer-search-form button:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* ===== Lawyer List ===== */
#lawyer-list {
    list-style: none;
}

.lawyer-card {
    background: white;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-left: 4px solid transparent;
    transition: all 0.25s ease;
}

.lawyer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 87, 184, 0.12);
    border-left-color: var(--color-primary);
}

/* ✅ Active state from JS */
.lawyer-card.lawyer-card-active {
    background-color: var(--color-card-active);
    border-left-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary);
    transform: none;
}

.lawyer-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
    flex-wrap: wrap;
    gap: 6px;
}

.lawyer-name {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 17px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.lawyer-specialty {
    font-size: 14px;
    color: #4A5568;
    font-weight: 600;
    flex-shrink: 0;
    margin-left: 8px;
}

.lawyer-address,
.lawyer-phone,
.lawyer-website {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lawyer-phone i,
.lawyer-website i {
    width: 18px;
    color: var(--color-primary);
    font-size: 15px;
}

.lawyer-website a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.lawyer-website a:hover {
    text-decoration: underline;
}

/* ===== Map Container ===== */
#map-container {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

#lawyer-map {
    flex: 1;
    min-height: 500px; /* ✅ Prevents CLS */
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    z-index: 1;
    background: #f5f7fa;
}

/* ===== Load More Button ===== */
#load-more {
    display: block;
    width: 100%;
    padding: 14px;
    margin: 20px 0;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

#load-more:hover:not(:disabled) {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

#load-more:disabled {
    background-color: #CBD5E0;
    cursor: not-allowed;
    transform: none;
    opacity: 0.8;
}

/* ===== Footer ===== */
#footer {
    background-color: #2D3748;
    padding: 18px 20px;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

#footer a {
    color: #CBD5E0;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    padding: 4px 8px;
    border-radius: 4px;
}

#footer a:hover {
    color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.1);
}

/* ===== Toast Notification ===== */
.toast-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 6px;
    color: white;
    font-size: 15px;
    z-index: 2000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.toast-info {
    background: var(--color-primary);
}

.toast-error {
    background: #d32f2f;
}

.toast-success {
    background: #2e7d32;
}

/* ===== Geolocation Modal ===== */
#geolocation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    padding: 24px;
    border-radius: 10px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #2D3748;
    font-weight: 700;
}

.modal-content p {
    font-size: 15px;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-buttons button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 100px;
}

#allow-location {
    background: var(--color-primary);
    color: white;
}

#allow-location:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

#deny-location {
    background: #E2E8F0;
    color: #2D3748;
}

#deny-location:hover {
    background: #CBD5E0;
    transform: translateY(-1px);
}

/* ✅ POPUP ACTION BUTTONS (Call, Share, Claim, Review) */
.popup-btn {
    flex: 1;
    padding: 6px 8px;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    background: #f1f3f5;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.popup-btn:hover {
    background: #e2e8f0;
    color: var(--color-primary);
    transform: translateY(-1px);
}

/* ✅ FREE CONSULTATION BADGE */
.free-consultation-badge {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin: 6px 0;
}

/* ✅ STAR RATING STYLES */
.star-rating {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 2px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    color: #ddd;
    cursor: pointer;
    font-size: 20px;
}

.star-rating input:checked ~ label {
    color: #FFD700;
}

.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #FFD700;
}

/* ✅ MODAL STYLES (Claim + Review) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.modal-box {
    background: white;
    padding: 25px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-box h3 {
    margin-top: 0;
    color: var(--color-primary);
    font-size: 20px;
    font-weight: 700;
}

.modal-box p {
    color: var(--color-text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.modal-box form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-box input,
.modal-box textarea,
.modal-box select {
    padding: 10px;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    font-size: 15px;
}

.modal-box button {
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-box .submit-btn {
    background: var(--color-primary);
    color: white;
}

.modal-box .submit-btn:hover {
    background: var(--color-primary-dark);
}

.modal-box .cancel-btn {
    background: #f1f3f5;
    color: #4a5568;
}

.modal-box .cancel-btn:hover {
    background: #e2e8f0;
}

/* ===== LEAD CAPTURE FORM STYLES ===== */
#lead-capture-form-container {
    width: 100%;
    background: #f8f9fa;
    padding: 40px 20px;
    border-top: 3px solid #2c5aa0;
    margin-top: 30px;
}

.lead-capture-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.lead-capture-form h3 {
    color: #2c5aa0;
    margin-bottom: 12px;
    text-align: center;
    font-size: 26px;
    font-weight: 700;
}

.lead-capture-form p {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.6;
}

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

.lead-capture-form .form-group input,
.lead-capture-form .form-group select {
    width: 100%;
    padding: 14px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.2s;
}

.lead-capture-form .form-group input:focus,
.lead-capture-form .form-group select:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 87, 184, 0.15);
}

.lead-capture-form .submit-btn {
    width: 100%;
    background: var(--color-primary);
    color: white;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.25s;
    font-weight: 700;
}

.lead-capture-form .submit-btn:hover:not(:disabled) {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.lead-capture-form .submit-btn:disabled {
    background: #CBD5E0;
    cursor: not-allowed;
    transform: none;
    opacity: 0.9;
}

.lead-capture-form .privacy-notice {
    font-size: 13px;
    color: #999;
    text-align: center;
    margin-top: 15px;
    line-height: 1.5;
}

/* Lead form results styling */
#lead-result {
    margin-top: 20px;
    padding: 0;
}

#lead-result div {
    padding: 16px;
    border-radius: 8px;
    line-height: 1.6;
    font-size: 15px;
}

#lead-result div[style*="background:#d4edda"] {
    background: #d4edda !important;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#lead-result div[style*="background:#f8d7da"] {
    background: #f8d7da !important;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ✅ NEARBY CITIES SECTION */
#nearby-cities-section {
    margin: 40px auto 0;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    max-width: 1000px;
    width: 100%;
}

#nearby-cities-section h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 16px;
}

#nearby-cities-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
}

#nearby-cities-list a {
    display: inline-block;
    padding: 8px 16px;
    background: #e9ecef;
    border-radius: 6px;
    text-decoration: none;
    color: #0d6efd;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

#nearby-cities-list a:hover {
    background: #0d6efd;
    color: white;
    transform: translateY(-1px);
}

/* ✅ ENHANCED SPECIALTY HUB SECTION */
#specialty-hub {
    padding: 60px 20px 40px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

#specialty-hub h2 {
    font-size: 28px;
    color: #2D3748;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 800;
}

#specialty-hub p {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 17px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.specialty-section {
    background: white;
    padding: 40px 30px;
    margin-bottom: 60px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border: 1px solid #eaeaea;
    transition: transform 0.25s ease;
}

.specialty-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.specialty-section:last-child {
    margin-bottom: 0;
}

/* Specialty Header with Action Buttons */
.specialty-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.specialty-header h3 {
    color: var(--color-primary);
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 0;
    font-weight: 700;
    flex: 1;
    min-width: 250px;
}

.specialty-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.specialty-actions button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.share-specialty-btn {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6 !important;
}

.consultation-btn {
    background: #28a745;
    color: white;
}

.cost-calculator-btn {
    background: #17a2b8;
    color: white;
}

.specialty-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.share-specialty-btn:hover {
    background: #e9ecef;
}

.consultation-btn:hover {
    background: #218838;
}

.cost-calculator-btn:hover {
    background: #138496;
}

.entry-content {
    line-height: 1.8;
    color: var(--color-text);
    font-size: 16px;
}

.entry-content p {
    margin-bottom: 18px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin: 28px 0 18px;
    color: var(--color-primary);
    font-weight: 700;
}

.entry-content ul,
.entry-content ol {
    margin: 18px 0;
    padding-left: 24px;
}

.entry-content li {
    margin-bottom: 10px;
    color: #555;
}

.entry-content a {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 600;
}

.entry-content a:hover {
    color: var(--color-primary-dark);
}

/* Action Cards */
.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.action-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #eaeaea;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.action-card i {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 15px;
}

.action-card h4 {
    margin: 10px 0;
    color: #333;
    font-size: 18px;
}

.action-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

/* Enhanced City Grid */
.cities-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.cities-section h4 {
    font-size: 19px;
    color: #2D3748;
    margin-top: 0;
    margin-bottom: 16px;
    font-weight: 600;
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.city-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    font-weight: 500;
}

.city-link:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.2);
}

/* FAQ Accordion */
.faq-section {
    margin: 40px 0;
}

.faq-section h4 {
    font-size: 19px;
    color: #2D3748;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 600;
}

.faq-accordion {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.faq-item {
    border-bottom: 1px solid #e9ecef;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: white;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.faq-answer.active {
    padding: 20px;
    max-height: 500px;
}

/* Related Resources */
.related-resources {
    margin: 40px 0;
}

.related-resources h4 {
    font-size: 19px;
    color: #2D3748;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 600;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.resource-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: white;
    border-radius: 6px;
    text-decoration: none;
    color: #495057;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    font-weight: 500;
}

.resource-link:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.2);
}

/* Ad Space Styles */
.specialty-ad-space,
.between-articles-ad {
    background: #f8f9fa;
    border: 1px dashed #dee2e6;
    border-radius: 8px;
    text-align: center;
    padding: 20px;
    margin: 30px 0;
}

.specialty-ad-space p,
.between-articles-ad p {
    color: #6c757d;
    margin: 0;
    font-size: 14px;
}

/* ===== Mobile Layout ===== */
@media (max-width: 768px) {
    #sidebar {
        position: fixed;
        left: -320px;
        top: 60px;
        width: 280px;
        height: calc(100vh - 120px);
        z-index: 1000;
        box-shadow: 2px 0 12px rgba(0,0,0,0.2);
        padding: 20px;
        background: white;
    }

    #sidebar.active {
        left: 0;
    }

    #mobile-menu-toggle {
        display: flex;
        position: fixed;
        left: 12px;
        top: 12px;
        z-index: 1100;
        background: var(--color-primary);
        color: white;
        border: none;
        border-radius: 6px;
        padding: 10px;
        font-size: 20px;
        width: 42px;
        height: 42px;
        justify-content: center;
        align-items: center;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }

    #top-bar {
        padding: 10px 50px 10px 50px;
        height: 60px;
        align-items: center;
    }

    #top-bar .top-bar-link {
        flex: 1;
        min-width: 0;
        justify-content: center;
        flex-direction: column;
        gap: 2px;
        padding: 4px;
    }

    #top-bar .top-bar-link i {
        font-size: 18px;
        margin: 0;
    }

    #top-bar .top-bar-link .full-text {
        display: none;
    }

    #top-bar .top-bar-link .short-text {
        display: block;
        font-size: 10px;
        color: #D7E4F5;
        text-align: center;
        line-height: 1.2;
    }

    #top-bar .subscription-button {
        background-color: #99ff33;
        padding: 6px 10px;
        min-width: auto;
        font-size: 12px;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
        font-weight: 600;
    }

    #top-bar .subscription-button:hover {
        background-color: #cc0000;
    }

    #top-bar .subscription-button span {
        display: inline;
    }

    #main-content {
        flex-direction: column;
        margin-top: 60px;
    }

    #map-container {
        padding: 0;
        min-height: 350px;
        height: 350px;
    }

    #lawyer-map {
        min-height: 350px;
        border-radius: 0;
    }

    .toast-notification {
        width: 90%;
        text-align: center;
        font-size: 14px;
        padding: 10px 18px;
    }

    #nearby-cities-list {
        justify-content: center;
    }

    #footer {
        padding: 15px;
        gap: 12px;
    }

    /* Specialty Hub Mobile */
    #specialty-hub {
        padding: 40px 15px 30px;
    }

    .specialty-section {
        padding: 25px 20px;
        margin-bottom: 40px;
    }

    .specialty-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .specialty-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .specialty-actions button {
        flex: 1;
        justify-content: center;
        font-size: 12px;
        padding: 8px 10px;
    }

    .entry-content {
        font-size: 15px;
    }

    .action-cards {
        grid-template-columns: 1fr;
    }

    .city-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }

    /* Popup buttons on mobile */
    .popup-btn {
        font-size: 11px;
        padding: 5px 6px;
    }
}

@media (max-width: 480px) {
    #top-bar {
        padding: 10px 30px 10px 30px;
    }

    #mobile-menu-toggle {
        left: 10px;
        top: 10px;
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .lawyer-card {
        padding: 14px;
    }

    .lawyer-name {
        font-size: 16px;
    }

    #nearby-cities-list a,
    .city-grid a {
        font-size: 14px;
        padding: 7px 14px;
    }

    #specialty-hub h2 {
        font-size: 24px;
    }

    .specialty-section h3 {
        font-size: 20px;
    }

    .lead-capture-form h3 {
        font-size: 22px;
    }

    .specialty-actions button {
        font-size: 11px;
        padding: 6px 8px;
    }
}

#mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1050;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 6px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    #mobile-menu-toggle {
        display: flex !important;
    }
    #top-bar {
        padding-left: 60px !important;
    }
}
.lawyer-popup h3 a:hover {
    text-decoration: underline;
    color: #073466;
}
.lawyer-name-link {
    font-weight: 700;
    color: #0057B8;
    text-decoration: none;
    font-size: 17px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.lawyer-name-link:hover {
    text-decoration: underline;
}
/* ✅ ENHANCED: Mobile Menu Styles */
#mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 10000;
    background: #0057B8;
    color: white;
    border: none;
    border-radius: 6px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

#mobile-menu-toggle:hover {
    background: #0A427F;
    transform: scale(1.05);
}

/* ✅ ENHANCED: Sidebar Styles */
#sidebar {
    width: 300px;
    position: fixed;
    top: 0;
    left: -300px;
    height: 100%;
    background: white;
    z-index: 9998;
    box-shadow: 2px 0 15px rgba(0,0,0,0.2);
    transition: left 0.3s ease;
    overflow-y: auto;
}

#sidebar.active {
    left: 0;
}

/* ✅ NEW: Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9997;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
    display: block;
}

/* ✅ ENHANCED: Sidebar Menu Items */
#sidebar ul li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

#sidebar ul li a:hover {
    background: #f0f7ff;
    border-left-color: #0057B8;
    color: #0057B8;
}

#sidebar ul li a i {
    width: 20px;
    margin-right: 10px;
    text-align: center;
}

/* ✅ ENHANCED: Home Button in Top Bar */
#top-bar .top-bar-link[href="/"] {
    font-weight: 700;
}

#top-bar .top-bar-link[href="/"]:hover {
    background: #0A427F;
}

/* Mobile Styles */
@media (max-width: 768px) {
    #mobile-menu-toggle {
        display: flex !important;
    }
    
    #top-bar {
        padding-left: 60px !important;
    }
    
    #top-bar .top-bar-link .full-text {
        display: none;
    }
    
    #top-bar .top-bar-link .short-text {
        display: inline;
        font-size: 11px;
    }
    
    /* ✅ ENHANCED: Home button in mobile top bar */
    #top-bar .top-bar-link[href="/"] .short-text {
        font-weight: 700;
    }
}

@media (max-width: 480px) {
    #sidebar {
        width: 280px;
    }
    
    #mobile-menu-toggle {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
}
/* ✅ ENHANCED: Mobile Menu Toggle */
#mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 10000;
    background: #0057B8;
    color: white;
    border: none;
    border-radius: 6px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

#mobile-menu-toggle:hover {
    background: #0A427F;
    transform: scale(1.05);
}

/* ✅ ENHANCED: Navigation Sidebar Styles */
#nav-sidebar {
    width: 280px;
    position: fixed;
    top: 0;
    left: -280px;
    height: 100%;
    background: white;
    z-index: 9998;
    box-shadow: 2px 0 15px rgba(0,0,0,0.2);
    transition: left 0.3s ease;
    overflow-y: auto;
}

#nav-sidebar.active {
    left: 0;
}

/* ✅ NEW: Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9997;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
    display: block;
}

/* ✅ ENHANCED: Navigation Sidebar Menu Items */
#nav-sidebar ul li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

#nav-sidebar ul li a:hover {
    background: #f0f7ff;
    border-left-color: #0057B8;
    color: #0057B8;
}

#nav-sidebar ul li a i {
    width: 20px;
    margin-right: 10px;
    text-align: center;
}

/* ✅ IMPROVED: Mobile Top Bar Styles */
@media (max-width: 768px) {
    #mobile-menu-toggle {
        display: flex !important;
    }
    
    #top-bar {
        padding-left: 60px !important;
        padding-right: 10px !important;
        justify-content: space-between;
        gap: 4px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    #top-bar::-webkit-scrollbar {
        display: none;
    }
    
    #top-bar .top-bar-link,
    #top-bar .subscription-button {
        padding: 6px 8px;
        font-size: 12px;
        flex-shrink: 0;
        min-width: auto;
    }
    
    /* Hide icons in mobile top bar to save space */
    #top-bar .top-bar-link i,
    #top-bar .subscription-button i {
        display: none;
    }
    
    #top-bar .mobile-only-text {
        display: inline !important;
        font-size: 11px;
        font-weight: 600;
    }
    
    #top-bar .desktop-only-text {
        display: none !important;
    }
    
    /* Ensure all buttons are visible and readable */
    #top-bar .top-bar-link span,
    #top-bar .subscription-button span {
        font-size: 11px;
        white-space: nowrap;
    }
    
    /* Home button emphasis */
    #top-bar .top-bar-link[href="/"] {
        font-weight: 700;
        background: rgba(255,255,255,0.1);
    }
}

@media (max-width: 480px) {
    #top-bar {
        padding-left: 50px !important;
        padding-right: 8px !important;
    }
    
    #top-bar .top-bar-link,
    #top-bar .subscription-button {
        padding: 5px 6px;
        font-size: 11px;
    }
    
    #top-bar .top-bar-link span,
    #top-bar .subscription-button span {
        font-size: 10px;
    }
    
    #nav-sidebar {
        width: 260px;
    }
}

/* ✅ KEEP ALL EXISTING LAWYER SIDEBAR STYLES - DO NOT REMOVE */
/* These styles are for the lawyer details sidebar in the map interface */
#sidebar {
    width: 320px;
    padding: 20px;
    background-color: var(--color-sidebar-bg);
    height: calc(100vh - 120px);
    overflow-y: auto;
    position: sticky;
    top: 60px;
    border-right: 1px solid var(--color-border);
    transition: all 0.3s ease;
    z-index: 100;
}

@media (max-width: 768px) {
    #sidebar {
        position: fixed;
        left: -320px;
        top: 60px;
        width: 280px;
        height: calc(100vh - 120px);
        z-index: 1000;
        box-shadow: 2px 0 12px rgba(0,0,0,0.2);
        padding: 20px;
        background: white;
    }

    #sidebar.active {
        left: 0;
    }
}
/* Breadcrumb */
.breadcrumb ol {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #666;
}
.breadcrumb a { color: #0057B8; text-decoration: none; }
.breadcrumb li:not(:last-child)::after { content: "/"; padding-left: 8px; }

/* Single Post */
.entry-header { margin-bottom: 25px; text-align: center; }
.entry-title { font-size: 2.4rem; color: #0057B8; margin: 0; }
.entry-meta { margin-top: 12px; color: #777; font-size: 0.95rem; }
.entry-meta span { display: inline-block; margin-right: 15px; }

/* Featured Image */
.post-thumbnail { margin: 30px 0; text-align: center; }
.post-thumbnail img { border-radius: 8px; max-width: 100%; height: auto; }

/* Author Bio */
.author-bio { margin: 50px 0; padding: 25px; background: #f8f9fa; border-left: 4px solid #0057B8; }
.author-bio h3 { margin-top: 0; color: #0057B8; }

/* Related Posts */
.related-posts h3 { margin: 40px 0 20px; color: #0057B8; }
.related-posts ul { list-style: none; padding: 0; }
.related-posts li { margin-bottom: 10px; }
.related-posts a { color: #0057B8; text-decoration: none; }

/* Archive Grid */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; margin: 30px 0; }
.posts-grid article h2 { font-size: 1.4rem; margin: 15px 0; }
.posts-grid time { color: #777; font-size: 0.9rem; }

/* Responsive */
@media (max-width: 768px) {
    .entry-title { font-size: 2rem; }
    .entry-meta span { display: block; margin: 5px 0; }
}
/* Single Post Styling */
.single-post {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: #333;
}

/* Breadcrumb */
.breadcrumb {
    padding: 15px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
}
.breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
    font-size: 14px;
}
.breadcrumb a {
    color: #0057B8;
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}
.breadcrumb li {
    color: #666;
}
.breadcrumb li[aria-current="page"] {
    color: #333;
}

/* Entry Header */
.entry-header {
    margin-bottom: 30px;
}
.entry-title {
    font-size: 2.4rem;
    color: #0057B8;
    margin-bottom: 20px;
    line-height: 1.3;
}
.entry-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}
.entry-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.entry-meta time,
.entry-meta span:last-child {
    font-weight: 500;
}

/* Featured Image */
.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0 0 30px 0;
}

/* Table of Contents */
.table-of-contents {
    background: #f0f8ff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    border-left: 4px solid #0057B8;
}
.table-of-contents h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.2rem;
}
.table-of-contents ul {
    margin: 0;
    padding-left: 20px;
}
.table-of-contents li {
    margin-bottom: 8px;
}
.table-of-contents a {
    color: #0057B8;
    text-decoration: none;
}
.table-of-contents a:hover {
    text-decoration: underline;
}

/* Social Share */
.social-share {
    background: #f9f9f9;
    padding: 25px;
    margin: 30px 0;
    border-radius: 8px;
    border-left: 4px solid #0057B8;
}
.social-share h3 {
    margin: 0 0 15px 0;
    color: #333;
}
.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.share-button {
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}
.facebook { background: #3b5998; }
.twitter  { background: #1da1f2; }
.linkedin { background: #0077b5; }
.share-button:hover {
    opacity: 0.9;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.post-navigation a {
    color: #0057B8;
    text-decoration: none;
}
.post-navigation a:hover {
    text-decoration: underline;
}

/* Author Bio */
.author-bio {
    background: #f0f8ff;
    padding: 25px;
    margin: 30px 0;
    border-radius: 8px;
}
.author-bio h3 {
    margin-top: 0;
    color: #333;
}
.author-bio div {
    color: #666;
    line-height: 1.6;
}

/* Related Posts */
.related-posts {
    background: #f9f9f9;
    padding: 25px;
    margin: 30px 0;
    border-radius: 8px;
}
.related-posts h3 {
    margin-top: 0;
    color: #333;
}
.related-posts ul {
    margin: 0;
    padding-left: 20px;
}
.related-posts li {
    margin-bottom: 10px;
}
.related-posts a {
    color: #0057B8;
    text-decoration: none;
    font-weight: 500;
}
.related-posts a:hover {
    text-decoration: underline;
}
/* Fees Calculator Shortcode Styles */
.fees-calculator-shortcode {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f3ff 100%);
    border-radius: 10px;
    border: 2px solid #0057B8;
    margin: 2rem 0;
}

.fees-calculator-shortcode .btn-primary {
    background: #0057B8;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.fees-calculator-shortcode .btn-primary:hover {
    background: #0A427F;
    transform: translateY(-2px);
}
/* Fees Calculator Section Styles */
#fees-calculator-section {
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    padding: 60px 20px;
    margin: 40px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.fees-calculator-widget {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}

.fees-calculator-widget h3 {
    color: #0057B8;
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.fees-calculator-widget p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.calculator-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.feature i {
    color: #0057B8;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.feature span {
    font-size: 0.9rem;
    color: #4a5568;
    font-weight: 500;
    text-align: center;
}

/* Enhanced Shortcode Styles */
.fees-calculator-shortcode {
    text-align: center;
}

.fees-calculator-shortcode .btn-primary {
    background: linear-gradient(135deg, #0057B8 0%, #0A427F 100%);
    color: white;
    padding: 18px 35px;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 87, 184, 0.3);
}

.fees-calculator-shortcode .btn-primary:hover {
    background: linear-gradient(135deg, #0A427F 0%, #083166 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 87, 184, 0.4);
}

.fees-calculator-shortcode small {
    display: block;
    margin-top: 15px;
    color: #666;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    #fees-calculator-section {
        padding: 40px 15px;
    }
    
    .fees-calculator-widget {
        padding: 30px 20px;
    }
    
    .fees-calculator-widget h3 {
        font-size: 1.6rem;
    }
    
    .calculator-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .fees-calculator-shortcode .btn-primary {
        padding: 15px 25px;
        font-size: 1rem;
    }
}