/* ==========================================================
   KURUOĞLU GAYRİMENKUL — Complete Stylesheet
   Primary: #002147  |  Secondary: #d2b48c
   Premium · Corporate · Clean · Modern · Trustworthy
   ========================================================== */

/* --------------------------------------------------------
   1. CSS VARIABLES
   -------------------------------------------------------- */
:root {
    --primary: #002147;
    --primary-light: #003366;
    --primary-dark: #001530;
    --secondary: #d2b48c;
    --secondary-light: #e8d5b7;
    --secondary-dark: #b8956a;

    --text: #1a1a2e;
    --text-light: #6c757d;
    --text-muted: #9ca3af;

    --bg: #f8f9fa;
    --bg-alt: #f0f2f5;
    --white: #ffffff;
    --border: #e5e7eb;

    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);

    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;

    --transition: all 0.3s ease;
}

/* --------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

ul,
ol {
    list-style: none;
}

button,
input,
select,
textarea {
    font: inherit;
    border: none;
    outline: none;
    background: none;
}

button {
    cursor: pointer;
}

h1, h2, h3, h4 {
    line-height: 1.3;
    color: var(--primary);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

/* --------------------------------------------------------
   3. LAYOUT
   -------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* --------------------------------------------------------
   4. NAVBAR
   -------------------------------------------------------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s ease;
}

.navbar--scrolled {
    box-shadow: var(--shadow);
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 20px;
}

.navbar__logo img {
    height: 44px;
    width: auto;
}

.navbar__nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.navbar__list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.navbar__link {
    display: block;
    padding: 8px 16px;
    font-size: 0.925rem;
    font-weight: 500;
    color: var(--text);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.navbar__link:hover,
.navbar__link.active {
    color: var(--primary);
    background-color: var(--bg);
}

.navbar__link.active {
    font-weight: 600;
}

/* Navbar Dropdown */
.navbar__dropdown {
    position: relative;
}

.navbar__dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    padding: 8px 0;
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
    z-index: 100;
}

.navbar__dropdown:hover .navbar__dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navbar__dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: var(--text);
    transition: var(--transition);
}

.navbar__dropdown-menu a:hover {
    background-color: var(--bg);
    color: var(--primary);
}

/* Navbar Phone Button */
.navbar__phone {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius);
    background-color: var(--primary);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.navbar__phone:hover {
    background-color: var(--primary-light);
    color: var(--white);
}

/* Navbar Mobile Toggle */
.navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
}

.navbar__toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.navbar__toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar__toggle.open span:nth-child(2) {
    opacity: 0;
}

.navbar__toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --------------------------------------------------------
   5. HERO SECTION
   -------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    flex-direction: column;
    background-color: var(--primary-dark);
}

.hero__search {
    position: relative;
    z-index: 10;
    padding: 32px 0 24px;
    background-color: var(--primary);
    border-bottom: 3px solid var(--secondary);
}

.hero__search-title {
    width: 100%;
    color: var(--white);
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
}

.hero__search-inner {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.hero__field {
    flex: 1;
    min-width: 180px;
    position: relative;
}

.hero__field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8rem;
    color: var(--secondary-light);
    font-weight: 500;
}

.hero__field select,
.hero__field input {
    width: 100%;
    padding: 14px 16px;
    background-color: var(--white);
    color: var(--text);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    border: 2px solid transparent;
    transition: var(--transition);
    appearance: auto;
}

.hero__field select:focus,
.hero__field input:focus {
    border-color: var(--secondary);
}

.hero__btn {
    padding: 14px 32px;
    background-color: var(--secondary);
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
    cursor: pointer;
    border: none;
}

.hero__btn:hover {
    background-color: var(--secondary-dark);
    color: var(--white);
}

/* Hero Map */
.hero__map {
    flex: 1;
    position: relative;
    min-height: 500px;
}

.hero__map #heroMap {
    width: 100%;
    height: 100%;
    min-height: 500px;
}

