/* ArsaPazarim - Main Stylesheet */
/* Color Scheme: Green and Earth Tones */

:root {
    --primary-green: #2d7a3e;
    --primary-green-dark: #1f5a2c;
    --primary-green-light: #3a9950;
    --earth-brown: #8b6f47;
    --earth-brown-light: #a68a5f;
    --earth-beige: #d4c4a8;
    --earth-sand: #f5efe0;
    --accent-gold: #d4af37;
    --text-dark: #2c2c2c;
    --text-gray: #666;
    --text-light: #999;
    --border-color: #ddd;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--earth-sand);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.main-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    color: var(--white);
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1600px; /* Increased from 1400px */
    margin: 0 auto;
    padding: 0 15px; /* Reduced padding */
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 0; /* Reduced from 15px */
    gap: 15px; /* Reduced from 20px */
}

/* Header Logo */
.header-logo {
    flex-shrink: 0;
    margin-left: -120px;
    margin-right: 100px;
}

.header-logo a {
    display: block;
    line-height: 0;
}

.header-logo-img {
    height: 50px; /* Slightly smaller for better fit */
    width: auto;
    object-fit: contain;
    display: block;
}

/* Header Search Bar */
.header-search {
    flex: 0 1 350px; /* Fixed width with some flexibility */
    min-width: 280px;
    max-width: 350px;
    position: relative;
}

.search-toggle-btn {
    display: none; /* Hidden on desktop, shown on mobile */
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    font-size: 20px;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.search-form {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 25px; /* More rounded */
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-form-inner {
    display: flex;
    align-items: center;
    flex: 1;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.search-input-wrapper input {
    border: none;
    padding: 10px 90px 10px 18px; /* Space for both buttons */
    font-size: 14px;
    outline: none;
    width: 100%;
    background: transparent;
    border-radius: 25px;
}

.search-input-wrapper input::placeholder {
    color: var(--text-gray);
}

/* Konumumu Kullan Butonu */
.location-btn {
    position: absolute;
    right: 50px; /* Space for search button */
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 16px;
    padding: 8px;
    cursor: pointer;
    transition: color 0.3s;
    border-radius: 50%;
}

.location-btn:hover {
    color: var(--primary-green);
    background: rgba(45, 122, 62, 0.1);
}

/* Arama Butonu (Yeşil Mercek) */
.search-submit-btn {
    position: absolute;
    right: 4px;
    background: var(--primary-green);
    border: none;
    color: var(--white);
    font-size: 16px;
    padding: 10px;
    border-radius: 50%; /* Circular button */
    cursor: pointer;
    transition: all 0.3s;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.search-close-btn {
    display: none; /* Hidden on desktop, shown on mobile */
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 24px;
    padding: 5px 10px;
    cursor: pointer;
}

.search-overlay {
    display: none; /* Hidden by default */
}

/* Suggestions Dropdown - Kategorize Edilmiş */
.suggestions-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-height: 450px;
    overflow-y: auto;
    z-index: 1001;
}

.suggestions-dropdown.active {
    display: block;
}

/* Kategori Başlıkları */
.suggestion-category {
    padding: 10px 15px 5px 15px;
    font-size: 11px;
    color: var(--text-gray);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1;
}

.suggestion-category:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* Öneri Öğeleri */
.suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.selected {
    background: rgba(45, 122, 62, 0.05);
    padding-left: 18px;
}

/* İkonlar */
.suggestion-item i {
    color: var(--text-gray);
    width: 18px;
    font-size: 14px;
    flex-shrink: 0;
}

.suggestion-item:hover i {
    color: var(--primary-green);
}

/* İçerik */
.suggestion-content {
    flex: 1;
    min-width: 0;
}

.suggestion-title {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 2px;
    font-weight: 500;
}

.suggestion-item:hover .suggestion-title {
    color: var(--primary-green);
}

.suggestion-meta {
    font-size: 12px;
    color: var(--text-gray);
}

/* Fiyat (sadece ilanlar için) */
.suggestion-price {
    font-size: 13px;
    color: var(--primary-green);
    font-weight: 600;
    white-space: nowrap;
}

/* Vurgulama (arama terimine uyan kısım) */
.suggestion-highlight {
    background: rgba(255, 215, 0, 0.3);
    font-weight: 600;
}

/* Boş durum */
.no-suggestions {
    padding: 30px 20px;
    text-align: center;
    color: var(--text-gray);
    font-size: 14px;
}

.no-suggestions i {
    font-size: 32px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.no-suggestions {
    padding: 20px;
    text-align: center;
    color: var(--text-gray);
    font-size: 14px;
}

/* Main Navigation */
.main-nav {
    flex: 0 0 auto; /* Don't grow or shrink */
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 3px; /* Reduced gap */
}

.main-nav a {
    color: var(--white);
    text-decoration: none;
    padding: 10px 15px; /* Reduced horizontal padding */
    border-radius: 5px;
    transition: background 0.3s;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(255,255,255,0.2);
}

/* Header Pazar Navigation */
.header-pazar-nav {
    display: flex;
    align-items: center;
    margin-left: 5px; /* Reduced from 15px */
    flex-shrink: 0;
}

.pazar-nav-link {
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.pazar-nav-link.pazar-active:hover {
    transform: scale(1.05);
}

.pazar-nav-link.pazar-inactive {
    cursor: not-allowed;
    opacity: 0.5;
}

.pazar-nav-icon {
    height: 45px; /* Reduced from 50px */
    width: auto;
    display: block;
}

.pazar-nav-icon-inactive {
    filter: grayscale(100%);
    opacity: 0.6;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px; /* Reduced from 10px */
    margin-left: auto; /* Push to the right */
    flex-shrink: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary-green);
    color: var(--white);
    padding: 10px 16px; /* Slightly reduced */
    font-size: 14px;
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--primary-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: var(--earth-brown);
    color: var(--white);
    padding: 10px 16px; /* Slightly reduced */
    font-size: 14px;
    white-space: nowrap;
}

.btn-secondary:hover {
    background: var(--earth-brown-light);
}

.btn-post-listing {
    background: var(--accent-gold);
    color: var(--text-dark);
    font-size: 14px; /* Reduced from 16px */
    font-weight: bold;
    padding: 10px 18px; /* Reduced from 12px 25px */
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.3);
    white-space: nowrap;
}

.btn-post-listing:hover {
    background: #c49d2e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.5);
}

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

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

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

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

.btn-danger:hover {
    background: #c82333;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background: #e0a800;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-large {
    padding: 15px 30px;
    font-size: 16px;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 12px; /* Reduced from 20px */
}

.messages-link,
.notifications-btn {
    position: relative;
    color: var(--white);
    font-size: 18px; /* Reduced from 20px */
    padding: 6px; /* Reduced from 8px */
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
}

.messages-link:hover,
.notifications-btn:hover {
    color: var(--accent-gold);
}

.messages-link .badge,
.notifications-btn .badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--danger);
    color: var(--white);
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
}

.dropdown {
    position: relative;
}

.user-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 6px; /* Reduced from 8px */
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border: none;
    padding: 8px 12px; /* Reduced from 8px 15px */
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px; /* Reduced from 14px */
    margin-left: 0; /* Removed margin */
    white-space: nowrap;
}

