/* ==========================================================================
   ALGAN EMLAK & GAYRİMENKUL - Kurumsal Light Portal CSS Tasarım Sistemi
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg-dark: #f4f6f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-surface: #ffffff;
  --bg-input: #ffffff;

  --accent-gold: #9e1c25;
  --accent-gold-hover: #7e141c;
  --accent-navy: #2b3a4a;
  --accent-navy-hover: #1e2a37;
  --accent-emerald: #16a34a;
  --accent-emerald-hover: #15803d;
  --accent-blue: #2563eb;
  --accent-blue-hover: #1d4ed8;

  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-dark: #0f172a;

  --border-color: #cbd5e1;
  --border-gold: rgba(158, 28, 37, 0.35);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);
  --shadow-gold: 0 4px 15px rgba(158, 28, 37, 0.2);

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

body,
.tokur-portal-section {
  font-family: var(--font-body);
  background-color: #f4f6f9 !important;
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 15px;
}

main {
  flex: 1;
}

/* ==========================================
   TOP ANNOUNCEMENT & HEADER
   ========================================== */
.top-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.82rem;
  padding: 8px 0;
  color: var(--text-muted);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-info span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-info i {
  color: var(--accent-gold);
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.top-bar-actions a {
  color: var(--text-muted);
  font-weight: 600;
}

.top-bar-actions a:hover {
  color: var(--accent-gold);
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 12px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-img {
  height: 48px !important;
  width: auto !important;
  max-width: 160px !important;
  max-height: 48px !important;
  object-fit: contain !important;
  display: block !important;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  color: var(--accent-gold) !important;
  font-family: var(--font-heading) !important;
  font-weight: 900 !important;
  font-size: 2.8rem !important;
  letter-spacing: -1.5px;
  line-height: 0.9;
  display: block !important;
}

.brand-subtitle {
  display: none !important;
}

/* Header Search Bar (Tokur Style) */
.header-search-bar {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  max-width: 420px;
  width: 100%;
}

.header-search-bar input {
  border: none;
  outline: none;
  padding: 9px 14px;
  font-size: 0.88rem;
  width: 100%;
  color: var(--text-dark);
  background: transparent;
}

.header-search-bar button {
  background: #f1f5f9;
  border: none;
  border-left: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 9px 16px;
  cursor: pointer;
  transition: var(--transition);
}

.header-search-bar button:hover {
  background: var(--accent-navy);
  color: #ffffff;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-navy);
  padding: 6px 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;

}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-gold);
}

.nav-link.detayli-arama {
  background: var(--accent-navy);
  color: #ffffff !important;
  padding: 7px 14px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link.detayli-arama:hover {
  background: var(--accent-navy-hover);
}

/* ==========================================
   DETAILED SEARCH DROPDOWN PANEL (IMAGE 3)
   ========================================== */
.detailed-search-panel {
  display: none;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  padding: 24px 0;
  position: relative;
  z-index: 998;
  animation: slideDown 0.3s ease-out forwards;
}

.detailed-search-panel.active {
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.detailed-search-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.detailed-search-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.detailed-search-grid-2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 16px;
  align-items: flex-end;
}

@media (max-width: 992px) {

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

@media (max-width: 600px) {

  .detailed-search-grid,
  .detailed-search-grid-2 {
    grid-template-columns: 1fr;
  }
}

.detailed-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detailed-form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
}

.detailed-form-group select,
.detailed-form-group input {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--text-dark);
  outline: none;
  width: 100%;
  transition: var(--transition);
}

.detailed-form-group select:focus,
.detailed-form-group input:focus {
  border-color: var(--accent-navy);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(43, 58, 74, 0.1);
}

