/* Modern Business Directory Styles */
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e6eaf1 100%);
    margin: 0;
    color: #222;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
.main-nav {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #e6eaf1;
}
.nav-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}
.nav-logo {
    font-size: 2rem;
    font-weight: 900;
    color: #2d3a4a;
    letter-spacing: 2px;
}
.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links li a {
    color: #2d3a4a;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.2s;
    padding: 8px 10px;
    border-radius: 6px;
}
.nav-links li a:hover {
    color: #3e4e63;
}
.nav-links li a:focus, .nav-links li a:active {
    background: #d1e0f7;
    color: #2d3a4a;
}
body.dark-mode .nav-links li a:focus, body.dark-mode .nav-links li a:active {
    background: #3e4e63;
    color: #fff;
}
.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}
.account-dropdown, .dark-mode-toggle {
    background: #2d3a4a;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, border 0.2s;
    box-shadow: 0 1px 2px rgba(45,58,74,0.04);
}
.account-dropdown:hover, .dark-mode-toggle:hover {
    background: #3e4e63;
}
.account-dropdown-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    padding: 16px 12px;
    min-width: 180px;
    z-index: 1003;
    margin-top: 8px;
    align-items: stretch;
}
.account-dropdown-menu button {
    background: #2d3a4a;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 0;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, border 0.2s;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 1px 2px rgba(45,58,74,0.04);
    outline: none;
    margin: 0;
    width: 100%;
    display: block;
}
.account-dropdown-menu button:hover, .account-dropdown-menu button:focus {
    background: #3e4e63;
    color: #fff;
}
.account-dropdown-menu button + button {
    margin-top: 8px;
}
body.dark-mode .account-dropdown-menu {
    background: #23272f;
    border-color: #3e4e63;
}
body.dark-mode .account-dropdown-menu button {
    background: #3e4e63;
    color: #fff;
}
body.dark-mode .account-dropdown-menu button:hover, body.dark-mode .account-dropdown-menu button:focus {
    background: #2d3a4a;
    color: #fff;
}
.hero-section {
    background: linear-gradient(120deg, #e6eaf1 60%, #f8fafc 100%);
    padding: 60px 0 40px 0;
    text-align: center;
    border-radius: 0 0 32px 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    margin-bottom: 24px;
}
.hero-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}
.hero-logo {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.hero-logo img {
    height: 160px;
    width: auto;
    max-width: 260px;
    display: block;
    margin-bottom: 18px;
}
.hero-logo-text {
    font-family: 'Georgia', serif;
    font-size: 2.7rem;
    font-weight: 400;
    color: #23272f;
    line-height: 1.1;
    text-align: center;
    margin-bottom: 0.2em;
}
.hero-logo-subtext {
    font-family: 'Georgia', serif;
    font-size: 2rem;
    color: #23272f;
    letter-spacing: 0.1em;
    text-align: center;
}
.hero-main {
    flex: 1;
    min-width: 0;
}
.hero-main h1 {
    font-size: 2.7rem;
    font-weight: 900;
    color: #2d3a4a;
    margin-bottom: 18px;
    text-align: left;
}
.hero-main p {
    font-size: 1.2rem;
    color: #5a6b7a;
    margin-bottom: 28px;
    text-align: left;
}
@media (max-width: 900px) {
    .hero-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
        align-items: center;
    }
    .hero-main h1, .hero-main p {
        text-align: center;
    }
    .hero-logo img {
        height: 110px;
        max-width: 180px;
    }
    .hero-logo-text {
        font-size: 2rem;
    }
    .hero-logo-subtext {
        font-size: 1.2rem;
    }
}
.hero-content h1 {
    font-size: 2.7rem;
    font-weight: 900;
    color: #2d3a4a;
    margin-bottom: 12px;
}
.hero-content p {
    font-size: 1.2rem;
    color: #5a6b7a;
    margin-bottom: 28px;
}
.filters {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
.filters select, .filters input[type="text"], .filters .comments-btn {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 8px 16px;
    font-size: 1rem;
    background: #f9f9f9;
    color: #2d3a4a;
    transition: box-shadow 0.2s, background 0.2s, color 0.2s, border 0.2s;
}
.filters select:focus, .filters input[type="text"]:focus, .filters .comments-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px #b3c6e0;
    border-color: #3e4e63;
}
body.dark-mode .filters select:focus, body.dark-mode .filters input[type="text"]:focus, body.dark-mode .filters .comments-btn:focus {
    border-color: #b3c6e0;
}
.filters .comments-btn {
    background: #e6e6e6;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 1.2rem;
}
.filters .comments-btn:hover {
    background: #d1e0f7;
}
.main-content {
    display: flex;
    gap: 32px;
    margin-top: 40px;
    align-items: flex-start;
}
.businesses-section {
    flex: 2;
}
.section-title {
    font-size: 1.5rem;
    color: #2d3a4a;
    margin-bottom: 24px;
    font-weight: 800;
}
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}
.business-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    padding: 32px 28px 24px 28px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 18px;
    transition: transform 0.18s, box-shadow 0.18s;
    border: 1px solid #e6e6e6;
    cursor: pointer;
}
.business-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
}
.business-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #d1e0f7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    font-weight: 800;
    color: #2d3a4a;
    margin-right: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.business-details {
    flex: 1;
}
.business-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3a4a;
    margin-bottom: 2px;
}
.business-meta {
    font-size: 0.98rem;
    color: #5a6b7a;
    margin-bottom: 6px;
}
.business-address, .business-contact {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 2px;
}
.business-info {
    font-size: 1rem;
    color: #444;
    margin-bottom: 10px;
}
.visit-branch {
    background: #2d3a4a;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 7px 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, border 0.2s;
    text-decoration: none;
    display: inline-block;
    margin-top: 8px;
    box-shadow: 0 1px 2px rgba(45,58,74,0.04);
}
.visit-branch:hover {
    background: #3e4e63;
}
.sidebar {
    flex: 1;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 22px 20px 18px 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
    border-radius: 18px;
    min-width: 280px;
    max-width: 350px;
    position: sticky;
    top: 110px;
    height: fit-content;
    scrollbar-width: thin;
    scrollbar-color: #e6eaf1 #f9f9f9;
}
.sidebar h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #2d3a4a;
}
.sidebar form {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}
.sidebar input[type="text"] {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 8px 12px;
    font-size: 1rem;
    background: #f9f9f9;
    color: #2d3a4a;
    flex: 1;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, border 0.2s;
}
.sidebar button[type="submit"] {
    background: #2d3a4a;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, border 0.2s;
    box-shadow: 0 1px 2px rgba(45,58,74,0.04);
}
.sidebar button[type="submit"]:hover {
    background: #3e4e63;
}
.sidebar#recentComments, .sidebar #commentsList, .sidebar form#sidebarCommentForm {
    display: none !important;
}
#commentsList {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
#commentsList li {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 7px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    padding: 12px 18px;
    color: #444;
    font-size: 1.08rem;
    word-break: break-word;
    line-height: 1.5;
}
#commentsList li:hover {
    background: #f0f0f0;
}
.testimonials {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    padding: 36px 32px 28px 32px;
    text-align: center;
    margin: 60px auto 60px auto;
    max-width: 700px;
}
.testimonials h2 {
    color: #2d3a4a;
    font-size: 1.5rem;
    margin-bottom: 24px;
}
.testimonial {
    margin-bottom: 18px;
    font-size: 1.08rem;
    color: #444;
}
.testimonial span {
    display: block;
    color: #5a6b7a;
    font-size: 0.98rem;
    margin-top: 6px;
}
#testimonials .container {
    max-width: 700px;
    margin: 0 auto;
}
#commentsForm {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 18px;
}
#commentInput {
    flex: 1;
    max-width: 400px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 1rem;
    background: #f9f9f9;
    color: #2d3a4a;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, border 0.2s;
}
#commentInput:focus {
    outline: none;
    box-shadow: 0 0 0 2px #b3c6e0;
    border-color: #3e4e63;
}
#commentsForm button[type="submit"] {
    background: #2d3a4a;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