.user-dropdown-btn:hover {
    background: rgba(255,255,255,0.2);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    min-width: 220px;
    margin-top: 8px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, display 0s 0.25s;
    pointer-events: none;
}

.dropdown-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    font-size: 14px;
}

.dropdown-menu a:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown-menu a:last-child {
    border-radius: 0 0 8px 8px;
}

.dropdown-menu a:hover {
    background: var(--primary-green);
    color: var(--white);
}

.dropdown-menu a i {
    width: 18px;
    text-align: center;
}

.dropdown-item-with-badge {
    justify-content: space-between !important;
}

.dropdown-item-with-badge .badge {
    position: static;
    background: var(--danger);
    color: var(--white);
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
    margin-left: 10px;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

/* Notifications Dropdown */
.notifications-menu {
    min-width: 350px;
    max-width: 400px;
    max-height: 500px;
    overflow-y: auto;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 2px solid var(--border-color);
    background: var(--bg-light);
}

.notifications-header h4 {
    margin: 0;
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 600;
}

.mark-all-read {
    background: transparent;
    border: none;
    color: var(--primary-green);
    font-size: 12px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s;
}

.mark-all-read:hover {
    background: rgba(45, 122, 62, 0.1);
}

.notifications-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    gap: 12px;
}

.notification-item:hover {
    background: var(--bg-light);
}

.notification-item.unread {
    background: rgba(45, 122, 62, 0.05);
}

.notification-item.unread::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary-green);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.notification-icon.offer {
    background: rgba(45, 122, 62, 0.1);
    color: var(--primary-green);
}

.notification-icon.message {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.notification-message {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 4px;
}

.notification-time {
    font-size: 11px;
    color: var(--text-light);
}

.notifications-list .loading,
.notifications-list .no-notifications {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-gray);
    font-size: 14px;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 30px 0;
}