.detailed-search-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.btn-det-clear {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-det-clear:hover {
  background: #e2e8f0;
}

.btn-det-search {
  background: var(--accent-gold);
  border: none;
  color: #ffffff;
  padding: 10px 26px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-det-search:hover {
  background: var(--accent-gold-hover);
}

/* ==========================================
   TOKUR STYLE 2-COLUMN PORTAL LAYOUT
   ========================================== */
.tokur-portal-section {
  padding: 24px 0 40px;
}

.tokur-portal-container {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.tokur-sidebar {
  width: 270px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tokur-main-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Sidebar Widgets (Kategoriler & Özel İlanlar) */
.tokur-widget-box {
  background: #ffffff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.tokur-widget-header {
  background: var(--accent-navy);
  color: #ffffff;
  padding: 11px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tokur-widget-body {
  padding: 0;
}

/* Collapsible Category Accordion */
.tokur-category-group {
  border-bottom: 1px solid #f1f5f9;
}

.tokur-category-group:last-child {
  border-bottom: none;
}

.tokur-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.tokur-category-header:hover {
  background: #f8fafc;
  color: var(--accent-gold);
}

.tokur-category-header .item-count {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 400;
}

.tokur-category-header .chevron {
  font-size: 0.75rem;
  color: #94a3b8;
  transition: transform 0.3s ease;
}

.tokur-category-group.open .tokur-category-header .chevron {
  transform: rotate(180deg);
  color: var(--accent-gold);
}

.tokur-subcategory-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-in-out, padding 0.3s ease;
  background: #f8fafc;
}

.tokur-category-group.open .tokur-subcategory-list {
  max-height: 300px;
  padding: 6px 0;
  border-top: 1px solid #f1f5f9;
}

.tokur-subcategory-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 8px 24px;
  font-size: 0.83rem;
  color: #475569;
  cursor: pointer;
  transition: var(--transition);
}

.tokur-subcategory-item:hover {
  color: var(--accent-gold);
  background: #ffffff;
  padding-left: 28px;
}

.tokur-subcategory-item .sub-count {
  font-size: 0.78rem;
  color: #94a3b8;
}

.tokur-special-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text-dark);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

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

.tokur-special-item:hover {
  background: #f8fafc;
  color: var(--accent-gold);
}

.tokur-special-item .icon-urgent {
  color: #dc2626;
}

.tokur-special-item .icon-discount {
  color: #ea580c;
}

.tokur-special-item .icon-clock {
  color: #2563eb;
}

/* Sidebar Info & Banner Card */
.tokur-promo-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.tokur-promo-card .promo-icon {
  font-size: 2.2rem;
  color: var(--accent-navy);
  margin-bottom: 8px;
}

.tokur-promo-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.tokur-promo-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Tokur Hero Showcase Slider Banner */
.tokur-hero-showcase {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.tokur-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  opacity: 0.85;
}

.tokur-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.92) 100%);
  display: flex;
  justify-content: space-between;
  padding: 30px;
  pointer-events: none;
}

.tokur-hero-pins {
  position: absolute;
  top: 40px;
  left: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 3;
}

.tokur-pin-badge {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-dark);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
}

.tokur-pin-badge i {
  color: var(--accent-gold);
}

.tokur-hero-content-right {
  margin-left: auto;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  z-index: 3;
  pointer-events: auto;
}

.tokur-hero-brand {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent-gold);
  letter-spacing: -1px;
  margin-bottom: 15px;
}

.tokur-hero-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--accent-navy);
  line-height: 1.25;
  margin-bottom: 20px;
}

.tokur-hero-badges {
  display: flex;
  gap: 15px;
}

.tokur-round-badge {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid var(--accent-navy);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 6px;
}

.tokur-round-badge .big {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-navy);
  line-height: 1.1;
  text-transform: uppercase;
}

.tokur-round-badge .num {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--accent-gold);
  line-height: 1;
}

/* Tokur Section Header & Listing Grid */
.tokur-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 2px solid #cbd5e1;
  margin-bottom: 16px;
}

.tokur-section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-navy);
}

.tokur-see-all {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 4px;
}

.tokur-see-all:hover {
  text-decoration: underline;
}

.tokur-properties-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

@media (max-width: 1200px) {
  .tokur-properties-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .tokur-portal-container {
    flex-direction: column;
  }

  .tokur-sidebar {
    width: 100%;
  }

  .tokur-properties-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .tokur-properties-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tokur-hero-showcase {
    height: 300px;
  }

  .tokur-hero-brand {
    font-size: 1.6rem;
  }

  .tokur-hero-title {
    font-size: 1.2rem;
  }

  .tokur-round-badge {
    width: 70px;
    height: 70px;
  }

  .tokur-round-badge .num {
    font-size: 1.1rem;
  }
}

/* Tokur Property Card */
.tokur-property-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.tokur-property-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-navy);
}

.tokur-card-thumb {
  position: relative;
  height: 140px;
  overflow: hidden;
  background: #e2e8f0;
}

.tokur-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.tokur-card-location {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 16px 8px 5px 8px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 5px;
}