/* --------------------------------------------------------
   6. SECTION (Reusable)
   -------------------------------------------------------- */
.section {
    padding: 64px 0;
}

.section--alt {
    background-color: var(--white);
}

.section__header {
    text-align: center;
    margin-bottom: 48px;
}

.section__title {
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary);
    margin: 12px auto 0;
    border-radius: 2px;
}

.section__subtitle {
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --------------------------------------------------------
   7. CATEGORY CARDS
   -------------------------------------------------------- */
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.category-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg);
    border-radius: var(--radius-sm);
    color: var(--primary);
    flex-shrink: 0;
}

.category-card__text h3 {
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.category-card__text p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* --------------------------------------------------------
   8. PROPERTY GRID & CARD
   -------------------------------------------------------- */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.property-card {
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.property-card__link {
    display: block;
    color: inherit;
}

.property-card__img {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: var(--bg-alt);
}

.property-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.property-card:hover .property-card__img img {
    transform: scale(1.05);
}

/* Card Tags */
.card__tag {
    position: absolute;
    top: 12px;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.card__tag--type {
    left: 12px;
    background-color: var(--primary);
    color: var(--white);
}

.card__tag--category {
    right: 12px;
    background-color: var(--secondary);
    color: var(--primary);
}

/* Card Badge */
.card__badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 5px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
}

.card__badge--sold {
    background-color: #dc2626;
    color: #fff;
}

.card__badge--rented {
    background-color: #2563eb;
    color: #fff;
}

/* Card Body */
.property-card__body {
    padding: 20px;
}

.property-card__title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-card__location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.property-card__features {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.property-card__feat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.property-card__price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* --------------------------------------------------------
   9. AGENT GRID & CARD
   -------------------------------------------------------- */
.agent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.agent-card {
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
    text-align: center;
    padding: 32px 24px;
}

.agent-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.agent-card__link {
    display: block;
    color: inherit;
}

.agent-card__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    transition: var(--transition);
}

.agent-card:hover .agent-card__avatar {
    background-color: var(--secondary);
}

.agent-card__initials {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
}

.agent-card__body {
    /* wrapper */
}

.agent-card__name {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.agent-card__role {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.agent-card__stat {
    font-size: 0.85rem;
    color: var(--secondary-dark);
    font-weight: 600;
}

/* --------------------------------------------------------
   10. BLOG GRID & CARD
   -------------------------------------------------------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.blog-card {
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.blog-card__link {
    display: block;
    color: inherit;
}

.blog-card__img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card__img--placeholder {
    background-color: var(--bg-alt);
}

.blog-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card__body {
    padding: 20px;
}

.blog-card__date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
}

.blog-card__title {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--text);
}

.blog-card__excerpt {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.blog-card__more {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    transition: color 0.2s ease;
}

.blog-card:hover .blog-card__more {
    color: var(--secondary-dark);
}

/* --------------------------------------------------------
   11. PAGE HEADER
   -------------------------------------------------------- */
.page-header {
    background-color: var(--primary);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 8px;
}

.page-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

/* --------------------------------------------------------
   12. FILTER BAR
   -------------------------------------------------------- */
.filter-bar {
    background-color: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 32px;
    border: 1px solid var(--border);
}

.filter-bar__form {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    align-items: end;
}

.filter-bar__group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-bar__group label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

.filter-bar__group select,
.filter-bar__group input {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text);
    background-color: var(--white);
    transition: var(--transition);
    appearance: auto;
}

.filter-bar__group select:focus,
.filter-bar__group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 33, 71, 0.1);
}

.filter-bar__submit {
    padding: 10px 24px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.9rem;
    border: none;
}

.filter-bar__submit:hover {
    background-color: var(--primary-light);
}

/* --------------------------------------------------------
   13. LISTINGS LAYOUT (Split View)
   -------------------------------------------------------- */
.listings-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: calc(100vh - 72px);
}

.listings-layout__list {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(100vh - 72px);
}

.listings-layout__map {
    position: sticky;
    top: 72px;
    height: calc(100vh - 72px);
}

