/* ==========================================================================
   TURKMENKOY.COM - UI COMPONENTS & LUXURY NAVIGATION
   ========================================================================== */

/* ---------------- Top Bar ---------------- */
.topbar {
  background: rgba(7, 10, 17, 0.95);
  border-bottom: 1px solid var(--tmk-border-subtle);
  font-size: 0.8rem;
  padding: 0.5rem 0;
  color: var(--tmk-text-secondary);
}

.topbar-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-info, .topbar-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.topbar-link {
  color: var(--tmk-text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition-fast);
}

.topbar-link:hover {
  color: var(--tmk-gold);
}

.topbar-badge {
  background: rgba(197, 168, 128, 0.12);
  color: var(--tmk-gold-light);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-size: 0.72rem;
  border: 1px solid var(--tmk-border-gold);
  font-weight: 600;
}

/* ---------------- Main Luxury Header / Navbar ---------------- */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(13, 19, 31, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--tmk-border-subtle);
  transition: var(--transition-smooth);
}

.header.scrolled {
  background: rgba(7, 10, 17, 0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border-bottom-color: var(--tmk-border-gold);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-emblem {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--tmk-gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b0f19;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(197, 168, 128, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

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

.brand-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffffff;
  line-height: 1.1;
}

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

.brand-subtitle {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tmk-text-secondary);
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--tmk-text-primary);
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.4rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--tmk-gold-gradient);
  transition: var(--transition-fast);
}

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

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--tmk-border-subtle);
  color: #ffffff;
  font-size: 1.35rem;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.mobile-toggle:hover {
  border-color: var(--tmk-gold);
  color: var(--tmk-gold);
}

/* ---------------- Hero Section ---------------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--tmk-bg-darkest);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  transition: transform 10s ease-out;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: linear-gradient(180deg, 
    rgba(7, 10, 17, 0.8) 0%, 
    rgba(7, 10, 17, 0.6) 40%, 
    rgba(7, 10, 17, 0.95) 100%),
    radial-gradient(ellipse at 70% 30%, rgba(197, 168, 128, 0.12) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 4rem 0;
  max-width: 820px;
}

.hero-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(19, 27, 46, 0.7);
  border: 1px solid var(--tmk-border-gold);
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero-badge-wrap span {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tmk-gold-light);
}

.hero-title {
  font-size: clamp(2.4rem, 4.8vw, 4.2rem);
  font-family: var(--font-serif);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.hero-description {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #cbd5e1;
  margin-bottom: 2.5rem;
  max-width: 720px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

/* Hero Key Indicators / Quick Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--tmk-border-subtle);
  padding-top: 2rem;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-num {
  font-size: 1.85rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--tmk-gold);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--tmk-text-secondary);
  line-height: 1.35;
}

/* ---------------- Project Cards ---------------- */
.project-card {
  background: var(--tmk-bg-card);
  border: 1px solid var(--tmk-border-subtle);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--tmk-border-gold);
  box-shadow: var(--shadow-card-hover);
}

.project-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #090d16;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-thumb img {
  transform: scale(1.08);
}

.project-badge-top {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.project-price-tag {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(7, 10, 17, 0.88);
  backdrop-filter: blur(8px);
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  border: 1px solid var(--tmk-border-gold);
  color: var(--tmk-gold-light);
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 2;
}

.project-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tmk-gold);
  margin-bottom: 0.4rem;
}

.project-title {
  font-size: 1.35rem;
  font-family: var(--font-serif);
  margin-bottom: 0.6rem;
}

.project-title a {
  color: #ffffff;
  text-decoration: none;
  transition: var(--transition-fast);
}

.project-title a:hover {
  color: var(--tmk-gold);
}

.project-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--tmk-text-secondary);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--tmk-text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--tmk-border-subtle);
  border-bottom: 1px solid var(--tmk-border-subtle);
  margin-bottom: 1.25rem;
}

.project-spec-item {
  display: flex;
  flex-direction: column;
}

.project-spec-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

.project-spec-lbl {
  font-size: 0.72rem;
  color: var(--tmk-text-muted);
}

.project-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---------------- Filter Bar ---------------- */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-btn {
  background: var(--tmk-bg-card);
  border: 1px solid var(--tmk-border-subtle);
  color: var(--tmk-text-secondary);
  padding: 0.65rem 1.4rem;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--tmk-gold);
  color: #0c121d;
  border-color: var(--tmk-gold);
  box-shadow: 0 4px 15px rgba(197, 168, 128, 0.3);
}

/* ---------------- Map Layout & Controls ---------------- */
.map-container-wrapper {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--tmk-border-subtle);
  background: var(--tmk-bg-card);
  box-shadow: var(--shadow-card);
}

#turkmenkoy-map {
  width: 100%;
  height: 580px;
  z-index: 10;
}

