:root {
  --bg: #0f0f10;
  --bg-soft: #17181a;
  --bg-deeper: #0a0a0b;
  --surface: #151618;
  --surface-2: #1b1d20;

  --text: #f2f2f2;
  --text-soft: #c2c6cc;
  --text-muted: #8d939b;

  --accent: #b8955f;
  --accent-hover: #a58149;
  --accent-2: #d7c09a;

  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --white: #ffffff;
  --black: #000000;
  --whatsapp: #25d366;

  --font-body: 'Inter', sans-serif;
  --font-heading: 'Poppins', sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.24);

  --transition: 0.3s ease;
}

/* =========================
   BASE
========================= */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
}

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

a:hover {
  color: var(--accent-hover);
}

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

.section {
  padding: 90px 0;
}

.section-title {
  margin-bottom: 42px;
}

.section-title h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
}

.section-title p {
  margin: 0;
  max-width: 760px;
  color: var(--text-soft);
}

/* =========================
   TOPBAR
========================= */
.topbar {
  padding: 12px 0;
  background: var(--bg-deeper);
  border-bottom: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.5;
}

.topbar .container {
  min-height: 44px;
}

.topbar a {
  color: var(--white);
}

.topbar a:hover {
  color: var(--accent-2);
}

.topbar i {
  margin-right: 6px;
}

.topbar-whatsapp {
  color: var(--whatsapp) !important;
}

/* =========================
   HEADER / NAVBAR
========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(15, 15, 16, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-navbar {
  min-height: 96px;
  padding: 0;
  position: relative;
}

.site-logo img {
  max-height: 72px;
}

.navbar-nav .nav-link {
  color: var(--text);
  font-weight: 500;
  padding: 14px 16px;
  background: transparent !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--accent);
  background: transparent !important;
}

.site-navbar .nav-link:focus,
.site-navbar .nav-link.show,
.site-navbar .nav-item.dropdown .nav-link.show,
.navbar .dropdown-toggle.show {
  background: transparent !important;
  color: var(--accent);
}

.custom-toggler {
  border: 1px solid var(--border-strong);
  color: var(--white);
  padding: 8px 12px;
  box-shadow: none !important;
}

.custom-toggler i {
  font-size: 28px;
}

.header-actions {
  margin-left: 28px;
}

.btn-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #111;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  line-height: 1;
}

.btn-brand:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #111;
}

.btn-outline-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-strong);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
}

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

/* =========================
   HERO
========================= */
.hero-section {
  position: relative;
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 0 90px;
  background:
    linear-gradient(
      90deg,
      rgba(10,10,11,0.92) 0%,
      rgba(10,10,11,0.85) 40%,
      rgba(10,10,11,0.55) 70%,
      rgba(10,10,11,0.35) 100%
    ),
    url('../img/hero-bg.jpg') center center / cover no-repeat;
}

.hero-content {
  max-width: 760px;
  padding-top: 10px;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0 0 20px;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 58px;
  font-weight: 800;
  line-height: 1.08;
}

.hero-content p {
  margin: 0 0 30px;
  max-width: 640px;
  color: var(--text-soft);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* =========================
   PAGE HEADER
========================= */
.page-inner main {
  min-height: 50vh;
}

.page-header {
  padding: 80px 0 40px;
  background: linear-gradient(180deg, #121315 0%, #0f1012 100%);
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  margin: 0 0 12px;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 800;
}

.page-header p {
  margin: 0;
  max-width: 760px;
  color: var(--text-soft);
}

/* =========================
   VIEW SWITCHER
========================= */
.view-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.view-switcher-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-soft);
  background: var(--surface);
  font-weight: 600;
}

.view-switcher-btn:hover,
.view-switcher-btn.active {
  color: #111;
  background: var(--accent);
  border-color: var(--accent);
}

/* =========================
   TABLES
========================= */
.areas-table {
  width: 100%;
  border-collapse: collapse;
}

.areas-table th {
  text-align: left;
  padding: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--accent);
  font-weight: 600;
}

.areas-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-soft);
}

.areas-table tr:hover {
  background: rgba(255,255,255,0.02);
}

/* =========================
   LOCATION VIEW
========================= */
.location-section {
  padding-top: 0;
}

.location-block {
  margin-bottom: 60px;
}

.location-block h2 {
  font-size: 32px;
  margin-bottom: 24px;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.district-block {
  margin-bottom: 32px;
}

.district-block h3 {
  font-size: 24px;
  margin-bottom: 18px;
  color: var(--white);
}

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

.location-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: var(--transition);
}

.location-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.location-card h4 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--white);
}

.location-card p {
  margin-bottom: 0;
  color: var(--text-soft);
}

/* =========================
   MINERAL VIEW
========================= */
.mineral-section {
  padding-top: 0;
}

.mineral-block {
  margin-bottom: 60px;
}

.mineral-block h2 {
  font-size: 30px;
  margin-bottom: 20px;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

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

.mineral-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition);
}

.mineral-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.mineral-card h4 {
  font-size: 18px;
  margin-bottom: 0;
  color: var(--white);
}

/* =========================
   MAP / FILTERS
========================= */
.map-section {
  padding: 0 0 40px;
}

