/* =====================================================
   NAZIL — Premium Rental Platform
   Design System: Editorial Warmth × Modern Hospitality
   ===================================================== */

:root {
    /* Palette — warm, refined, distinctly Moroccan */
    --terracotta: #C85A3E;
    --terracotta-dark: #A04428;
    --saffron: #E8A33D;
    --ink: #1C1A17;
    --charcoal: #3D3A35;
    --stone-900: #4A4540;
    --stone-700: #6B6561;
    --stone-500: #8F8883;
    --stone-300: #C4BEB8;
    --stone-100: #EDE8E2;
    --stone-50: #F7F4EF;
    --cream: #FBF8F3;
    --white: #FFFFFF;
    --sage: #7A8471;
    --success: #5A8A4F;
    --danger: #C44545;
    --warning: #D99A2B;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(28,26,23,.06), 0 1px 3px rgba(28,26,23,.04);
    --shadow-md: 0 4px 12px rgba(28,26,23,.08), 0 2px 4px rgba(28,26,23,.04);
    --shadow-lg: 0 12px 32px rgba(28,26,23,.12), 0 4px 12px rgba(28,26,23,.06);
    --shadow-xl: 0 24px 56px rgba(28,26,23,.16), 0 8px 20px rgba(28,26,23,.08);
    
    /* Typography */
    --font-display: 'Fraunces', 'Amiri', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', 'Tajawal', -apple-system, sans-serif;
    --font-arabic: 'Tajawal', 'Amiri', sans-serif;
    
    /* Layout */
    --container: 1280px;
    --radius-sm: 8px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 999px;
    
    --header-h: 80px;
    --transition: 280ms cubic-bezier(.4, 0, .2, 1);
}

/* =====================================================
   Reset & Base
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

[dir="rtl"] body {
    font-family: var(--font-arabic);
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

a:hover { color: var(--terracotta); }

button {
    font-family: inherit;
    font-size: inherit;
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink);
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 {
    font-family: var(--font-arabic);
    font-weight: 700;
    letter-spacing: 0;
}

/* =====================================================
   Layout
   ===================================================== */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}

.section {
    padding: 80px 0;
}

.section-sm { padding: 48px 0; }

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

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 500;
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--stone-700);
    font-size: 1.05rem;
    max-width: 600px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--terracotta);
    margin-bottom: 16px;
}

.eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--terracotta);
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-weight: 600;
    font-size: .95rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all var(--transition);
    border: 1.5px solid transparent;
    white-space: nowrap;
    text-align: center;
}

.btn-primary {
    background: var(--ink);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--terracotta);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background: var(--terracotta);
    color: var(--white);
}
.btn-accent:hover {
    background: var(--terracotta-dark);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border-color: var(--ink);
    color: var(--ink);
}
.btn-outline:hover {
    background: var(--ink);
    color: var(--white);
}

.btn-ghost {
    background: var(--stone-100);
    color: var(--ink);
}
.btn-ghost:hover {
    background: var(--stone-300);
    color: var(--ink);
}

.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* =====================================================
   Header
   ===================================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(251, 248, 243, .85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(28,26,23,.06);
    transition: all var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: 32px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
    flex-shrink: 0;
}

[dir="rtl"] .brand { font-family: var(--font-arabic); font-weight: 800; }

.brand-mark {
    width: 40px;
    height: 40px;
    background: var(--ink);
    color: var(--saffron);
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

.brand-mark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, var(--terracotta), transparent 60%);
    opacity: .5;
}

.brand-mark span { position: relative; z-index: 1; }

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.nav a {
    padding: 8px 18px;
    font-size: .95rem;
    font-weight: 500;
    color: var(--stone-900);
    border-radius: var(--radius-pill);
    transition: all var(--transition);
}

.nav a:hover,
.nav a.active {
    color: var(--ink);
    background: var(--stone-100);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--stone-300);
    font-size: .85rem;
    font-weight: 600;
    transition: all var(--transition);
}

.lang-toggle:hover {
    border-color: var(--ink);
    background: var(--stone-100);
}

