/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0 !important;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'DM Sans', sans-serif;
    background: #fff;
    overflow-x: hidden;
    padding-top: 70px;
}

/* =========================
   NAVBAR
========================= */
.site-navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    width: 100%;
    background: #ffffff;
    z-index: 999;
    box-shadow: 0 2px 15px rgba(0, 0, 0, .06);
    padding: 0 !important;
    flex-wrap: nowrap !important;
    min-height: unset !important;
}
.nav-container {
    position: relative;
    max-width: 1400px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    padding: 8px 30px;
    width: 100%;
    min-height: 70px;
}
.site-navbar .logo {
    flex: 0 0 auto;
    margin: 0;
    flex-shrink: 0;
}
.site-navbar .logo img {
    width: auto;
    height: 52px;
    max-height: 52px;
    display: block;
    filter: brightness(1.08) contrast(1.12) saturate(1.05);
}
.menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0 0 0 auto;
    padding: 0;
    flex: 0 0 auto;
    flex-wrap: nowrap;
}
.menu li {
    position: relative;
}
.menu li a {
    text-decoration: none;
    color: #111827;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    transition: .3s;
}
.menu li a:hover {
    color: #0d4ab4;
}
.btn-primary {
    background: #0d4ab4;
    color: #fff !important;
    padding: 12px 24px;
}
.btn-primary:hover {
    background: #083891;
}

/* =========================
   MEGA MENU
========================= */
.menu li.mega-parent {
    position: relative;
}
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 700px;
    padding: 20px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 998;
    background: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}
.mega-container {
    background-color: #fff;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    gap: 30px;
}
.mega-parent:hover .mega-menu,
.mega-parent:focus-within .mega-menu,
.mega-parent.mega-open .mega-menu {
    opacity: 1;
    visibility: visible;
}
.nav-chevron {
    font-size: 11px;
    margin-left: 5px;
    display: inline-block;
    transition: transform 0.3s ease;
}
.mega-parent:hover .nav-chevron,
.mega-parent.mega-open .nav-chevron {
    transform: rotate(180deg);
}
.nav-mobile-icon {
    margin-right: 10px;
    width: 18px;
    color: #0d4ab4;
}

/* Active page highlighting */
.menu li a.active {
    color: #0d4ab4;
    font-weight: 600;
}
.menu li a.active:hover {
    color: #083891;
}
.mega-item {
    display: flex;
    gap: 20px;
    text-decoration: none;
    padding: 20px;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    border: 1px solid transparent;
}
.mega-item:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.02);
}
.icon-box {
    min-width: 54px;
    height: 54px;
    background: #eef4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #0d4ab4;
    transition: all 0.3s ease;
}
.mega-item:hover .icon-box {
    background: #0d4ab4;
    color: #fff;
}
.mega-content h4 {
    color: #111827;
    margin-bottom: 6px;
    font-size: 16px;
    font-weight: 600;
}
.mega-content p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
}

/* Admin Login Icon */
.admin-login-link {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #111827;
    transition: color 0.3s ease;
    padding: 8px;
    cursor: pointer;
}
.admin-login-link:hover {
    color: #0d4ab4 !important;
}

