﻿:root {
    --primary-color: #005a9c;
    --primary-dark: #004a84;
    --primary-soft: #e6f1ff;
    --secondary-color: #333333;
    --background-color: #f0f2f5;
    --card-background: #ffffff;
    --text-color: #1e293b;
    --muted-color: #64748b;
    --line-color: #d5dfec;
    --success-color: #16803a;
    --danger-color: #b42318;
    --header-height: 72px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-color);
    background:
        radial-gradient(1200px 600px at 10% -10%, #e6f1ff 0%, rgba(230, 241, 255, 0) 60%),
        linear-gradient(180deg, #f9fbff 0%, var(--background-color) 45%);
}

body.nav-open {
    overflow: hidden;
}

.announcement-strip {
    background: var(--primary-color);
    color: #ffffff;
    font-size: 0.9rem;
    overflow: hidden;
}

.announcement-track {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 0.58rem 0;
    width: max-content;
    animation: announcementSlide 28s linear infinite;
}

.announcement-item {
    white-space: nowrap;
    font-weight: 600;
    opacity: 0.95;
}

@keyframes announcementSlide {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.top-bar {
    background: #2f2f2f;
    color: #ffffff;
    min-height: 42px;
    padding: 0.45rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.social-icons {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.social-icons a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
}

.contact-info {
    font-size: 0.9rem;
}

.header {
    position: sticky;
    top: 0;
    z-index: 1010;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #2d6fb6 0%, #1f5ea2 100%);
    box-shadow: 0 5px 16px rgba(0, 57, 104, 0.25);
}

.header-container {
    width: 100%;
    max-width: 1320px;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
}

.logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
}

.brand-copy {
    display: flex;
    flex-direction: column;
}

.brand-copy strong {
    font-size: 0.95rem;
    line-height: 1.2;
}

.brand-copy span {
    font-size: 0.74rem;
    opacity: 0.9;
}

#mainNav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

#mainNav::-webkit-scrollbar {
    display: none;
}

#mainNav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.42rem 0.58rem;
    border-radius: 8px;
    white-space: nowrap;
}

#mainNav a.nav-account-link,
#mainNav a.nav-market-link,
#mainNav a.nav-seller-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#mainNav a:hover,
#mainNav a.active {
    background: rgba(255, 255, 255, 0.18);
}

#mainNav a.jobs-link {
    background: #ffffff;
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 9px;
    cursor: pointer;
}