/* --------------------------------------------------------
   14. PROPERTY DETAIL
   -------------------------------------------------------- */
.detail {
    padding: 32px 0 64px;
}

/* Layout: Content (left) + Sidebar (right) */
.detail__layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

/* Gallery: Thumbs (left strip) + Main Image */
.detail__gallery {
    display: flex;
    gap: 10px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--bg-alt);
    margin-bottom: 32px;
}

/* Thumbnail Strip — vertical left column */
.detail__gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px;
    width: 90px;
    flex-shrink: 0;
    overflow-y: auto;
    background-color: var(--white);
}

.detail__gallery-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    flex-shrink: 0;
}

.detail__gallery-thumb.active,
.detail__gallery-thumb:hover {
    border-color: var(--primary);
}

.detail__gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Main Image */
.detail__gallery-main {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.detail__gallery-main img {
    width: 100%;
    height: auto;
    display: block;
}

.detail__title {
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    margin-bottom: 8px;
}

.detail__location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

.detail__price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

/* Sidebar — sticky */
.detail__sidebar {
    position: sticky;
    top: 100px;
}

/* Quick Action Buttons */
.detail__quick-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.detail__quick-actions .btn {
    /* natural width */
}

/* Agent Mini Card */
.detail__agent-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background-color: var(--bg);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    max-width: 320px;
}

.detail__agent-mini-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.detail__agent-mini-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.detail__agent-mini-role {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Quick Info Grid */
.detail__quick-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1px;
    background-color: var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 32px;
}

.detail__quick-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 8px;
    background-color: var(--white);
    text-align: center;
}

.detail__quick-info-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.detail__quick-info-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

/* Specs Grid */
.detail__specs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1px;
    background-color: var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 32px;
}

.detail__spec {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background-color: var(--white);
}

.detail__spec-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg);
    border-radius: var(--radius-sm);
    color: var(--primary);
    flex-shrink: 0;
}

.detail__spec-label {
    font-size: 0.8rem;
    color: var(--text-light);
}

.detail__spec-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

/* Features */
.detail__features {
    margin-bottom: 32px;
}

.detail__features h2 {
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.detail__feature-group {
    margin-bottom: 20px;
}

.detail__feature-group h3 {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.detail__feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail__feature-tag {
    padding: 6px 14px;
    background-color: var(--bg);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text);
    border: 1px solid var(--border);
}

/* Description */
.detail__description {
    margin-bottom: 32px;
}

.detail__description h2 {
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.detail__description-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-light);
}

.detail__description-text p {
    margin-bottom: 12px;
}

/* Detail Map */
.detail__map {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 32px;
    height: 300px;
}

/* --------------------------------------------------------
   15. SIDEBAR
   -------------------------------------------------------- */
.sidebar-card {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
}

.sidebar-card__title {
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

/* Agent Sidebar */
.sidebar-agent {
    text-align: center;
}

.sidebar-agent__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.5rem;
    font-weight: 700;
}

.sidebar-agent__name {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.sidebar-agent__role {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

.sidebar-agent__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* --------------------------------------------------------
   16. BUTTONS
   -------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    border: none;
}

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

.btn--primary:hover {
    background-color: var(--primary-light);
    color: var(--white);
}

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

.btn--secondary:hover {
    background-color: var(--secondary-dark);
    color: var(--white);
}

.btn--whatsapp {
    background-color: #25d366;
    color: #fff;
}

.btn--whatsapp:hover {
    background-color: #1da851;
    color: #fff;
}

.btn--outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background-color: transparent;
}

.btn--outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn--block {
    width: 100%;
}

/* --------------------------------------------------------
   17. FORMS
   -------------------------------------------------------- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-form label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: var(--transition);
    background-color: var(--white);
    color: var(--text);
    appearance: auto;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 33, 71, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* --------------------------------------------------------
   18. REQUEST & CONTACT PAGE
   -------------------------------------------------------- */
.request-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 48px 0;
}