.map-filters {
  margin-bottom: 24px;
}

.map-filters .form-label {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 8px;
}

.map-filter-select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  min-height: 48px;
}

.map-filter-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(184, 149, 95, 0.15);
  background: var(--surface);
  color: var(--text);
}

.active-filters {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-badge {
  background: rgba(198, 161, 91, 0.15);
  border: 1px solid #c6a15b;
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-badge button {
  background: none;
  border: none;
  color: #c6a15b;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.clear-filter::after {
  content: "×";
}

.turkey-map-card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.turkey-map-wrap {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.turkey-map-image {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.92) contrast(1.05);
}

.city-point {
  position: absolute;
  transform: translate(-50%, -50%);
  background: transparent;
  border: 0;
  padding: 0;
  z-index: 10;
}

.map-dot {
  width: 18px;
  height: 18px;
  display: block;
  border-radius: 50%;
  background: #c6a15b;
  border: 3px solid #fff;
  box-shadow: 0 0 0 6px rgba(198, 161, 91, 0.25);
  transition: var(--transition);
}

.city-point:hover .map-dot {
  transform: scale(1.15);
}

.map-city-label {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  background: rgba(15, 15, 16, 0.92);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
}

/* =========================
   CITY MODAL
========================= */
.city-map-modal .modal-dialog {
  max-width: 900px;
}

.city-modal-content {
  background: #111214;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
}

.city-modal-header {
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
}

.city-modal-body {
  padding: 24px;
}

.city-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.city-modal-card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}

.city-modal-card h4 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 18px;
}

.city-modal-card p {
  margin: 0;
  color: var(--text-soft);
}

/* =========================
   ABOUT / CONTACT COMMON
========================= */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* =========================
   CONTACT
========================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info {
  max-width: 420px;
}

.contact-list {
  margin-top: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.contact-item i {
  width: 20px;
  color: var(--accent);
  font-size: 16px;
  flex-shrink: 0;
}

.contact-item a {
  color: var(--text-soft);
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--accent);
}

.contact-form-wrap {
  width: 100%;
  max-width: 520px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 15px;
  background: #111;
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  border-radius: 8px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(184, 149, 95, 0.12);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.alert {
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.5;
}

.alert.success {
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #d8ffe7;
}

.alert.error {
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.35);
  color: #ffd9d9;
}

/* =========================
   FOOTER
========================= */
.site-footer {
  padding: 80px 0 26px;
  background: var(--bg-deeper);
  border-top: 1px solid var(--border);
}

.footer-top {
  margin-bottom: 38px;
}

.footer-logo img {
  max-height: 60px;
}

.footer-title {
  margin: 0 0 18px;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
}

.footer-text {
  color: var(--text-soft);
  margin-bottom: 14px;
}

.footer-links li + li {
  margin-top: 10px;
}

.footer-links a {
  color: var(--text-soft);
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-contact-item i {
  width: 18px;
  margin-top: 4px;
  color: var(--white);
}

.footer-contact-item .whatsapp-icon {
  color: var(--whatsapp);
}

.footer-contact-item a {
  color: var(--text-soft);
}

.footer-contact-item a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
}

.footer-managed-by img {
  max-height: 24px;
}

/* =========================
   FLOATING WHATSAPP
========================= */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1100;
}

.whatsapp-float img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1199.98px) {
  .site-navbar {
    min-height: 80px;
    padding: 14px 0;
  }

  .navbar-collapse {
    margin-top: 14px;
    padding: 18px;
    background: #151618;
    border: 1px solid var(--border);
    border-radius: 14px;
  }

  .navbar-nav .nav-link {
    padding: 12px 0;
  }

  .header-actions {
    margin-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 16px;
  }
}

@media (max-width: 991.98px) {
  .section {
    padding: 72px 0;
  }

  .section-title h2 {
    font-size: 32px;
  }

  .hero-content h1 {
    font-size: 44px;
  }

  .hero-content p {
    font-size: 17px;
  }

  .page-header h1 {
    font-size: 36px;
  }

  .location-grid,
  .mineral-grid,
  .city-modal-grid,
  .grid-2,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .turkey-map-card {
    padding: 20px;
  }

  .map-city-label {
    font-size: 12px;
    padding: 5px 9px;
  }

  .contact-info,
  .contact-form-wrap {
    max-width: 100%;
  }
}

@media (max-width: 575.98px) {
  .topbar {
    font-size: 12px;
  }

  .site-logo img {
    max-height: 56px;
  }

  .hero-section {
    min-height: calc(100vh - 130px);
    padding: 70px 0 80px;
  }

  .hero-content h1 {
    font-size: 34px;
  }

  .hero-content p {
    font-size: 16px;
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-brand,
  .btn-outline-brand {
    justify-content: center;
  }

  .page-header h1 {
    font-size: 30px;
  }

  .location-block h2 {
    font-size: 26px;
  }

  .district-block h3 {
    font-size: 20px;
  }

  .map-section {
    padding: 0 0 30px;
  }

  .map-dot {
    width: 16px;
    height: 16px;
  }

  .map-city-label {
    display: none;
  }

  .city-modal-header,
  .city-modal-body {
    padding: 18px;
  }

  .view-switcher-btn {
    width: 100%;
  }
}