:root {
    --bg: #fafaf9;
    --bg-alt: #ffffff;
    --fg: #1c1917;
    --fg-muted: #78716c;
    --accent: #dc2626;
    --accent-hover: #b91c1c;
    --border: #e7e5e4;
    --card: #ffffff;
    --shadow: 0 1px 3px rgba(28, 25, 23, 0.08);
    --shadow-lg: 0 4px 12px rgba(28, 25, 23, 0.1);
    --radius: 6px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: auto;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #d6d3d1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a8a29e; }

/* Page Loader */
.loader {
    position: fixed;
    inset: 0;
    background: var(--fg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 24px;
    transition: opacity 0.4s, visibility 0.4s;
}

.loader.done {
    opacity: 0;
    visibility: hidden;
}

.loader-text {
    font-family: 'Fraunces', serif;
    font-size: 28px;
    font-weight: 700;
    color: #fafaf9;
    letter-spacing: -0.5px;
}

.loader-bar {
    width: 160px;
    height: 2px;
    background: #44403c;
    border-radius: 1px;
    overflow: hidden;
}

.loader-fill {
    height: 100%;
    background: var(--accent);
    width: 0;
    transition: width 0.2s;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 250, 249, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-box {
    width: 40px;
    height: 40px;
    background: var(--fg);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 16px;
    color: #fafaf9;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.logo-text {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--fg);
    letter-spacing: -0.3px;
}

.logo-sub {
    font-size: 11px;
    color: var(--fg-muted);
    font-weight: 500;
    margin-top: -2px;
}

.nav {
    display: none;
    align-items: center;
    gap: 32px;
}

@media (min-width: 900px) {
    .nav { display: flex; }
}

.nav a {
    font-size: 16px;
    font-weight: 500;
    color: var(--fg-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.nav a:hover { color: var(--fg); }

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-contact-btn {
    display: inline-flex;
}

@media (max-width: 900px) {
    .header-contact-btn {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .header-contact-btn {
        display: none !important;
    }
}

.phone-link {
    display: none;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--fg);
    text-decoration: none;
    font-size: 14px;
}

@media (min-width: 600px) {
    .phone-link { display: flex; }
}

.phone-link svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover { background: var(--accent-hover); }

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--fg);
}

.btn-outline:hover { border-color: var(--fg); }

.menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 900px) {
    .menu-btn { display: none; }
}

.menu-btn span {
    width: 20px;
    height: 2px;
    background: var(--fg);
    border-radius: 1px;
    transition: 0.2s;
}

.menu-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-btn.active span:nth-child(2) { opacity: 0; }

.menu-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 20px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s;
    z-index: 99;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
}

.mobile-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav a {
    display: block;
    padding: 12px 0;
    font-weight: 500;
    color: var(--fg);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
}

.mobile-nav-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-phone-link {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 12px 16px !important;
    background: var(--bg);
    border-radius: 8px;
    font-weight: 600;
    color: var(--fg) !important;
    text-decoration: none;
    border: 1px solid var(--border) !important;
    transition: background 0.15s;
}

.mobile-phone-link:hover {
    background: var(--border);
}

.mobile-phone-link svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent);
    flex-shrink: 0;
}

.mobile-contact-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 15px;
    border-radius: 8px;
}

/* Hero */
.hero {
    padding: 100px 0 60px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, #fafaf9 0%, #f5f5f4 100%);
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

.hero-content { max-width: 540px; }

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 20px;
}

.hero-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.hero-desc {
    font-size: 16px;
    color: var(--fg-muted);
    margin-bottom: 28px;
    max-width: 440px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

/* Top Stats Bar */
.top-stats-bar {
    background: var(--bg);
}

.top-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 2rem 0 0;
}