.request-page__form {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

.request-page__info {
    background-color: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    padding: 32px;
}

.request-page__info h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.request-page__info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
    line-height: 1.7;
}

/* --------------------------------------------------------
   19. AGENT DETAIL
   -------------------------------------------------------- */
.agent-detail__header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    padding: 32px;
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.agent-detail__avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.agent-detail__info h1 {
    margin-bottom: 4px;
}

.agent-detail__contact {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.agent-detail__contact a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-light);
    transition: color 0.2s ease;
}

.agent-detail__contact a:hover {
    color: var(--primary);
}

.agent-detail__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

/* --------------------------------------------------------
   20. CHARTS (Lightweight Bar)
   -------------------------------------------------------- */
.chart-bar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chart-bar__item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chart-bar__label {
    min-width: 100px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.chart-bar__track {
    flex: 1;
    height: 24px;
    background-color: var(--bg);
    border-radius: 12px;
    overflow: hidden;
}

.chart-bar__fill {
    height: 100%;
    border-radius: 12px;
    background-color: var(--primary);
    transition: width 0.6s ease;
}

.chart-bar__value {
    min-width: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: right;
}

/* --------------------------------------------------------
   21. BREADCRUMB
   -------------------------------------------------------- */
.breadcrumb {
    padding: 16px 0;
    font-size: 0.85rem;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.breadcrumb li::after {
    content: '›';
    margin-left: 8px;
    color: var(--text-muted);
}

.breadcrumb li:last-child::after {
    display: none;
}

.breadcrumb li a {
    color: var(--text-light);
    transition: color 0.2s ease;
}

.breadcrumb li a:hover {
    color: var(--primary);
}

.breadcrumb li.active {
    color: var(--text);
    font-weight: 500;
}

.page-header .breadcrumb li a,
.page-header .breadcrumb li::after,
.page-header .breadcrumb li.active {
    color: rgba(255, 255, 255, 0.7);
}

.page-header .breadcrumb li a:hover {
    color: var(--white);
}

/* --------------------------------------------------------
   22. PAGINATION
   -------------------------------------------------------- */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination ul {
    display: flex;
    gap: 4px;
    align-items: center;
}

.pagination li a,
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    border: 1px solid var(--border);
    transition: var(--transition);
    background-color: var(--white);
    color: var(--text);
}

.pagination li a:hover {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.pagination li.active a {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.pagination li.dots span {
    border: none;
    background-color: transparent;
}

/* --------------------------------------------------------
   23. FLASH MESSAGES
   -------------------------------------------------------- */
.flash {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.flash--success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.flash--error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.flash--info {
    background-color: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* --------------------------------------------------------
   24. SEO BLOCK
   -------------------------------------------------------- */
.seo-block {
    padding: 48px 0;
    background-color: var(--white);
    border-top: 1px solid var(--border);
}

.seo-block__content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.seo-block__content h2 {
    margin-bottom: 16px;
}

.seo-block__content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* --------------------------------------------------------
   25. FOOTER
   -------------------------------------------------------- */
.footer {
    background-color: #001530;
    color: var(--white);
    padding: 64px 0 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer__col {
    /* wrapper */
}

.footer__logo {
    height: 50px;
    width: auto;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer__desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer__title {
    font-size: 1.05rem;
    color: var(--white);
    margin-bottom: 16px;
    font-weight: 600;
}

.footer__links li {
    margin-bottom: 10px;
}

.footer__links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

.footer__links a:hover {
    color: var(--secondary);
}

.footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer__contact svg {
    color: var(--secondary);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer__contact a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

.footer__contact a:hover {
    color: var(--secondary);
}

.footer__bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------------
   26. CALCULATOR CARDS & PAGES
   -------------------------------------------------------- */
.calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.calc-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
    text-align: center;
}

.calc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.calc-card__icon {
    width: 64px;
    height: 64px;
    background-color: var(--bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--primary);
}

.calc-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.calc-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Calculator Page Layout */
.calc-page {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}

.calc-page__title {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    color: var(--primary);
    margin-bottom: 12px;
}

.calc-page__desc {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Calculator Form */
.calc-form {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 32px;
}

.calc-form__input {
    width: 100%;
    padding: 14px 16px;
    font-size: 1.15rem;
    font-weight: 600;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s ease;
    color: var(--text);
}

.calc-form__input:focus {
    outline: none;
    border-color: var(--primary);
}

.calc-form__btn {
    margin-top: 16px;
    padding: 14px;
    font-size: 1rem;
}

.calc-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.calc-form__help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--text-muted);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    cursor: help;
    vertical-align: middle;
    margin-left: 4px;
}

/* Calculator Alerts */
.calc-alert {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.calc-alert--success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.calc-alert--warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Calculator Results */
.calc-result {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 32px;
}

.calc-result__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.calc-result__item:last-child {
    border-bottom: none;
}

.calc-result__item--total {
    border-top: 2px solid var(--primary);
    border-bottom: none;
    margin-top: 4px;
    padding-top: 18px;
}

.calc-result__label {
    font-size: 0.95rem;
    color: var(--text-light);
}

.calc-result__item--total .calc-result__label {
    font-weight: 700;
    color: var(--text);
    font-size: 1rem;
}

.calc-result__value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.calc-result__item--total .calc-result__value {
    font-size: 1.3rem;
    color: var(--secondary-dark);
}

/* Calculator Info */
.calc-info {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.calc-info h2 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.calc-info h3 {
    font-size: 1.05rem;
    margin-top: 20px;
    margin-bottom: 10px;
}

.calc-info p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 8px;
}

.calc-info ul {
    list-style: none;
    padding: 0;
}

.calc-info ul li {
    padding: 6px 0 6px 20px;
    position: relative;
    color: var(--text-light);
    line-height: 1.6;
}

.calc-info ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    background-color: var(--secondary);
    border-radius: 50%;
}

/* Calculator Sidebar Nav */
.calc-nav {
    list-style: none;
    padding: 0;
}

.calc-nav li {
    margin-bottom: 4px;
}

.calc-nav__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}

a.calc-nav__item:hover {
    background-color: var(--bg-alt);
    color: var(--primary);
}

.calc-nav__item--active {
    background-color: var(--primary);
    color: var(--white);
    font-weight: 600;
}

.calc-nav__item--active svg {
    stroke: var(--white);
}

/* Calculator Page Sidebar sticky */
.calc-page__sidebar {
    position: sticky;
    top: 100px;
}

/* --------------------------------------------------------
   27. MASCOT FAB
   -------------------------------------------------------- */
.mascot-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.mascot-fab__btn {
    width: 150px;
    height: 150px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
    animation: mascot-bounce 3s ease-in-out infinite;
}

.mascot-fab__btn:hover {
    transform: scale(1.1);
}

.mascot-fab__btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Speech Bubbles */
.mascot-fab__bubbles {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.9);
    transition: all 0.3s ease;
}

.mascot-fab.active .mascot-fab__bubbles {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.mascot-fab__bubble {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.mascot-fab__bubble:hover {
    transform: translateX(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.mascot-fab__bubble--whatsapp {
    background-color: var(--white);
    color: #25d366;
    border: 1.5px solid #25d366;
}

.mascot-fab__bubble--request {
    background-color: var(--white);
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

@keyframes mascot-bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

/* --------------------------------------------------------
   27. LEAFLET MAP OVERRIDES
   -------------------------------------------------------- */
.map-pin-icon {
    background: none !important;
    border: none !important;
}

.map-pin-icon svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.2s ease;
}

.map-pin-icon:hover svg {
    transform: scale(1.15);
}

.leaflet-popup-content-wrapper {
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-lg) !important;
}

.leaflet-popup-content {
    margin: 0 !important;
    padding: 0 !important;
}

.map-popup {
    width: 250px;
}

.map-popup__img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0;
}

.map-popup__body {
    padding: 12px 16px;
}

.map-popup__title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.map-popup__price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.map-popup__info {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* --------------------------------------------------------
   28. SKELETON LOADER
   -------------------------------------------------------- */
.skeleton {
    background: linear-gradient(90deg, var(--bg) 25%, var(--bg-alt) 50%, var(--bg) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --------------------------------------------------------
   29. RESPONSIVE — TABLET (max-width: 1024px)
   -------------------------------------------------------- */
@media (max-width: 1024px) {
    .detail__layout {
        grid-template-columns: 1fr;
    }

    .detail__sidebar {
        position: static;
    }

    .detail__gallery-thumbs {
        flex-direction: row;
        width: 100%;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .detail__gallery {
        flex-direction: column-reverse;
    }

    .detail__gallery-thumb {
        width: 70px;
    }

    .detail__gallery-main img {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }

    .calc-page {
        grid-template-columns: 1fr;
    }

    .calc-page__sidebar {
        position: static;
    }

    .calc-form__row {
        grid-template-columns: 1fr;
    }

    .calc-result__item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .listings-layout {
        grid-template-columns: 1fr;
    }

    .listings-layout__map {
        height: 350px;
        position: relative;
        top: 0;
    }

    .listings-layout__list {
        max-height: none;
    }

    .request-page {
        grid-template-columns: 1fr;
    }

    .agent-detail__stats {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------
   30. RESPONSIVE — MOBILE (max-width: 768px)
   -------------------------------------------------------- */
@media (max-width: 768px) {
    /* Navbar Mobile */
    .navbar__nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background-color: var(--white);
        padding: 20px;
        transform: translateY(-120%);
        transition: transform 0.3s ease;
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }

    .navbar__nav.open {
        transform: translateY(0);
    }

    .navbar__list {
        flex-direction: column;
        gap: 0;
    }

    .navbar__link {
        padding: 12px 16px;
        width: 100%;
        border-radius: 0;
        border-bottom: 1px solid var(--border);
    }

    .navbar__dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: var(--bg);
        border-radius: 0;
    }

    .navbar__phone span {
        display: none;
    }

    .navbar__phone {
        padding: 10px;
    }

    .navbar__toggle {
        display: flex;
    }

    /* Hero Mobile */
    .hero__search-inner {
        flex-direction: column;
    }

    .hero__field {
        min-width: 100%;
    }

    .hero__map {
        min-height: 350px;
    }

    .hero__map #heroMap {
        min-height: 350px;
    }

    /* Grids */
    .property-grid {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr;
    }

    .detail__specs {
        grid-template-columns: 1fr 1fr;
    }

    .detail__quick-actions {
        flex-direction: column;
    }

    /* Sections */
    .section {
        padding: 40px 0;
    }

    /* Agent Detail */
    .agent-detail__header {
        flex-direction: column;
        text-align: center;
    }

    .agent-detail__contact {
        justify-content: center;
    }
}

/* --------------------------------------------------------
   31. RESPONSIVE — SMALL MOBILE (max-width: 480px)
   -------------------------------------------------------- */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .detail__specs {
        grid-template-columns: 1fr;
    }

    .property-card__features {
        gap: 10px;
    }

    .hero__btn {
        width: 100%;
    }

    .filter-bar__form {
        grid-template-columns: 1fr;
    }

    .categories {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------
   28. PARTNERS CAROUSEL
   -------------------------------------------------------- */
.partners {
    overflow: hidden;
    position: relative;
    padding: 8px 0;
}

.partners__track {
    display: flex;
    gap: 32px;
    animation: partnersScroll 30s linear infinite;
    width: max-content;
}

.partners__track:hover {
    animation-play-state: paused;
}

.partner-card {
    flex: 0 0 280px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    text-align: center;
    transition: var(--transition);
}

.partner-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--secondary);
    transform: translateY(-2px);
}

.partner-card__name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.partner-card__desc {
    font-size: .85rem;
    color: var(--text-light);
    line-height: 1.5;
}

@keyframes partnersScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