.user-menu {
    position: relative;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 6px 5px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--stone-300);
    background: var(--white);
    transition: box-shadow var(--transition);
}

[dir="rtl"] .user-menu-trigger {
    padding: 5px 16px 5px 6px;
}

.user-menu-trigger:hover {
    box-shadow: var(--shadow-md);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--saffron);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: .85rem;
    text-transform: uppercase;
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 240px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition);
}

[dir="rtl"] .user-menu-dropdown {
    right: auto;
    left: 0;
}

.user-menu.open .user-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    font-size: .9rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.user-menu-dropdown a:hover {
    background: var(--stone-100);
    color: var(--ink);
}

.menu-divider {
    height: 1px;
    background: var(--stone-100);
    margin: 6px 0;
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-pill);
    border: 1px solid var(--stone-300);
}

.mobile-toggle svg { width: 20px; height: 20px; }

/* =====================================================
   HERO
   ===================================================== */
.hero {
    position: relative;
    padding: 60px 0 100px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--cream) 0%, var(--stone-50) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(232, 163, 61, .15), transparent 70%);
    border-radius: 50%;
    filter: blur(20px);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(200, 90, 62, .12), transparent 70%);
    border-radius: 50%;
    filter: blur(24px);
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-text { max-width: 580px; }

.hero-title {
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-title em {
    font-style: italic;
    color: var(--terracotta);
    font-weight: 500;
}

[dir="rtl"] .hero-title em {
    font-style: normal;
    color: var(--terracotta);
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--stone-700);
    margin-bottom: 32px;
    line-height: 1.6;
    max-width: 480px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--stone-300);
}

.hero-stat-num {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 4px;
}

[dir="rtl"] .hero-stat-num { font-family: var(--font-arabic); font-weight: 700; }

.hero-stat-lbl {
    font-size: .85rem;
    color: var(--stone-700);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    aspect-ratio: 4/5;
    max-width: 520px;
    margin-inline-start: auto;
}

.hero-img-main {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    height: 90%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    animation: floatIn 1s cubic-bezier(.4,0,.2,1) both;
}

.hero-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-img-secondary {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 55%;
    aspect-ratio: 1;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 8px solid var(--cream);
    box-shadow: var(--shadow-lg);
    animation: floatIn 1s .2s cubic-bezier(.4,0,.2,1) both;
}

.hero-img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-badge {
    position: absolute;
    top: 20%;
    left: -20px;
    background: var(--white);
    padding: 12px 18px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .85rem;
    font-weight: 600;
    animation: floatIn 1s .4s cubic-bezier(.4,0,.2,1) both;
    z-index: 3;
}

[dir="rtl"] .hero-badge { left: auto; right: -20px; }

.hero-badge-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--saffron);
    display: grid;
    place-items: center;
    color: var(--ink);
}

@keyframes floatIn {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   Search Bar (Airbnb-style)
   ===================================================== */
.search-bar {
    background: var(--white);
    border-radius: var(--radius-pill);
    padding: 10px;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 1.2fr auto;
    align-items: center;
    max-width: 900px;
    margin-top: 32px;
    position: relative;
    z-index: 5;
}

.search-field {
    padding: 14px 24px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background var(--transition);
    position: relative;
}

.search-field + .search-field::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 28px;
    background: var(--stone-300);
}

[dir="rtl"] .search-field + .search-field::before {
    left: auto;
    right: 0;
}

.search-field:hover {
    background: var(--stone-100);
}

.search-field:hover + .search-field::before,
.search-field:has(+ .search-field:hover)::before {
    background: transparent;
}

.search-field label {
    display: block;
    font-size: .7rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.search-field input,
.search-field select {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-size: .95rem;
    color: var(--charcoal);
    padding: 0;
}

.search-field input::placeholder { color: var(--stone-500); }

.search-submit {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--terracotta);
    color: var(--white);
    display: grid;
    place-items: center;
    transition: all var(--transition);
}

.search-submit:hover {
    background: var(--terracotta-dark);
    transform: scale(1.05);
}

.search-submit svg { width: 20px; height: 20px; }