.top-stat-item {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.top-stat-num {
    font-family: 'Fraunces', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.top-stat-plus {
    font-family: 'Fraunces', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
}

.top-stat-label {
    font-size: 0.95rem;
    color: var(--fg-muted);
    font-weight: 500;
    margin-left: 0.375rem;
}

.top-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

@media (max-width: 768px) {
    .top-stats {
        gap: 1.25rem;
        padding: 1.5rem 0 0;
    }
    .top-stat-num { font-size: 1.75rem; }
    .top-stat-plus { font-size: 1.25rem; }
    .top-stat-label { font-size: 0.75rem; }
    .top-stat-divider { height: 32px; }
}

@media (max-width: 380px) {
    .top-stats { gap: 0.75rem; }
    .top-stat-num { font-size: 1.5rem; }
    .top-stat-plus { font-size: 1rem; }
    .top-stat-label { font-size: 0.65rem; }
    .top-stat-item { gap: 0.125rem; }
}

.stat-num {
    font-family: 'Fraunces', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--fg);
}

.stat-label {
    font-size: 13px;
    color: var(--fg-muted);
}

.hero-image {
    position: relative;
}

.hero-img-main {
    aspect-ratio: 4/3;
    background: #e7e5e4;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    text-decoration: none;
    color: inherit;
    display: block;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide-info {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
    padding: 16px 20px;
    color: white;
}

.hero-slide-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.hero-slide-price {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 20px;
    color: #fafaf9;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.hero-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--card);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.hero-card-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.hero-card-link:hover {
    transform: scale(1.02);
}

.hero-card-link:visited {
    color: inherit;
}

@media (max-width: 600px) {
    .hero-card {
        left: 10px;
        bottom: -15px;
    }
    
    .hero-card-link {
        padding: 12px 16px;
    }
}

.hero-card-icon {
    width: 44px;
    height: 44px;
    background: #fef2f2;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent);
}

.hero-card-text {
    font-size: 12px;
    color: var(--fg-muted);
}

.hero-card-phone {
    font-weight: 700;
    font-size: 16px;
    color: var(--fg);
}

/* Section */
.section {
    padding: 60px 0;
}

.section-header {
    margin-bottom: 32px;
}

.section-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 8px;
}

.section-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Services */
.services {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.service-item {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.service-item:hover {
    border-color: var(--fg);
    box-shadow: var(--shadow);
}

.service-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
}

.service-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--fg);
}

.service-title {
    font-weight: 700;
    margin-bottom: 6px;
}

.service-desc {
    font-size: 14px;
    color: var(--fg-muted);
}

/* Properties */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.filter-btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: 0.15s;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    text-decoration: none;
    color: var(--fg);
    display: inline-block;
}

.filter-btn:hover { 
    border-color: var(--fg);
    color: var(--fg);
}

.filter-btn.active {
    background: var(--fg);
    color: #fafaf9;
    border-color: var(--fg);
}

.filter-btn:visited {
    color: var(--fg);
}

.filter-btn.active:visited {
    color: #fafaf9;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.property-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.15s, opacity 0.3s, transform 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.property-card:hover { box-shadow: var(--shadow-lg); }

.property-img {
    aspect-ratio: 16/11;
    background: #e7e5e4;
    position: relative;
}

.property-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
}

.property-badge.sale {
    background: var(--fg);
    color: #fafaf9;
}

.property-badge.rent {
    background: #166534;
    color: #fff;
}

.property-body { padding: 12px; }

.property-price {
    font-family: 'Fraunces', serif;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 3px;
}

.property-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.35;
}

.property-loc {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--fg-muted);
    margin-bottom: 12px;
}

.property-loc svg {
    width: 14px;
    height: 14px;
}

.property-specs {
    display: flex;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--fg-muted);
}

.property-specs span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.property-specs svg {
    width: 14px;
    height: 14px;
}

/* Listing Slider */
.listing-slider-wrapper {
    overflow: hidden;
    width: 100%;
}

.listing-slider {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 3%, #000 97%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 3%, #000 97%, transparent 100%);
}