/* =========================
   CUSTOM MODAL (Admin Login)
========================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-card {
    background: #fff;
    width: 100%;
    max-width: 440px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.modal-overlay.active .modal-card {
    transform: scale(1);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}
.modal-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
}
.close-modal {
    background: none;
    border: none;
    font-size: 20px;
    color: #64748b;
    cursor: pointer;
    transition: color 0.2s;
}
.close-modal:hover {
    color: #111827;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}
.form-group input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #dbe3ef;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}
.form-group input:focus {
    border-color: #0d4ab4;
}
.modal-submit {
    width: 100%;
    height: 48px;
    background: #0d4ab4;
    color: #fff;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.modal-submit:hover {
    background: #083891;
}

/* Mobile nav */
.mobile-menu {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 12px 10px;
    margin: 0 0 0 auto;
    outline: none;
    color: inherit;
    line-height: 1;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
}
.hamburger-box {
    display: block;
    width: 28px;
    height: 20px;
    position: relative;
}
.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    display: block;
    position: absolute;
    width: 28px;
    height: 2.5px;
    background: #111827;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.25s ease;
}
.hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
}
.hamburger-inner::before {
    content: '';
    top: -8px;
}
.hamburger-inner::after {
    content: '';
    top: 8px;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    background: #fff;
    list-style: none;
    box-shadow: -4px 0 20px rgba(0, 0, 0, .1);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s ease;
    visibility: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    padding-top: env(safe-area-inset-top, 0);
}
.mobile-nav.active {
    transform: translateX(0);
    visibility: visible;
}
.mobile-nav li {
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}
.mobile-nav li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    color: #111827;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: background 0.2s, color 0.2s;
    min-height: 52px;
}
.mobile-nav li a:hover,
.mobile-nav li a.active {
    background: #f8fafc;
    color: #0d4ab4;
}
.mobile-nav-admin {
    margin-top: auto;
    border-top: 1px solid #e2e8f0;
}
.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    position: sticky;
    top: 0;
    z-index: 1;
}
.mobile-nav-title {
    font-weight: 700;
    font-size: 16px;
    color: #111827;
}
.mobile-nav-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #64748b;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s;
}
.mobile-nav-close:hover {
    color: #111827;
}
.mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-nav.active ~ .mobile-backdrop {
    opacity: 1;
    visibility: visible;
}
body.mobile-nav-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* =========================
   HERO
========================= */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)), url("../images/hero.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px;
}
.hero-content {
    width: 100%;
    max-width: 1200px;
}
.hero h1 {
    color: #fff;
    font-size: 35px;
    font-weight: 700;
    margin-bottom: 20px;
}
.hero p {
    color: #fff;
    font-size: 16px;
    margin-top: -10px;
    margin-bottom: 35px;
}

/* Leasing Tabs */
.leasing-box {
    max-width: 850px;
    margin: 0 auto;
}
.leasing-title {
    color: #fff;
    font-size: 25px;
    font-weight: 600;
    padding-top: 0px;
    padding-bottom: 50px;
    margin-bottom: 8px;
}
.leasing-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 0;
    flex-wrap: wrap;
    flex: 1;
}
@media (max-width: 991px) {
    .leasing-title {
        color: #fff;
        font-size: 25px;
        font-weight: 600;
        padding-top: 0px;
        padding-bottom: 50px;
        margin-bottom: 8px;
    }
}
@media (max-width: 768px) {
    .leasing-title {
        color: #fff;
        font-size: 25px;
        font-weight: 600;
        padding-top: 0px;
        padding-bottom: 50px;
        margin-bottom: 8px;
    }
}
.tab-btn {
    border: none;
    width: 100%;
    padding: 14px 30px;
    border-radius: 0;
    background: #fff;
    color: #0d4ab4;
    cursor: pointer;
    border: solid 2px #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    transition: .3s;
    line-height: 20px;
}
.leasing-tabs span {
    font-size: 12px;
}
.tab-btn.active {
    background: #fff;
    color: #0d4ab4;
}
.tab-btn:hover,
.tab-btn.active:hover {
    background: rgba(255, 255, 255, .15);
    color: #fff;
    border-color: rgba(255, 255, 255, .15);
    backdrop-filter: blur(10px);
}
.hero-tab-cta {
    display: inline-block;
    margin-top: 4px;
    text-decoration: underline;
    font-weight: 600;
}
.tab-content {
    display: none;
    background: #fff;
    border-radius: 0;
    padding: 20px 15px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .20);
}
.tab-content.active {
    display: block;
}
.tab-content p {
    color: #808080;
    margin-bottom: 25px;
    margin-top: 0;
}
.search-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}
.search-row input {
    flex: 1;
    height: 40px;
    border: 1px solid #dbe3ef;
    padding: 0 15px;
    font-size: 14px;
    outline: none;
}
.search-row input:focus {
    border-color: #0d4ab4;
}
.search-btn {
    height: 40px;
    padding: 0 15px;
    border: none;
    background: #0d4ab4;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

/* =========================
   ABOUT US
========================= */
.about-section {
    margin-top: 20px;
    padding: 80px 20px;
    background: #fff;
}
.about-title {
    color: #0d4ab4;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 15px;
}
.about-container {
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}
.about-image {
    position: relative;
}
.about-image img {
    width: 100%;
    display: block;
    object-fit: cover;
}
.experience-box {
    position: absolute;
    bottom: 10px;
    right: -10px;
    background: #0d4ab4;
    color: #fff;
    padding: 5px 15px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(13, 74, 180, .25);
}
.experience-box h3 {
    font-size: 32px;
    margin-bottom: 5px;
}
.experience-box span {
    font-size: 14px;
}
.about-content h2 {
    line-height: 1.2;
    color: #646464;
    margin-bottom: 20px;
    font-size: 22px;
}
.about-content p {
    color: #111;
    line-height: 1.9;
    margin-bottom: 18px;
    font-size: 16px;
}
.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 35px 0;
}
.feature-item {
    background: #f8fafc;
    padding: 5px 3px;
    font-weight: 600;
    color: #111827;
}