.mobile-close-btn {
    display: none;
    border: none;
    background: transparent;
    color: #375a7a;
    font-size: 1.4rem;
    align-self: flex-end;
    cursor: pointer;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.home-main {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 14px 26px;
    display: grid;
    gap: 14px;
}

.hero-section {
    background: linear-gradient(150deg, #ffffff 0%, #f2f8ff 100%);
    border: 1px solid var(--line-color);
    border-radius: 18px;
    box-shadow: 0 12px 24px rgba(0, 48, 95, 0.08);
    padding: 18px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 12px;
}

.hero-kicker {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.hero-copy h1 {
    margin-top: 8px;
    font-family: "Playfair Display", serif;
    font-size: clamp(1.55rem, 3vw, 2.3rem);
    line-height: 1.2;
    color: #102a43;
}

.hero-copy p {
    margin-top: 10px;
    color: #334e68;
    line-height: 1.55;
}

.hero-actions {
    margin-top: 14px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.hero-actions a {
    text-decoration: none;
    border-radius: 9px;
    padding: 0.62rem 0.9rem;
    font-weight: 800;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary-color);
    color: #ffffff;
}

.btn-secondary {
    background: #facc15;
    color: #1f2937;
    border: 1px solid #eab308;
}

.btn-info {
    background: #e6f1ff;
    color: #0b4f89;
    border: 1px solid #9fc3e8;
}

.btn-who {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #16a34a;
    color: #ffffff;
    border: 1px solid #15803d;
}

.btn-who:hover,
.btn-who:focus-visible {
    background: #15803d;
    color: #ffffff;
}

.btn-who-arrow {
    display: inline-block;
    font-size: 1rem;
    line-height: 1;
}

.hero-stats {
    background: #ffffff;
    border: 1px solid #d6e4f4;
    min-height: 230px;
    overflow: hidden;
    border-radius: 0;
}

.hero-stats img {
    width: 100%;
    height: 100%;
    min-height: 230px;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.jobs-showcase,
.market-section {
    background: #ffffff;
    border: 1px solid var(--line-color);
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.07);
    padding: 14px;
}

.ads-showcase {
    background: #ffffff;
    border: 1px solid var(--line-color);
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.07);
    padding: 14px;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.section-head h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    color: #102a43;
}

.section-head p {
    color: var(--muted-color);
    margin-top: 4px;
    font-size: 0.92rem;
}

.section-link {
    text-decoration: none;
    background: var(--primary-color);
    color: #ffffff;
    font-weight: 700;
    border-radius: 9px;
    padding: 0.5rem 0.85rem;
    font-size: 0.86rem;
}

.ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 10px;
}

.ad-card {
    border: 1px solid #dce6f3;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

.ad-card img {
    width: 100%;
    height: 165px;
    object-fit: cover;
    display: block;
}

.ad-card-body {
    padding: 10px;
}

.ad-type {
    display: inline-block;
    border-radius: 999px;
    padding: 3px 8px;
    background: #e9f2ff;
    color: #0d4e88;
    font-size: 0.72rem;
    font-weight: 800;
}

.ad-card h3 {
    margin-top: 8px;
    font-size: 0.95rem;
    color: #102a43;
    line-height: 1.3;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.job-card {
    background: #ffffff;
    border: 1px solid #dce6f3;
    border-radius: 12px;
    padding: 12px;
}

.job-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.job-pill {
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 0.72rem;
    font-weight: 800;
}

.job-pill.open {
    background: #e4f4eb;
    color: var(--success-color);
}

.job-pill.taken {
    background: #fde7e5;
    color: var(--danger-color);
}

.job-id {
    font-size: 0.78rem;
    font-weight: 700;
    color: #6c8198;
}

.job-card h3 {
    margin-top: 8px;
    font-size: 1rem;
    color: #102a43;
    line-height: 1.3;
}

.job-meta {
    margin-top: 8px;
    display: grid;
    gap: 5px;
    color: #4f6882;
    font-size: 0.86rem;
}

.job-actions {
    margin-top: 10px;
}

.job-actions a {
    text-decoration: none;
    display: inline-block;
    border-radius: 8px;
    padding: 0.45rem 0.7rem;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 0.83rem;
    font-weight: 800;
}

.job-card-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--muted-color);
}

.category-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.category-chip {
    border: 1px solid #d6e2f1;
    background: #ffffff;
    color: #1d3f60;
    border-radius: 10px;
    padding: 8px 9px;
    font-size: 0.83rem;
    font-weight: 700;
    cursor: pointer;
}

.category-chip.active {
    background: var(--primary-soft);
    color: #0d4e88;
    border-color: #97bbe3;
}

.featured-properties {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
    gap: 10px;
}

.property-card {
    border: 1px solid #d8e3ef;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.property-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.property-details {
    padding: 11px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.property-details h3 {
    font-size: 0.98rem;
    color: #102a43;
}

.location {
    margin-top: 7px;
    color: #4f6882;
    font-size: 0.86rem;
}

.price {
    margin-top: 7px;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 800;
}

.property-buttons {
    margin-top: auto;
    padding-top: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.property-buttons a {
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    font-size: 0.83rem;
    font-weight: 700;
    padding: 0.48rem 0.45rem;
}

.btn-view {
    background: var(--primary-color);
    color: #ffffff;
}

.btn-call {
    background: #169c48;
    color: #ffffff;
}

.empty-market {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--muted-color);
    border: 1px dashed #bfd2e8;
    border-radius: 10px;
    padding: 20px 10px;
}

.site-footer {
    margin-top: 22px;
    background: linear-gradient(180deg, var(--primary-color) 0%, #004e88 100%);
    color: #ffffff;
    padding: 2rem 1rem 1rem;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.4rem;
}

.footer-section h3 {
    margin-bottom: 0.75rem;
    font-size: 0.98rem;
    font-weight: 800;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.42rem;
}

.footer-section a {
    color: #ffffff;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-section p {
    margin-bottom: 0.54rem;
    line-height: 1.45;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px;
}

.footer-search input {
    border: none;
    border-radius: 7px;
    padding: 8px 9px;
    color: #1f2937;
}

.footer-search button {
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 7px;
    background: #003d77;
    color: #ffffff;
    padding: 8px 10px;
    cursor: pointer;
}

.footer-search-container {
    position: relative;
}

.search-results-dropdown {
    position: absolute;
    left: 0;
    bottom: 106%;
    width: 100%;
    background: #ffffff;
    border: 1px solid #d2dce9;
    border-radius: 8px;
    max-height: 220px;
    overflow-y: auto;
    display: none;
    z-index: 1030;
    color: #1f2937;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 9px;
    border-bottom: 1px solid #edf2f8;
    cursor: pointer;
}

.search-result-item img {
    width: 40px;
    height: 40px;
    border-radius: 7px;
    object-fit: cover;
}

.search-result-item .name {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #1f2f46;
}

.search-result-item .price {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.footer-bottom {
    max-width: 1100px;
    margin: 1.2rem auto 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 0.7rem;
    font-size: 0.8rem;
    opacity: 0.9;
}

.service-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    padding: 16px;
}

.service-popup-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 18px;
    max-width: 360px;
    width: 100%;
    text-align: center;
}

.service-popup-card h3 {
    margin: 0 0 8px;
    color: var(--primary-color);
}

.service-popup-card p {
    font-size: 0.9rem;
    color: #374151;
    margin-bottom: 10px;
}

.service-popup-card button {
    width: 100%;
    margin-top: 6px;
    padding: 9px 10px;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    cursor: pointer;
}

#services-more-btn {
    background: var(--primary-color);
    color: #ffffff;
}

.service-popup-close {
    background: #e5e7eb;
    color: #1f2933;
}

.service-popup-card-ad .advertising-popup-text {
    line-height: 1.7;
}

.service-popup-card-ad .advertising-popup-text strong {
    font-weight: 800;
    text-decoration: underline;
}

@media (max-width: 900px) {
    .top-bar {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    #mainNav {
        position: fixed;
        top: 0;
        left: -290px;
        width: 280px;
        height: 100vh;
        background: #ffffff;
        border-right: 1px solid #dbe3ee;
        box-shadow: 0 18px 30px rgba(15, 23, 42, 0.2);
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        padding: 10px 12px;
        z-index: 1004;
        transition: left 0.22s ease;
        overflow-y: auto;
    }

    #mainNav.active {
        left: 0;
    }

    .mobile-close-btn {
        display: block;
    }

    #mainNav a {
        color: #113a60;
        width: 100%;
        border-radius: 9px;
        padding: 0.66rem 0.62rem;
    }

    #mainNav a:hover,
    #mainNav a.active {
        background: #e9f2ff;
        color: #0b4f89;
    }

    #mainNav a.jobs-link {
        background: #e3efff;
        color: #0b4f89;
    }

    .hero-section {
        grid-template-columns: 1fr;
    }

    .hero-stats,
    .hero-stats img {
        min-height: 200px;
    }
}

@media (max-width: 700px) {
    .home-main {
        padding: 12px 10px 22px;
    }

    .hero-copy h1 {
        font-size: 1.52rem;
    }

    .jobs-grid,
    .featured-properties {
        grid-template-columns: 1fr;
    }

    .category-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }
}