.listing-slider-track {
    display: flex;
    gap: 16px;
    width: max-content;
    will-change: transform;
}

.listing-slider-card {
    flex-shrink: 0;
    width: 250px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.15s, transform 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.listing-slider-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

@media (max-width: 768px) {
    .listing-slider-card {
        width: 220px;
    }

    .listing-slider-track {
        gap: 12px;
    }
}

/* About */
.about {
    background: var(--fg);
    color: #fafaf9;
}

.about .section-label { color: #fca5a5; }

.about .section-title { color: #fafaf9; }

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 900px) {
    .about-grid { grid-template-columns: 1fr 1fr; }
}

.about-text {
    color: #d6d3d1;
    margin-bottom: 16px;
}

.about-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 24px 0;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.about-list svg {
    width: 16px;
    height: 16px;
    stroke: var(--accent);
}

.about-img {
    aspect-ratio: 4/3;
    background: #44403c;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.about-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.about-slide.active {
    opacity: 1;
}

.about-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.about-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.7);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, border-color 0.2s;
}

.about-dot:hover {
    border-color: #fff;
}

.about-dot.active {
    background: #fff;
    border-color: #fff;
}

/* Contact */
.contact {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 900px) {
    .contact-grid { grid-template-columns: 1fr 1.2fr; }
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: var(--fg);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    stroke: #fafaf9;
}

.contact-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--fg-muted);
    margin-bottom: 4px;
}

.contact-value {
    font-weight: 500;
}

.contact-value a {
    color: var(--fg);
    text-decoration: none;
}

.contact-value a:hover { color: var(--accent); }

.contact-hours {
    font-size: 13px;
    color: var(--fg-muted);
    margin-top: 4px;
}

/* Form */
.form-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.form-title {
    font-family: 'Fraunces', serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media (min-width: 480px) {
    .form-row { grid-template-columns: 1fr 1fr; }
}

.form-group { margin-bottom: 16px; }

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.15s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--fg);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Custom Select */
.select-wrap {
    position: relative;
}

.select-trigger {
    width: 100%;
    padding: 10px 12px;
    padding-right: 36px;
    font-size: 14px;
    font-family: inherit;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s;
}

.select-trigger:focus {
    outline: none;
    border-color: var(--fg);
}

.select-trigger::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: 4px solid transparent;
    border-top-color: var(--fg-muted);
}

.select-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: 0.15s;
    z-index: 50;
}

.select-wrap.open .select-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.select-option {
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.1s;
}

.select-option:hover { background: var(--bg); }

.select-option.selected { background: var(--fg); color: #fafaf9; }

/* Footer */
.footer {
    background: var(--fg);
    color: #d6d3d1;
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

@media (min-width: 600px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-logo .logo-box {
    background: #fafaf9;
    color: var(--fg);
}

.footer-logo .logo-text { color: #fafaf9; }

.footer-desc {
    font-size: 14px;
    max-width: 280px;
}

.footer-title {
    font-weight: 700;
    color: #fafaf9;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    color: #d6d3d1;
    text-decoration: none;
    font-size: 14px;
    padding: 4px 0;
    transition: color 0.15s;
}

.footer-links a:hover { color: #fafaf9; }

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid #44403c;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copyright {
    color: #d6d3d1;
}

.footer-developer {
    color: #a8a29e;
    font-size: 12px;
}

.footer-developer a {
    color: #fafaf9;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-developer a:hover {
    color: var(--accent);
}

/* ══════════════════════════════════════════════
   Ofisimiz Page — Photo Gallery
   ══════════════════════════════════════════════ */
.office-hero {
    padding: 3rem 0 1rem;
    text-align: center;
}

.office-hero-desc {
    color: var(--fg-muted);
    font-size: 1rem;
    max-width: 500px;
    margin: 0.5rem auto 0;
}

.office-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.office-gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #e7e5e4;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
}

.office-gallery-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.office-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.office-gallery-item:hover img {
    transform: scale(1.05);
}

.office-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: #a8a29e;
}

.office-empty svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.lightbox-overlay.open {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 2;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.25);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 2;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.25);
}