/* =========================
   EXPERT BOX
========================= */
.expert-box {
    max-width: 1000px;
    margin: 10px auto;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .08);
    padding: 35px;
}
.expert-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 20px 0;
    line-height: 1.3;
}
.expert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.expert-item {
    text-align: center;
    padding: 0 20px;
}
.expert-item:not(:last-child) {
    border-right: 1px solid #e5e7eb;
}
.expert-item i {
    font-size: 32px;
    color: #0d4ab4;
    margin-bottom: 15px;
    display: block;
}
.expert-item p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #111827;
    font-weight: 500;
}

/* =========================
   CLIENT LOGOS
========================= */
.clients-section {
    padding: 100px 0;
    background: #f8fafc;
    overflow: hidden;
}
.clients-section h2 {
    text-align: center;
    font-size: 35px;
    color: #111827;
    margin-bottom: 60px;
}
.logo-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}
.logo-track {
    display: flex;
    align-items: center;
    gap: 60px;
    width: max-content;
    animation: scrollLogo 35s linear infinite;
}
.logo-item {
    width: 150px;
    height: 90px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .06);
    flex-shrink: 0;
}
.logo-item img {
    max-width: 130px;
    max-height: 60px;
    object-fit: contain;
    opacity: .85;
    transition: .3s;
}
.logo-item:hover img {
    opacity: 1;
    transform: scale(1.05);
}
@keyframes scrollLogo {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* =========================
   FOOTER
========================= */
.footer {
    background: linear-gradient(135deg, hsl(0, 0%, 88%), #d2d4d8);
    color: #000;
    padding: 80px 0 0;
}
.footer-container {
    max-width: 1300px;
    margin: auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    gap: 40px;
    align-items: start;
}
.footer-logo {
    width: auto;
    height: auto;
    max-height: 72px;
    display: block;
    margin-bottom: 16px;
    filter: brightness(1.08) contrast(1.12) saturate(1.05);
}
.footer-col p {
    color: rgba(0, 0, 0, 0.85);
    line-height: 1.8;
    text-align: left;
    max-width: 420px;
}
.footer-col h3 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    position: relative;
}
.footer-col h3::after {
    content: '';
    width: 45px;
    height: 3px;
    background: #0d4ab4;
    position: absolute;
    left: 0;
    bottom: 0;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 14px;
}
.footer-col ul:not(.contact-list) {
    padding-left: 0;
}
.footer-col ul:not(.contact-list) li {
    margin-bottom: 10px;
    line-height: 1.4;
}
.footer-col ul:not(.contact-list) li a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
    text-decoration: none;
    color: rgba(0, 0, 0, 0.85);
    transition: color 0.25s ease, transform 0.25s ease;
}
.footer-col ul:not(.contact-list) li a::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.85rem;
    line-height: 1;
    color: #0d4ab4;
    transition: transform 0.25s ease;
}
.footer-col ul:not(.contact-list) li a:hover {
    color: #0d4ab4;
    transform: translateX(4px);
}
.footer-col ul:not(.contact-list) li a:hover::before {
    transform: translateX(2px);
}
.contact-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, auto);
    grid-auto-flow: column;
    gap: 12px 20px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.85);
    line-height: 1.4;
    transition: color 0.25s ease;
}
.contact-list li a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}
.contact-list li a:hover {
    color: #0d4ab4;
    text-decoration: none;
    padding-left: 0;
    transform: none;
}
.contact-list li:hover {
    color: #0d4ab4;
}
.contact-list li i {
    margin-right: 10px;
    width: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    color: #0d4ab4;
    transition: color 0.25s ease, transform 0.25s ease;
}
.contact-list li:hover i {
    transform: scale(1.08);
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 40px;
    max-width: 1300px;
    margin: 60px auto 0;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    text-align: center;
    padding: 25px 20px;
}
.footer-bottom p {
    color: rgba(0, 0, 0, 0.8);
    font-size: 14px;
    margin: 0;
}

