/* ============================================================
   GLOBAL.CSS — Elite Emlak
   Her sayfada kullanılan ortak stiller
   Navbar · Footer · Combobox · Butonlar · Sidebar · Utils
   ============================================================ */

/* ── RESET & VARIABLES ── */
:root {
    --obsidian:  #0d0d0d;
    --charcoal:  #1a1a1a;
    --smoke:     #2c2c2c;
    --gold:      #c8a96e;
    --gold-light:#e2c99a;
    --cream:     #f5f0e8;
    --ivory:     #faf8f4;
    --warm-gray: #6a6460;
    --border:    rgba(200,169,110,0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--ivory);
    color: var(--charcoal);
    overflow-x: hidden;
    font-weight: 400;
    line-height: 1.75;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

/* ── NAVBAR ── */
.navbar {
    background: transparent;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 24px 0;
    transition: all 0.5s ease;
}

.navbar.scrolled {
    background: rgba(13,13,13,0.96);
    padding: 14px 0;
    backdrop-filter: blur(12px);
}

.navbar-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 600;
    color: #fff !important;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.navbar-brand span { color: var(--gold); }

.nav-link {
    color: rgba(255,255,255,0.82) !important;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 8px 18px !important;
    transition: color 0.3s;
}

.nav-link:hover { color: var(--gold) !important; }

.nav-cta {
    border: 1px solid var(--gold) !important;
    color: var(--gold) !important;
    border-radius: 0 !important;
    padding: 8px 22px !important;
    transition: all 0.3s !important;
}

.nav-cta:hover {
    background: var(--gold) !important;
    color: var(--obsidian) !important;
}

/* ── BUTONLAR ── */
.btn-gold {
    background: var(--gold);
    color: var(--obsidian);
    border: none;
    padding: 15px 38px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.btn-gold:hover {
    background: var(--gold-light);
    color: var(--obsidian);
    transform: translateY(-2px);
}

.btn-outline-gold {
    background: transparent;
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.4);
    padding: 15px 38px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-gold:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-prop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border: 1px solid #d8d4ce;
    color: var(--charcoal);
    padding: 13px 20px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s;
    margin-top: 4px;
}

.btn-prop:hover {
    background: var(--charcoal);
    border-color: var(--charcoal);
    color: var(--gold);
}

/* ── CUSTOM COMBOBOX ── */
.custom-select-wrapper { position: relative; width: 100%; }

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    color: rgba(255,255,255,0.85);
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 300;
    user-select: none;
    gap: 8px;
}

.custom-select-trigger i {
    font-size: 10px;
    color: var(--gold);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.custom-select-wrapper.open .custom-select-trigger i { transform: rotate(180deg); }

.custom-select-options {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    left: -24px;
    min-width: 200px;
    background: #141414;
    border: 1px solid var(--border);
    z-index: 999;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}

.custom-select-wrapper.open .custom-select-options { display: block; }

.custom-select-option {
    padding: 12px 20px;
    font-size: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: all 0.2s;
}

.custom-select-option:last-child { border-bottom: none; }

.custom-select-option:hover {
    background: rgba(200,169,110,0.08);
    color: var(--gold);
    padding-left: 26px;
}

.custom-select-option.selected { color: var(--gold); }

/* ── SIDEBAR ── */
.sidebar-widget {
    border: 1px solid #ebebeb;
    padding: 30px;
    margin-bottom: 30px;
    background: #fff;
}

.widget-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 6px;
}

.widget-line {
    width: 32px;
    height: 1px;
    background: var(--gold);
    margin-bottom: 24px;
}

.mini-prop {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f5f2ee;
    cursor: pointer;
    transition: all 0.3s;
}

.mini-prop:last-child { border-bottom: none; }

.mini-prop:hover {
    background: #faf8f4;
    margin: 0 -14px;
    padding-left: 14px;
    padding-right: 14px;
}

.mini-thumb { width: 72px; height: 56px; object-fit: cover; flex-shrink: 0; }

.mini-info h6 {
    font-size: 12px;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 3px;
    line-height: 1.4;
}

.mini-info p {
    font-size: 10px;
    color: var(--warm-gray);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.mini-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--gold);
}

