:root { --p: #ff4f08; --bg: #ffffff; --t: #212121; --b: #e0e0e0; --g: #f6f7f8; --page-bg: #f5f5f5; }
* { margin:0; padding:0; box-sizing:border-box; font-family:'Inter', sans-serif; }
/* Tıklayınca çıkan mavi gölge efektini kaldır (mobil) */
* { -webkit-tap-highlight-color: transparent; tap-highlight-color: transparent; }
html { overflow-x: hidden; }
/* Dil yüklenene kadar gövdeyi gizle (Türkçe dışı seçiliyse); script dil uygulayınca kaldırır */
html.lang-loading body { visibility: hidden; }
body { overflow-x: hidden; padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
body.modal-open { overflow: hidden; }
/* Mobil: input focus'ta zoom engellemek için 16px (iOS), kayma önleme; checkbox/radio hariç 44px */
input:not([type="checkbox"]):not([type="radio"]), select, textarea { font-size: 16px; }
@media (max-width: 767px) {
    input:not([type="checkbox"]):not([type="radio"]), select { min-height: 44px; }
}

/* Toast bildirimi: sağ üst, hafif şeffaf, yuvarlatılmış, fade-in, 3–4 sn */
.toast { position: fixed; top: 20px; right: 20px; padding: 14px 20px; border-radius: 12px; font-size: 14px; font-weight: 500; box-shadow: 0 8px 24px rgba(0,0,0,0.15); z-index: 9999; opacity: 0; transform: translateX(120%); transition: opacity 0.35s ease, transform 0.35s ease; max-width: 340px; backdrop-filter: blur(8px); }
.toast.toast-visible { opacity: 1; transform: translateX(0); }
.toast-success { background: rgba(34, 139, 34, 0.92); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.toast-error { background: rgba(200, 60, 50, 0.92); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.toast-info { background: rgba(45, 45, 45, 0.92); color: #fff; border: 1px solid rgba(255,255,255,0.1); }
body.dark-mode .toast-success { background: rgba(30, 100, 30, 0.95); color: #e8f5e9; }
body.dark-mode .toast-error { background: rgba(180, 50, 40, 0.95); color: #ffebee; }
body.dark-mode .toast-info { background: rgba(26, 26, 26, 0.95); border: 1px solid #333; color: #e0e0e0; }
body { background: var(--page-bg); color: var(--t); font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* Header: Tap.az sadeliği — Logo "PRODAJ.ME", yanında arama çubuğu; index.html yapısına uyumlu */
.navbar { display: flex; flex-direction: column; align-items: stretch; background: white; border-bottom: 1px solid var(--b); position: sticky; top: 0; z-index: 200; -webkit-transform: translateZ(0); transform: translateY(0) translateZ(0); padding-top: env(safe-area-inset-top); transition: transform 0.3s ease; will-change: transform; }
.navbar.navbar-scroll-hidden { transform: translateY(-100%) translateZ(0); }
/* Mobil: satır 1 = nav-left (hamburger + logo), satır 2 = nav-center (arama), nav-right gizli */
.nav-left { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 12px 16px; min-height: 52px; }
.nav-left .hamburger-btn { display: flex; flex-shrink: 0; background: none; border: none; cursor: pointer; padding: 10px; color: inherit; font-size: 1.25rem; width: 44px; height: 44px; min-width: 44px; align-items: center; justify-content: center; touch-action: manipulation; margin: 0; }
.nav-left .hamburger-btn:hover { color: var(--p); }
/* Mobilde logo tam ortada olsun (detay sayfası gibi): soldaki hamburgeri dengelemek için sağda spacer */
@media (max-width: 767px) {
    .nav-left::after { content: ''; display: block; width: 44px; min-width: 44px; flex-shrink: 0; }
}
.navbar-logo-title { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; text-align: center; color: var(--t); text-decoration: none; flex: 1; line-height: 1; min-width: 0; opacity: 1; transition: opacity 0.2s ease; }
.navbar-logo-title:hover { opacity: 0.9; color: inherit; }
.navbar-logo-title:active { opacity: 0.7; }
.navbar-logo-title.logo-pressed { opacity: 0.7; }
.navbar-logo-title span { color: var(--p); }
.navbar-slogan { display: none; }
.nav-right { display: none; align-items: center; gap: 15px; flex-shrink: 0; }
/* Profile / Add-ad: navbar-brand-top (hamburger + logo, spacer) */
.navbar-brand-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; min-height: 52px; gap: 15px; }
.navbar-brand-top .hamburger-btn { display: flex; flex-shrink: 0; background: none; border: none; cursor: pointer; padding: 10px; color: inherit; font-size: 1.25rem; width: 44px; height: 44px; min-width: 44px; align-items: center; justify-content: center; touch-action: manipulation; margin: 0; }
.navbar-brand-top .navbar-logo-title { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; text-align: center; color: var(--t); text-decoration: none; flex: 1; line-height: 1; }
.navbar-brand-spacer { width: 44px; flex-shrink: 0; }
.navbar-add-btn, .navbar-login-btn, .navbar-profile-btn { height: 44px; padding: 0 20px; border-radius: 10px; font-weight: 600; font-size: 15px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; touch-action: manipulation; white-space: nowrap; box-sizing: border-box; margin: 0; text-decoration: none; }
.navbar-add-btn { background: var(--p); color: white; border: none; }
.navbar-add-btn:hover { opacity: 0.9; color: white; }
.navbar-login-btn, .navbar-profile-btn { background: transparent; color: inherit; border: 1px solid var(--b); }
.navbar-login-btn:hover, .navbar-profile-btn:hover { border-color: var(--p); color: var(--p); }
.fav-btn .fav-badge { margin-left: 6px; font-size: 12px; font-weight: 700; }
.fav-btn .fav-badge.empty { opacity: 0.6; }

/* Ana sayfada: arama + filtre (mobilde nav-center ikinci satır) */
.nav-center { display: none; padding: 12px 16px; gap: 15px; align-items: center; flex-wrap: nowrap; }
.navbar-with-search .nav-center { display: flex; }
.nav-center .search-box { flex: 1 1 0; min-width: 0; margin: 0; }
.nav-center .filter-btn { flex-shrink: 0; background: none; border: none; cursor: pointer; padding: 10px; color: inherit; font-size: 1.2rem; min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; touch-action: manipulation; }
.nav-center .filter-btn:hover { color: var(--p); }

.search-box { display: flex; min-width: 0; flex-shrink: 1; }
.search-box-center { flex: 1; min-width: 0; background: var(--g); border-radius: 12px; padding: 6px 6px 6px 16px; border: none; outline: none; box-shadow: none; margin: 0; transition: background 0.2s; }
.search-box-center:focus-within { background: #f0f0f0; border: none; outline: none; box-shadow: none; }
.search-box input { flex: 1 1 0; min-width: 0; padding: 10px 12px; border: none; background: transparent; outline: none; font-size: 15px; min-height: 36px; box-shadow: none; }
.search-box input::placeholder { text-align: center; }
.search-box .search-btn-icon { background: var(--p); color: white; border: none; padding: 0; min-width: 40px; min-height: 40px; border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; touch-action: manipulation; }
.search-box .search-btn-icon:hover { opacity: 0.9; }

/* Mobile Image Slider: tek çerçeve, diğer resim sağdan görünmez; geçiş çerçeve içinde */
.mobile-hero-slider { display: block; padding: 0 0 12px; touch-action: pan-x pinch-zoom; }
.mobile-hero-slider-viewport { width: 100%; overflow: hidden; border-radius: 10px; touch-action: pan-x pinch-zoom; }
.mobile-hero-slider-track { display: flex; width: 300%; transition: transform 0.45s ease-out; will-change: transform; }
.mobile-hero-slider-track.is-dragging { transition: none; }
.mobile-hero-slide { flex: 0 0 33.34%; width: 33.34%; min-width: 0; box-sizing: border-box; overflow: hidden; }
.mobile-hero-slide img { display: block; width: 100%; height: auto; max-height: 180px; object-fit: cover; border-radius: 10px; pointer-events: none; user-select: none; }
@media (min-width: 1024px) {
    .mobile-hero-slider { display: none !important; }
}

/* Yatay kategori şeridi: hero altı, glassmorphism, scroll-snap, scrollbar gizli */
.category-strip-wrap { padding: 14px 0 8px; overflow: hidden; }
.category-strip { display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.category-strip::-webkit-scrollbar { display: none; }
.category-strip-card { flex: 0 0 auto; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 88px; max-width: 96px; padding: 14px 10px; background: rgba(255, 255, 255, 0.85); border-radius: 16px; text-decoration: none; color: var(--t); box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); border: 1px solid rgba(255, 255, 255, 0.6); transition: transform 0.2s, box-shadow 0.2s, color 0.2s; }
.category-strip-card:hover { color: var(--p); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 79, 8, 0.12); }
.category-strip-icon.glass { width: 48px; height: 48px; border-radius: 18px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: rgba(255, 255, 255, 0.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.7); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); }
.category-strip-icon.glass img { width: 32px; height: 32px; object-fit: contain; border-radius: 12px; }
.category-strip-icon .icon-placeholder { width: 24px; height: 24px; border-radius: 10px; background: linear-gradient(135deg, rgba(255, 79, 8, 0.25), rgba(255, 79, 8, 0.1)); }
.category-strip-label { font-size: 11px; font-weight: 600; text-align: center; line-height: 1.25; letter-spacing: 0.01em; }
@media (min-width: 600px) {
    .category-strip { padding-left: 20px; padding-right: 20px; gap: 16px; }
    .category-strip-card { min-width: 100px; max-width: 110px; padding: 16px 12px; border-radius: 20px; }
    .category-strip-icon.glass { width: 64px; height: 64px; border-radius: 22px; }
    .category-strip-icon.glass img { width: 40px; height: 40px; border-radius: 14px; }
    .category-strip-icon .icon-placeholder { width: 32px; height: 32px; }
    .category-strip-label { font-size: 12px; }
}
@media (min-width: 1024px) {
    .category-strip-wrap { padding: 18px 0 10px; display: flex; justify-content: center; }
    .category-strip { display: inline-flex; padding-left: 24px; padding-right: 24px; }
}
body.dark-mode .category-strip-card { background: rgba(37, 37, 37, 0.9); border-color: rgba(255, 255, 255, 0.08); color: #e0e0e0; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2); }
body.dark-mode .category-strip-card:hover { color: #ff9f6b; box-shadow: 0 6px 20px rgba(255, 159, 107, 0.15); }
body.dark-mode .category-strip-icon.glass { background: rgba(45, 45, 45, 0.6); border-color: rgba(255, 255, 255, 0.06); }
body.dark-mode .category-strip-icon .icon-placeholder { background: linear-gradient(135deg, rgba(255, 159, 107, 0.3), rgba(255, 159, 107, 0.1)); }

/* İkonlar ile ilanlar arası başlık: "Tüm ilanlar" (tıklanmaz, sadece metin) */
.listings-head {
    padding: 10px 15px 0;
    margin-top: 0;
    max-width: 100%;
    box-sizing: border-box;
}
.listings-head-title {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--t);
    cursor: default;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
body.dark-mode .listings-head-title { color: #e8e8e8; }
@media (min-width: 600px) {
    .listings-head { padding-left: 20px; padding-right: 20px; }
    .listings-head-title { font-size: 1.25rem; }
}
@media (min-width: 1024px) {
    .listings-head { padding-left: 24px; padding-right: 24px; padding-top: 12px; }
}

/* Alt kategori seçim modalı */
.subcat-modal-overlay { padding: 0; align-items: flex-end; justify-content: center; z-index: 300; }
.subcat-modal-overlay.open { display: flex; }
.subcat-modal { background: white; width: 100%; max-width: 400px; max-height: 70vh; border-radius: 20px 20px 0 0; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 -8px 32px rgba(0,0,0,0.15); }
.subcat-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #eee; }
.subcat-modal-title { font-size: 18px; font-weight: 700; margin: 0; color: #1a1a1a; }
.subcat-modal-close { background: none; border: none; padding: 10px; min-width: 44px; min-height: 44px; cursor: pointer; color: #666; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; touch-action: manipulation; }
.subcat-modal-body { padding: 12px 0 20px; overflow-y: auto; }
.subcat-modal-opt { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 20px; border: none; background: none; cursor: pointer; font-size: 15px; color: #333; text-align: left; transition: background 0.2s; touch-action: manipulation; }
.subcat-modal-opt:hover { background: var(--g); }
.subcat-modal-opt:first-child { font-weight: 600; color: var(--p); }
.subcat-modal-opt i { color: #999; font-size: 12px; }
body.dark-mode .subcat-modal { background: #252525; box-shadow: 0 -8px 32px rgba(0,0,0,0.5); }
body.dark-mode .subcat-modal-header { border-bottom-color: #333; }
body.dark-mode .subcat-modal-title { color: #e0e0e0; }
body.dark-mode .subcat-modal-close { color: #aaa; }
body.dark-mode .subcat-modal-opt { color: #e0e0e0; }
body.dark-mode .subcat-modal-opt:hover { background: #333; }
body.dark-mode .subcat-modal-opt:first-child { color: #ff9f6b; }
body.dark-mode .subcat-modal-opt i { color: #666; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.langs { display: flex; gap: 5px; font-size: 12px; font-weight: 600; cursor: pointer; min-height: 44px; align-items: center; touch-action: manipulation; }
.langs span { min-width: 28px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.langs span.active { color: var(--p); }

/* Pointer - tıklanabilir hissi (el işareti) */
.langs span, .theme-switch, .theme-btn, .nav-item, .city-item, .fa-heart, .filter-dropdown .opt { cursor: pointer; }

/* İçerik: header altında en az 80px boşluk, z-index çakışması önleme */
body { padding-top: 0; }

.filters { background: var(--g); padding: 15px 0; border-bottom: 1px solid var(--b); }
.filter-bar { display: flex; gap: 15px; flex-wrap: wrap; }
.filter-wrap { position: relative; }
.select-box { background: white; padding: 10px 20px; min-height: 44px; border: 1px solid var(--b); border-radius: 8px; cursor: pointer; font-size: 14px; display: flex; align-items: center; gap: 8px; touch-action: manipulation; }
.filter-dropdown { position: absolute; top: 100%; left: 0; margin-top: 4px; background: white; border: 1px solid var(--b); border-radius: 8px; box-shadow: 0 8px 20px rgba(0,0,0,0.12); max-height: 280px; overflow-y: auto; z-index: 200; display: none; min-width: 200px; }
.filter-dropdown.open { display: block; }
.filter-dropdown .opt { padding: 12px 16px; min-height: 44px; display: flex; align-items: center; cursor: pointer; font-size: 14px; touch-action: manipulation; }
.filter-dropdown .opt:hover { background: var(--g); }
.filter-dropdown .opt.active { color: var(--p); font-weight: 600; }
.filter-category-group { border-top: 1px solid var(--b); }
.filter-category-group:first-of-type { border-top: none; }
.filter-category-group-label { padding: 10px 16px 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--p); }
.filter-dropdown .opt-sub { padding-left: 24px; font-size: 13px; }

/* İlan grid: mobil 2 sütun, tablet 3, desktop 4; header'dan en az 80px aşağıda */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 24px 15px 80px; padding-top: max(24px, 80px); max-width: 100%; min-height: 0; min-width: 0; }
/* Ana sayfa: ikonlar ile ilanlar arası boşluk abartılı olmasın */
.navbar-with-search ~ .listings-head { margin-top: 0; }
.navbar-with-search ~ main.grid { padding-top: 16px; }
@media (min-width: 600px) {
    .grid { grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 24px; }
}
@media (min-width: 900px) {
    .grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}
.grid.grid-empty .card { display: none !important; }
.grid.grid-empty { width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
/* Kategori seçiliyken "Tüm ilanlara dön" çubuğu */
.back-to-all-bar {
    grid-column: 1 / -1;
    width: 100%;
    padding: 10px 0 14px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.back-to-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--p);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 0;
    touch-action: manipulation;
}
.back-to-all-link:hover { text-decoration: underline; opacity: 0.9; }
.back-to-all-link i { font-size: 12px; }
body.dark-mode .back-to-all-link { color: #f0a050; }
.grid .empty-state { grid-column: 1 / -1; width: 100%; }
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100%;
    padding: 24px;
    box-sizing: border-box;
}
.no-results-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 400px;
    text-align: center;
    margin: 50px auto;
}
.empty-state-icon {
    display: block;
    font-size: 3rem;
    color: #bbb;
    opacity: 0.7;
    margin-bottom: 20px;
    line-height: 1;
}
body.dark-mode .empty-state-icon { color: #888; opacity: 0.6; }
.empty-state-message {
    font-size: 1.25rem;
    color: #888;
    margin: 0 0 30px 0;
    max-width: 320px;
}
body.dark-mode .empty-state-message { color: #b8b8b8; }
.btn-back-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 44px;
    min-height: 44px;
    background: var(--p);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    touch-action: manipulation;
    margin-top: 0;
}
.btn-back-all:hover { opacity: 0.9; }
body.dark-mode .btn-back-all { background: #c44a08; }
/* Skeleton loader: Tap.az tarzı anında yer tutucu */
.skeleton { background: linear-gradient(90deg, var(--g) 25%, var(--b) 50%, var(--g) 75%); background-size: 200% 100%; animation: skeleton-pulse 1.2s ease-in-out infinite; border-radius: 8px; }
body.dark-mode .skeleton { background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%); background-size: 200% 100%; }
@keyframes skeleton-pulse { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-card { pointer-events: none; }
.skeleton-card .skeleton-img { width: 100%; aspect-ratio: 4/3; min-height: 120px; display: block; }
.skeleton-card .skeleton-line { height: 14px; margin-bottom: 8px; }
.skeleton-card .skeleton-line:last-child { margin-bottom: 0; width: 50% !important; }

/* ads-container: grid içinde dinamik ilanlar; display:contents ile grid hücreleri olarak akar */
#ads-container { display: contents; }
/* Kart: .card ile .ad-card aynı yapı (localStorage ilanları için) */
.card, .ad-card { background: white; border: none; border-radius: 12px; overflow: hidden; transition: 0.25s; cursor: pointer; touch-action: pan-y; box-shadow: 0 2px 8px rgba(0,0,0,0.08); max-width: 100%; }
.card:hover, .ad-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.card-img-wrap { position: relative; overflow: hidden; aspect-ratio: 4/3; background: #eee; line-height: 0; }
.card-fav { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; min-width: 40px; min-height: 40px; border: none; background: rgba(255,255,255,0.95); border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; color: #666; font-size: 1rem; touch-action: manipulation; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.card-fav:hover { background: white; color: var(--p); }
.card-fav:active { transform: scale(0.95); }
.card-fav i.fa-solid { color: var(--p); }
.card-badge { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 4px 10px; border-radius: 8px; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.card-badge-premium { background: linear-gradient(135deg, #ff9f6b 0%, var(--p) 100%); color: #fff; }
.card-badge-vip { background: linear-gradient(135deg, #b8860b 0%, #d4a84b 100%); color: #fff; }
.card-badge-featured { background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%); color: #fff; }
/* İlan Detayları üstü: rozetler + upgrade butonları tek blokta, boşluk az */
.detail-above-specs { margin-top: 0; margin-bottom: 16px; }
.detail-above-specs .detail-badges { margin-top: 0; margin-bottom: 10px; }
.detail-above-specs .detail-upgrade { margin-top: 0; padding: 12px 0; border-top: 1px solid var(--b); }
.detail-above-specs .detail-upgrade-title { margin-bottom: 10px; font-size: 13px; font-weight: 600; color: #666; }
.detail-above-specs .detail-upgrade-btns { gap: 8px; }
body.dark-mode .detail-above-specs .detail-upgrade { border-top-color: #333; }

.detail-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; margin-bottom: 16px; }
.detail-badge-premium { display: inline-block; padding: 6px 14px; border-radius: 10px; font-size: 12px; font-weight: 700; background: linear-gradient(135deg, #ff9f6b 0%, var(--p) 100%); color: #fff; }
.detail-badge-vip { display: inline-block; padding: 6px 14px; border-radius: 10px; font-size: 12px; font-weight: 700; background: linear-gradient(135deg, #b8860b 0%, #d4a84b 100%); color: #fff; }
.detail-badge-featured { display: inline-block; padding: 6px 14px; border-radius: 10px; font-size: 12px; font-weight: 700; background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%); color: #fff; }
.detail-upgrade { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--b); }
.detail-upgrade-title { font-size: 1.1rem; margin-bottom: 16px; color: var(--t); }
.detail-upgrade-btns { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 767px) {
    .detail-above-specs { margin-top: 4px; margin-bottom: 10px; }
    .detail-above-specs .detail-upgrade-btns { flex-direction: row; justify-content: stretch; }
    .detail-above-specs .btn-upgrade { flex: 1; min-width: 0; font-size: 13px; padding: 10px 12px; }
}
.btn-upgrade { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 12px; font-weight: 600; font-size: 15px; text-decoration: none; color: #fff; background: linear-gradient(135deg, #ff9f6b 0%, var(--p) 100%); transition: opacity 0.2s; }
.btn-upgrade:hover { opacity: 0.9; color: #fff; }
.btn-upgrade.btn-vip { background: linear-gradient(135deg, #b8860b 0%, #d4a84b 100%); }
.btn-upgrade.btn-vip:hover { opacity: 0.9; color: #fff; }
.btn-upgrade.btn-featured { background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%); }
.btn-upgrade.btn-featured:hover { opacity: 0.9; color: #fff; }
body.dark-mode .detail-upgrade { border-top-color: #333; }
body.dark-mode .detail-upgrade-title { color: #e0e0e0; }
body.dark-mode .detail-badge-vip { background: linear-gradient(135deg, #b8860b 0%, #d4a84b 100%); }
body.dark-mode .detail-badge-featured { background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%); }
.img-placeholder { background: #eee; width: 100%; height: 100%; margin: 0; padding: 0; display: block; overflow: hidden; }
.img-placeholder img { width: 100%; height: 100%; object-fit: cover; display: block; vertical-align: bottom; }
.card-body { padding: 12px; }
.card-extra { font-size: 11px; color: #666; margin-top: 4px; }
body.dark-mode .card-extra { color: #a0a0a0; }
.price { font-size: 16px; font-weight: 800; margin-bottom: 4px; color: var(--t); }
.title { font-size: 13px; color: #333; font-weight: 500; margin-bottom: 6px; line-height: 1.35; height: 36px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.info, .date { font-size: 11px; color: #888; }

.theme-btn:focus { outline: none; }

/* Modal: Tap.az tarzı – temiz beyaz arka plan, modern input/buton */
.modal-overlay { position: fixed; inset: 0; left: 0; top: 0; right: 0; bottom: 0; width: 100%; height: 100%; min-height: 100vh; min-height: 100dvh; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 10000; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.2s, visibility 0.2s; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 20px; box-sizing: border-box; }
.modal-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; z-index: 10000; }
.modal { background: var(--bg); border-radius: 12px; padding: 24px; max-width: 400px; width: 90%; position: relative; z-index: 10001; box-shadow: 0 20px 40px rgba(0,0,0,0.3); pointer-events: auto; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow-y: auto; -webkit-overflow-scrolling: touch; flex-shrink: 0; margin: auto; }
.login-modal { background: #ffffff; border-radius: 16px; padding: 28px 24px; box-shadow: 0 24px 48px rgba(0,0,0,0.12); }
.modal-close { position: absolute; top: 12px; right: 12px; background: none; border: none; font-size: 24px; cursor: pointer; color: #666; line-height: 1; min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; touch-action: manipulation; z-index: 2; }
.modal h2 { margin-bottom: 8px; font-size: 22px; font-weight: 700; color: #1a1a1a; }
.login-modal-title { margin-bottom: 4px; }
.login-welcome { font-size: 14px; color: #666; margin-bottom: 20px; line-height: 1.4; }
.login-modal-message { margin-bottom: 12px; padding: 10px 12px; background: #fff3e0; border-radius: 10px; font-size: 14px; color: #e65100; }
.login-modal-message.hidden { display: none; }
.login-form { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.login-form input { width: 100%; padding: 14px 16px; border: 1px solid #ddd; border-radius: 10px; outline: none; font-size: 16px; min-height: 48px; box-sizing: border-box; background: #fff; color: #1a1a1a; transition: border-color 0.2s; }
.login-form input:focus { border-color: #2563eb; }
.login-form button { width: 100%; background: #2563eb; color: white; border: none; padding: 14px 20px; min-height: 50px; border-radius: 10px; font-weight: 600; cursor: pointer; font-size: 16px; touch-action: manipulation; transition: background 0.2s, box-shadow 0.2s; }
.login-form button:hover { background: #1d4ed8; box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4); }
.modal .or { text-align: center; color: #888; margin: 12px 0; font-size: 13px; }
.social-btn { width: 100%; padding: 14px 20px; min-height: 48px; min-width: 44px; border: 1px solid #ddd; border-radius: 10px; background: #fff; color: #333; cursor: pointer; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px; box-sizing: border-box; touch-action: manipulation; transition: background 0.2s; }
.social-btn.google:hover, .social-btn.apple:hover { background: #f5f5f5; }

/* Lightbox: resme tıklanınca tam ekran; detayda önceki/sonraki ile gezinme */
.photo-modal { position: fixed; inset: 0; z-index: 10050; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.25s, visibility 0.25s; }
.photo-modal.open { opacity: 1; visibility: visible; pointer-events: auto; }
.photo-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.9); cursor: pointer; }
.photo-modal-img { position: relative; z-index: 1; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; pointer-events: none; }
.photo-modal-close { position: absolute; top: 16px; right: 16px; z-index: 3; width: 48px; height: 48px; min-width: 48px; min-height: 48px; border: none; background: rgba(255,255,255,0.2); color: #fff; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; touch-action: manipulation; transition: background 0.2s; }
.photo-modal-close:hover { background: rgba(255,255,255,0.35); }
.photo-modal-close:focus { outline: none; }
.photo-modal-prev, .photo-modal-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 48px; height: 48px; min-width: 48px; min-height: 48px; border: none; background: rgba(255,255,255,0.2); color: #fff; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; touch-action: manipulation; transition: background 0.2s, color 0.2s; }
.photo-modal-prev:hover, .photo-modal-next:hover { background: rgba(255,255,255,0.35); color: #fff; }
.photo-modal-prev { left: 16px; }
.photo-modal-next { right: 16px; }
.photo-modal-counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 3; padding: 6px 14px; border-radius: 20px; background: rgba(0,0,0,0.5); color: rgba(255,255,255,0.95); font-size: 13px; font-weight: 600; }
.photo-modal-watermark { display: none; }
body.detail-page-body .photo-modal .photo-modal-watermark { display: flex; position: absolute; inset: 0; align-items: center; justify-content: center; pointer-events: none; z-index: 2; font-family: 'Inter', -apple-system, sans-serif; font-size: clamp(22px, 8vw, 42px); font-weight: 700; letter-spacing: 0.2em; color: rgba(255,255,255,0.42); text-shadow: 0 1px 2px rgba(0,0,0,0.4); }

/* Bottom Nav (mobile): z-index 999 ile her zaman en üstte, ikon altı küçük etiketler */
.bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--bg); border-top: 1px solid var(--b); z-index: 999; padding: 10px 0; padding-bottom: max(10px, env(safe-area-inset-bottom)); pointer-events: auto; min-height: 64px; }
.bottom-nav .bottom-nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 10px 6px; min-height: 56px; min-width: 48px; color: #666; text-decoration: none; font-size: 10px; font-weight: 500; touch-action: manipulation; cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent; position: relative; z-index: 1; box-sizing: border-box; }
.bottom-nav .bottom-nav-item span { font-size: 10px; line-height: 1.2; }
.bottom-nav .bottom-nav-item.active { color: var(--p); }
.bottom-nav .bottom-nav-item i { font-size: 20px; }
.bottom-nav .bottom-nav-item.add { color: var(--p); font-weight: 600; }
/* Mobil: sadece 767px ve altı — tablet/fold’da karışmayı önlemek için tek sınır */
@media (max-width: 767px) {
    .nav-center { padding: 0 12px 12px; }
    .bottom-nav { display: flex; justify-content: space-around; align-items: center; }
    main.grid { padding-bottom: 70px; }
    main.detail-page { padding-bottom: 70px; }
}

/* Hamburger panel: soldan açılır, Dil + Dark Mode + WhatsApp */
.hamburger-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1005; opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s; }
.hamburger-overlay.open { opacity: 1; visibility: visible; }
.hamburger-panel { position: fixed; top: 0; right: 0; width: 70%; max-width: 300px; height: 100%; height: 100dvh; background: #fff; box-shadow: -4px 0 24px rgba(0,0,0,0.15); z-index: 1006; transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto; display: flex; flex-direction: column; }
.hamburger-panel.open { transform: translateX(0); }
.hamburger-panel-left { left: 0; right: auto; box-shadow: 4px 0 24px rgba(0,0,0,0.15); transform: translateX(-100%); }
.hamburger-panel-left.open { transform: translateX(0); }
.hamburger-panel-darkmode { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 0; min-height: 44px; color: #1a1a1a; text-decoration: none; font-size: 15px; font-weight: 500; border: none; background: none; cursor: pointer; text-align: left; font-family: inherit; border-bottom: 1px solid #eee; }
.hamburger-panel-darkmode #hamburger-theme-icon { margin-left: auto; font-size: 1.2rem; transition: transform 0.2s; }
.hamburger-panel-header { padding: 16px; display: flex; justify-content: flex-end; border-bottom: 1px solid #eee; min-height: 44px; align-items: center; }
.hamburger-close { background: none; border: none; padding: 12px; min-width: 44px; min-height: 44px; cursor: pointer; color: #666; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; touch-action: manipulation; }
.hamburger-panel-content { padding: 20px 16px; }
.hamburger-panel-label { font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.hamburger-panel-langs { display: flex; gap: 10px; margin-bottom: 24px; }
.hamburger-lang-opt { padding: 12px 20px; min-height: 44px; min-width: 44px; border: 1px solid #ddd; border-radius: 10px; background: #fff; font-size: 15px; font-weight: 600; cursor: pointer; touch-action: manipulation; transition: background 0.2s, border-color 0.2s; }
.hamburger-lang-opt:hover, .hamburger-lang-opt.active { background: var(--p); color: #fff; border-color: var(--p); }
.hamburger-panel-item { display: flex; align-items: center; gap: 14px; padding: 16px 0; min-height: 44px; color: #1a1a1a; text-decoration: none; font-size: 15px; font-weight: 500; border-bottom: 1px solid #eee; touch-action: manipulation; }
.hamburger-panel-item:last-child { border-bottom: none; }
.hamburger-panel-item i:first-child { width: 22px; text-align: center; color: #666; font-size: 18px; }
.hamburger-panel-item span { flex: 1; }
.hamburger-panel-item .fa-chevron-right { font-size: 12px; color: #999; }
.hamburger-panel-whatsapp i:first-child { color: #25D366; }
.hamburger-panel-store { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 0; min-height: 44px; color: #1a1a1a; text-decoration: none; font-size: 15px; font-weight: 500; border: none; background: none; cursor: pointer; text-align: left; font-family: inherit; border-bottom: 1px solid #eee; touch-action: manipulation; }
.hamburger-panel-store i:first-child { width: 22px; text-align: center; color: #666; font-size: 18px; }
.hamburger-panel-store span { flex: 1; }
.hamburger-store-star { font-size: 12px !important; color: var(--p); animation: hamburger-star-sparkle 1.5s ease-in-out infinite; }
@keyframes hamburger-star-sparkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(1.2); } }
.hamburger-panel-store:hover .hamburger-store-star { color: var(--p); }
body.dark-mode .hamburger-panel-store { color: #e0e0e0; border-bottom-color: #333; }
body.dark-mode .hamburger-panel-store i:first-child { color: #aaa; }
body.dark-mode .hamburger-store-star { color: #ff9f6b; }

/* Yakında Hizmetinizde – şık animasyonlu mesaj */
.coming-soon-overlay { position: fixed; inset: 0; z-index: 1010; display: flex; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; background: rgba(0,0,0,0.5); opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.coming-soon-overlay.visible { opacity: 1; visibility: visible; }
.coming-soon-card { background: #fff; border-radius: 20px; padding: 32px 40px; text-align: center; max-width: 320px; box-shadow: 0 20px 60px rgba(0,0,0,0.2); transform: scale(0.85); opacity: 0; transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease; }
.coming-soon-overlay.visible .coming-soon-card { transform: scale(1); opacity: 1; }
.coming-soon-card .coming-soon-icon { font-size: 48px; color: var(--p); margin-bottom: 16px; display: block; animation: coming-soon-icon-pulse 2s ease-in-out infinite; }
@keyframes coming-soon-icon-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: 0.9; } }
.coming-soon-card .coming-soon-text { font-size: 18px; font-weight: 700; color: #1a1a1a; line-height: 1.4; margin: 0; }
body.dark-mode .coming-soon-overlay { background: rgba(0,0,0,0.7); }
body.dark-mode .coming-soon-card { background: #2d2d2d; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
body.dark-mode .coming-soon-card .coming-soon-text { color: #e0e0e0; }
body.dark-mode .coming-soon-card .coming-soon-icon { color: #ff9f6b; }

body.dark-mode .hamburger-panel-darkmode { color: #e0e0e0; border-bottom-color: #333; }
body.dark-mode .hamburger-panel { background: #252525; box-shadow: 4px 0 24px rgba(0,0,0,0.4); }
body.dark-mode .hamburger-panel-header { border-bottom-color: #333; }
body.dark-mode .hamburger-close { color: #aaa; }
body.dark-mode .hamburger-panel-label { color: #888; }
body.dark-mode .hamburger-lang-opt { background: #2d2d2d; border-color: #333; color: #e0e0e0; }
body.dark-mode .hamburger-lang-opt:hover, body.dark-mode .hamburger-lang-opt.active { background: var(--p); color: #fff; border-color: var(--p); }
body.dark-mode .hamburger-panel-item { color: #e0e0e0; border-bottom-color: #333; }
body.dark-mode .hamburger-panel-item i:first-child { color: #aaa; }
body.dark-mode .hamburger-panel-item .fa-chevron-right { color: #888; }

/* Filtre Modal: Kategoriler, Şehirler, Fiyat Aralığı */
.filter-modal-overlay { padding: 0; align-items: flex-end; justify-content: center; }
.filter-modal-overlay.open { display: flex; }
.filter-modal { background: white; width: 100%; max-width: 480px; max-height: 85vh; border-radius: 20px 20px 0 0; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 -8px 32px rgba(0,0,0,0.15); }
.filter-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 16px; border-bottom: 1px solid #eee; }
.filter-modal-header h2 { font-size: 20px; font-weight: 700; margin: 0; color: #1a1a1a; }
.filter-modal-close { background: none; border: none; padding: 10px; min-width: 44px; min-height: 44px; cursor: pointer; color: #666; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; touch-action: manipulation; }
.filter-modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.filter-modal-section { margin-bottom: 24px; }
.filter-modal-section:last-child { margin-bottom: 0; }
.filter-modal-label { display: block; font-size: 13px; font-weight: 600; color: #666; margin-bottom: 10px; }
.filter-modal-wrap { position: relative; }
.filter-modal-select { width: 100%; min-height: 48px; }
.filter-price-range { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filter-price-range input { flex: 1; min-width: 100px; padding: 14px 16px; border: 1px solid var(--b); border-radius: 10px; font-size: 16px; outline: none; min-height: 48px; }
.filter-price-range input:focus { border-color: var(--p); }
.filter-price-sep { color: #999; font-weight: 500; }
.filter-price-currency { font-weight: 700; color: #555; }
.filter-modal-footer { display: flex; gap: 12px; padding: 16px 20px; padding-bottom: max(16px, env(safe-area-inset-bottom)); border-top: 1px solid #eee; background: #fafafa; }
.filter-modal-reset { flex: 1; padding: 14px 20px; min-height: 48px; border: 1px solid var(--b); border-radius: 10px; background: white; font-weight: 600; font-size: 15px; cursor: pointer; color: #333; touch-action: manipulation; }
.filter-modal-apply { flex: 1; padding: 14px 20px; min-height: 48px; border: none; border-radius: 10px; background: var(--p); color: white; font-weight: 600; font-size: 15px; cursor: pointer; touch-action: manipulation; }
.filter-modal-apply:hover { opacity: 0.9; }
body.dark-mode .filter-modal { background: #252525; box-shadow: 0 -8px 32px rgba(0,0,0,0.5); }
body.dark-mode .filter-modal-header { border-bottom-color: #333; }
body.dark-mode .filter-modal-header h2 { color: #e0e0e0; }
body.dark-mode .filter-modal-close { color: #aaa; }
body.dark-mode .filter-modal-label { color: #b0b0b0; }
body.dark-mode .filter-modal-select { background: #2d2d2d; border-color: #333; color: #e0e0e0; }
body.dark-mode .filter-price-range input { background: #2d2d2d; border-color: #333; color: #e0e0e0; }
body.dark-mode .filter-price-range input::placeholder { color: #888; }
body.dark-mode .filter-price-sep { color: #888; }
body.dark-mode .filter-price-currency { color: #aaa; }
body.dark-mode .filter-modal-footer { border-top-color: #333; background: #1e1e1e; }
body.dark-mode .filter-modal-reset { background: #2d2d2d; border-color: #333; color: #e0e0e0; }
body.dark-mode .filter-modal-apply { background: #c44a08; color: #fff; }
body.dark-mode .filter-modal .filter-dropdown { background: #2d2d2d; border-color: #333; }
body.dark-mode .filter-modal .filter-dropdown .opt { color: #e0e0e0; }
body.dark-mode .filter-modal .filter-dropdown .opt:hover { background: #444; }
body.dark-mode .filter-modal .filter-dropdown .opt.active { color: #ff9f6b; }
body.dark-mode .filter-modal .filter-category-group { border-top-color: #333; }
body.dark-mode .filter-modal .filter-category-group-label { color: #ff9f6b; }

/* Tablet 768px+: iPad / Surface / Fold açık — tek sınır, 768’de mobil/tablet karışması yok */
@media (min-width: 768px) {
    .navbar.navbar-with-search { flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 12px; padding: 12px 16px; min-height: 56px; overflow: hidden; }
    .navbar.navbar-with-search .nav-left { order: 1; flex: 0 0 auto; display: flex; align-items: center; gap: 12px; padding: 0; min-height: 0; flex-shrink: 0; min-width: 0; }
    .navbar.navbar-with-search .nav-left .hamburger-btn { flex-shrink: 0; width: 44px; min-width: 44px; }
    .navbar.navbar-with-search .navbar-logo-title { flex-shrink: 0; min-width: 100px; text-align: left; font-size: 22px; letter-spacing: -0.04em; }
    .navbar.navbar-with-search .nav-right { order: 3; display: flex; align-items: center; gap: 10px; flex-shrink: 0; padding-right: 0; }
    .navbar.navbar-with-search .nav-right .navbar-add-btn, .navbar.navbar-with-search .nav-right .navbar-login-btn, .navbar.navbar-with-search .nav-right .navbar-profile-btn { padding: 0 14px; font-size: 14px; }
    .navbar.navbar-with-search .nav-center { order: 2; flex: 1 1 0; min-width: 0; width: auto; padding: 0; gap: 10px; box-sizing: border-box; overflow: hidden; }
    .navbar.navbar-with-search .nav-center { display: flex; }
    .navbar.navbar-with-search .nav-center .search-box { flex: 1 1 0; min-width: 0; max-width: 280px; }
    .navbar.navbar-with-search .nav-center .filter-btn { flex-shrink: 0; }
}

/* Breakpoint 1024px (masaüstü): Tek satır, arama tam boy; Hamburger+Logo sabit genişlik, alt satıra düşme yok */
@media (min-width: 1024px) {
    .navbar.navbar-with-search { flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 16px; padding: 12px 24px; min-height: 64px; overflow: hidden; }
    .navbar.navbar-with-search .nav-left { order: 1; flex: 0 0 auto; flex-shrink: 0; display: flex; align-items: center; gap: 16px; padding: 0; min-height: 0; }
    .navbar.navbar-with-search .nav-left .hamburger-btn { flex-shrink: 0; width: 44px; min-width: 44px; }
    .navbar.navbar-with-search .navbar-logo-title { flex-shrink: 0; flex: none; min-width: 120px; font-size: 26px; font-weight: 800; letter-spacing: -0.04em; text-align: left; }
    .navbar.navbar-with-search .nav-center { margin-left: 4px; }
    .navbar.navbar-with-search .navbar-slogan { display: inline; font-size: 14px; color: #666; font-weight: 500; white-space: nowrap; flex-shrink: 0; }
    body.dark-mode .navbar.navbar-with-search .navbar-slogan { color: #b0b0b0; }
    .navbar.navbar-with-search .nav-center { order: 2; flex: 1 1 0; min-width: 0; width: auto; padding: 0; margin: 0; max-width: none; }
    .navbar.navbar-with-search .nav-center .search-box { flex: 1 1 0; min-width: 0; max-width: none; }
    .navbar.navbar-with-search .nav-center .filter-btn { flex-shrink: 0; }
    .navbar.navbar-with-search .nav-right { order: 3; flex-shrink: 0; display: flex; padding-right: 0; gap: 16px; }
    .navbar.navbar-with-search .nav-right .navbar-add-btn, .navbar.navbar-with-search .nav-right .navbar-login-btn, .navbar.navbar-with-search .nav-right .navbar-profile-btn { padding: 0 20px; font-size: 15px; }
}

/* Dark Mode - okunurluk ve kenarlık tutarlılığı; menü ve filtre modalı siyah/gri tonları */
body.dark-mode { background: #1a1a1a; color: #e0e0e0; }
body.dark-mode * { color: inherit; }
body.dark-mode span, body.dark-mode strong, body.dark-mode li, body.dark-mode td, body.dark-mode div, body.dark-mode p, body.dark-mode h1, body.dark-mode h2, body.dark-mode h3 { color: #e0e0e0; }
body.dark-mode .navbar { background: #1a1a1a; border-bottom: 1px solid #333; }
body.dark-mode .navbar-logo-title { color: #ffffff; }
body.dark-mode .navbar-logo-title span { color: #ff9f6b; }
body.dark-mode .navbar-add-btn { background: #c44a08; color: #fff; }
body.dark-mode .navbar-add-btn:hover { opacity: 0.9; color: #fff; }
body.dark-mode .navbar-login-btn, body.dark-mode .navbar-profile-btn { color: #e0e0e0; border-color: #444; }
body.dark-mode .navbar-login-btn:hover, body.dark-mode .navbar-profile-btn:hover { border-color: #ff9f6b; color: #ff9f6b; }
body.dark-mode .nav-left .hamburger-btn, body.dark-mode .navbar-brand-top .hamburger-btn { color: #ffffff; }
body.dark-mode .nav-left .hamburger-btn:hover, body.dark-mode .navbar-brand-top .hamburger-btn:hover { color: #ff9f6b; }
body.dark-mode .nav-center .filter-btn { color: #ffffff; }
body.dark-mode .nav-center .filter-btn:hover { color: #ff9f6b; }
body.dark-mode .search-box-center { background: #2d2d2d; border: 1px solid #333; }
body.dark-mode .search-box-center:focus-within { background: #2d2d2d; border-color: #333; }
body.dark-mode .search-box input { background: transparent; border: none; color: #e0e0e0; }
body.dark-mode .search-box input::placeholder { color: #888; }
body.dark-mode .search-box button { color: #fff; }
body.dark-mode .filters { background: #252525; border-bottom: 1px solid #333; }
body.dark-mode .select-box { background: #2d2d2d; border: 1px solid #333; color: #e0e0e0; }
body.dark-mode .grid { color: #e0e0e0; }
body.dark-mode .card { background: #252525; border: 1px solid #333; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
body.dark-mode .card .title { color: #e0e0e0; }
body.dark-mode .card .info,
body.dark-mode .card .date { color: #b0b0b0; }
body.dark-mode .card .price { color: #e0e0e0; }
body.dark-mode .card-fav { background: rgba(0,0,0,0.5); color: #aaa; }
body.dark-mode .card-fav:hover { color: #ff9f6b; }
body.dark-mode .card-fav i.fa-solid { color: #ff9f6b; }
body.dark-mode .fav-badge { color: #fff; }
body.dark-mode .login, body.dark-mode .nav-profile { color: #e0e0e0; }
body.dark-mode #theme-icon { color: #ff9f6b; }
body.dark-mode .modal { background: #252525; color: #e0e0e0; }
body.dark-mode .login-modal { background: #252525; }
body.dark-mode .modal h2, body.dark-mode .login-modal-title { color: #e0e0e0; }
body.dark-mode .login-welcome { color: #b0b0b0; }
body.dark-mode .modal-close { color: #aaa; }
body.dark-mode .login-modal-message { background: #2d2d2d; border: 1px solid #333; color: #e0e0e0; }
body.dark-mode .login-form input { background: #2d2d2d; border: 1px solid #333; color: #fff; }
body.dark-mode .login-form input:focus { border-color: #3b82f6; }
body.dark-mode .login-form input::placeholder { color: #888; }
body.dark-mode .login-form button { color: #fff; background: #2563eb; }
body.dark-mode .login-form button:hover { background: #1d4ed8; }
body.dark-mode .modal .or { color: #888; }
body.dark-mode .social-btn { background: #2d2d2d; border: 1px solid #333; color: #e0e0e0; }
body.dark-mode .social-btn:hover { background: #3d3d3d; color: #e0e0e0; }
body.dark-mode .filter-dropdown { background: #2d2d2d; border: 1px solid #333; color: #e0e0e0; }
body.dark-mode .filter-dropdown .opt { color: #e0e0e0; }
body.dark-mode .filter-dropdown .opt:hover { background: #444; color: #e0e0e0; }
body.dark-mode .filter-dropdown .opt.active { color: #ff9f6b; }
body.dark-mode .filter-category-group { border-top-color: #333; }
body.dark-mode .filter-category-group-label { color: #ff9f6b; }
body.dark-mode .bottom-nav { background: #252525; border-top: 1px solid #333; }
body.dark-mode .bottom-nav .bottom-nav-item { color: #aaa; }
body.dark-mode .bottom-nav .bottom-nav-item span { color: inherit; }
body.dark-mode .bottom-nav .bottom-nav-item.active { color: #ff9f6b; }
body.dark-mode .add-btn { color: #fff; background: #c44a08; }
body.dark-mode hr { border-color: #333; }

/* ========== İlan Detay Sayfası (details.html) ========== */
.detail-page-body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.detail-header { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; padding: 12px 16px; background: var(--bg); border-bottom: 1px solid var(--b); z-index: 300; }
.detail-back-btn { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--p); text-decoration: none; font-size: 1.25rem; touch-action: manipulation; flex-shrink: 0; }
.detail-back-btn:hover { opacity: 0.8; }
.detail-logo-title { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; color: var(--t); text-decoration: none; flex: 1; text-align: center; opacity: 1; transition: opacity 0.2s ease; }
.detail-logo-title:active { opacity: 0.7; }
.detail-logo-title.logo-pressed { opacity: 0.7; }
.detail-logo-title span { color: var(--p); }
.detail-header-spacer { width: 44px; flex-shrink: 0; }
.detail-fav-btn { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0; border: none; background: none; color: var(--t); font-size: 1.25rem; cursor: pointer; touch-action: manipulation; flex-shrink: 0; }
.detail-fav-btn:hover { opacity: 0.8; }
.detail-fav-btn i { transition: color 0.2s; }
.detail-fav-btn.fav-active i { color: #ff4f08; }
body.dark-mode .detail-header { background: #252525; border-bottom-color: #333; }
body.dark-mode .detail-logo-title { color: #e0e0e0; }
body.dark-mode .detail-logo-title span { color: #ff9f6b; }

/* Fotoğraf: tam ekran genişlik, kenar boşluğu yok — container padding'ini negatif margin ile taşıyor */
.detail-gallery-wrap {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0;
    overflow: hidden;
    position: relative;
    left: 0;
    box-sizing: border-box;
}
.detail-gallery { background: #1a1a1a; overflow: hidden; line-height: 0; padding: 0; margin: 0; width: 100%; min-width: 100%; box-sizing: border-box; }
.detail-gallery .gallery-main { position: relative; height: 35vh; min-height: 220px; max-height: 400px; overflow: hidden; padding: 0; margin: 0; }
.detail-gallery .gallery-slides { left: 0; right: 0; }
.detail-gallery .gallery-slide img { width: 100%; height: 100%; object-fit: cover; display: block; vertical-align: bottom; }
.detail-watermark { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 2; font-family: 'Inter', -apple-system, sans-serif; font-size: clamp(20px, 7vw, 38px); font-weight: 700; letter-spacing: 0.2em; color: rgba(255,255,255,0.4); text-shadow: 0 1px 2px rgba(0,0,0,0.35); }
.detail-gallery .gallery-dots { padding: 10px; }
@media (min-width: 768px) {
    .detail-gallery .gallery-main { max-height: 450px; }
}
@media (max-width: 767px) {
    .detail-page-body .detail-gallery-wrap {
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
        max-width: none;
    }
    .detail-gallery .gallery-main { overflow: hidden; }
}

/* İlan Bilgi Satırı: metin hizasında padding ile başlar (fotoğraf üstte tam genişlik) */
.detail-info-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; margin-top: 4px; border-top: 1px solid var(--b); gap: 12px; }
.detail-info-left { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; color: #888; font-weight: 500; flex: 1; min-width: 0; }
.detail-report-btn { background: none; border: none; padding: 6px 10px; font-size: 12px; font-weight: 500; color: #888; cursor: pointer; touch-action: manipulation; flex-shrink: 0; white-space: nowrap; }
.detail-report-btn:hover { color: #c62828; text-decoration: underline; }
@media (max-width: 767px) {
    .detail-info-row { display: flex; flex-direction: column; width: 100%; align-items: stretch; gap: 12px; padding: 12px 0; }
    .detail-info-left { width: 100%; }
    .detail-info-row .detail-report-btn { width: 100%; display: block; text-align: center; padding: 14px 16px; border: 1px solid var(--b); border-radius: 8px; box-sizing: border-box; font-size: 14px; white-space: nowrap; }
}
body.dark-mode .detail-info-left { color: #999; }
body.dark-mode .detail-report-btn { color: #999; }
body.dark-mode .detail-report-btn:hover { color: #ef5350; }

/* İlan Detayları: Fiyat büyük, başlık, açıklama hiyerarşisi */
.detail-content { padding: 16px 0 8px; }
.detail-content .detail-price { font-size: 26px; font-weight: 800; color: var(--p); margin-bottom: 8px; letter-spacing: -0.03em; }
.detail-content .detail-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; line-height: 1.4; color: var(--t); }
.detail-content .detail-meta { font-size: 13px; color: #666; margin-bottom: 16px; }
.detail-section-title { font-size: 14px; font-weight: 700; margin-bottom: 8px; color: var(--t); text-transform: uppercase; letter-spacing: 0.03em; }
.detail-description-wrap { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--b); }
.detail-description { font-size: 14px; line-height: 1.6; color: #444; margin: 0 0 20px 0; white-space: pre-wrap; }
body.dark-mode .detail-content .detail-title { color: #e0e0e0; }
body.dark-mode .detail-content .detail-meta { color: #b0b0b0; }
body.dark-mode .detail-section-title { color: #e0e0e0; }
body.dark-mode .detail-description { color: #b0b0b0; }

/* Benzer İlanlar */
.detail-similar { padding: 20px 0 100px; }
.detail-similar-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; color: var(--t); }
.detail-similar-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 600px) {
    .detail-similar-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (min-width: 900px) {
    .detail-similar-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; }
}
body.dark-mode .detail-similar-title { color: #e0e0e0; }

/* Favorilerim grid: mobil 2, tablet 3, desktop 4 sütun (kartlar böyüməsin) */
.favorites-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.favorites-grid .card { margin: 0; }
@media (min-width: 600px) {
    .favorites-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (min-width: 900px) {
    .favorites-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; }
}

/* Sticky Bottom: Numara Göster + WhatsApp (Tap.az tarzı) */
.detail-phone-sticky { position: fixed; bottom: 0; left: 0; right: 0; background: var(--bg); border-top: 1px solid var(--b); padding: 12px 16px; padding-bottom: max(12px, env(safe-area-inset-bottom)); z-index: 999; box-shadow: 0 -4px 20px rgba(0,0,0,0.08); }
.detail-phone-sticky-inner { display: flex; gap: 12px; align-items: center; justify-content: stretch; max-width: 600px; margin: 0 auto; }
.detail-phone-sticky .lock-icon { margin-right: 6px; font-size: 0.9em; }
.detail-phone-sticky.logged-in .lock-icon { display: none; }
.detail-phone-sticky-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 16px 20px; border: none; border-radius: 12px; font-size: 16px; font-weight: 600; cursor: pointer; text-decoration: none; box-sizing: border-box; touch-action: manipulation; transition: opacity 0.2s; }
.detail-phone-sticky .btn-show-phone { background: var(--p); color: white; }
.detail-phone-sticky .btn-show-phone:hover { opacity: 0.9; }
.detail-phone-sticky .detail-whatsapp-btn { background: #25D366; color: white; }
.detail-phone-sticky .detail-whatsapp-btn:hover { opacity: 0.9; color: white; }
.detail-phone-sticky .phone-number { flex: 1; text-align: center; font-size: 18px; font-weight: 700; margin: 0; min-width: 0; }
.detail-phone-sticky .phone-number.hidden { display: none; }
.detail-phone-sticky .btn-show-phone.hidden { display: none !important; }
.detail-phone-sticky.phone-revealed .detail-phone-sticky-inner { flex-wrap: wrap; }
.detail-phone-sticky.phone-revealed .phone-number { flex: 1 1 100%; order: -1; margin-bottom: 8px; }
body.dark-mode .detail-phone-sticky { background: #252525; border-top-color: #333; box-shadow: 0 -4px 20px rgba(0,0,0,0.3); }

.detail-page { padding: 0 15px 100px; flex: 1; position: relative; }
/* Ortak yükleme patterni: spinner + "Yükleniyor…" mətni (detail, admin, add-ad) */
.detail-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.92); z-index: 10; min-height: 200px; }
body.dark-mode .detail-loading { background: rgba(30,30,30,0.92); }
.detail-loading-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.detail-loading-spinner,
.loading-spinner { width: 40px; height: 40px; border: 3px solid var(--b); border-top-color: var(--p, #ff4f08); border-radius: 50%; animation: detail-spin 0.8s linear infinite; }
@keyframes detail-spin { to { transform: rotate(360deg); } }
.detail-loading-text,
.loading-text { font-size: 14px; color: #666; font-weight: 500; }
body.dark-mode .detail-loading-text,
body.dark-mode .loading-text { color: #b0b0b0; }

/* Detay sayfası skeleton: veri gelene kadar boş ekran kalmasın */
.detail-body-skeleton .detail-gallery-wrap { background: linear-gradient(90deg, var(--g) 25%, var(--b) 50%, var(--g) 75%); background-size: 200% 100%; animation: skeleton-pulse 1.2s ease-in-out infinite; border-radius: 12px; min-height: 35vh; }
.detail-body-skeleton .detail-gallery .gallery-slide img { opacity: 0; }
.detail-body-skeleton .detail-price,
.detail-body-skeleton .detail-title,
.detail-body-skeleton .detail-meta { color: transparent !important; background: linear-gradient(90deg, var(--g) 25%, var(--b) 50%, var(--g) 75%); background-size: 200% 100%; animation: skeleton-pulse 1.2s ease-in-out infinite; border-radius: 8px; }
.detail-body-skeleton .detail-price { display: inline-block; min-width: 120px; height: 32px; }
.detail-body-skeleton .detail-title { min-height: 24px; max-width: 90%; }
.detail-body-skeleton .detail-meta { min-height: 18px; max-width: 60%; margin-top: 8px; }
.detail-body-skeleton .detail-specs .specs-table th,
.detail-body-skeleton .detail-specs .specs-table td { color: transparent !important; background: linear-gradient(90deg, var(--g) 25%, var(--b) 50%, var(--g) 75%); background-size: 200% 100%; animation: skeleton-pulse 1.2s ease-in-out infinite; }
body.dark-mode .detail-body-skeleton .detail-gallery-wrap { background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%); background-size: 200% 100%; }
body.dark-mode .detail-body-skeleton .detail-price,
body.dark-mode .detail-body-skeleton .detail-title,
body.dark-mode .detail-body-skeleton .detail-meta,
body.dark-mode .detail-body-skeleton .detail-specs .specs-table th,
body.dark-mode .detail-body-skeleton .detail-specs .specs-table td { background: linear-gradient(90deg, #333 25%, #444 50%, #333 75%); background-size: 200% 100%; }
.loading-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 32px; text-align: center; }
.loading-cell .loading-text { margin: 0; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--p); text-decoration: none; font-weight: 600; margin-bottom: 24px; }
.back-link:hover { text-decoration: underline; }

/* Galeri slider */
.detail-gallery .gallery-main { position: relative; }
.gallery-slides { position: absolute; inset: 0; width: 100%; height: 100%; }
.gallery-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.gallery-slide.active { opacity: 1; pointer-events: auto; z-index: 1; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; display: block; vertical-align: bottom; }
.gallery-prev, .gallery-next { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: none; background: rgba(255,255,255,0.9); border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; color: #333; font-size: 1.2rem; box-shadow: 0 2px 10px rgba(0,0,0,0.15); }
.gallery-prev:hover, .gallery-next:hover { background: white; color: var(--p); }
.gallery-prev { left: 16px; }
.gallery-next { right: 16px; }
.gallery-dots { display: flex; justify-content: center; gap: 8px; padding: 12px; }
.gallery-dots .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--b); cursor: pointer; border: none; padding: 0; }
.gallery-dots .dot.active { background: var(--p); }

/* Mobil: detay galerisi */
@media (max-width: 767px) {
    .detail-gallery .gallery-main { height: 35vh; min-height: 200px; }
    .detail-content .detail-price { font-size: 26px; }
    .detail-content .detail-title { font-size: 18px; }
}

/* Teknik özellikler tablosu - profesyonel emlak tipografisi */
.detail-specs { background: var(--g); border-radius: 12px; overflow: hidden; margin-top: 20px; }
.detail-specs h2 { padding: 12px 16px; font-size: 14px; font-weight: 700; border-bottom: 1px solid var(--b); background: transparent; letter-spacing: 0.02em; color: var(--t); }
.specs-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.specs-table th, .specs-table td { padding: 10px 16px; text-align: left; border-bottom: 1px solid var(--b); }
.specs-table th { font-weight: 600; color: #666; width: 40%; max-width: 160px; }
.specs-table td { font-weight: 500; color: var(--t); }
.specs-table tr:last-child th, .specs-table tr:last-child td { border-bottom: none; }

body.dark-mode .back-link { color: #ff9f6b; }
body.dark-mode .back-link span { color: inherit; }
body.dark-mode .detail-price { color: #ff9f6b; }
body.dark-mode .detail-title { color: #e0e0e0; }
body.dark-mode .detail-meta { color: #b0b0b0; }
body.dark-mode .phone-number { color: #e0e0e0; }
body.dark-mode .btn-show-phone, body.dark-mode .whatsapp-btn { color: #fff; }
body.dark-mode .btn-show-phone span, body.dark-mode .whatsapp-btn span { color: inherit; }
body.dark-mode .detail-specs { background: #252525; }
body.dark-mode .detail-specs h2 { border-bottom: 1px solid #333; color: #e0e0e0; }
body.dark-mode .specs-table th, body.dark-mode .specs-table td { border-bottom: 1px solid #333; color: #e0e0e0; padding: 10px 16px; }
body.dark-mode .specs-table th { color: #b0b0b0; font-weight: 600; }
body.dark-mode .specs-table td { color: #e0e0e0; }
body.dark-mode .specs-table tr:hover th,
body.dark-mode .specs-table tr:hover td { background: #333; color: #e0e0e0; }
body.dark-mode .specs-table tr:hover th { color: #b0b0b0; }
body.dark-mode .specs-table tr:last-child th, body.dark-mode .specs-table tr:last-child td { border-bottom: none; }
body.dark-mode .detail-gallery { background: #252525; border: 1px solid #333; }
body.dark-mode .gallery-prev, body.dark-mode .gallery-next { background: rgba(0,0,0,0.5); color: #fff; border: none; }
body.dark-mode .gallery-dots .dot { background: #444; }
body.dark-mode .gallery-dots .dot.active { background: #ff9f6b; }
body.dark-mode .logo { color: #e0e0e0; text-decoration: none; }
body.dark-mode .logo span { color: var(--p); }

/* İlan Ver sayfası (add-ad.html) */
.add-ad-page { padding: 24px 15px 80px; padding-top: 24px; max-width: 620px; margin: 0 auto; }
.add-ad-page { padding-top: max(24px, 80px); }
.add-ad-title { font-size: 26px; font-weight: 700; margin-bottom: 28px; color: var(--t); }
.add-ad-card { background: white; border: 1px solid var(--b); border-radius: 16px; padding: 32px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.add-ad-form { background: transparent; border: none; box-shadow: none; padding: 0; }
.add-ad-form .form-group { margin-bottom: 22px; }
.add-ad-form .category-fields { margin-top: 8px; padding-top: 0; border-top: 1px solid var(--b); }
.add-ad-form .category-fields .form-group:last-child { margin-bottom: 0; }
.add-ad-form .category-fields-slide { overflow: hidden; max-height: 0; transition: max-height 0.35s ease-out; }
.add-ad-form .category-fields-slide.open { max-height: 1200px; }
.add-ad-form .category-fields-inner { padding-top: 16px; }
.add-ad-form .form-group-checkbox { margin-bottom: 18px; }
.add-ad-form .checkbox-label { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.add-ad-form .checkbox-label input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--p); cursor: pointer; }
body.dark-mode .add-ad-form .category-fields { border-top-color: #333; }
.add-ad-form label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--t); font-size: 14px; }
.add-ad-form input, .add-ad-form select, .add-ad-form textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--b); border-radius: 10px; font-size: 15px; outline: none; font-family: inherit; }
.add-ad-form input:focus, .add-ad-form select:focus, .add-ad-form textarea:focus { border-color: var(--p); }
.add-ad-form textarea { resize: vertical; min-height: 120px; }
.add-ad-form .btn-submit { width: 100%; padding: 16px; min-height: 48px; background: var(--p); color: white; border: none; border-radius: 10px; font-weight: 600; font-size: 16px; cursor: pointer; margin-top: 12px; touch-action: manipulation; }
.add-ad-form .btn-submit:hover { background: #e64606; }
.add-ad-form .checkbox-label { min-height: 44px; }

/* Fiyat alanı + € simgesi */
.price-input-wrap { display: flex; align-items: stretch; border: 1px solid var(--b); border-radius: 10px; overflow: hidden; background: var(--bg); }
.price-input-wrap input { flex: 1; border: none; border-radius: 0; min-width: 0; }
.price-input-wrap .price-symbol { padding: 14px 18px; background: var(--g); color: #555; font-weight: 700; font-size: 18px; display: flex; align-items: center; }

/* Fotoğraf yükleme alanı */
.photo-upload { margin-top: 4px; }
.photo-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.photo-slot { aspect-ratio: 1; background: var(--g); border: 2px dashed var(--b); border-radius: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #999; font-size: 28px; transition: border-color 0.2s, color 0.2s, background 0.2s; }
.photo-slot:hover { border-color: var(--p); color: var(--p); background: rgba(255,79,8,0.06); }
.photo-slot:focus { outline: none; border-color: var(--p); }
.photo-slot.has-image { border-style: solid; border-color: var(--b); padding: 0; position: relative; }
.photo-slot.has-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; }
.photo-slot.has-image:hover { border-color: var(--p); }
.photo-slot-remove { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border: none; border-radius: 50%; background: rgba(0,0,0,0.6); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; font-size: 12px; padding: 0; line-height: 1; touch-action: manipulation; }
.photo-slot-remove:hover { background: rgba(0,0,0,0.85); }
.photo-slot-remove:focus { outline: none; box-shadow: 0 0 0 2px var(--p); }
.photo-slot-compressing { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: #666; }
.photo-slot-compressing i { font-size: 20px; color: var(--p); }

body.dark-mode .select-label { color: #e0e0e0; }
body.dark-mode .langs span { color: #888; }
body.dark-mode .langs span.active { color: #ff9f6b; }
body.dark-mode .add-ad-card { background: #252525; border: 1px solid #333; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
body.dark-mode .add-ad-form label { color: #e0e0e0; }
body.dark-mode .add-ad-form input, body.dark-mode .add-ad-form select, body.dark-mode .add-ad-form textarea { background: #2d2d2d; border: 1px solid #333; color: #fff; }
body.dark-mode .add-ad-form input::placeholder, body.dark-mode .add-ad-form textarea::placeholder { color: #888; }
body.dark-mode .add-ad-form select option { background: #2d2d2d; color: #e0e0e0; }
body.dark-mode .add-ad-title { color: #e0e0e0; }
body.dark-mode .add-ad-form .btn-submit { background: #c44a08; color: #fff; }
body.dark-mode .price-input-wrap { background: #252525; border: 1px solid #333; }
body.dark-mode .price-input-wrap input { background: #2d2d2d; color: #fff; }
body.dark-mode .price-input-wrap .price-symbol { background: #333; color: #b0b0b0; }
body.dark-mode .photo-slot { background: #2d2d2d; border-color: #333; color: #666; }
body.dark-mode .photo-slot:hover { background: rgba(255,79,8,0.12); border-color: #ff9f6b; color: #ff9f6b; }
body.dark-mode .photo-slot.has-image { border-color: #333; }
body.dark-mode .photo-slot-remove { background: rgba(255,255,255,0.25); color: #fff; }
body.dark-mode .photo-slot-remove:hover { background: rgba(255,255,255,0.4); }
body.dark-mode .photo-slot-compressing { color: #aaa; }
@media (max-width: 767px) { .add-ad-page { padding-bottom: 80px; } .photo-slots { grid-template-columns: repeat(2, 1fr); } }

/* Profil sayfası – Tap.az tarzı: kullanıcı kartı + liste menü */
.profile-page { padding: 24px 15px 80px; padding-top: max(24px, 80px); }
.profile-user-card { background: #fff; border: 1px solid #e5e5e5; border-radius: 12px; padding: 24px; margin-bottom: 20px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.profile-user-info { }
.profile-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: #1a1a1a; }
.profile-email { font-size: 15px; color: #666; margin: 0; word-break: break-all; }
body.dark-mode .profile-email { color: #b0b0b0; }
body.dark-mode .profile-user-card { background: #252525; border-color: #333; box-shadow: 0 2px 12px rgba(0,0,0,0.2); }
body.dark-mode .profile-title { color: #e0e0e0; }

.profile-menu { background: #fff; border: 1px solid #e5e5e5; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); margin-bottom: 24px; }
.profile-menu-item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; text-decoration: none; color: #1a1a1a; font-size: 15px; font-weight: 500; border: none; background: none; cursor: pointer; text-align: left; font-family: inherit; border-bottom: 1px solid #eee; transition: background 0.2s; min-height: 44px; box-sizing: border-box; }
.profile-menu-item:last-child { border-bottom: none; }
.profile-menu-item:hover { background: #f8f8f8; }
.profile-menu-item i:first-of-type { width: 22px; text-align: center; color: #666; font-size: 18px; }
.profile-menu-item span { flex: 1; }
.profile-menu-chevron { font-size: 12px; color: #999; }
.profile-menu-item-button { width: 100%; }
body.dark-mode .profile-menu { background: #252525; border-color: #333; box-shadow: 0 2px 12px rgba(0,0,0,0.2); }
body.dark-mode .profile-menu-item { color: #e0e0e0; border-bottom-color: #333; }
body.dark-mode .profile-menu-item:hover { background: #333; }
body.dark-mode .profile-menu-item i:first-of-type { color: #aaa; }
body.dark-mode .profile-menu-chevron { color: #888; }

.profile-listings { margin-top: 24px; }
.profile-listings-title { font-size: 18px; margin-bottom: 12px; }
.profile-listings-empty { font-size: 14px; color: #888; }
body.dark-mode .profile-listings-empty { color: #a0a0a0; }
body.dark-mode .profile-listings-title { color: #e0e0e0; }

/* Profil sayfası ilan kartı silme butonu */
.profile-listing-card { position: relative; }
.card-delete { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; min-width: 44px; min-height: 44px; border: none; background: rgba(0,0,0,0.6); color: #fff; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 3; font-size: 14px; transition: background 0.2s; touch-action: manipulation; }
.card-delete:hover { background: #c62828; }
.card-delete:focus { outline: none; }
body.dark-mode .card-delete { background: rgba(0,0,0,0.7); }
body.dark-mode .card-delete:hover { background: #d32f2f; }