.tokur-card-location i {
  color: #f87171;
  font-size: 0.72rem;
}

.tokur-card-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tokur-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 6px;
  height: 36px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tokur-card-price {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.tokur-card-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: auto;
}

.tokur-tag {
  background: var(--accent-navy);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 3px;
  letter-spacing: 0.3px;
}

.tokur-tag.status {
  background: #15803d;
}

/* Centered Valuation Section */
.valuation-section {
  width: 100%;
  padding: 30px 0 40px;
  display: flex;
  justify-content: center;
}

.valuation-banner {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

/* Floating Chat Bubble Button */
.tokur-floating-chat {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-navy);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  cursor: pointer;
  transition: var(--transition);
}

.tokur-floating-chat:hover {
  transform: scale(1.1);
  background: var(--accent-gold);
}

/* ==========================================
   SUBPAGES & FORMS LIGHT MODE HARMONIZATION
   ========================================== */

/* Portfolio Page Sidebar & Layout */
.portfolio-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  margin-top: 30px;
  margin-bottom: 50px;
}

@media (max-width: 992px) {
  .portfolio-layout {
    grid-template-columns: 1fr;
  }
}

.filter-sidebar {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 16px;
}

.filter-header h3 {
  font-size: 1.05rem;
  color: var(--accent-navy);
}

.btn-reset-filters {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

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

.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
  display: block;
}

.form-control,
.form-select {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: var(--text-dark);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--accent-navy);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(43, 58, 74, 0.1);
}

/* Property Detail Page */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 60px;
}

@media (max-width: 992px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

.detail-main-img {
  width: 100%;
  height: 480px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #e2e8f0;
  border: 1px solid var(--border-color);
}

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

.detail-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
}

.detail-thumb {
  width: 90px;
  height: 65px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.7;
}

.detail-thumb.active,
.detail-thumb:hover {
  border-color: var(--accent-gold);
  opacity: 1;
}

.detail-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin: 24px 0;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spec-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.spec-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
}

.detail-sidebar-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

/* Contact & About Cards */
.contact-card,
.about-card,
.admin-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

/* Custom Modals */
.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.custom-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.custom-modal-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 450px;
  padding: 30px 25px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.custom-modal-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.custom-modal-message {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Footer */
.main-footer {
  background: #1e293b;
  color: #cbd5e1;
  padding: 45px 0 20px;
  font-size: 0.88rem;
  margin-top: auto;
}

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

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: #ffffff;
}

.copyright-bar {
  border-top: 1px solid #334155;
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: #64748b;
}

/* ==========================================================================
   IMAGE MANAGEMENT TAB STYLES
   ========================================================================== */
.img-mgmt-section {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
  transition: var(--transition);
}

.img-mgmt-section:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 2px 12px rgba(158, 28, 37, 0.06);
}

.img-mgmt-title {
  font-size: 1.1rem;
  color: var(--accent-navy);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.img-mgmt-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.img-mgmt-preview {
  width: 180px;
  height: 120px;
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  flex-shrink: 0;
}

.img-mgmt-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.img-mgmt-preview-wide {
  width: 320px;
  height: 140px;
}

.img-mgmt-preview-small {
  width: 80px;
  height: 80px;
}

.img-mgmt-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.img-mgmt-empty {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.img-mgmt-empty i {
  font-size: 1.8rem;
  opacity: 0.4;
}

.img-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.gallery-card {
  position: relative;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #ffffff;
  aspect-ratio: 4/3;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-card .gallery-delete-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(239, 68, 68, 0.9);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.gallery-card:hover .gallery-delete-btn {
  opacity: 1;
}

.gallery-card .gallery-filename {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-size: 0.7rem;
  padding: 4px 8px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

/* ==========================================================================
   GLOBAL FORM CONTROL READABILITY & CONTRAST FIX ("Yazılanlar Gözükmüyor" Fix)
   ========================================================================== */
input,
textarea,
select,
.form-control,
.form-select {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  font-family: var(--font-body) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  padding: 10px 14px !important;
  outline: none !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

input:focus,
textarea:focus,
select:focus,
.form-control:focus,
.form-select:focus {
  border-color: var(--accent-gold) !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 0 0 3px rgba(158, 28, 37, 0.15) !important;
}

::placeholder,
.form-control::placeholder,
input::placeholder,
textarea::placeholder {
  color: #64748b !important;
  opacity: 1 !important;
  font-weight: 400 !important;
}

label,
.form-group label {
  color: #334155 !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  margin-bottom: 6px !important;
  display: inline-block !important;
}

/* ADMIN MODAL & PANEL CONTRAST FIX */
.modal-overlay {
  background: rgba(15, 23, 42, 0.8) !important;
  backdrop-filter: blur(8px) !important;
}

.modal-content {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 12px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2) !important;
  color: #0f172a !important;
}

.modal-content h2,
.modal-content h3,
.modal-content h4 {
  color: #0f172a !important;
}

.modal-content p {
  color: #475569 !important;
}

.btn-modal-close {
  color: #334155 !important;
  font-size: 1.5rem !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
}

.btn-modal-close:hover {
  color: #9e1c25 !important;
}

.btn-cancel,
.btn-modal-cancel {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
  font-weight: 700 !important;
  padding: 10px 20px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
}

.btn-cancel:hover,
.btn-modal-cancel:hover,
.btn-detail:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}

/* ==========================================================================
   ADMIN PANEL TABS & TABLE STYLING
   ========================================================================== */

.admin-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 24px;
  margin-top: 10px;
}

.admin-tab-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.02);
}