/* =====================================================
   Property Cards
   ===================================================== */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

.property-card {
    position: relative;
    transition: transform var(--transition);
}

.property-card:hover {
    transform: translateY(-4px);
}

.property-card-media {
    position: relative;
    aspect-ratio: 5/6;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
    background: var(--stone-100);
}

.property-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms ease;
}

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

.property-card-wishlist {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.95);
    display: grid;
    place-items: center;
    transition: all var(--transition);
    z-index: 2;
    color: var(--charcoal);
}

[dir="rtl"] .property-card-wishlist {
    right: auto;
    left: 14px;
}

.property-card-wishlist:hover {
    background: var(--white);
    transform: scale(1.1);
}

.property-card-wishlist.active {
    color: var(--terracotta);
}

.property-card-wishlist svg { width: 18px; height: 18px; }

.property-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 12px;
    background: var(--white);
    color: var(--ink);
    border-radius: var(--radius-pill);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    z-index: 2;
}

[dir="rtl"] .property-card-badge { left: auto; right: 14px; }

.property-card-body {
    padding: 0 4px;
}

.property-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 6px;
}

.property-card-title {
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
    font-family: var(--font-body);
}

[dir="rtl"] .property-card-title { font-family: var(--font-arabic); }

.property-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: .88rem;
    font-weight: 600;
    flex-shrink: 0;
}

.property-card-rating svg {
    width: 14px;
    height: 14px;
    color: var(--ink);
    fill: currentColor;
}

.property-card-location {
    color: var(--stone-700);
    font-size: .9rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.property-card-meta {
    color: var(--stone-700);
    font-size: .85rem;
    margin-bottom: 12px;
}

.property-card-price {
    font-size: .95rem;
}

.property-card-price strong {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
}

/* =====================================================
   City Cards
   ===================================================== */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.city-card {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition);
}

.city-card:nth-child(1) { grid-row: span 2; aspect-ratio: 3/5; }

.city-card:hover { transform: translateY(-4px); }

.city-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 800ms ease;
}

.city-card:hover img { transform: scale(1.08); }

.city-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(28,26,23,.7) 100%);
}

.city-card-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: var(--white);
    z-index: 2;
}

.city-card-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-bottom: 2px;
}

[dir="rtl"] .city-card-name { font-family: var(--font-arabic); font-weight: 700; }

.city-card-count {
    font-size: .85rem;
    opacity: .9;
}

.city-card:nth-child(1) .city-card-name { font-size: 2rem; }

/* =====================================================
   Category Pills (Property Types)
   ===================================================== */
.categories-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px;
    margin-bottom: 32px;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.categories-bar::-webkit-scrollbar { display: none; }

.category-pill {
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--stone-300);
    background: var(--white);
    white-space: nowrap;
    font-size: .88rem;
    font-weight: 500;
    color: var(--stone-900);
    transition: all var(--transition);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.category-pill:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.category-pill.active {
    background: var(--ink);
    color: var(--white);
    border-color: var(--ink);
}

/* =====================================================
   Footer
   ===================================================== */
.footer {
    background: var(--ink);
    color: var(--stone-100);
    padding: 80px 0 32px;
    margin-top: 80px;
}

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

.footer .brand {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-about {
    color: var(--stone-300);
    font-size: .92rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-title {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: var(--font-body);
}

[dir="rtl"] .footer-title { font-family: var(--font-arabic); }

.footer-links { display: flex; flex-direction: column; gap: 10px; }

.footer-links a {
    color: var(--stone-300);
    font-size: .9rem;
    transition: color var(--transition);
}

.footer-links a:hover { color: var(--saffron); }

.newsletter-form {
    display: flex;
    background: rgba(255,255,255,.08);
    border-radius: var(--radius-pill);
    padding: 5px;
    border: 1px solid rgba(255,255,255,.12);
    margin-top: 12px;
}

.newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 18px;
    color: var(--white);
    outline: none;
}

.newsletter-form input::placeholder { color: var(--stone-500); }

.newsletter-form button {
    background: var(--terracotta);
    color: var(--white);
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: .88rem;
    transition: background var(--transition);
}

.newsletter-form button:hover { background: var(--terracotta-dark); }

.socials { display: flex; gap: 10px; margin-top: 20px; }

.socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    display: grid;
    place-items: center;
    color: var(--stone-100);
    transition: all var(--transition);
}