/* ── ALTIN İLANLAR WİDGET ── */
.altin-widget {
    background: linear-gradient(160deg, #1a1611 0%, #0f0d09 100%);
    border: 1px solid rgba(200,169,110,0.35);
    position: relative;
    overflow: hidden;
}

.altin-widget::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.altin-widget::after {
    content: '✦';
    position: absolute;
    bottom: -30px; right: -10px;
    font-size: 100px;
    color: rgba(200,169,110,0.04);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.altin-widget .widget-title {
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
}

.altin-widget .widget-title::before {
    content: '✦';
    font-size: 14px;
    color: var(--gold);
    opacity: 0.7;
}

.altin-widget .widget-line {
    background: linear-gradient(90deg, var(--gold), transparent);
    width: 100%;
}

.altin-widget .mini-prop {
    border-bottom-color: rgba(200,169,110,0.12);
    position: relative;
    padding-left: 12px;
}

.altin-widget .mini-prop::before {
    content: '';
    position: absolute;
    left: 0; top: 16px; bottom: 16px;
    width: 2px;
    background: var(--gold);
    opacity: 0;
    transition: opacity 0.3s;
}

.altin-widget .mini-prop:hover { background: rgba(200,169,110,0.06); margin: 0 -14px; padding-left: 26px; padding-right: 14px; }
.altin-widget .mini-prop:hover::before { opacity: 1; left: 14px; }

.altin-widget .mini-thumb {
    border: 1px solid rgba(200,169,110,0.2);
}

.altin-widget .mini-info h6 { color: rgba(255,255,255,0.88); }

.altin-widget .mini-info p { color: rgba(255,255,255,0.4); }

.altin-widget .mini-price {
    font-size: 17px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.altin-badge {
    display: inline-block;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--obsidian);
    background: var(--gold);
    padding: 2px 7px;
    margin-bottom: 5px;
}

.contact-widget { background: var(--charcoal); border: none; padding: 36px; }
.contact-widget .widget-title { color: #fff; }
.contact-widget .widget-line { background: var(--gold); }

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.65);
    font-size: 12px;
    letter-spacing: 0.5px;
}

.contact-item:last-of-type { border-bottom: none; margin-bottom: 20px; }
.contact-item i { color: var(--gold); font-size: 14px; flex-shrink: 0; }

/* ── SECTION BAŞLIKLARI ── */
.section-label {
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 12px;
}

.section-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 400;
    color: var(--charcoal);
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-heading em { font-style: italic; color: var(--gold); }

.section-line {
    width: 48px;
    height: 1px;
    background: var(--gold);
    margin-bottom: 24px;
}

/* ── PROPERTY CARD ── */
.property-card {
    background: #fff;
    overflow: hidden;
    position: relative;
    border: 1px solid #ececec;
    display: flex;
    flex-direction: column;
    height: 100%;           /* grid/flex parent'ı tam doldur */
    margin-bottom: 0;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 56px rgba(0,0,0,0.11);
    border-color: #e0dbd3;
}

.property-img {
    position: relative;
    overflow: hidden;
    height: 230px;
    flex-shrink: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.property-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
    display: block;
}

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

.property-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,13,13,0.38) 0%, transparent 55%);
    pointer-events: none;
}

.prop-badge {
    position: absolute;
    top: 16px; left: 16px;
    z-index: 5;
    background: var(--gold);
    color: var(--obsidian);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 12px;
}

.prop-badge.new {
    background: var(--obsidian);
    color: var(--gold);
    border: 1px solid var(--gold);
}

.prop-fav {
    position: absolute;
    top: 16px; right: 16px;
    z-index: 5;
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: all 0.3s;
    opacity: 0;
}

.property-card:hover .prop-fav { opacity: 1; }
.prop-fav:hover { background: var(--gold); border-color: var(--gold); color: var(--obsidian); }

.property-body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;                /* kart yüksekliğini doldur */
}

/* specs + buton her zaman altta kalsın */
.prop-specs  { margin-top: auto; }
.btn-prop    { margin-top: 0; }