.admin-tab-btn:hover {
  background: #f8fafc;
  color: var(--accent-gold);
}

.admin-tab-btn.active {
  background: var(--accent-navy);
  color: #ffffff !important;
  border-color: var(--accent-navy);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.admin-table th {
  background: var(--accent-navy);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 14px 16px;
  text-align: left;
}

.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #0f172a;
  font-size: 0.88rem;
  vertical-align: middle;
}

.admin-table tr:hover {
  background: #f8fafc;
}

.table-thumb {
  width: 75px;
  height: 55px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  display: block;
}

.action-btns {
  display: flex;
  gap: 6px;
}

.btn-edit {
  background: #2563eb !important;
  color: #ffffff !important;
  border: none !important;
  padding: 8px 12px !important;
  border-radius: 4px !important;
  cursor: pointer !important;
}

.btn-edit:hover {
  background: #1d4ed8 !important;
}

.btn-delete {
  background: #ef4444 !important;
  color: #ffffff !important;
  border: none !important;
  padding: 8px 12px !important;
  border-radius: 4px !important;
  cursor: pointer !important;
}

.btn-delete:hover {
  background: #dc2626 !important;
}

.btn-detail,
.btn-cancel,
.btn-modal-cancel {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
  font-family: var(--font-heading) !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  padding: 10px 20px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: var(--transition) !important;
  text-decoration: none !important;
}

/* ==========================================================================
   MISSING GLOBAL BUTTON STYLES
   ========================================================================== */

/* Primary Gold / Red Action Button */
.btn-gold {
  background: var(--accent-gold);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  text-decoration: none;
  letter-spacing: 0.3px;
}