.socials a:hover {
    background: var(--terracotta);
    color: var(--white);
    transform: translateY(-2px);
}

.socials svg { width: 18px; height: 18px; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,.08);
    color: var(--stone-500);
    font-size: .85rem;
    flex-wrap: wrap;
    gap: 16px;
}

/* =====================================================
   Forms
   ===================================================== */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--charcoal);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--stone-300);
    border-radius: var(--radius);
    background: var(--white);
    font-size: .95rem;
    transition: all var(--transition);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--ink);
    box-shadow: 0 0 0 4px rgba(28,26,23,.08);
}

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

/* Auth pages */
.auth-wrap {
    min-height: calc(100vh - var(--header-h));
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.auth-visual {
    position: relative;
    background: linear-gradient(135deg, var(--terracotta), var(--saffron));
    overflow: hidden;
}

.auth-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
    opacity: .85;
}

.auth-visual-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 60px;
    color: var(--white);
    z-index: 2;
    background: linear-gradient(180deg, transparent, rgba(28,26,23,.5));
}

.auth-visual-text h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.auth-form-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.auth-form {
    width: 100%;
    max-width: 440px;
}

.auth-form h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.auth-form > p {
    color: var(--stone-700);
    margin-bottom: 32px;
}

/* =====================================================
   Alerts
   ===================================================== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 18px;
    font-size: .92rem;
    border-left: 4px solid;
}

[dir="rtl"] .alert { border-left: none; border-right: 4px solid; }

.alert-success { background: #E8F0E5; color: #2F5B27; border-color: var(--success); }
.alert-error { background: #F9E5E5; color: #7A2424; border-color: var(--danger); }
.alert-warning { background: #FCF2DC; color: #6F4912; border-color: var(--warning); }
.alert-info { background: #E0EDF6; color: #1E4166; border-color: #4B7FA8; }

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-text { max-width: 100%; margin-inline: auto; }
    .hero-subtitle { margin-inline: auto; }
    .hero-visual { max-width: 400px; margin-inline: auto; margin-top: 40px; }
    .hero-stats { justify-content: center; }
    .search-bar { grid-template-columns: 1fr 1fr; gap: 0; padding: 16px; border-radius: var(--radius-lg); }
    .search-submit { width: 100%; height: 52px; border-radius: var(--radius-pill); grid-column: 1/-1; margin-top: 8px; }
    .search-field + .search-field::before { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cities-grid { grid-template-columns: repeat(3, 1fr); }
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-visual { display: none; }
}

@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .container { padding-inline: 20px; }
    .nav { display: none; }
    .mobile-toggle { display: inline-flex; }
    .lang-toggle span:not(.code) { display: none; }
    .header-actions .btn-outline { display: none; }
    .properties-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
    .cities-grid { grid-template-columns: repeat(2, 1fr); }
    .city-card:nth-child(1) { grid-row: auto; aspect-ratio: 3/4; }
    .city-card:nth-child(1) .city-card-name { font-size: 1.4rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .section-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .hero { padding: 32px 0 60px; }
    .hero-title { font-size: 2.25rem; }
    .properties-grid { grid-template-columns: 1fr; }
    .search-bar { grid-template-columns: 1fr; }
    .btn-lg { padding: 14px 24px; font-size: 1rem; }
}

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

.text-center { text-align: center; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }

.spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--stone-300);
    border-top-color: var(--terracotta);
    border-radius: 50%;
    animation: spin 800ms linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Fade-in animation */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 700ms, transform 700ms;
}
.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/* Stars */
.stars { display: inline-flex; gap: 2px; color: var(--saffron); }
.stars-sm { font-size: .85rem; }
.stars-md { font-size: 1rem; }
.stars-lg { font-size: 1.5rem; }
.star-empty { color: var(--stone-300); }