/* ── Emlak Tür Etiketleri ── */
.prop-type-row {
    display: flex; gap: 6px; flex-wrap: wrap;
    margin-bottom: 8px;
}
.prop-type-tag {
    font-size: 9px; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; padding: 4px 10px;
    border: 1px solid var(--gold); color: var(--gold);
}
.prop-islem-tag {
    font-size: 9px; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; padding: 4px 10px;
}
.prop-islem-tag.satilik  { background: var(--charcoal); color: #fff; }
.prop-islem-tag.kiralik  { background: #2d6a4f; color: #fff; }
.prop-islem-tag.gunluk   { background: #8b4513; color: #fff; }

.prop-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 30px;
    font-weight: 400;
    color: var(--charcoal);
    line-height: 1.1;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.prop-title {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: var(--charcoal);
    margin-bottom: 8px;
    line-height: 1.5;
}

.prop-loc {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.3px;
    color: var(--warm-gray);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.prop-loc i { color: var(--gold); font-size: 12px; }

.prop-specs {
    display: flex;
    border-top: 1px solid #f0ede8;
    padding-top: 14px;
    margin-bottom: 18px;
    margin-top: auto;
}

.prop-spec {
    flex: 1;
    text-align: center;
    border-right: 1px solid #f0ede8;
    padding: 4px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.prop-spec:last-child { border-right: none; }
.prop-spec i { color: var(--gold); font-size: 16px; line-height: 1; }
.prop-spec span { font-size: 11px; font-weight: 500; color: var(--charcoal); letter-spacing: 0.3px; }

/* ── PAGINATION ── */
.page-link {
    color: var(--charcoal);
    border: 1px solid #e8e5e0;
    border-radius: 0 !important;
    padding: 10px 18px;
    font-size: 12px;
    transition: all 0.3s;
}

.page-link:hover,
.page-item.active .page-link {
    background: var(--charcoal);
    border-color: var(--charcoal);
    color: var(--gold);
}

/* ── FOOTER ── */
footer {
    background: var(--obsidian);
    padding: 80px 0 0;
}

.footer-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 300;
    color: #fff;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.footer-brand span { color: var(--gold); }

.footer-desc {
    font-size: 12px;
    font-weight: 300;
    color: rgba(255,255,255,0.4);
    line-height: 1.8;
    letter-spacing: 0.5px;
    max-width: 300px;
}

footer h6 {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 22px;
}

footer ul { list-style: none; padding: 0; }

footer ul li a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    display: block;
    padding: 5px 0;
}

footer ul li a:hover { color: var(--gold); }

.footer-social { display: flex; gap: 12px; margin-top: 20px; }

.social-icon {
    width: 38px; height: 38px;
    border: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icon:hover { border-color: var(--gold); color: var(--gold); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 60px;
    padding: 22px 0;
    text-align: center;
    color: rgba(255,255,255,0.2);
    font-size: 11px;
    letter-spacing: 1px;
}

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.prop-hidden { display: none !important; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .search-inner { flex-direction: column; }
    .s-tab { padding: 14px 20px; }
    .search-fields { flex-direction: column; padding: 16px; }
    .search-field { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); padding: 14px 0; }
    .btn-search { padding: 18px; width: 100%; }
}

/* ── FOOTER NEWSLETTER ── */
.footer-newsletter {
    display: flex;
    border: 1px solid rgba(255,255,255,0.1);
}

.footer-newsletter input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 14px;
    color: rgba(255,255,255,0.7);
    font-size: 11px;
    font-family: 'Montserrat', sans-serif;
    outline: none;
}

.footer-newsletter button {
    background: var(--gold);
    border: none;
    padding: 0 18px;
    color: var(--obsidian);
    cursor: pointer;
    transition: background 0.3s;
}

.footer-newsletter button:hover { background: var(--gold-light); }

/* ── MAHALLE ARAMA KUTUSU ── */
.cs-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(200,169,110,0.15);
    background: #0d0d0d;
    position: sticky;
    top: 0;
    z-index: 2;
}

.cs-search-box i {
    color: var(--gold);
    font-size: 11px;
    flex-shrink: 0;
}

.cs-search-input {
    background: transparent;
    border: none;
    outline: none;
    color: rgba(255,255,255,0.85);
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 300;
    width: 100%;
}

.cs-search-input::placeholder { color: rgba(255,255,255,0.25); }

/* Arama olan dropdown biraz daha büyük olsun */
.custom-select-wrapper .custom-select-options:has(.cs-search-box) {
    max-height: 280px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* Scrollbar stili */
.custom-select-options::-webkit-scrollbar { width: 4px; }
.custom-select-options::-webkit-scrollbar-track { background: #0d0d0d; }
.custom-select-options::-webkit-scrollbar-thumb { background: rgba(200,169,110,0.35); border-radius: 2px; }

.cs-empty { color: rgba(255,255,255,0.25) !important; font-style: italic; cursor: default !important; }
.cs-empty:hover { background: transparent !important; padding-left: 20px !important; }

/* ── CASCADE OPT LIST ── */
.cs-opts-list {
    max-height: 240px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.cs-opts-list::-webkit-scrollbar { width: 4px; }
.cs-opts-list::-webkit-scrollbar-track { background: #0d0d0d; }
.cs-opts-list::-webkit-scrollbar-thumb { background: rgba(200,169,110,0.35); border-radius: 2px; }