.btn-gold:hover {
  background: var(--accent-gold-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

/* WhatsApp Button */
.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  background: #25d366;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  margin-bottom: 10px;
}

.btn-whatsapp:hover {
  background: #1da851;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}

/* Phone Call Button */
.btn-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 20px;
  background: var(--accent-navy);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-call:hover {
  background: var(--accent-navy-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(43, 58, 74, 0.3);
}

/* Icon Toggle Button (Grid/List view) */
.btn-icon {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  color: var(--accent-navy);
  background: #f1f5f9;
}

.btn-icon.active {
  background: var(--accent-navy);
  color: #ffffff;
  border-color: var(--accent-navy);
}

/* ==========================================================================
   PROPERTIES LISTING GRID & LIST VIEW
   ========================================================================== */

.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

@media (max-width: 600px) {
  .properties-grid {
    grid-template-columns: 1fr;
  }
}

.properties-list-view {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.properties-list-view .tokur-property-card {
  flex-direction: row;
  max-height: 180px;
}

.properties-list-view .tokur-card-thumb {
  width: 260px;
  min-width: 260px;
  height: auto;
}

.properties-list-view .tokur-card-body {
  padding: 16px 20px;
  justify-content: center;
}

.properties-list-view .tokur-card-title {
  height: auto;
  -webkit-line-clamp: 1;
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .properties-list-view .tokur-property-card {
    flex-direction: column;
    max-height: none;
  }

  .properties-list-view .tokur-card-thumb {
    width: 100%;
    min-width: unset;
    height: 160px;
  }
}

/* ==========================================================================
   BADGE / STATUS LABELS
   ========================================================================== */

.badge-status {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.badge-satilik {
  background: var(--accent-gold);
  color: #ffffff;
}

.badge-kiralik {
  background: var(--accent-blue);
  color: #ffffff;
}

/* ==========================================================================
   PROPERTY DETAIL PAGE LAYOUT
   ========================================================================== */

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 30px;
  margin-top: 24px;
  margin-bottom: 60px;
  align-items: flex-start;
}

@media (max-width: 992px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
}

/* Gallery Container */
.gallery-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}

.main-image-view {
  width: 100%;
  height: 480px;
  overflow: hidden;
  background: #e2e8f0;
  position: relative;
}

.main-image-view img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.thumbs-row {
  display: flex;
  gap: 8px;
  padding: 12px;
  overflow-x: auto;
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
}

.thumb-item {
  width: 90px;
  height: 65px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  flex-shrink: 0;
  transition: var(--transition);
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-item:hover {
  opacity: 0.85;
  border-color: var(--accent-navy);
}

.thumb-item.active {
  opacity: 1;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 2px rgba(158, 28, 37, 0.2);
}

@media (max-width: 640px) {
  .main-image-view {
    height: 280px;
  }

  .thumb-item {
    width: 70px;
    height: 50px;
  }
}

/* ==========================================================================
   SPECS GRID TABLE (Detail Page)
   ========================================================================== */

.specs-grid-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}

.spec-table-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 18px;
  border-bottom: 1px solid #f1f5f9;
  border-right: 1px solid #f1f5f9;
  transition: background 0.2s ease;
}

.spec-table-item:hover {
  background: #f8fafc;
}

.spec-table-item:nth-child(2n) {
  border-right: none;
}

.spec-table-item:nth-last-child(-n+2) {
  border-bottom: none;
}

.spec-table-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
}

.spec-table-value {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: right;
}

@media (max-width: 640px) {
  .specs-grid-table {
    grid-template-columns: 1fr;
  }

  .spec-table-item {
    border-right: none !important;
  }
}

/* ==========================================================================
   AGENT CONTACT CARD (Detail Page Sidebar)
   ========================================================================== */

.agent-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 100px;
}

.agent-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
}

.agent-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-navy);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  flex-shrink: 0;
  letter-spacing: 1px;
}

.agent-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 3px;
}

.agent-info span {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   FEATURES TAGS LIST (Detail Page)
   ========================================================================== */

.features-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: var(--transition);
}

.feature-tag i {
  color: var(--accent-emerald);
  font-size: 0.8rem;
}

.feature-tag:hover {
  background: #e2e8f0;
  border-color: var(--accent-navy);
  transform: translateY(-1px);
}

/* ==========================================================================
   RANGE INPUTS (Price / Area Min-Max)
   ========================================================================== */

.range-inputs {
  display: flex;
  gap: 8px;
}

.range-inputs .form-control {
  flex: 1;
  min-width: 0;
}

/* ==========================================================================
   FOOTER CONTACT ITEMS
   ========================================================================== */

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #94a3b8;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.footer-contact-item i {
  color: var(--accent-gold);
  font-size: 0.9rem;
  width: 18px;
  text-align: center;
}

/* ==========================================================================
   CUSTOM SYSTEM MODAL STYLES (Alert / Confirm)
   ========================================================================== */

.custom-modal-icon {
  font-size: 3rem;
  color: #f59e0b;
  margin-bottom: 14px;
}

.custom-modal-icon.success {
  color: var(--accent-emerald);
}

.custom-modal-icon.info {
  color: var(--accent-blue);
}

.custom-modal-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}

.btn-modal-confirm {
  background: var(--accent-gold);
  color: #ffffff;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-modal-confirm:hover {
  background: var(--accent-gold-hover);
  box-shadow: var(--shadow-gold);
}

/* ==========================================================================
   MOBILE HAMBURGER MENU
   ========================================================================== */

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--accent-navy);
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 992px) {
  .mobile-menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    gap: 6px;
    z-index: 999;
  }

  .main-nav.mobile-open {
    display: flex;
  }

  .nav-link {
    padding: 10px 8px;
    border-bottom: 1px solid #f1f5f9;
    width: 100%;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .header-search-bar {
    display: none;
  }

  .top-bar-info {
    flex-direction: column;
    gap: 4px;
  }
}