@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap');

:root {
    --primary-color: #1e3a8a;
    --primary-hover: #172554;
    --secondary-color: #f0f9ff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --bg-main: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

/* Fixed Language Switcher */
.lang-switcher {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background: white;
    padding: 0.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    z-index: 9999;
}

.lang-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 300;
    color: var(--text-secondary);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
}

@media (max-width: 768px) {
    .lang-switcher {
        bottom: 1.5rem;
        right: 1.5rem;
        padding: 0.4rem;
    }

    .lang-btn {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Lexend", sans-serif;
}

body {
    background-color: #f1f5f9;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-loader {
    width: 100%;
    height: 300px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-lg);
    grid-column: 1 / -1;
}

/* Base Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
nav {
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    font-size: 1.5rem;
    font-weight: 300;
    flex-shrink: 0;
    background: linear-gradient(135deg, #212121, #212121, #212121);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    font-family: "Lexend", sans-serif;
}

.nav-logo-icon {
    width: 32px;
    height: 32px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-left: auto;
    margin-right: 30px;
}

.nav-auth {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-shrink: 0;
}

.nav-links a,
.nav-auth a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-auth a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
}

.btn-primary,
.btn-outline {
    padding: 0.45rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 400;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white !important;
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

/* Location Button */
/* .location-btn removed */

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: var(--radius-xl);
    padding: 2rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 24px 24px 48px rgba(0, 0, 0, 0.1);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.modal-body {
    padding-right: 0.5rem;
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
    height: 300px;
    /* Fixed height as requested */
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Custom Scrollbar for City Grid */
.city-grid::-webkit-scrollbar {
    width: 6px;
}

.city-grid::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.city-grid::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.city-item {
    background: #f8fafc;
    border: 1px solid transparent;
    padding: 0.5rem;
    height: 48px;
    /* Fixed height for uniformity */
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-wrapper {
    position: relative;
    width: 100%;
}

#city-search:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.city-item.quick {
    padding: 0.5rem;
    font-size: 0.85rem;
}

.city-item:hover {
    background: #eff6ff;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.hero {
    padding: 10rem 0 8rem;
    background:
        linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85)),
        url('../images/hero-map-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    display: none;
    /* Removed mesh pattern as we are using a map */
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    animation: fadeInDown 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.hero p {
    font-size: 1.4rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3.5rem;
    line-height: 1.6;
    animation: fadeInDown 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
}

/* Search Box */
.search-container {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.search-box {
    display: flex;
    background: white;
    padding: 0.75rem;
    border-radius: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: center;
}

.search-box:focus-within {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 30px 60px rgba(30, 58, 138, 0.12);
    border-color: var(--primary-color);
}

.search-city-select {
    border: none;
    background: #f1f5f9;
    padding: 0.8rem 1rem 0.8rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-primary);
    cursor: pointer;
    min-width: 160px;
    outline: none;
    transition: all 0.2s ease;
    margin-right: 10px;
}

.search-city-select:hover {
    background: #e2e8f0;
}

.search-city-select:focus {
    background: white;
    box-shadow: 0 0 0 2px var(--primary-color-light);
}

.search-input-icon {
    padding-left: 1.5rem;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.search-box input {
    flex: 1;
    border: none;
    padding: 1rem;
    font-size: 1rem;
    outline: none;
    background: transparent;
    color: var(--text-primary);
}

.search-box input::placeholder {
    color: #94a3b8;
}

.search-box button {
    background: linear-gradient(135deg, var(--primary-color), #1e3a8a);
    color: white;
    border: none;
    padding: 0.8rem 2.5rem;
    border-radius: 1.5rem;
    font-weight: 400;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(30, 58, 138, 0.2);
}

.search-box button:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(30, 58, 138, 0.3);
}

.search-tags {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-tags span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.search-tags a {
    text-decoration: none;
    background: rgba(30, 58, 138, 0.08);
    color: var(--primary-color);
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.3s ease;
    border: 1px solid rgba(30, 58, 138, 0.1);
}

.search-tags a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

/* Categories */
.categories {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    text-align: center;
}

.category-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 1rem 0;
}

.category-grid {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    /* Removed scroll-behavior: smooth; to fix drag jitter */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    cursor: grab;
    padding: 0.5rem;
    user-select: none;
}

.category-grid::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.category-grid:active {
    cursor: grabbing;
}

.category-card {
    flex: 0 0 180px;
    /* Fixed width for carousel items */
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.category-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.category-card span {
    font-weight: 400;
    color: var(--text-primary);
}

/* Companies Grid */
.companies {
    padding: 4rem 0 8rem;
}

/* Firms Carousel */
.firms-carousel-wrapper {
    position: relative;
    padding: 0 3rem;
    /* Space for buttons */
}

.firms-grid-container {
    overflow: hidden;
    scroll-behavior: smooth;
    border-radius: var(--radius-lg);
}

.companies-grid {
    display: flex;
    /* Changed from grid to flex for carousel */
    gap: 1.5rem;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.company-card {
    flex: 0 0 calc(25% - 1rem);
    /* 3 cards on desktop */
    min-width: 244px;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.5);
    box-shadow: var(--shadow-sm);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    background: white;
    border: 1px solid rgba(226, 232, 240, 1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 10;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.carousel-btn.prev {
    left: -1rem;
}

.carousel-btn.next {
    right: -1rem;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .company-card {
        flex: 0 0 calc(50% - 0.75rem);
    }

    /* 2 cards */
}

@media (max-width: 640px) {
    .company-card {
        flex: 0 0 100%;
    }

    /* 1 card */
    .firms-carousel-wrapper {
        padding: 0;
    }

    .carousel-btn {
        display: none;
    }

    /* Hide buttons on mobile, allow touch-scroll */
    .firms-grid-container {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .company-card {
        scroll-snap-align: center;
    }
}

.company-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.company-img {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.company-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--primary-color);
}

.company-info {
    padding: 1.5rem;
}

.company-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.company-info p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6rem;
    line-height: 1.3;
}

.company-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #f59e0b;
    font-weight: 400;
}

/* Products & Campaigns Styling (Premium Features) */
.product-card,
.campaign-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.5);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.product-card:hover,
.campaign-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.item-img {
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.item-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 400;
}

.campaign-card .item-badge {
    background: #ef4444;
    /* Red for campaigns/discounts */
}

.item-info {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.item-info h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.item-info p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-price {
    font-weight: 400;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.campaign-original-price {
    text-decoration: line-through;
    color: #94a3b8;
    margin-right: 0.5rem;
    font-size: 0.9rem;
    font-weight: normal;
}

/* Detail Modal (Shared for Product/Campaign/Content) */
.detail-modal-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-modal-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.detail-modal-title {
    font-size: 1.75rem;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.detail-modal-price {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.detail-modal-desc {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

/* Section Header Search */
.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header-flex h3 {
    margin-bottom: 0 !important;
}

.header-search-wrapper {
    position: relative;
    max-width: 300px;
    width: 100%;
}

.header-search-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.9rem;
}

.header-search-input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    border-radius: 2rem;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    outline: none;
}

.header-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* Mini Product Cards */
.items-grid-mini {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.product-mini-card {
    display: flex;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    height: 100px;
}

.product-mini-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.mini-img {
    width: 100px;
    height: 100px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.mini-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.mini-info h4 {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-info .mini-price {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--primary-color);
}

/* Responsive - Small Desktops */
@media (max-width: 1200px) {
    .logo {
        font-size: 1.4rem;
    }

    .nav-logo-icon {
        height: 30px;
        width: 30px;
    }

    .nav-auth {
        gap: 0.75rem;
    }
}

/* Responsive - Laptops */
@media (max-width: 1080px) {
    .nav-links {
        gap: 1rem;
        margin-right: 15px;
    }

    .nav-links a {
        font-size: 0.80rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .nav-logo-icon {
        height: 28px;
        width: 28px;
    }
}

/* Responsive - Tablets/Mobile */
@media (max-width: 920px) {
    .section-header-flex {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-search-wrapper {
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .search-box {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }

    .search-box input,
    .search-city-select {
        background: white;
        border-radius: 1rem;
        width: 96%;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    }

    .search-box input {
        padding: 1.25rem 1rem 1.25rem 3.5rem;
    }

    .search-city-select {
        padding: 1.25rem 1.5rem;
        margin: 0;
    }

    .search-input-icon {
        top: 1.25rem;
        transform: translateY(0);
        left: 1.5rem;
        padding-left: 0;
        padding-top: 0.7rem;
    }

    .search-box button {
        width: 100%;
        border-radius: 1rem;
        padding: 1.25rem;
        font-size: 1.1rem;
    }

    .search-tags {
        margin-top: 1.5rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 0.5rem;
        -ms-overflow-style: none;
        scrollbar-width: none;
        width: 100%;
    }

    .search-tags::-webkit-scrollbar {
        display: none;
    }

    .search-tags span,
    .search-tags a {
        white-space: nowrap;
    }

    .search-tags a {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }

    .nav-auth {
        margin-left: auto;
        margin-right: 0.5rem;
        gap: 0.5rem;
    }

    .nav-auth .btn-primary,
    .nav-auth .btn-outline {
        padding: 0.35rem 0.75rem;
        font-size: 0.8rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .nav-logo-icon {
        height: 26px;
        width: 26px;
    }

    .profile-trigger {
        padding: 0.25rem 0.5rem;
        gap: 0.5rem;
    }

    .profile-avatar {
        width: 28px;
        height: 28px;
    }

    .user-name {
        display: none;
    }

    /* Mobile Menu Styles */
    .mobile-menu-btn {
        display: flex;
        background: transparent;
        border: none;
        font-size: 1.5rem;
        color: var(--text-primary);
        cursor: pointer;
        align-items: center;
        justify-content: center;
        padding: 0.5rem;
    }

    .nav-links {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 0;
        margin: 0;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #e2e8f0;
        gap: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        max-height: 0;
        overflow: hidden;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        max-height: 500px;
        padding: 0.5rem 0;
    }

    .nav-links a {
        width: 100%;
        padding: 1rem 2rem;
        border-bottom: 1px solid #f8fafc;
        font-size: 1rem;
        font-weight: 400;
        text-align: left;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }
}

/* Responsive - Large Phones */
@media (max-width: 640px) {
    .logo {
        font-size: 1.15rem;
    }

    .nav-logo-icon {
        height: 24px;
        width: 24px;
    }

    .profile-avatar {
        width: 26px;
        height: 26px;
    }

    .nav-auth .btn-primary,
    .nav-auth .btn-outline {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
    }
}

/* Responsive - Small Phones */
@media (max-width: 375px) {
    .logo {
        font-size: 1rem;
    }

    .nav-logo-icon {
        height: 22px;
        width: 22px;
    }

    .nav-auth .btn-primary,
    .nav-auth .btn-outline {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }

    .profile-trigger {
        padding: 0.2rem 0.4rem;
    }

    .profile-avatar {
        width: 24px;
        height: 24px;
    }
}

/* -------------------------------------------------------------------------
   FİRMA DETAY SAYFASI (Premium Light Theme)
   ------------------------------------------------------------------------- */
.firm-detail-page {
    background-color: #f8fafc;
    color: var(--text-primary);
}

.firm-detail-page body {
    background-color: #f8fafc;
}

.firm-detail-page nav {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid #e2e8f0;
}

.detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.firm-hero {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 3rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
}

.firm-gallery {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    height: 450px;
    border: 1px solid #e2e8f0;
}

.firm-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.firm-gallery:hover img {
    transform: scale(1.05);
}

.firm-info-content h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.badge-premium {
    background: rgba(30, 58, 138, 0.1);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 400;
    border: 1px solid rgba(30, 58, 138, 0.2);
    margin-left: 5px;
}

.badge-premium:first-child {
    margin: 0;
}

.firm-meta-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: var(--text-secondary);
}

.meta-item i {
    width: 48px;
    height: 48px;
    background: var(--secondary-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    font-size: 1.4rem;
    border: 1px solid var(--glass-border);
}

.meta-text label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.meta-text span {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 300;
}

.firm-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    font-size: 1.1rem;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
}

.btn-call {
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-call:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
}

.btn-route {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

.btn-route:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(30, 58, 138, 0.3);
}

.detail-sections {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.section-card {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 3rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-sm);
}

.detail-page-title {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.detail-page-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.item-card {
    background: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.item-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.social-item {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: var(--secondary-color);
    border: 1px solid var(--glass-border);
    color: var(--primary-color);
    font-size: 1.4rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-item:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    transform: scale(1.1) translateY(-2px);
}

#loading-overlay {
    background: #ffffff;
    color: var(--text-primary);
}

#map-placeholder {
    background: var(--secondary-color) !important;
    border: 1px dashed #cbd5e1 !important;
    height: 200px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-label {
    color: var(--primary-color);
    font-weight: 400;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.description-text {
    line-height: 1.8;
    color: var(--text-secondary);
}

.address-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* -------------------------------------------------------------------------
   PROFİL DROPDOWN (Global Header)
   ------------------------------------------------------------------------- */
.profile-dropdown {
    position: relative;
    display: inline-block;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
    background: var(--secondary-color);
}

.profile-trigger:hover {
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-color);
}

.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: var(--shadow-sm);
}

.user-name {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-primary);
}

.profile-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 220px;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid #e2e8f0;
    padding: 0.75rem;
    display: none;
    z-index: 1000;
    transform-origin: top right;
    animation: scaleIn 0.2s ease-out;
}

.profile-menu.active {
    display: block;
}

.menu-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 0.5rem;
}

.menu-header span {
    display: block;
}

.menu-header .menu-name {
    font-weight: 400;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.menu-header .menu-email {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.menu-item:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.menu-item i {
    width: 20px;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.menu-item:hover i {
    color: var(--primary-color);
}

.menu-item.logout {
    color: #ef4444;
    border-top: 1px solid #f1f5f9;
    margin-top: 0.5rem;
    border-radius: 0 0 0.5rem 0.5rem;
}

.menu-item.logout:hover {
    background: #fef2f2;
}

.menu-item.logout i {
    color: #ef4444;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Dark theme overrides for profile menu (Firma Detay) */
.firm-detail-page .profile-menu {
    background: #161b22;
    border-color: #30363d;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.firm-detail-page .menu-item {
    color: #c9d1d9;
}

.firm-detail-page .menu-item:hover {
    background: #21262d;
}

.firm-detail-page .menu-header {
    border-bottom-color: #30363d;
}

.firm-detail-page .menu-header .menu-name {
    color: #ffffff;
}

/* Global Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(15px);
    z-index: 10000;
    display: none;
    flex-direction: column;
    align-items: center;
    padding-top: 10vh;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-overlay.active {
    display: flex;
    opacity: 1;
}

.search-overlay-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    background: none;
    border: none;
    transition: transform 0.3s ease;
}

.search-overlay-close:hover {
    transform: rotate(90deg);
}

.search-modal-content {
    width: 90%;
    max-width: 800px;
}

.search-modal-input-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

.search-modal-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    padding: 1.5rem 2rem;
    font-size: 1.5rem;
    color: white;
    outline: none;
    transition: all 0.3s ease;
}

.search-modal-input:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(30, 58, 138, 0.3);
}

.search-live-results {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    overflow: hidden;
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-live-results.active {
    display: block;
}

.live-result-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 2rem;
    color: white;
    text-decoration: none;
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.live-result-item:last-child {
    border-bottom: none;
}

.live-result-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.live-result-img {
    width: 50px;
    height: 50px;
    border-radius: 0.75rem;
    object-fit: cover;
}

.live-result-info h4 {
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
}

.live-result-info p {
    font-size: 0.85rem;
    color: #94a3b8;
}

.search-trigger-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e2e8f0;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 300;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    text-decoration: none !important;
}

.search-trigger-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

/* --- Extracted & Page Specific Styles --- */

/* Navigation & Global */
.nav-logo-icon {
    height: 60px;
    vertical-align: middle;
    margin-right: 2px;
    object-fit: cover;
    width: 58px;
}

.pos-relative {
    position: relative;
}

.d-none {
    display: none;
}

.text-left {
    text-align: left;
}

.mb-0-5 {
    margin-bottom: 0.5rem;
}

.mb-1-5 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 5rem;
}

.mt-6 {
    margin-top: 6rem;
}

.flex-gap-0-5 {
    display: flex;
    gap: 0.5rem;
}

/* Modals */
.modal-section-title {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.quick-cities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.city-search-input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-icon-absolute {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.detail-modal-desc-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Section Headers */
.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
}

.section-title-large {
    font-size: 2rem;
    font-weight: 400;
}

.section-subtitle {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Footer */
.site-footer {
    background: #1e293b;
    color: white;
    padding: 4rem 0;
}

.site-footer .logo {
    filter: invert(1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-newsletter-text {
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    font-size: 1rem;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-4px);
    color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.footer-newsletter-text {
    margin-bottom: 1rem;
}

.footer-links-list {
    list-style: none;
    margin-top: 1rem;
    color: #94a3b8;
}

.footer-link {
    color: inherit;
    text-decoration: none;
}

.footer-input {
    padding: 0.5rem;
    border-radius: 0.25rem;
    border: none;
    flex: 1;
}

.footer-btn {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    border: none;
    color: white;
    border-radius: 0.25rem;
    cursor: pointer;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
}

/* Search Page */
.search-page {
    padding-top: 8rem;
    padding-bottom: 6rem;
    min-height: 100vh;
}

.filter-sidebar {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
    position: sticky;
    top: 6rem;
}

.filter-group {
    margin-bottom: 2rem;
}

.filter-group h4 {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-select {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    outline: none;
    font-family: "Lexend", sans-serif;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.search-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
}

.btn-clear-filters {
    width: 100%;
    padding: 0.75rem;
    background: #f1f5f9;
    border: none;
    border-radius: 0.5rem;
    color: #475569;
    font-weight: 400;
    cursor: pointer;
}

.results-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.py-4-center {
    text-align: center;
    padding: 4rem;
}

.text-primary-color {
    color: var(--primary-color);
}

@media (max-width: 968px) {

    .search-layout,
    .firm-hero,
    .detail-sections {
        grid-template-columns: 1fr;
    }

    .filter-sidebar {
        position: static;
        margin-bottom: 1.5rem;
    }
}

/* Auth Pages (Login/Register) */
.auth-body {
    background: radial-gradient(circle at top right, rgba(30, 58, 138, 0.05), transparent),
        radial-gradient(circle at bottom left, rgba(56, 189, 248, 0.05), transparent);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    margin-top: 4rem;
}

.auth-container {
    width: 100%;
    max-width: 450px;
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(226, 232, 240, 0.8);
    animation: fadeInUp 0.6s ease-out;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header .logo {
    justify-content: center;
    margin-bottom: 0rem;
}

.auth-header h1 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 300;
    color: var(--text-primary);
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.input-group input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.8rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.btn-auth {
    width: 100%;
    padding: 0.8rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.social-auth {
    text-align: center;
    margin-bottom: 1.5rem;
}

.social-auth .divider {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-auth .divider::before,
.social-auth .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.social-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.social-btn {
    padding: 0.6rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 300;
    font-size: 0.9rem;
}

.auth-footer {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

@media (max-width: 480px) {
    .auth-container {
        padding: 1.5rem;
    }

    .social-btns {
        grid-template-columns: 1fr;
    }

    .company-card {
        min-width: unset;
        flex: 0 0 100%;
    }
}

@media (max-width: 380px) {
    .container {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .mini-img {
        width: 80px;
        height: 80px;
    }

    .detail-container {
        padding: 1rem 0.5rem;
    }

    .firm-hero {
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .firm-gallery {
        height: 250px;
    }

    .auth-container {
        padding: 1.5rem 1rem;
    }

    .detail-sections {
        grid-template-columns: 1fr;
    }

    .section-card {
        padding: 1.5rem;
    }

    .nav-links a,
    .nav-auth a {
        font-size: 0.8rem;
    }

    .firm-meta-items {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .firm-actions {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
    }
}

@media (max-width: 290px) {
    .container {
        padding: 0 0.5rem;
    }

    .hero {
        padding: 6rem 0 4rem;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-logo-icon {
        height: 24px;
        width: 24px;
        margin-right: 2px;
    }

    .search-box {
        padding: 0.5rem;
        border-radius: 1rem;
    }

    .search-box input {
        font-size: 0.8rem;
        padding: 0.8rem;
    }

    .search-box button {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
        border-radius: 1rem;
    }

    .search-city-select {
        min-width: unset;
        width: 100%;
        margin-right: 0;
        margin-bottom: 5px;
        font-size: 0.8rem;
    }

    .category-card {
        flex: 0 0 140px;
        padding: 1rem;
    }

    .firm-hero {
        padding: 1rem;
    }

    .firm-info-content h1 {
        font-size: 1.5rem;
    }

    .meta-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .action-btn {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .section-card {
        padding: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .quick-cities-grid {
        grid-template-columns: 1fr 1fr;
    }

    .product-mini-card {
        height: auto;
        flex-direction: column;
    }

    .mini-img {
        width: 100%;
        height: 120px;
    }

    .mini-info h4 {
        white-space: normal;
    }

    .modal-content {
        padding: 1rem;
    }

    .search-tags a {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .section-title,
    .section-title-large {
        font-size: 1.5rem;
    }

    .item-card {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.75rem !important;
    }
}

@media (max-width: 500px) {
    .nav-auth {
        gap: 0.3rem;
    }

    .nav-auth .btn-primary,
    .nav-auth .btn-outline {
        padding: 0.3rem 0.55rem;
        font-size: 0.75rem;
        border-radius: 0.4rem;
    }

    .container {
        padding: 0 0.5rem;
    }

    .logo {
        font-size: 0;
    }

    .logo span {
        display: none;
    }

    .nav-logo-icon {
        width: 42px;
        height: 42px;
    }

}

/* Pagination Styling */
.pagination-wrapper {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    background: white;
    color: var(--text-secondary);
    border-radius: 0.75rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(.disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #f8fafc;
}

.pagination-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f1f5f9;
}

.pagination-dots {
    display: flex;
    align-items: flex-end;
    padding-bottom: 8px;
    color: var(--text-secondary);
}

/* Announcement Banner */
.announcement-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e3a8a 100%);
    color: white;
    padding: 10px 0;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    z-index: 1001;
    overflow: hidden;
}

.announcement-banner.hidden {
    display: none;
}

.announcement-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.announcement-banner i {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.announcement-close {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.announcement-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) rotate(90deg);
}

@media (max-width: 768px) {
    .announcement-banner {
        font-size: 0.8rem;
        padding: 8px 30px 8px 10px;
        text-align: left;
    }

    .announcement-content {
        justify-content: flex-start;
    }

    .announcement-close {
        right: 0.5rem;
    }
}

/* Why Choose Us Section */
.why-us {
    padding: 5rem 0;
    background: #ffffff;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-top: 3.5rem;
}

.why-card {
    background: transparent;
    padding: 1rem;
    text-align: center;
    border: none;
    transition: all 0.3s ease;
}

.why-card:hover {
    transform: translateY(-5px);
}

.why-icon {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 1.5rem;
    opacity: 0.8;
}

.why-card:hover .why-icon {
    opacity: 1;
    transform: scale(1.1);
}

.why-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #0f172a;
    font-weight: 500;
}

.why-card p {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.92rem;
    max-width: 280px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .why-us {
        padding: 3rem 0;
    }
    .why-us-grid {
        margin-top: 2rem;
    }
}
/* FAQ Section */
.faq-section {
    padding: 6rem 0;
    background: #ffffff;
}

.faq-container {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 0.5rem;
}

.faq-question {
    width: 100%;
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    color: #94a3b8;
}

.faq-item.active .faq-question {
    color: var(--primary-color);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 1.5rem;
}