.lightbox-img-wrap {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img-wrap img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .office-gallery {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 0.75rem;
    }
    .lightbox-prev,
    .lightbox-next {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}

/* Sticky Platform Icons */
.sticky-platforms {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 91;
}

.sticky-platform-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.sticky-platform-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.sticky-platform-btn.sahibinden {
    background: #FFE800;
}

.sticky-platform-btn.hepsiemlak {
    background: #E5202E;
}

.sticky-platform-btn.whatsapp {
    background: #25D366;
}

.sticky-platform-btn svg {
    width: 32px;
    height: 32px;
}

/* Scroll Top */
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 82px;
    width: 40px;
    height: 40px;
    background: var(--fg);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.2s;
    z-index: 90;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top svg {
    width: 20px;
    height: 20px;
    stroke: #fafaf9;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--card);
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s;
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-family: 'Fraunces', serif;
    font-size: 20px;
    font-weight: 700;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.modal-close:hover {
    background: var(--border);
}

.modal-close svg {
    width: 20px;
    height: 20px;
    stroke: var(--fg);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Toastr Custom Styles */
#toast-container > div {
    opacity: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast {
    border-radius: 8px !important;
    padding: 16px 20px !important;
    font-family: 'DM Sans', sans-serif !important;
}

.toast-success {
    background-color: #10b981 !important;
}

.toast-error {
    background-color: #ef4444 !important;
}

.toast-info {
    background-color: #3b82f6 !important;
}

.toast-warning {
    background-color: #f59e0b !important;
}

/* Custom Toast System */
.custom-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    pointer-events: none;
}

.custom-toast {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    pointer-events: auto;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    font-family: 'DM Sans', sans-serif;
}

.custom-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.custom-toast.hide {
    transform: translateX(100%);
    opacity: 0;
}

.custom-toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-toast-icon svg {
    width: 16px;
    height: 16px;
}

.custom-toast.success .custom-toast-icon {
    background: #dcfce7;
    color: #16a34a;
}

.custom-toast.success {
    border-left: 4px solid #16a34a;
}

.custom-toast.error .custom-toast-icon {
    background: #fee2e2;
    color: #dc2626;
}

.custom-toast.error {
    border-left: 4px solid #dc2626;
}

.custom-toast.info .custom-toast-icon {
    background: #dbeafe;
    color: #2563eb;
}

.custom-toast.info {
    border-left: 4px solid #2563eb;
}

.custom-toast.warning .custom-toast-icon {
    background: #fef3c7;
    color: #d97706;
}

.custom-toast.warning {
    border-left: 4px solid #d97706;
}

.custom-toast-content {
    flex: 1;
}

.custom-toast-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
    color: var(--fg);
}

.custom-toast-message {
    font-size: 13px;
    color: var(--fg-muted);
    line-height: 1.4;
}

.custom-toast-close {
    width: 20px;
    height: 20px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--fg-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.15s;
}

.custom-toast-close:hover {
    background: var(--border);
}

.custom-toast-close svg {
    width: 14px;
    height: 14px;
}

@media (max-width: 768px) {
    .custom-toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .custom-toast {
        min-width: auto;
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
/* Search Bar Styles */
.search-bar {
    margin-bottom: 24px;
}

.search-input-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 12px 50px 12px 16px;
    font-size: 16px;
    font-family: inherit;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.search-btn,
.clear-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    background: var(--accent);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.search-btn:hover {
    background: var(--accent-hover);
}

.clear-search-btn {
    right: 48px;
    background: var(--fg-muted);
}

.clear-search-btn:hover {
    background: var(--fg);
}

.search-btn svg,
.clear-search-btn svg {
    width: 18px;
    height: 18px;
}

/* Loading Indicator */
.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 20px;
    color: var(--fg-muted);
    font-size: 14px;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top: 2px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results Info */
.results-info {
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--fg-muted);
    text-align: center;
}

.results-info #searchTerm {
    font-weight: 600;
    color: var(--accent);
}

/* No Results */
.no-results {
    grid-column: 1 / -1; /* Span full width of grid */
    text-align: center;
    padding: 60px 20px;
    color: var(--fg-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.no-results-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    opacity: 0.5;
}

.no-results-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--fg-muted);
}