/* Page Header */
.page-header {
    margin-bottom: 40px;
}

.page-header-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-header-text {
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    color: var(--primary-green-dark);
    margin-bottom: 10px;
}

.page-header .subtitle {
    font-size: 18px;
    color: var(--text-gray);
}

/* Listings Layout with Sidebar */
.listings-layout {
    display: block;
    position: relative;
}

/* Filter Sidebar - Fixed to left edge */
.filter-sidebar {
    background: var(--white);
    border-radius: 10px;
    padding: 15px 15px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.08);
    position: fixed;
    left: 20px;
    top: 90px; /* Below header */
    width: 280px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    transition: top 0.15s ease-out;
    z-index: 100;
    z-index: 100;
}

/* Scrollbar styling for filter sidebar */
.filter-sidebar::-webkit-scrollbar {
    width: 6px;
}

.filter-sidebar::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 10px;
}

.filter-sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 10px;
}

.filter-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--primary-green-dark);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.filter-header h3 {
    font-size: 13px;
    color: var(--primary-green);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.filter-header h3 i {
    font-size: 12px;
}

.btn-clear-filters {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-gray);
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-clear-filters:hover {
    background: var(--danger);
    color: var(--white);
    border-color: var(--danger);
}

.filter-section {
    margin-bottom: 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--bg-light);
}

.filter-section:last-of-type {
    border-bottom: none;
}

.filter-section h4 {
    font-size: 12px;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.filter-section h4 i {
    font-size: 11px;
}

.filter-group {
    margin-bottom: 8px;
}

.filter-group label {
    display: block;
    font-size: 11px;
    color: var(--text-gray);
    margin-bottom: 3px;
    font-weight: 500;
}

.filter-select,
.filter-input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 12px;
    transition: border-color 0.3s;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: var(--primary-green);
}

.btn-filter {
    width: 100%;
    padding: 10px;
    background: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 8px;
}

.btn-filter:hover {
    background: var(--primary-green-dark);
}

/* Main Listings Area */
.listings-main {
    min-width: 0;
}

/* Listings Grid */
.listings-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    margin-left: 130px;
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.filter-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.listing-count {
    font-weight: bold;
    color: var(--primary-green);
}

.active-filters-count {
    font-size: 13px;
    color: var(--text-gray);
    background: var(--bg-light);
    padding: 5px 10px;
    border-radius: 5px;
}

.form-select {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
    margin-left: 130px;
}

/* Pazar page - no sidebar, so no margin */
.pazar-page .listings-grid {
    margin-left: 0;
}

.listing-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.listing-link {
    text-decoration: none;
    color: inherit;
}

.listing-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-light);
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-light);
}

.no-image i {
    font-size: 48px;
    margin-bottom: 10px;
}

.listing-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    color: var(--white);
}

.badge-tescilli {
    background: var(--primary-green);
}

.badge-piyasa-ustu {
    background: var(--accent-gold);
    color: var(--text-dark);
}

.badge-hizli-satis {
    background: #ff6b35;
    color: var(--white);
    animation: pulse 2s infinite;
}

/* Pazar Alanı Özel Rozetleri */
.badge-ilgi-goruyor {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: var(--white);
    animation: pulse-fire 2s ease-in-out infinite;
}

.badge-butce-dostu {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: var(--white);
}

@keyframes pulse-fire {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 65, 108, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(255, 65, 108, 0.6);
    }
}

/* Pazar listing card badge stilleri */
.listing-badge.badge-ilgi-goruyor {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    box-shadow: 0 2px 8px rgba(255, 65, 108, 0.5);
    animation: pulse-fire 2s ease-in-out infinite;
    z-index: 11;
    top: 10px;
    left: 10px;
    right: auto;
}

.listing-badge.badge-butce-dostu {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    box-shadow: 0 2px 8px rgba(17, 153, 142, 0.4);
    z-index: 11;
    top: 45px;
    left: 10px;
    right: auto;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.listing-content {
    padding: 15px;
}

.listing-title {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.listing-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0;
    font-size: 11px;
    color: var(--text-gray);
    align-items: center;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.detail-item i {
    color: var(--primary-green);
    font-size: 11px;
}

.listing-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-green);
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    margin-bottom: 8px;
}

/* Recent Offers */
.recent-offers {
    background: #f8f9fa;
    padding: 8px;
    border-radius: 6px;
    margin-top: 8px;
    border: 1px solid #e9ecef;
}

