@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

html,
body {
    overflow-x: hidden;
}

/* =========================
   TEMEL DEĞİŞKENLER (DARK DEFAULT)
========================= */
:root {
    --primary-color: #2563eb;
    --secondary-color: #22c55e;
    --success-color: #22c55e;
    --danger-color: #ef4444;
    --warning-color: #facc15;

    /* ARKA PLANLAR */
    --bg-primary: rgba(15, 23, 42, 0.92);
    /* kart arkaplanı */
    --bg-secondary: #020617;
    /* sayfa arkaplanı */

    /* METİN */
    --text-primary: #e5e7eb;
    --text-secondary: #9ca3af;

    /* BORDER */
    --border-color: rgba(148, 163, 184, 0.35);

    /* GÖLGELER */
    --shadow-sm: 0 4px 10px rgba(15, 23, 42, 0.7);
    --shadow-md: 0 10px 26px rgba(15, 23, 42, 0.85);
    --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.9);
    --shadow-xl: 0 26px 70px rgba(0, 0, 0, 0.95);

    /* RADIUS */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;

    --transition: all 0.2s ease-out;

    /* BODY GRADIENT (DARK) */
    --body-bg-start: #020617;
    --body-bg-mid: #020617;
    --body-bg-end: #020617;
}

/* =========================
   LIGHT TEMA DEĞİŞKEN OVERRIDE
========================= */
[data-theme="light"] {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;

    /* ARKA PLANLAR */
    --bg-primary: #ffffff;
    --bg-secondary: #f3f4f6;

    /* METİN */
    --text-primary: #111827;
    --text-secondary: #4b5563;

    /* BORDER */
    --border-color: #d1d5db;

    /* GÖLGELER */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.12);

    /* BODY GRADIENT (LIGHT) */
    --body-bg-start: #ffffff;
    --body-bg-mid: #e2e8f0;
    --body-bg-end: #dbeafe;
}

/* =========================
   GENEL
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top,
            var(--body-bg-start) 0%,
            var(--body-bg-mid) 45%,
            var(--body-bg-end) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Hafif glass hissi için opak overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 0% 0%, rgba(34, 197, 94, 0.12), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(37, 99, 235, 0.16), transparent 55%);
    z-index: -1;
}

/* Light Mode Body Background */
[data-theme="light"] body::before {
    background:
        radial-gradient(circle at 0% 0%, rgba(147, 197, 253, 0.08), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(196, 181, 253, 0.06), transparent 55%),
        radial-gradient(circle at 50% 50%, rgba(167, 243, 208, 0.04), transparent 60%);
}

/* Light Mode - Body gradient override */
[data-theme="light"] body {
    background:
        radial-gradient(circle at 20% 30%, rgba(147, 197, 253, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(196, 181, 253, 0.10) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(167, 243, 208, 0.11) 0%, transparent 40%),
        radial-gradient(circle at 90% 70%, rgba(254, 202, 202, 0.08) 0%, transparent 40%),
        linear-gradient(180deg,
            #ffffff 0%,
            #f9fafb 25%,
            #f3f4f6 50%,
            #f9fafb 75%,
            #ffffff 100%);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================
   HEADER PREMIUM
========================= */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.92) 0%,
            rgba(30, 41, 59, 0.88) 100%);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.05) inset;
    transition: all 0.3s ease;
}

.header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(59, 130, 246, 0.08) 0%,
            rgba(139, 92, 246, 0.05) 50%,
            rgba(34, 197, 94, 0.08) 100%);
    pointer-events: none;
}