/* =========================
   RESPONSIVE
========================= */
@media (min-width: 993px) {
    .mobile-nav { transform: translateX(100%) !important; visibility: hidden !important; pointer-events: none !important; }
    .mobile-backdrop { display: none !important; }
}
@media (min-width: 993px) and (max-width: 1199px) {
    .nav-container { gap: 16px; padding: 8px 20px; }
    .menu { gap: 16px; }
    .menu li a { font-size: 13px; }
    .mega-menu { min-width: 560px; }
    .mega-container { max-width: 560px; padding: 0 24px; }
    .mega-item { padding: 14px; }
    .mega-content h4 { font-size: 14px; }
    .mega-content p { font-size: 13px; }
}
@media (max-width: 1200px) {
    .hero h1 { font-size: 54px; }
}
@media (max-width: 992px) {
    .menu { display: none; }
    .mobile-menu { display: block; }
    .hero h1 { font-size: 42px; }
    .search-row { flex-direction: column; }
    .search-btn { width: 100%; }
    .mega-menu { display: none; }
    .about-container { grid-template-columns: 1fr; gap: 40px; }
    .about-content h2 { font-size: 20px; }
    .experience-box { right: 20px; bottom: 20px; }
    .footer-container { grid-template-columns: 1fr 1fr; }
    .footer-col:first-child { grid-column: 1 / -1; }
    .nav-container { padding: 8px 16px; }
    .site-navbar .logo img { height: 44px; }
}
@media (max-width: 540px) {
    .nav-container { gap: 12px; padding: 8px 14px; }
}
@media (max-width: 480px) {
    .nav-container { padding: 6px 12px; min-height: 56px; }
    .site-navbar .logo img { height: 38px; }
    .mobile-nav { width: 100%; max-width: 100vw; }
    .mobile-nav li a { padding: 14px 20px; font-size: 14px; min-height: 48px; }
    .mobile-nav-header { padding: 14px 20px; }
    body { padding-top: 56px; }
}
@media (max-width: 360px) {
    .nav-container { padding: 4px 10px; min-height: 50px; gap: 12px; }
    .site-navbar .logo img { height: 32px; }
    .mobile-nav li a { padding: 12px 16px; font-size: 13px; min-height: 44px; gap: 10px; }
    .mobile-nav-header { padding: 12px 16px; }
    body { padding-top: 50px; }
    .hamburger-box { width: 24px; height: 18px; }
    .hamburger-inner, .hamburger-inner::before, .hamburger-inner::after { width: 24px; height: 2px; }
    .hamburger-inner::before { top: -7px; }
    .hamburger-inner::after { top: 7px; }
}
@media (max-width: 768px) {
    .leasing-title {
        color: #fff;
        font-size: 25px;
        font-weight: 600;
        padding-top: 0px;
        padding-bottom: 50px;
        margin-bottom: 8px;
    }
    .tab-content { padding: 25px; }
    .expert-grid { grid-template-columns: 1fr; }
    .expert-item { padding: 20px 0; border-right: none !important; border-bottom: 1px solid #e5e7eb; }
    .expert-item:last-child { border-bottom: none; }
    .expert-title { font-size: 22px; }
    .clients-section { padding: 70px 0; }
    .clients-section h2 { font-size: 30px; }
    .logo-item { width: 140px; height: 80px; }
    .logo-track { gap: 30px; animation-duration: 25s; }
    body { padding-top: 64px; }
    .footer { padding-top: 60px; }
    .footer-container { grid-template-columns: 1fr; gap: 40px; }
    .footer-col:first-child { grid-column: auto; }
    .footer-logo { display: block; margin: 0 auto; }
    .footer-col h3 { text-align: center; }
    .footer-col h3::after { left: 50%; transform: translateX(-50%); }
    .footer-col ul li { text-align: center; }
    .footer-col p { max-width: 100%; }
    .nav-container { padding: 8px 16px; min-height: 60px; }
    .footer-bottom { flex-direction: column; justify-content: center; text-align: center; padding: 18px 16px; gap: 6px; }
    .contact-list {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-auto-flow: row;
    }
    .contact-list li { justify-content: center; }
    .office-card .card-image { height: 180px; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
    .stat-item { padding: 4px 6px; }
    .stat-value { font-size: 0.75rem; }
    .card-price .amount { font-size: 1rem; }
    .property-name { font-size: 0.9rem; }
    .locality-chip { font-size: 0.75rem !important; padding: 3px 10px !important; }
}
@media (max-width: 576px) {
    .nav-container { padding: 8px 14px; min-height: 58px; }
    .hero h1 { font-size: 34px; }
    .hero p { font-size: 16px; }
    .about-section { padding: 70px 20px; }
    .about-content h2 { font-size: 18px; }
    .about-features { grid-template-columns: 1fr; }
    .experience-box { padding: 18px 25px; }
    .experience-box h3 { font-size: 28px; }
}

/* =========================
   MANAGED OFFICES PAGE
========================= */

/* Breadcrumb */
.breadcrumb-item a {
    text-decoration: none;
    color: #0d4ab4;
}
.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Locality chips */
.locality-chip {
    border: 1px solid #dee2e6 !important;
    background: #fff !important;
    color: #495057 !important;
    border-radius: 0 !important;
    padding: 4px 14px !important;
    font-size: 0.8125rem !important;
    transition: all 0.2s ease;
}
.locality-chip:hover {
    border-color: #0d4ab4 !important;
    color: #0d4ab4 !important;
    background: #f0f4ff !important;
}
.locality-chip.active {
    background: #0d4ab4 !important;
    color: #fff !important;
    border-color: #0d4ab4 !important;
}

/* Listing cards */
.office-card {
    border-radius: 0 !important;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e9ecef !important;
}
.office-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1) !important;
}
.office-card .card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}
.office-card .card-body {
    padding: 1rem;
}
.property-name {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.property-address {
    font-size: 0.8125rem;
}
.property-address i {
    color: #0d4ab4;
    width: 14px;
}
.featured-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.img-count {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 8px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 8px;
}
.stat-item {
    background: #f8f9fa;
    padding: 6px 8px;
    text-align: center;
}
.stat-label {
    display: block;
    font-size: 0.65rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
}
.stat-value {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #212529;
}

/* Card price */
.card-price {
    line-height: 1.2;
}
.card-price .price-label {
    font-size: 0.65rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.card-price .amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0d4ab4;
}
.card-price .period {
    font-size: 0.7rem;
    color: #6c757d;
}
.card-price .contact-price {
    font-size: 0.8125rem;
    color: #6c757d;
    font-style: italic;
}

/* Carousel */
.card-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    height: 100%;
}
.card-carousel::-webkit-scrollbar { display: none; }
.carousel-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    height: 100%;
}
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-image .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255,255,255,0.9);
    border: none;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    color: #333;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.card-image:hover .carousel-btn {
    opacity: 1;
}
.card-image .carousel-prev { left: 8px; }
.card-image .carousel-next { right: 8px; }
.card-image .carousel-btn:hover {
    background: #fff;
    color: #0d4ab4;
}
.carousel-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 3;
}
.carousel-dots button {
    width: 7px;
    height: 7px;
    border: none;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}