.recent-offers-title {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.recent-offers-title i {
    color: var(--primary-green);
    font-size: 10px;
}

.offers-list-home {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.offer-item-home {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 6px;
    align-items: center;
    padding: 5px 7px;
    background: var(--white);
    border-radius: 4px;
    font-size: 10px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.offer-item-home:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.offer-item-home.approved {
    border-color: #28a745;
    background: #f1f8f4;
}

.offer-item-home.rejected {
    border-color: #dc3545;
    background: #fef5f5;
}

.offer-item-home.pending {
    border-color: #ffc107;
    background: #fffbf0;
}

.offer-item-home.highest {
    border-color: var(--primary-green);
    border-width: 1.5px;
    background: linear-gradient(135deg, #f0f9f4 0%, #e8f5e9 100%);
}

.offer-user-home {
    display: flex;
    align-items: center;
    gap: 3px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 9px;
}

.offer-user-home i {
    color: var(--primary-green);
    font-size: 11px;
}

.offer-amount-home {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.offer-amount-home .amount {
    font-weight: 700;
    color: var(--primary-green);
    font-size: 10px;
}

.badge-highest {
    display: inline-block;
    padding: 1px 4px;
    background: var(--primary-green);
    color: var(--white);
    font-size: 7px;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.offer-status-home {
    display: flex;
    align-items: center;
}

.status-badge-home {
    padding: 2px 5px;
    border-radius: 8px;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.status-badge-home.approved {
    background: #28a745;
    color: var(--white);
}

.status-badge-home.rejected {
    background: #dc3545;
    color: var(--white);
}

.status-badge-home.pending {
    background: #ffc107;
    color: #000;
}

/* No Listings */
.no-listings {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: 10px;
}

.no-listings i {
    font-size: 64px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.no-listings h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

.no-listings p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

/* Footer */
.main-footer {
    background: var(--primary-green-dark);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 15px;
    color: var(--accent-gold);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--accent-gold);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    font-size: 18px;
}

.social-links a:hover {
    background: var(--accent-gold);
    color: var(--text-dark);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Auth Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 20px;
}

.auth-box {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    padding: 40px;
    width: 100%;
    max-width: 450px;
}

.auth-box-wide {
    max-width: 700px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    color: var(--primary-green-dark);
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--text-gray);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(45, 122, 62, 0.1);
}

/* Select dropdown fix */
select.form-control {
    appearance: auto;
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

select.form-control option {
    padding: 10px;
    background: var(--white);
    color: var(--text-dark);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-text {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 5px;
}

.form-remember {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.forgot-link {
    color: var(--primary-green);
    text-decoration: none;
    font-size: 14px;
}

.forgot-link:hover {
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.auth-footer a {
    color: var(--primary-green);
    font-weight: 500;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.demo-credentials {
    margin-top: 30px;
    padding: 20px;
    background: var(--earth-sand);
    border-radius: 5px;
    border-left: 4px solid var(--accent-gold);
}

.demo-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.demo-accounts {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.demo-account {
    font-size: 14px;
    color: var(--text-gray);
}

/* Kapora Uyarısı */
.kapora-warning {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border-radius: 10px;
    border-left: 5px solid var(--danger);
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.1);
    position: relative;
    overflow: hidden;
}

.kapora-warning::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(220, 53, 69, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.kapora-warning-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.kapora-warning-icon {
    font-size: 28px;
    color: var(--danger);
    flex-shrink: 0;
}

.kapora-warning-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--danger);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kapora-warning-content {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
}

.kapora-warning-content p {
    margin-bottom: 12px;
}

.kapora-warning-content p:last-child {
    margin-bottom: 0;
    font-weight: 600;
    color: var(--danger);
    padding-top: 10px;
    border-top: 1px solid rgba(220, 53, 69, 0.2);
}

.kapora-warning-content strong {
    color: var(--danger);
    font-weight: 700;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

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

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Post Listing Page */
.post-listing-container {
    max-width: 900px;
    margin: 0 auto;
}

.ekspertiz-notice,
.expertiz-notice {
    display: flex;
    gap: 20px;
    background: linear-gradient(135deg, var(--primary-green-light) 0%, var(--primary-green) 100%);
    color: var(--white);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.notice-icon {
    font-size: 48px;
}

.notice-content h3 {
    margin-bottom: 10px;
}

.notice-content p {
    margin-bottom: 15px;
    opacity: 0.9;
}

.ekspertiz-notice .btn-outline,
.expertiz-notice .btn-outline {
    background: var(--white);
    border: 2px solid var(--white);
    color: var(--primary-green);
    font-weight: 600;
}

.ekspertiz-notice .btn-outline:hover,
.expertiz-notice .btn-outline:hover {
    background: var(--gold-accent);
    border-color: var(--gold-accent);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.listing-form {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    color: var(--primary-green-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-help {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 15px;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--bg-light);
}

.file-upload-label:hover {
    border-color: var(--primary-green);
    background: var(--earth-sand);
}

.file-upload-label.error {
    border-color: #dc3545;
    background: #fff5f5;
}

.file-upload-label.error:hover {
    border-color: #c82333;
}

.file-upload-label i {
    font-size: 48px;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.file-upload-label.error i {
    color: #dc3545;
}

.file-input {
    display: none;
}

/* Form error styles */
.form-group.has-error .form-control {
    border-color: #dc3545;
}

.form-group.has-error label {
    color: #dc3545;
}

.field-error {
    margin-top: 10px;
    padding: 10px 15px;
    background: #fff5f5;
    border-left: 3px solid #dc3545;
    border-radius: 5px;
    color: #dc3545;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.field-error i {
    font-size: 16px;
}

.file-preview,
.images-preview-grid {
    margin-top: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.success-message-large {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.success-icon {
    font-size: 80px;
    color: var(--success);
    margin-bottom: 20px;
}

.success-message-large h2 {
    color: var(--primary-green-dark);
    margin-bottom: 15px;
}

.success-message-large p {
    color: var(--text-gray);
    font-size: 18px;
    margin-bottom: 30px;
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Responsive */
@media (max-width: 1400px) {
    .listings-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .filter-sidebar {
        position: static;
        width: 100%;
        max-height: none;
        margin-bottom: 20px;
        border-radius: 10px;
        left: auto;
        top: auto;
    }

    .listings-filter {
        margin-left: 0;
    }

    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
        margin-left: 0;
    }

    .pagination {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .page-header-content {
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .header-pazar-nav {
        margin-left: 0;
        margin-top: 10px;
    }

    .pazar-nav-icon {
        height: 40px; /* Mobilde biraz daha küçük */
    }

    .header-content {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px;
    }

    .header-logo {
        order: 1;
    }

    .header-logo-img {
        height: 40px;
    }

    /* Mobile Search */
    .header-search {
        order: 2;
        max-width: none;
        width: auto;
        min-width: auto;
        flex: 0 0 auto;
    }

    .main-nav {
        order: 3;
        width: 100%;
    }

    .main-nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }

    .header-pazar-nav {
        order: 4;
    }

    .header-actions {
        order: 5;
        margin-left: 0;
    }

    .search-toggle-btn {
        display: block;
    }

    .search-form {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 2000;
        background: var(--white);
        border-radius: 0;
        padding: 20px;
        flex-direction: column;
        gap: 15px;
        overflow-y: auto;
    }

    .search-form.active {
        display: flex;
    }

    .search-form-inner {
        width: 100%;
    }

    .search-input-wrapper {
        width: 100%;
    }

    .search-input-wrapper input {
        padding: 15px 100px 15px 18px;
        font-size: 16px;
        border-radius: 25px;
    }

    .location-btn {
        right: 55px;
        font-size: 18px;
        padding: 10px;
    }

    .search-submit-btn {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .search-close-btn {
        display: block;
        align-self: flex-end;
        margin-bottom: 10px;
    }

    .search-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1999;
    }

    .search-overlay.active {
        display: block;
    }

    .suggestions-dropdown {
        position: relative;
        top: 0;
        margin-top: 10px;
        max-height: 60vh;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }

    .header-pazar-nav {
        margin-left: 0;
        margin-top: 10px;
        order: 3;
    }

    .pazar-nav-icon {
        height: 40px;
    }

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

    .listings-filter {
        flex-direction: column;
        gap: 15px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .auth-box {
        padding: 30px 20px;
    }

    .success-actions,
    .form-actions {
        flex-direction: column;
    }

    .filter-sidebar {
        padding: 15px;
    }

    .filter-header h3 {
        font-size: 16px;
    }

    /* Responsive Offers on Mobile */
    .offer-item-home {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 8px 10px;
    }

    .offer-user-home {
        font-size: 10px;
    }

    .offer-user-home i {
        font-size: 14px;
    }

    .offer-amount-home {
        align-items: flex-start;
    }

    .offer-amount-home .amount {
        font-size: 12px;
    }

    .badge-highest {
        font-size: 8px;
        padding: 2px 5px;
    }

    .status-badge-home {
        font-size: 9px;
        padding: 3px 6px;
    }

    .recent-offers {
        padding: 10px;
    }

    .recent-offers-title {
        font-size: 11px;
        margin-bottom: 8px;
    }
}

/* Legal Pages (Terms & Privacy) */
.legal-page {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.legal-page h1 {
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 10px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary-green);
}

.legal-page .last-updated {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 30px;
    font-style: italic;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    margin-bottom: 30px;
    margin-left: 130 px;
    padding: 20px;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--white);
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pagination-btn:hover:not(.disabled) {
    background: var(--primary-green);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 122, 62, 0.3);
}

.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: var(--border-color);
    color: var(--text-gray);
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--white);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-number:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
    transform: translateY(-2px);
}

.pagination-number.active {
    background: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
    box-shadow: 0 4px 12px rgba(45, 122, 62, 0.3);
}

.pagination-dots {
    color: var(--text-gray);
    font-weight: 600;
    padding: 0 5px;
}

/* Pagination Responsive */
@media (max-width: 768px) {
    .pagination {
        gap: 5px;
        padding: 15px 10px;
        margin-top: 30px;
    }

    .pagination-btn {
        padding: 8px 12px;
        font-size: 12px;
        gap: 5px;
    }

    .pagination-btn i {
        font-size: 10px;
    }

    .pagination-number {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }

    .pagination-numbers {
        gap: 3px;
    }
}

@media (max-width: 480px) {
    .pagination-btn span {
        display: none;
    }

    .pagination-btn {
        padding: 8px;
        min-width: 35px;
    }

    .pagination-number {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }
}

.legal-section {
    margin-bottom: 35px;
}

.legal-section h2 {
    font-size: 24px;
    color: var(--primary-green);
    margin-bottom: 15px;
    margin-top: 30px;
}

.legal-section h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 12px;
    margin-top: 20px;
    font-weight: 600;
}

.legal-section p {
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 15px;
    text-align: justify;
}

.legal-section ul {
    margin: 15px 0;
    padding-left: 30px;
}

.legal-section ul li {
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 10px;
    list-style-type: disc;
}

.legal-section ul li strong {
    color: var(--primary-green);
    font-weight: 600;
}

.legal-footer {
    margin-top: 40px;
    padding: 25px;
    background: var(--bg-light);
    border-left: 4px solid var(--primary-green);
    border-radius: 8px;
}

.legal-footer p {
    margin: 0;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .legal-page {
        padding: 25px 20px;
        margin: 20px 15px;
    }

    .legal-page h1 {
        font-size: 26px;
    }

    .legal-section h2 {
        font-size: 20px;
    }

    .legal-section h3 {
        font-size: 16px;
    }

    .legal-section p,
    .legal-section ul li {
        text-align: left;
    }
}

/* ============================================
   PAZAR (MARKETPLACE) STYLES
   ============================================ */

/* Pazar Navigation Icon - REMOVED (now in page header) */

/* Pazar Page Header */
.pazar-header {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-align: center;
}

.pazar-header h1 {
    color: var(--primary-green);
    margin-bottom: 5px;
}

.pazar-header .subtitle,
.pazar-price-range {
    margin: 0;
}

.pazar-header-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    text-align: center;
}

.pazar-price-range {
    color: var(--text-gray);
    font-size: 16px;
    margin-top: 10px;
}

.pazar-price-range i {
    color: var(--accent-gold);
    margin-right: 5px;
}

/* Pazar Info - Rozetler ve "Pazar Alanı Nedir" butonu (başlık alanı içinde) */
.pazar-info-wrapper {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* Hotspot, butonların altında */
.pazar-badges-hotspot {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Pazar Rozetleri butonu ve "Pazar Alanı Nedir" butonu aynı yeşil stilde */
.pazar-badges-toggle,
.btn-pazar-info {
    background: var(--primary-green);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 10px 20px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.pazar-badges-toggle:hover,
.btn-pazar-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.pazar-badges-toggle i,
.btn-pazar-info i {
    color: var(--accent-gold);
}

.pazar-badges-panel {
    position: absolute;
    top: 110%;
    right: 0;
    min-width: 260px;
    background: rgba(255,255,255,0.97);
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 20;
}

.pazar-badges-panel h3 {
    font-size: 13px;
    margin-bottom: 8px;
    color: var(--primary-green-dark);
    display: flex;
    align-items: center;
    gap: 6px;
}

.pazar-badges-panel h3 i {
    color: var(--primary-green);
}

.pazar-badges-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pazar-badges-panel li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
}

.badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
}

.badge-desc {
    color: var(--text-gray);
    line-height: 1.3;
}

/* Hover davranışı: mouse üzerine geldiğinde görünür, çekilince kapanır */
.pazar-badges-hotspot:hover .pazar-badges-panel,
.pazar-badges-hotspot:focus-within .pazar-badges-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* "Pazar Alanı Nedir?" butonu */
.btn-pazar-info {
    background: var(--primary-green);
    color: #fff;
    border-radius: 999px;
    padding: 10px 22px;
    font-size: 14px;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.btn-pazar-info i {
    color: var(--accent-gold);
}

/* Pazar Rozetleri butonu farklı renk - ayırt edici */
.pazar-badges-toggle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.pazar-badges-toggle i {
    color: #ffd700;
}

@media (max-width: 768px) {
    .pazar-info-wrapper {
        gap: 10px;
    }

    .btn-pazar-info,
    .pazar-badges-toggle {
        font-size: 13px;
        padding: 8px 18px;
    }

    .pazar-badges-panel {
        min-width: 220px;
    }
}

/* Pazar Warning Message */
.pazar-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    box-shadow: 0 3px 10px rgba(255, 193, 7, 0.2);
}

.pazar-warning i {
    font-size: 32px;
    color: #ff9800;
    flex-shrink: 0;
}

.warning-content h3 {
    color: #d84315;
    margin: 0 0 10px 0;
    font-size: 18px;
}

.warning-content p {
    color: #5d4037;
    margin: 0;
    line-height: 1.6;
}

/* Province Selector */
.pazar-province-selector {
    background: var(--white);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.province-form .form-group {
    margin-bottom: 0;
}

.province-form label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.province-form label i {
    color: var(--primary-green);
    margin-right: 8px;
}

.province-form .form-select {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s;
}

.province-form .form-select:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(45, 122, 62, 0.1);
}

/* Pazar No Selection/No Listings */
.pazar-no-selection,
.pazar-no-listings {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-light);
    border-radius: 10px;
    margin: 30px 0;
}

.pazar-no-selection i,
.pazar-no-listings i {
    font-size: 64px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.pazar-no-selection h3,
.pazar-no-listings h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

.pazar-no-selection p,
.pazar-no-listings p {
    color: var(--text-gray);
    font-size: 16px;
}

/* Pazar Listings Info */
.pazar-listings-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--white);
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.pazar-listings-info .listing-count {
    font-weight: bold;
    color: var(--primary-green);
    font-size: 16px;
}

.pazar-listings-info .selected-province {
    color: var(--text-gray);
    font-size: 14px;
}

.pazar-listings-info i {
    margin-right: 5px;
}

/* Pazar Listings Grid */
.pazar-listings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

/* Pazar Badge */
.listing-badge.badge-pazar {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    box-shadow: 0 2px 8px rgba(245, 124, 0, 0.4);
    animation: pulse-pazar 2s ease-in-out infinite;
    z-index: 10;
}

@keyframes pulse-pazar {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(245, 124, 0, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(245, 124, 0, 0.6);
    }
}

/* Pazar Inactive Message */
.pazar-inactive-message {
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-light);
    border-radius: 10px;
    margin: 40px 0;
}

.pazar-inactive-message i {
    font-size: 80px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.pazar-inactive-message h2 {
    color: var(--text-dark);
    margin-bottom: 15px;
}

.pazar-inactive-message p {
    color: var(--text-gray);
    font-size: 16px;
    margin-bottom: 10px;
}

.pazar-inactive-message .active-days-info {
    background: var(--white);
    padding: 15px 20px;
    border-radius: 8px;
    display: inline-block;
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.pazar-inactive-message .btn {
    margin-top: 20px;
}

/* Admin Pazar Settings */
.pazar-settings-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.pazar-settings-form {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.settings-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.settings-section:last-child {
    border-bottom: none;
}

.settings-section h3 {
    color: var(--primary-green);
    margin-bottom: 10px;
    font-size: 18px;
}

.section-description {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 15px;
}

/* Days Selection */
.days-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.day-checkbox {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.day-checkbox:hover {
    background: var(--white);
    border-color: var(--primary-green);
}

.day-checkbox input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.day-checkbox input[type="checkbox"]:checked + span {
    color: var(--primary-green);
    font-weight: 600;
}

/* Price Range Inputs */
.price-range-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Toggle Switch */
.toggle-switch {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.toggle-slider {
    position: relative;
    width: 60px;
    height: 30px;
    background: var(--text-gray);
    border-radius: 30px;
    transition: background 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--white);
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform 0.3s;
}

.toggle-switch input[type="checkbox"] {
    display: none;
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider {
    background: var(--primary-green);
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(30px);
}

.toggle-label {
    font-weight: 600;
    color: var(--text-dark);
}

/* Settings Actions */
.settings-actions {
    text-align: center;
    margin-top: 30px;
}

.settings-actions .btn-lg {
    padding: 15px 40px;
    font-size: 16px;
}

/* Pazar Current Status */
.pazar-current-status {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.pazar-current-status h3 {
    color: var(--primary-green);
    margin-bottom: 20px;
    font-size: 18px;
}

.status-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.status-item {
    padding: 12px 15px;
    background: var(--bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-item i {
    font-size: 18px;
    color: var(--primary-green);
}

.status-item.status-active {
    background: rgba(45, 122, 62, 0.1);
    border-left: 4px solid var(--primary-green);
}

.status-item.status-active i {
    color: var(--primary-green);
}

.status-item.status-inactive {
    background: rgba(158, 158, 158, 0.1);
    border-left: 4px solid var(--text-gray);
}

.status-item.status-inactive i {
    color: var(--text-gray);
}

/* Pazar Notifications Section */
.pazar-notifications-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid var(--border-color);
}

.pazar-notifications-section h4 {
    color: var(--primary-green);
    margin-bottom: 10px;
    font-size: 16px;
}

.pazar-notifications-section .btn-block {
    width: 100%;
    margin-top: 15px;
}

.notification-result {
    margin-top: 15px;
}

.notification-result .alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 0;
}

.notification-result .alert-success {
    background: rgba(45, 122, 62, 0.1);
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
}

.notification-result .alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid #ffc107;
    color: #d68910;
}

.notification-result .alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
}

.notification-result .alert i {
    margin-right: 8px;
}

/* Manual Control Section */
.manual-control-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.btn-manual {
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-manual i {
    margin-right: 8px;
}

.manual-control-result {
    margin-top: 15px;
}

.manual-control-result .alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 0;
}

.manual-control-result .alert-info {
    background: rgba(23, 162, 184, 0.1);
    border: 1px solid #17a2b8;
    color: #117a8b;
}

.manual-help-text,
.toggle-help-text {
    margin-top: 15px;
    padding: 12px 15px;
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    border-radius: 5px;
    font-size: 14px;
    color: #856404;
    line-height: 1.6;
}

.manual-help-text i,
.toggle-help-text i {
    margin-right: 5px;
    color: #ffc107;
}

.manual-help-text strong {
    color: #d68910;
}

/* Responsive - Pazar */
@media (max-width: 1400px) {
    .pazar-listings-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .pazar-listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pazar-settings-container {
        grid-template-columns: 1fr;
    }

    .pazar-current-status {
        position: static;
    }

    .days-selection {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pazar-listings-grid {
        grid-template-columns: 1fr;
    }

    .pazar-warning {
        flex-direction: column;
        text-align: center;
    }

    .pazar-warning i {
        font-size: 48px;
    }

    .price-range-inputs {
        grid-template-columns: 1fr;
    }

    .days-selection {
        grid-template-columns: 1fr;
    }

    .pazar-listings-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .manual-control-buttons {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   OFFER MODAL - MINIMUM OFFER STYLES
   ======================================== */

.offer-info-box {
    background: var(--bg-light);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-green);
}

.offer-info-box p {
    margin: 5px 0;
    font-size: 14px;
}

.min-offer-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 5px;
    padding: 10px;
    margin-top: 10px;
    color: #856404;
    font-size: 13px;
}

.min-offer-warning i {
    color: #ffc107;
    margin-right: 5px;
}

.min-offer-warning small {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    opacity: 0.8;
}

/* ========================================
   EKSPERTIZ RAPORU GÜVENLIK STYLES
   ======================================== */

.ekspertiz-box {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.ekspertiz-box h3 {
    margin-bottom: 15px;
    color: var(--text-dark);
    font-size: 16px;
}

.ekspertiz-locked {
    background: #f8f9fa;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.ekspertiz-locked i {
    font-size: 32px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.ekspertiz-locked h4 {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.ekspertiz-locked p {
    font-size: 12px;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.5;
}

.ekspertiz-unlocked {
    text-align: center;
}

.ekspertiz-unlocked .btn {
    width: 100%;
}

/* Teklif Onay Modalı Uyarı */
.approve-warning-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.approve-warning-box h4 {
    color: #856404;
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.approve-warning-box h4 i {
    color: #ffc107;
}

.approve-warning-box p {
    color: #856404;
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
}