.header-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 40px;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo img {
    height: 44px;
    width: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.logo:hover img {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

.logo span {
    background: linear-gradient(135deg, #f1f5f9 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
    font-size: 14px;
    position: relative;
    padding: 10px 16px;
    color: #e2e8f0;
    border-radius: 10px;
    transition: all 0.25s ease;
    text-decoration: none;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
    opacity: 1;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #fff;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: width 0.25s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: calc(100% - 32px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.theme-toggle {
    position: relative;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(59, 130, 246, 0.3);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.theme-toggle:hover::before {
    opacity: 1;
}

.theme-toggle i {
    position: relative;
    z-index: 1;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.theme-toggle:hover i {
    transform: rotate(180deg);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    background: rgba(59, 130, 246, 0.2);
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: all 0.3s ease;
    border-radius: 999px;
}

/* =========================
   HERO
========================= */
.hero,
.hero-premium {
    position: relative;
    padding: 50px 0 40px;
    color: #e5e7eb;
    overflow: hidden;
    background: url('../images/hero-bg.png') center center / cover no-repeat;
}

.hero::before,
.hero-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.75) 50%, rgba(15, 23, 42, 0.9) 100%),
        radial-gradient(circle at 20% 0%, rgba(59, 130, 246, 0.25), transparent 55%),
        radial-gradient(circle at 80% 100%, rgba(34, 197, 94, 0.2), transparent 55%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    animation: fadeInUp 0.6s ease;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero p {
    font-size: 16px;
    margin-bottom: 24px;
    opacity: 0.92;
    animation: fadeInUp 0.6s ease 0.15s backwards;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

/* =========================
   SEARCH WIZARD (Glass Kart)
========================= */
.search-wizard,
.search-wizard-premium {
    background: rgba(15, 23, 42, 0.85);
    border-radius: var(--radius-lg);
    padding: 20px 18px;
    max-width: 900px;
    margin: -20px auto 0;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(148, 163, 184, 0.25);
    backdrop-filter: blur(20px);
    animation: fadeInUp 0.6s ease 0.25s backwards;
}

.search-wizard h3 {
    color: var(--text-primary);
    font-size: 15px;
    text-align: center;
    margin-bottom: 16px;
}

.wizard-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wizard-step label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.wizard-step select,
.wizard-step input {
    padding: 11px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    background: rgba(15, 23, 42, 0.96);
    color: var(--text-primary);
    transition: var(--transition);
}

.wizard-step select::placeholder,
.wizard-step input::placeholder {
    color: #6b7280;
}

.wizard-step select:focus,
.wizard-step input:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.9);
    background: #020617;
}

/* Radio butonlar */
.radio-group {
    display: flex;
    gap: 10px;
}

.radio-option {
    flex: 1;
    position: relative;
}

.radio-option input {
    position: absolute;
    opacity: 0;
}

.radio-option label {
    display: block;
    padding: 11px 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.96);
    color: #245de1;
    font-size: 13px;
    transition: var(--transition);
}

.radio-option input:checked+label {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: #0b1120;
    border-color: rgba(129, 140, 248, 0.9);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.radio-option label:hover {
    border-color: #60a5fa;
}

/* Arama butonu */
.search-button {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: #0b1120;
    border: none;
    padding: 13px 40px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: var(--transition);
    box-shadow:
        0 14px 36px rgba(37, 99, 235, 0.7),
        0 0 0 1px rgba(15, 118, 110, 0.9);
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow:
        0 20px 50px rgba(37, 99, 235, 0.85),
        0 0 0 1px rgba(15, 118, 110, 1);
    filter: brightness(1.05);
}

/* =========================
   SECTIONS PREMIUM
========================= */
.section {
    position: relative;
    padding: 40px 0;
    overflow: hidden;
    background: linear-gradient(180deg,
            rgba(15, 23, 42, 0.98) 0%,
            rgba(20, 30, 50, 0.95) 50%,
            rgba(15, 23, 42, 0.98) 100%);
}

.section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 100% 60% at 10% 0%, rgba(59, 130, 246, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse 80% 50% at 90% 100%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 50% 50%, rgba(34, 197, 94, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(59, 130, 246, 0.3) 20%,
            rgba(139, 92, 246, 0.4) 50%,
            rgba(59, 130, 246, 0.3) 80%,
            transparent 100%);
}

/* Light Mode Section Background */
[data-theme="light"] .section {
    background:
        radial-gradient(circle at 20% 30%, rgba(147, 197, 253, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(196, 181, 253, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(167, 243, 208, 0.07) 0%, transparent 50%),
        radial-gradient(circle at 90% 70%, rgba(254, 202, 202, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 250, 251, 0.9) 50%, rgba(255, 255, 255, 0.95) 100%);
}

[data-theme="light"] .section::before {
    background:
        radial-gradient(ellipse 100% 60% at 10% 0%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 80% 50% at 90% 100%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 50% 50%, rgba(34, 197, 94, 0.04) 0%, transparent 50%);
}

[data-theme="light"] .section::after {
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(59, 130, 246, 0.15) 20%,
            rgba(139, 92, 246, 0.2) 50%,
            rgba(59, 130, 246, 0.15) 80%,
            transparent 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 24px;
    position: relative;
}

.section-header h2 {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #f1f5f9 0%, #3b82f6 50%, #8b5cf6 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
}

.section-header p {
    font-size: 14px;
    color: #94a3b8;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Legacy Listing Card styles removed - see assets/css/listing-card.css */

/* =========================
   BUTTONLAR
========================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
    justify-content: center;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: #0b1120;
    box-shadow:
        0 12px 30px rgba(37, 99, 235, 0.7),
        0 0 0 1px rgba(15, 118, 110, 0.9);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 20px 50px rgba(37, 99, 235, 0.85),
        0 0 0 1px rgba(15, 118, 110, 1);
}

.btn-outline {
    border: 1px solid rgba(148, 163, 184, 0.7);
    color: var(--text-primary);
    background: rgba(15, 23, 42, 0.9);
}

.btn-outline:hover {
    background: rgba(30, 64, 175, 0.9);
    border-color: #60a5fa;
}

/* =========================
   SAYFALAMA
========================= */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
}

.pagination a,
.pagination span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(75, 85, 99, 0.9);
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.pagination a:hover {
    border-color: #60a5fa;
    color: #bfdbfe;
}

.pagination .active {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: #0b1120;
    border-color: transparent;
}

/* =========================
   FOOTER PREMIUM
========================= */
.footer {
    position: relative;
    background: linear-gradient(180deg,
            rgba(15, 23, 42, 0.98) 0%,
            rgba(2, 6, 23, 1) 100%);
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    padding: 80px 0 30px;
    margin-top: 80px;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background:
        radial-gradient(ellipse 50% 100% at 20% 0%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 50% 100% at 80% 0%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.footer-content {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #f1f5f9, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    font-size: 14px;
    color: #94a3b8;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-section ul li a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-section ul li a:hover {
    color: #3b82f6;
    padding-left: 5px;
}

.footer-section ul li a:hover::before {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #94a3b8;
    font-size: 18px;
}

.social-link:hover {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.footer-bottom {
    position: relative;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(59, 130, 246, 0.15);
    color: #64748b;
    font-size: 13px;
}

.footer-bottom p {
    margin-bottom: 8px;
}

/* =========================
   FORM GENEL
========================= */
.form-control {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    background: rgba(15, 23, 42, 0.96);
    color: var(--text-primary);
    transition: var(--transition);
}

.form-control::placeholder {
    color: #6b7280;
}

.form-control:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.9);
    background: #020617;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 13px;
}

textarea.form-control {
    resize: vertical;
    min-height: 110px;
}

/* =========================
   ALERT MESAJLAR
========================= */
.alert {
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.alert-success {
    background: rgba(22, 163, 74, 0.1);
    color: #bbf7d0;
    border: 1px solid rgba(22, 163, 74, 0.9);
}

.alert-error {
    background: rgba(248, 113, 113, 0.08);
    color: #fecaca;
    border: 1px solid rgba(239, 68, 68, 0.9);
}

.alert-info {
    background: rgba(59, 130, 246, 0.08);
    color: #bfdbfe;
    border: 1px solid rgba(59, 130, 246, 0.9);
}

/* =========================
   SPINNER
========================= */
.spinner {
    border: 4px solid rgba(55, 65, 81, 0.9);
    border-top: 4px solid var(--primary-color);
    border-radius: 999px;
    width: 40px;
    height: 40px;
    animation: spin 0.9s linear infinite;
    margin: 30px auto;
}

/* =========================
   ANİMASYONLAR
========================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 64px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 64px);
        background: var(--bg-primary);
        flex-direction: column;
        padding: 26px 24px;
        transition: left 0.25s ease-out;
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero p {
        font-size: 14px;
    }

    .search-wizard {
        padding: 20px 18px;
        margin-top: -20px;
    }

    .wizard-steps {
        grid-template-columns: 1fr;
    }

    .listings-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .section {
        padding: 32px 0;
    }

    .section-header h2 {
        font-size: 22px;
    }
}

/* =========================
   LIGHT THEME COMPONENT OVERRIDES
========================= */
[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .logo {
    color: #111827;
}

[data-theme="light"] .nav-menu a {
    color: #1f2937;
    opacity: 0.9;
}

[data-theme="light"] .nav-menu {
    background: transparent;
}

[data-theme="light"] .theme-toggle {
    background: #e5e7eb;
    border-color: #cbd5f5;
    color: #111827;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .hero {
    color: #111827;
}

[data-theme="light"] .hero::before {
    background:
        radial-gradient(circle at 20% 0%, rgba(59, 130, 246, 0.15), transparent 55%),
        radial-gradient(circle at 80% 100%, rgba(34, 197, 94, 0.12), transparent 55%);
    opacity: 1;
}

[data-theme="light"] .search-wizard {
    background: #ffffff;
    border-color: #e5e7eb;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .wizard-step label {
    color: #4b5563;
}

[data-theme="light"] .wizard-step input,
[data-theme="light"] .wizard-step select,
[data-theme="light"] .form-control {
    background: #f9fafb;
    color: #111827;
    border-color: #d1d5db;
}

[data-theme="light"] .wizard-step input:focus,
[data-theme="light"] .wizard-step select:focus,
[data-theme="light"] .form-control:focus {
    background: #ffffff;
    border-color: #60a5fa;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.6);
}

[data-theme="light"] .radio-option label {
    background: #f9fafb;
    color: #111827;
    border-color: #d1d5db;
}

[data-theme="light"] .radio-option input:checked+label {
    color: #0b1120;
}

[data-theme="light"] .listings-grid .listing-card {
    background: #ffffff;
    border-color: #e5e7eb;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .listing-details {
    border-bottom-color: #e5e7eb;
}

[data-theme="light"] .listing-price {
    color: #2563eb;
}

[data-theme="light"] .pagination a,
[data-theme="light"] .pagination span {
    background: #ffffff;
    border-color: #e5e7eb;
    color: #111827;
}

[data-theme="light"] .footer {
    background: #0f172a;
    border-top-color: #1f2937;
    box-shadow: 0 -18px 40px rgba(15, 23, 42, 0.7);
}

[data-theme="light"] .footer-section h3 {
    color: #e5e7eb;
}

[data-theme="light"] .footer-section ul li {
    color: #9ca3af;
}

[data-theme="light"] .social-link {
    background: #020617;
    border-color: #1f2937;
    color: #e5e7eb;
}

[data-theme="light"] .nav-menu {
    background: transparent;
}

@media (max-width: 768px) {
    [data-theme="light"] .nav-menu {
        background: #ffffff;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    }
}

/* =========================
   HERO PREMIUM SECTION
========================= */
.hero-premium {
    position: relative;
    padding: 80px 0 100px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg,
            var(--body-bg-start) 0%,
            var(--body-bg-mid) 50%,
            var(--body-bg-end) 100%);
}

.hero-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(34, 197, 94, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

/* Animated Background Particles */
.hero-bg-animation {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-particle {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: particleFloat 20s ease-in-out infinite;
}

.hero-particle:nth-child(1) {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    top: -20%;
    left: -10%;
    animation-delay: 0s;
}

.hero-particle:nth-child(2) {
    background: linear-gradient(135deg, #22c55e, #14b8a6);
    bottom: -20%;
    right: -10%;
    animation-delay: -5s;
}

.hero-particle:nth-child(3) {
    background: linear-gradient(135deg, #f59e0b, #ec4899);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    animation-delay: -10s;
    opacity: 0.2;
}

.hero-particle:nth-child(4) {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    top: 10%;
    right: 20%;
    width: 200px;
    height: 200px;
    animation-delay: -15s;
    opacity: 0.3;
}

.hero-particle:nth-child(5) {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    bottom: 20%;
    left: 20%;
    width: 250px;
    height: 250px;
    animation-delay: -8s;
    opacity: 0.25;
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -30px) scale(1.1);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    75% {
        transform: translate(20px, 30px) scale(1.05);
    }
}

/* Hero Content Layout */
.hero-premium-content {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 60px;
    align-items: center;
}

/* Hero Text Section */
.hero-text-section {
    max-width: 640px;
}

.hero-badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.3);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 28px;
    animation: fadeInUp 0.6s ease;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

.hero-title-premium {
    font-size: clamp(38px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--text-primary);
    animation: fadeInUp 0.6s ease 0.1s backwards;
}

.gradient-text {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #22c55e 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle-premium {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease 0.2s backwards;
}

/* Hero Stats Row */
.hero-stats-row {
    display: flex;
    gap: 32px;
    animation: fadeInUp 0.6s ease 0.3s backwards;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-stat .stat-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 14px;
    font-size: 22px;
    color: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.hero-stat:hover .stat-icon {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.hero-stat .stat-info {
    display: flex;
    flex-direction: column;
}

.hero-stat .stat-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.hero-stat .stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Search Wizard Premium */
.search-wizard-premium {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    backdrop-filter: blur(20px);
    animation: fadeInUp 0.6s ease 0.2s backwards;
}

.wizard-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.wizard-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 14px;
    font-size: 22px;
    color: white;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.wizard-title h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.wizard-title p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 4px 0 0 0;
}

/* Wizard Form */
.wizard-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wizard-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wizard-field label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.wizard-field label i {
    font-size: 11px;
    color: #3b82f6;
}

.input-wrapper {
    position: relative;
}

.input-wrapper .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 14px;
}

.wizard-field input[type="text"] {
    width: 100%;
    padding: 14px 16px 14px 44px;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.25s ease;
}

.wizard-field input[type="text"]:focus {
    outline: none;
    border-color: #3b82f6;
    background: var(--bg-primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.wizard-field input[type="text"]::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Type Selector */
.type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.type-option {
    cursor: pointer;
}

.type-option input {
    display: none;
}

.type-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.25s ease;
}

.type-btn i {
    font-size: 16px;
    color: var(--text-secondary);
    transition: all 0.25s ease;
}

.type-option input:checked+.type-btn {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-color: transparent;
    color: white;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}

.type-option input:checked+.type-btn i {
    color: white;
}

.type-option:hover .type-btn {
    border-color: #3b82f6;
}

/* Select Wrapper */
.wizard-field-row,
.wizard-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px;
}

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    width: 100%;
    padding: 14px 40px 14px 16px;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.25s ease;
}

.select-wrapper select:focus {
    outline: none;
    border-color: #3b82f6;
    background: var(--bg-primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.select-wrapper .select-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 12px;
    pointer-events: none;
}

/* Search Button */
.wizard-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 8px;
}

.wizard-search-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #22c55e 0%, #14b8a6 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wizard-search-btn span,
.wizard-search-btn i {
    position: relative;
    z-index: 1;
}

.wizard-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4);
}

.wizard-search-btn:hover::before {
    opacity: 1;
}

.wizard-search-btn i {
    transition: transform 0.3s ease;
}

.wizard-search-btn:hover i {
    transform: translateX(4px);
}

/* Quick Links */
.wizard-quick-links {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.wizard-quick-links>span {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.wizard-quick-links a {
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #3b82f6;
    transition: all 0.25s ease;
}

.wizard-quick-links a:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

/* Light Theme Overrides for Hero Premium */

[data-theme="light"] .hero-particle {
    opacity: 0.3;
}

[data-theme="light"] .hero-badge-premium {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.2);
}

[data-theme="light"] .search-wizard-premium {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

[data-theme="light"] .wizard-field input[type="text"],
[data-theme="light"] .select-wrapper select,
[data-theme="light"] .type-btn {
    background: #f8fafc;
    border-color: #e2e8f0;
}

[data-theme="light"] .wizard-field input[type="text"]:focus,
[data-theme="light"] .select-wrapper select:focus {
    background: white;
}

[data-theme="light"] .hero-stat .stat-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

/* Responsive for Hero Premium */
@media (max-width: 1024px) {
    .hero-premium-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-text-section {
        text-align: center;
        max-width: 100%;
    }

    .hero-badge-premium {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats-row {
        justify-content: center;
    }

    .search-wizard-premium {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero-premium {
        padding: 60px 0 80px;
        min-height: auto;
    }

    .hero-title-premium {
        font-size: 32px;
    }

    .hero-subtitle-premium {
        font-size: 16px;
    }

    .hero-stats-row {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .hero-stat {
        width: 100%;
        max-width: 280px;
        padding: 16px;
        background: var(--bg-primary);
        border-radius: 14px;
        border: 1px solid var(--border-color);
    }

    .search-wizard-premium {
        padding: 24px;
    }

    .wizard-field-row {
        grid-template-columns: 1fr;
    }

    .hero-particle {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .hero-title-premium {
        font-size: 28px;
    }

    .hero-badge-premium {
        font-size: 12px;
        padding: 8px 16px;
    }

    .type-selector {
        grid-template-columns: 1fr;
    }

    .wizard-header {
        flex-direction: column;
        text-align: center;
    }
}

/* =========================
   STATS SECTION PREMIUM
========================= */
.stats-section-premium {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.98) 0%,
            rgba(30, 41, 59, 0.95) 50%,
            rgba(15, 23, 42, 0.98) 100%);
    overflow: hidden;
}

.stats-bg-animation {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.stats-particle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: particleFloat 15s ease-in-out infinite;
}

.stats-particle:nth-child(1) {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(139, 92, 246, 0.2));
    top: -10%;
    left: 10%;
    animation-delay: 0s;
}

.stats-particle:nth-child(2) {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(20, 184, 166, 0.15));
    bottom: -10%;
    right: 15%;
    animation-delay: -5s;
}

.stats-particle:nth-child(3) {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.15));
    top: 40%;
    right: 30%;
    animation-delay: -10s;
}

.stats-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.stats-header h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #f1f5f9 0%, #3b82f6 50%, #8b5cf6 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
}

.stats-header p {
    font-size: 18px;
    color: #94a3b8;
    max-width: 400px;
    margin: 0 auto;
}

.stats-grid-premium {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

.stat-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(59, 130, 246, 0.1) 0%,
            transparent 50%,
            rgba(139, 92, 246, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #22c55e);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-12px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow:
        0 25px 50px rgba(59, 130, 246, 0.2),
        0 15px 30px rgba(0, 0, 0, 0.2);
}

.stat-card:hover::before,
.stat-card:hover::after {
    opacity: 1;
}

.stat-card:hover::after {
    transform: scaleX(1);
}

.stat-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 20px;
    font-size: 32px;
    color: white;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
    transition: all 0.4s ease;
    position: relative;
}

.stat-card:hover .stat-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.5);
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.stat-value {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-title {
    font-size: 15px;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================
   SEARCH WIZARD (Glass Kart)
========================= */
/* ... existing styles ... */

/* =========================
   SEARCH WIZARD FORM GRID
========================= */

.wizard-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

/* .wizard-row is defined earlier with .wizard-field-row */

.wizard-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    width: 100%;
}

/* Full width items (Keyword, Type, Button) */
.wizard-field-full {
    width: 100%;
}

/* Type selector styling */
.type-selector {
    display: flex;
    gap: 12px;
    width: 100%;
}

.type-option {
    flex: 1;
    cursor: pointer;
}

/* ... existing styles for labels etc ... */

/* ============================================
   CUSTOM MULTI-SELECT DROPDOWN
============================================ */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-trigger {
    width: 100%;
    padding: 12px 14px;
    /* Matched to input padding */
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.25s ease;
    user-select: none;
    min-height: 48px;
    /* Ensure height matches inputs */
}

.dropdown-trigger:hover {
    border-color: #3b82f6;
}

.dropdown-trigger.active {
    border-color: #3b82f6;
    background: var(--bg-primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.selected-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 10px;
    color: var(--text-primary);
}

.selected-text.placeholder {
    color: var(--text-secondary);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    /* Daha oval */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    /* Higher z-index */
    max-height: 220px;
    /* ~5-6 items */
    overflow-y: auto;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Light theme support */
[data-theme="light"] .dropdown-trigger {
    background: #f8fafc;
    border-color: #e2e8f0;
}

[data-theme="light"] .dropdown-trigger.active {
    background: white;
}

[data-theme="light"] .dropdown-menu {
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Checkbox Items */
.checkbox-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 10px;
    /* Item rounding */
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 10px;
    margin-bottom: 2px;
}

.checkbox-item:hover {
    background: rgba(59, 130, 246, 0.1);
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-item label {
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
    flex: 1;
    margin: 0;
    /* Override default margin */
}

/* Scrollbar for dropdown */
.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: transparent;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.5);
    border-radius: 10px;
}

/* MOBILE RESPONSIVE OVERRIDES */
@media (max-width: 480px) {
    .search-wizard-premium {
        padding: 20px 16px;
    }

    /* Force 2 columns for .wizard-row on mobile */
    .wizard-row {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px;
    }

    /* Ensure inputs have enough room */
    .wizard-step select,
    .wizard-step input,
    .dropdown-trigger {
        padding: 10px 8px;
        font-size: 13px;
        min-height: 44px;
    }

    .select-wrapper select {
        padding-right: 20px;
        text-overflow: ellipsis;
    }

    .select-wrapper .select-icon {
        right: 8px;
    }
}

/* Admin Section Premium */
.admin-section {
    position: relative;
    overflow: hidden;
}

.admin-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 30% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 70% 50%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.admin-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 50px;
    align-items: center;
    background: var(--bg-primary);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 28px;
    padding: 50px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.admin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #22c55e);
}

.admin-photo {
    position: relative;
}

.admin-photo img {
    width: 180px;
    height: 180px;
    border-radius: 24px;
    object-fit: cover;
    border: 3px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

.admin-card:hover .admin-photo img {
    transform: scale(1.05);
    border-color: #3b82f6;
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.3);
}

.admin-info .admin-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #3b82f6;
    font-weight: 600;
    margin-bottom: 12px;
}

.admin-info h3 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary), #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-info p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.admin-contact {
    display: flex;
    gap: 16px;
}

.admin-contact a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.admin-contact a:first-child {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

.admin-contact a:first-child:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(34, 197, 94, 0.5);
}

.admin-contact a:last-child {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.admin-contact a:last-child:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-3px);
}

/* Light Theme Premium Overrides */
[data-theme="light"] .header::before {
    background: linear-gradient(90deg,
            rgba(59, 130, 246, 0.05) 0%,
            rgba(139, 92, 246, 0.03) 50%,
            rgba(34, 197, 94, 0.05) 100%);
}

[data-theme="light"] .header {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(248, 250, 252, 0.92) 100%);
    border-bottom-color: rgba(59, 130, 246, 0.15);
}

[data-theme="light"] .logo span {
    background: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

[data-theme="light"] .nav-menu a {
    color: #334155;
}

[data-theme="light"] .listing-card {
    background: #ffffff;
    border-color: rgba(59, 130, 246, 0.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .listing-card:hover {
    box-shadow:
        0 25px 60px rgba(59, 130, 246, 0.15),
        0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

[data-theme="light"] .section::before {
    background:
        radial-gradient(ellipse 100% 60% at 10% 0%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 80% 50% at 90% 100%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 50% 50%, rgba(34, 197, 94, 0.06) 0%, transparent 50%);
}

[data-theme="light"] .section-header h2 {
    background: linear-gradient(135deg, #1e293b 0%, #3b82f6 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

[data-theme="light"] .stats-section-premium {
    background: linear-gradient(135deg,
            #f8fafc 0%,
            #e0f2fe 50%,
            #f8fafc 100%);
}

[data-theme="light"] .stat-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(59, 130, 246, 0.15);
}

[data-theme="light"] .stat-value {
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
}

[data-theme="light"] .stats-header h2 {
    background: linear-gradient(135deg, #1e293b 0%, #3b82f6 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

[data-theme="light"] .admin-card {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.08);
}

/* Stats Section Responsive */
@media (max-width: 1024px) {
    .stats-grid-premium {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px;
    }

    .admin-photo {
        margin: 0 auto;
    }

    .admin-contact {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .stats-section-premium {
        padding: 60px 0;
    }

    .stats-grid-premium {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-card {
        padding: 30px 24px;
    }

    .stat-icon-wrapper {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .stat-value {
        font-size: 32px;
    }

    .admin-photo img {
        width: 140px;
        height: 140px;
    }

    .admin-info h3 {
        font-size: 24px;
    }
}

/* =========================
   COMPREHENSIVE MOBILE RESPONSIVE
========================= */

/* Tablet - 3 columns */
/* Listing responsive styles removed - see assets/css/listing-card.css */

/* Mobile Portrait */
@media (max-width: 768px) {

    /* Hero - Minimal on mobile */
    .hero,
    .hero-premium {
        padding: 30px 0 20px;
    }

    .hero-content,
    .hero-text-section {
        display: none;
    }

    .hero h1,
    .hero p {
        display: none;
    }

    /* Search Wizard - Compact mobile */
    .search-wizard,
    .search-wizard-premium {
        margin: 0 auto;
        padding: 16px 14px;
        border-radius: 16px;
    }

    .search-wizard h3,
    .search-wizard-premium h3 {
        font-size: 13px;
        margin-bottom: 12px;
    }

    /* .wizard-steps removed - replaced by .wizard-grid */

    /* Sale/Rent buttons adjustment for mobile if needed */
    .type-option .type-btn {
        padding: 10px 8px;
        font-size: 12px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    .search-button,
    .wizard-search-btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    /* Sections - Minimal */
    .section {
        padding: 24px 0;
    }

    .section-header {
        margin-bottom: 16px;
    }

    .section-header h2 {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .section-header p {
        font-size: 12px;
        display: none;
    }

    /* Grid - 2 columns on mobile delegated to listing-card.css */

    /* Container */
    .container {
        padding: 0 12px;
    }

    /* Footer compact */
    .footer {
        padding: 40px 0 24px;
    }

    .footer-content {
        gap: 30px;
    }
}