.map-poi-overlay {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 500;
  background: rgba(13, 19, 31, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--tmk-border-gold);
  padding: 1.25rem;
  border-radius: 10px;
  width: 290px;
  box-shadow: var(--shadow-card);
}

.map-poi-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.map-poi-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--tmk-border-subtle);
  font-size: 0.85rem;
}

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

.map-poi-dist {
  color: var(--tmk-gold);
  font-weight: 700;
}

/* Custom Leaflet Marker Glow */
.custom-tmk-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tmk-gold-gradient);
  color: #090d16;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1rem;
  border: 2px solid #ffffff;
  box-shadow: 0 0 20px rgba(197, 168, 128, 0.8);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.custom-tmk-marker:hover {
  transform: scale(1.2);
}

/* ---------------- Masterplan / Floor Plan Box ---------------- */
.plan-tabs {
  display: flex;
  gap: 0.75rem;
  border-bottom: 1px solid var(--tmk-border-subtle);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.plan-tab-btn {
  background: transparent;
  border: 1px solid var(--tmk-border-subtle);
  color: var(--tmk-text-secondary);
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.plan-tab-btn.active, .plan-tab-btn:hover {
  border-color: var(--tmk-gold);
  color: var(--tmk-gold);
  background: var(--tmk-gold-glass);
}

.plan-display-box {
  background: #080c14;
  border: 1px solid var(--tmk-border-subtle);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
}

/* ---------------- Region Feature Block ---------------- */
.feature-box {
  background: var(--tmk-bg-card);
  border: 1px solid var(--tmk-border-subtle);
  border-radius: 12px;
  padding: 2.25rem;
  transition: var(--transition-smooth);
}

.feature-box:hover {
  border-color: var(--tmk-border-gold);
  transform: translateY(-5px);
}

.feature-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  background: rgba(197, 168, 128, 0.1);
  border: 1px solid var(--tmk-border-gold);
  color: var(--tmk-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.feature-title {
  font-size: 1.25rem;
  font-family: var(--font-serif);
  margin-bottom: 0.75rem;
}

.feature-desc {
  font-size: 0.925rem;
  color: var(--tmk-text-secondary);
  line-height: 1.65;
}

/* ---------------- News / Article Card ---------------- */
.news-card {
  background: var(--tmk-bg-card);
  border: 1px solid var(--tmk-border-subtle);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-5px);
  border-color: var(--tmk-border-gold);
}

.news-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.news-card:hover .news-thumb img {
  transform: scale(1.06);
}

.news-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--tmk-text-muted);
  margin-bottom: 0.75rem;
}

.news-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.news-title {
  font-size: 1.2rem;
  font-family: var(--font-serif);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.news-title a {
  color: #ffffff;
  text-decoration: none;
  transition: var(--transition-fast);
}

.news-title a:hover {
  color: var(--tmk-gold);
}

.news-summary {
  font-size: 0.88rem;
  color: var(--tmk-text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.news-link {
  color: var(--tmk-gold);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
}

.news-link:hover {
  color: var(--tmk-gold-light);
  gap: 0.6rem;
}

/* ---------------- Footer ---------------- */
.footer {
  background: #05070c;
  border-top: 1px solid var(--tmk-border-subtle);
  padding: 5rem 0 2rem;
  color: var(--tmk-text-secondary);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-col-title {
  font-size: 1rem;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--tmk-gold);
}

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

.footer-links a {
  color: var(--tmk-text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a:hover {
  color: var(--tmk-gold);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--tmk-border-subtle);
  font-size: 0.825rem;
  color: var(--tmk-text-muted);
}

.footer-admin-link {
  color: var(--tmk-text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--tmk-border-subtle);
  transition: var(--transition-fast);
}

.footer-admin-link:hover {
  color: var(--tmk-gold);
  border-color: var(--tmk-gold);
}

/* ---------------- Floating Contact / WhatsApp Widget ---------------- */
.floating-actions {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 990;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.floating-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.4rem;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: var(--transition-fast);
}

.floating-whatsapp {
  background: #25d366;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
}

.floating-call {
  background: var(--tmk-gold-gradient);
  color: #090d16;
}

.floating-call:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(197, 168, 128, 0.5);
}

/* ---------------- Responsive Menu Drawer ---------------- */
@media (max-width: 992px) {
  .topbar { display: none; }
  .mobile-toggle { display: inline-flex; }
  
  .nav-menu {
    position: fixed;
    top: 72px;
    left: -100%;
    width: 80%;
    max-width: 360px;
    height: calc(100vh - 72px);
    background: #090e18;
    border-right: 1px solid var(--tmk-border-gold);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    gap: 1.25rem;
    transition: left 0.35s ease;
    overflow-y: auto;
    z-index: 1001;
  }

  .nav-menu.open {
    left: 0;
  }

  .nav-cta {
    display: none;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .map-poi-overlay {
    position: relative;
    top: 0;
    right: 0;
    width: 100%;
    border-radius: 0;
  }
}