.no-results h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--fg);
}

.no-results p {
    font-size: 14px;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Pagination Container */
.pagination-container {
    margin-top: 40px;
}

.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.pagination-btn {
    min-width: 40px;
    text-align: center;
    padding: 8px 12px;
}

.pagination-btn:disabled {
    opacity: 1;
    cursor: default;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

/* When filter-bar only contains filter-buttons (homepage), center them */
.filter-bar:has(.filter-buttons:only-child) {
    justify-content: center;
}

/* Fallback for browsers that don't support :has() */
.filter-bar .filter-buttons:only-child {
    margin: 0 auto;
}

.filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: 0.15s;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    text-decoration: none;
    color: var(--fg);
    display: inline-block;
}

.filter-btn:hover { 
    border-color: var(--fg);
    color: var(--fg);
}

.filter-btn.active {
    background: var(--fg);
    color: #fafaf9;
    border-color: var(--fg);
}

/* Sort Dropdown */
.sort-dropdown {
    position: relative;
}

.sort-dropdown .select-wrap {
    min-width: 140px;
}

.sort-dropdown .select-trigger {
    font-size: 13px;
    font-weight: 500;
    padding: 8px 32px 8px 12px;
}

.sort-dropdown .select-trigger::after {
    right: 8px;
    border-width: 3px;
}

.sort-dropdown .select-option {
    font-size: 13px;
    padding: 8px 12px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .search-input-wrapper {
        max-width: none;
    }
    
    .search-input {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 14px 50px 14px 16px;
    }
    
    .search-btn,
    .clear-search-btn {
        width: 40px;
        height: 40px;
    }
    
    .clear-search-btn {
        right: 52px;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .filter-buttons {
        justify-content: center;
        gap: 6px;
    }
    
    .filter-btn {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .sort-dropdown {
        align-self: center;
    }
    
    .sort-dropdown .select-wrap {
        width: 100%;
        max-width: 200px;
    }
    
    .sort-dropdown .select-trigger {
        padding: 10px 36px 10px 14px;
        font-size: 14px;
    }
    
    .results-info {
        font-size: 13px;
        margin-bottom: 16px;
    }
    
    .no-results {
        padding: 40px 20px;
        min-height: 250px;
    }
    
    .no-results-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 16px;
    }
    
    .no-results h3 {
        font-size: 18px;
    }
    
    .no-results p {
        font-size: 13px;
    }
    
    .pagination {
        gap: 6px;
    }
    
    .pagination-btn {
        min-width: 36px;
        padding: 6px 10px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .search-input {
        padding: 12px 90px 12px 14px;
    }
    
    .filter-bar {
        gap: 8px;
    }
    
    .filter-buttons {
        width: 100%;
    }
    
    .filter-btn {
        flex: 1;
        min-width: 0;
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .sort-dropdown .select-wrap {
        max-width: none;
    }
    
    .sort-dropdown .select-trigger {
        font-size: 13px;
    }
}
/* Footer Mobile Responsive */
@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .footer-copyright {
        order: 2;
    }
    
    .footer-developer {
        order: 1;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .footer-bottom {
        padding-top: 20px;
    }
    
    .footer-copyright {
        font-size: 12px;
    }
    
    .footer-developer {
        font-size: 10px;
    }
}