#commentsForm button[type="submit"]:hover {
    background: #3e4e63;
}
/* Modal Styles */
.login-modal, .create-account-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(45, 58, 74, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(2px);
}
.login-modal-content, .create-account-modal-content {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
    padding: 36px 32px 28px 32px;
    min-width: 340px;
    max-width: 95vw;
    text-align: center;
    animation: modalPop 0.22s cubic-bezier(.4,1.4,.6,1) both;
}
@keyframes modalPop {
    0% { transform: scale(0.95) translateY(30px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}
.login-modal-content h2, .create-account-modal-content h2 {
    color: #2d3a4a;
    margin-bottom: 18px;
}
.login-modal-content form, .create-account-modal-content form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 12px;
}
.login-modal-content input, .create-account-modal-content input {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 10px 14px;
    font-size: 1rem;
    background: #f9f9f9;
    color: #2d3a4a;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, border 0.2s;
}
.login-modal-content button, .create-account-modal-content button {
    background: #2d3a4a;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 0;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, border 0.2s;
    box-shadow: 0 1px 2px rgba(45,58,74,0.04);
}
.login-modal-content button:hover, .create-account-modal-content button:hover {
    background: #3e4e63;
}
.login-modal-content button.dropdown-btn,
.create-account-modal-content button.dropdown-btn {
    background: #2d3a4a;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 0;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, border 0.2s;
    box-shadow: 0 1px 2px rgba(45,58,74,0.04);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.login-modal-content button.dropdown-btn:hover,
.create-account-modal-content button.dropdown-btn:hover {
    background: #3e4e63;
    color: #fff;
}
body.dark-mode .login-modal-content button.dropdown-btn,
body.dark-mode .create-account-modal-content button.dropdown-btn {
    background: #3e4e63;
    color: #fff;
}
body.dark-mode .login-modal-content button.dropdown-btn:hover,
body.dark-mode .create-account-modal-content button.dropdown-btn:hover {
    background: #2d3a4a;
}
.close-login, .close-create-account {
    background: #e6e6e6;
    color: #2d3a4a;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-weight: 600;
    margin-top: 10px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, border 0.2s;
    box-shadow: 0 1px 2px rgba(45,58,74,0.04);
}
.close-login:hover, .close-create-account:hover {
    background: #d1e0f7;
}
.create-account-message {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 8px;
}
/* --- DARK MODE --- */
body.dark-mode {
    background: linear-gradient(135deg, #23272f 0%, #181a1b 100%);
    color: #e0e6ef;
}
body.dark-mode .main-nav,
body.dark-mode .hero-section,
body.dark-mode .testimonials,
body.dark-mode .sidebar,
body.dark-mode .business-card,
body.dark-mode .login-modal-content,
body.dark-mode .create-account-modal-content {
    background: #23272f !important;
    color: #e0e6ef !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
body.dark-mode .main-nav {
    border-bottom: 1px solid #3e4e63;
}
body.dark-mode .nav-logo,
body.dark-mode .section-title,
body.dark-mode .business-name,
body.dark-mode .sidebar h2,
body.dark-mode .testimonials h2 {
    color: #b3c6e0 !important;
}
body.dark-mode .nav-links li a {
    color: #b3c6e0;
}
body.dark-mode .nav-links li a:hover {
    color: #fff;
}
body.dark-mode .business-meta,
body.dark-mode .business-address,
body.dark-mode .business-contact,
body.dark-mode .business-info,
body.dark-mode .testimonial,
body.dark-mode .testimonial span,
body.dark-mode .create-account-message {
    color: #b3c6e0 !important;
}
body.dark-mode .business-logo {
    background: #3e4e63;
    color: #e0e6ef;
}
body.dark-mode .visit-branch,
body.dark-mode .account-dropdown,
body.dark-mode .dark-mode-toggle,
body.dark-mode .sidebar button[type="submit"] {
    background: #3e4e63;
    color: #fff;
}
body.dark-mode .visit-branch:hover,
body.dark-mode .account-dropdown:hover,
body.dark-mode .dark-mode-toggle:hover,
body.dark-mode .sidebar button[type="submit"]:hover {
    background: #2d3a4a;
}
body.dark-mode .filters select,
body.dark-mode .filters input[type="text"],
body.dark-mode .filters .search-input,
body.dark-mode .filters .comments-btn,
body.dark-mode .sidebar input[type="text"],
body.dark-mode .login-modal-content input,
body.dark-mode .create-account-modal-content input {
    background: #23272f;
    color: #e0e6ef;
    border: 1px solid #3e4e63;
}

/* Direct style for the search input in dark mode */
body.dark-mode .search-input {
    background: #23272f !important;
    color: #e0e6ef !important;
    border: 1px solid #3e4e63 !important;
}

body.dark-mode .sidebar,
body.dark-mode .sidebar input[type="text"],
body.dark-mode .sidebar button[type="submit"],
body.dark-mode .sidebar ul li {
    background: #23272f !important;
    color: #e0e6ef !important;
    border-color: #3e4e63 !important;
}
body.dark-mode #commentsList li {
    background: #23272f;
    color: #b3c6e0;
    border-color: #3e4e63;
}
body.dark-mode #commentsForm button[type="submit"] {
    background: #3e4e63;
    color: #fff;
}
body.dark-mode #commentsForm button[type="submit"]:hover {
    background: #2d3a4a;
}
body.dark-mode #commentInput {
    background: #23272f;
    color: #e0e6ef;
    border: 1px solid #3e4e63;
}
body.dark-mode .login-modal-content button,
body.dark-mode .create-account-modal-content button,
body.dark-mode .close-login,
body.dark-mode .close-create-account {
    background: #3e4e63;
    color: #fff;
}
body.dark-mode .login-modal-content button:hover,
body.dark-mode .create-account-modal-content button:hover,
body.dark-mode .close-login:hover,
body.dark-mode .close-create-account:hover {
    background: #2d3a4a;
}
@media (max-width: 1100px) {
    .main-content {
        flex-direction: column;
        gap: 18px;
    }
    .sidebar {
        max-width: 100%;
        min-width: unset;
        position: static;
        margin-top: 32px;
    }
}
@media (max-width: 700px) {
    .container {
        width: 98%;
    }
    .nav-flex {
        flex-direction: column;
        gap: 10px;
        padding: 10px 0;
    }
    .nav-links {
        gap: 16px;
    }
    .hero-section {
        padding: 32px 0 18px 0;
        border-radius: 0 0 18px 18px;
    }
    .hero-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
        align-items: center;
    }
    .hero-main h1, .hero-main p {
        text-align: center;
    }
    .hero-logo img {
        height: 110px;
        max-width: 180px;
    }
    .hero-logo-text {
        font-size: 2rem;
    }
    .hero-logo-subtext {
        font-size: 1.2rem;
    }
    .hero-content h1 {
        font-size: 1.5rem;
    }
    .business-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .business-card {
        padding: 18px 10px 14px 10px;
    }
    .testimonials {
        padding: 18px 8px 12px 8px;
    }
    .filters {
        flex-direction: column;
        gap: 8px;
    }
}
@media (min-width: 1101px) {
    .sidebar {
        position: sticky;
        top: 110px;
    }
}
@media (max-width: 400px) {
    .login-modal-content, .create-account-modal-content {
        min-width: 90vw;
        padding: 12px 4vw;
    }
}
/* Add focus outlines for accessibility */
:focus {
    outline: 2px solid #b3c6e0;
    outline-offset: 2px;
}

/* --- LOGIN PAGE STYLES --- */
.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #f5f7fa;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
}

.login-box {
    width: 100%;
    max-width: 360px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 30px 25px;
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    margin-bottom: 20px;
}

.login-logo img {
    height: 60px;
    width: auto;
    margin-bottom