.carousel-dots button.active {
    background: #fff;
    width: 18px;
}
.placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f3f5;
    color: #adb5bd;
    font-size: 2.5rem;
}

/* Active filters */
.active-filters.has-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef4ff;
    color: #0d4ab4;
    border: 1px solid #cddfff;
    padding: 4px 10px;
    font-size: 0.8125rem;
    font-weight: 500;
}
.filter-tag button {
    background: none;
    border: none;
    color: #0d4ab4;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    opacity: 0.6;
}
.filter-tag button:hover { opacity: 1; }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}
.empty-state i {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 16px;
}

/* Results counter */
.results-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.875rem;
}

/* Pagination wrapper */
.pagination-wrapper nav {
    margin-top: 24px;
}

/* Skeleton loaders */
.skeleton-card {
    background: #fff;
    border: 1px solid #e9ecef;
    overflow: hidden;
    margin-bottom: 1rem;
}
.skeleton-img {
    height: 200px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
.skeleton-body {
    padding: 1rem;
}
.skeleton-line {
    height: 14px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    margin-bottom: 10px;
}
.skeleton-line.short { width: 60%; }
.skeleton-line.stats {
    height: 40px;
    margin-top: 12px;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Nearest section */
.nearest-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid #e9ecef;
}
.nearest-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.nearest-subtitle {
    font-size: 0.8125rem;
    color: #6c757d;
    margin-bottom: 16px;
}
.badge-nearby {
    background: linear-gradient(135deg, #0d4ab4, #1a6bff) !important;
}
.nearest-dist-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 0.75rem;
    padding: 3px 10px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Listing cards grid */
.listing-cards {
    display: flex;
    flex-direction: column;
    gap: 0;
}

@media (max-width: 576px) {
    .office-card .card-image { height: 160px; }
    .results-counter { font-size: 0.8125rem; }
    #filterBar .filter-select { min-width: 100% !important; max-width: 100% !important; }
    #filterBar > div { min-width: 100% !important; max-width: 100% !important; }
    .listing-cards { gap: 0; }
}

/* =========================
   MOBILE OPTIMIZATIONS (320px-540px)
   ========================= */
@media (max-width: 540px) {
    .hero { padding: 100px 14px 40px; min-height: 92vh; }
    .hero h1 { font-size: 26px; }
    .hero p { font-size: 14px; margin-bottom: 24px; }
    .leasing-title { font-size: 20px !important; padding-bottom: 30px !important; }
    .leasing-tabs { flex-direction: column; align-items: center; width: 100%; }
    .leasing-box > div:last-child { flex-direction: column; align-items: center; }
    .leasing-tabs .tab-btn { width: 100%; max-width: 320px; padding: 10px 16px; font-size: 11px; line-height: 1.4; }
    .leasing-tabs .tab-btn span { font-size: 10px; }
    .hero-tab-cta { font-size: 10px; }
    .tab-content { padding: 16px; }
    .tab-content p { font-size: 13px; }
    .search-row { flex-direction: column; gap: 10px; }
    .search-row input { width: 100%; }
    .search-btn { width: 100%; }
    .about-section { padding: 50px 14px; }
    .about-container { gap: 30px; }
    .about-content h2 { font-size: 17px; }
    .about-content p { font-size: 14px; }
    .about-features { gap: 10px; margin: 24px 0; }
    .feature-item { font-size: 13px; padding: 4px 2px; }
    .experience-box { position: relative; right: auto; bottom: auto; margin-top: -10px; padding: 12px 20px; }
    .experience-box h3 { font-size: 24px; }
    .expert-box { padding: 20px 14px; margin: 0 10px; }
    .expert-title { font-size: 18px; margin: 12px 0; }
    .expert-grid { grid-template-columns: 1fr; }
    .expert-item { padding: 16px 0; border-right: none !important; border-bottom: 1px solid #e5e7eb; }
    .expert-item:last-child { border-bottom: none; }
    .expert-item i { font-size: 26px; }
    .expert-item p { font-size: 13px; }
    .clients-section { padding: 40px 0; }
    .clients-section h2 { font-size: 22px; margin-bottom: 30px; }
    .logo-item { width: 110px; height: 65px; }
    .logo-item img { max-width: 90px; max-height: 45px; }
    .logo-track { gap: 20px; animation-duration: 20s; }
    .footer { padding-top: 40px; }
    .footer-container { gap: 30px; padding: 0 14px; }
    .footer-col h3 { font-size: 17px; }
    .footer-bottom { margin-top: 30px; padding: 16px 14px; flex-direction: column; text-align: center; gap: 4px; }
    .footer-bottom p { font-size: 12px; }
    .contact-list { gap: 8px 12px; }
    .contact-list li { font-size: 13px; }
    .modal-card { padding: 24px 20px; margin: 0 12px; }
    .modal-header h3 { font-size: 18px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item { padding: 4px; }
    .stat-value { font-size: 0.7rem; }
    .locality-chip { font-size: 0.68rem !important; padding: 3px 8px !important; }
}

@media (max-width: 400px) {
    .leasing-tabs .tab-btn { max-width: 280px; padding: 8px 14px; font-size: 10px; }
    .leasing-tabs .tab-btn span { font-size: 9px; }
    .hero-tab-cta { font-size: 9px; }
}
@media (max-width: 375px) {
    .hero h1 { font-size: 22px; }
    .hero p { font-size: 13px; }
    .leasing-title { font-size: 18px !important; }
    .about-content h2 { font-size: 15px; }
    .about-content p { font-size: 13px; line-height: 1.7; }
    .expert-title { font-size: 16px; }
    .clients-section h2 { font-size: 20px; }
    .logo-item { width: 90px; height: 55px; }
    .logo-item img { max-width: 75px; max-height: 38px; }
    .footer-container { gap: 24px; }
    .footer-bottom { gap: 2px; }
    .footer-bottom p { font-size: 11px; }
    .contact-list { gap: 6px 10px; }
    .contact-list li { font-size: 12px; }
    .about-features { gap: 8px; }
    .feature-item { font-size: 12px; }
}

@media (max-width: 320px) {
    .hero h1 { font-size: 20px; }
    .hero p { font-size: 12px; }
    .leasing-title { font-size: 16px !important; }
    .tab-btn { font-size: 10px; padding: 8px 12px; }
    .leasing-tabs .tab-btn span { font-size: 8px; }
    .hero-tab-cta { font-size: 9px; }
    .logo-item { width: 80px; height: 48px; }
    .logo-item img { max-width: 65px; max-height: 34px; }
    .logo-track { gap: 14px; }
    .about-section { padding: 36px 10px; }
    .feature-item { font-size: 11px; padding: 3px 0; }
    .footer { padding-top: 30px; }
    .footer-container { padding: 0 10px; gap: 20px; }
    .footer-col h3 { font-size: 15px; }
    .footer-bottom { padding: 12px 10px; }
}
