/* VM AUTO — modern açık tema / sarı vurgu */
:root {
  --vm-yellow: #e6b800;
  --vm-yellow-hover: #cc9f00;
  --vm-bg: #f4f6f9;
  --vm-bg-alt: #eef1f6;
  --vm-surface: #ffffff;
  --vm-text: #1a1d26;
  --vm-text-muted: #5c6370;
  --vm-border: #e2e8f0;
  --vm-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --vm-shadow-hover: 0 12px 40px rgba(15, 23, 42, 0.1);
  --vm-price: #0d47a1;
  --vm-navbar-h: 58px;
  --vm-topbar-h: 0px;
  --vm-header-total: var(--vm-navbar-h);
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: calc(var(--vm-header-total) + 12px);
}

body.vm-site {
  background: var(--vm-bg);
  color: var(--vm-text);
  font-family: "Montserrat", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  --vm-navbar-h: 58px;
  --vm-topbar-h: 0px;
  --vm-header-total: var(--vm-navbar-h);
}

body.vm-site.vm-has-topbar {
  --vm-topbar-h: 38px;
  --vm-header-total: calc(var(--vm-topbar-h) + var(--vm-navbar-h));
}

/* Sabit üst alan: topbar + navbar */
.vm-fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
}

.vm-topbar {
  background: #0d1b2a;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  min-height: var(--vm-topbar-h, 0px);
}

.vm-topbar-link {
  color: rgba(255, 255, 255, 0.92) !important;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
}

.vm-topbar-link:hover {
  color: var(--vm-yellow) !important;
}

.vm-topbar-icon {
  flex-shrink: 0;
  opacity: 0.88;
}

.vm-topbar-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.vm-topbar-social-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  color: var(--vm-yellow);
  transform: scale(1.06);
}

/* Sabit menü altında içerik (araç detay vb. — ana sayfa hero hariç) */
body.vm-site.vm-page-inner {
  padding-top: var(--vm-header-total);
}

.vm-navbar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--vm-border);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.vm-navbar .navbar-brand img {
  display: block;
  height: 52px;
  width: auto;
  object-fit: contain;
  margin-top: 0;
  margin-bottom: 0;
}

.vm-navbar .navbar-brand img + img {
  height: 46px;
}

.vm-fixed-header.vm-header-scrolled .vm-navbar {
  box-shadow: var(--vm-shadow);
}

.vm-navbar .nav-link {
  color: var(--vm-text) !important;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.5rem 1rem !important;
}

.vm-navbar .nav-link:hover,
.vm-navbar .nav-link.active {
  color: var(--vm-yellow-hover) !important;
}

.vm-btn-cta {
  background: var(--vm-yellow);
  color: #111 !important;
  font-weight: 700;
  border: none;
  padding: 0.55rem 1.35rem;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(230, 184, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.vm-btn-cta:hover {
  background: var(--vm-yellow-hover);
  color: #000 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(230, 184, 0, 0.45);
}

/* Hero — kalan viewport (sabit header altında) */
.vm-hero {
  position: relative;
  overflow: hidden;
  margin-top: var(--vm-header-total);
  min-height: calc(100vh - var(--vm-header-total));
  height: calc(100vh - var(--vm-header-total));
  min-height: calc(100dvh - var(--vm-header-total));
  height: calc(100dvh - var(--vm-header-total));
}

/* Parçacık ağı: slayt içinde overlay üstü, metin altı — tam alan (flex içinde canvas boyutu için) */
.vm-hero .swiper-slide .vm-hero-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  z-index: 2;
  pointer-events: none;
  display: block;
}

.vm-hero-swiper.swiper {
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.vm-hero .swiper-wrapper {
  height: 100% !important;
}

/* display:block: Safari/WebKit + Swiper transform ile flex hizası kaymasını önler */
.vm-hero .swiper-slide {
  position: relative;
  height: 100% !important;
  min-height: 100%;
  width: 100%;
  box-sizing: border-box;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: block;
  overflow: hidden;
}

/* Metin + CTA: slaytın tamamında mutlak ortalama (iOS / macOS Safari) */
.vm-hero-copy {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 2.5rem max(1rem, env(safe-area-inset-right)) 3rem max(1rem, env(safe-area-inset-left));
  margin: 0;
  text-align: center;
  pointer-events: none;
}

.vm-hero-copy > .container {
  width: 100%;
  max-width: 100%;
  pointer-events: auto;
}

.vm-hero-cta {
  align-self: center;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Uçan emlak ikonları: gradient üstü (WebKit’te altta kaybolmayı önler), metnin altı */
.vm-hero .swiper-slide .vm-hero-floats {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.vm-float-icon {
  position: absolute;
  color: rgba(255, 255, 255, 0.5);
  /* iOS Safari’de SVG + filter bazen görünmez; gölge yerine hafif stroke */
  animation: vm-float-drift 14s ease-in-out infinite;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.vm-float-icon svg {
  display: block;
}

.vm-float-icon--a {
  top: 14%;
  left: 6%;
  animation-duration: 13s;
  animation-delay: 0s;
}
.vm-float-icon--b {
  top: 22%;
  right: 8%;
  animation-duration: 11s;
  animation-delay: -2s;
}
.vm-float-icon--c {
  top: 48%;
  left: 4%;
  animation-duration: 15s;
  animation-delay: -4s;
}
.vm-float-icon--d {
  top: 58%;
  right: 5%;
  animation-duration: 12s;
  animation-delay: -1s;
}
.vm-float-icon--e {
  bottom: 28%;
  left: 12%;
  animation-duration: 16s;
  animation-delay: -6s;
}
.vm-float-icon--f {
  bottom: 20%;
  right: 14%;
  animation-duration: 10s;
  animation-delay: -3s;
}
.vm-float-icon--g {
  top: 38%;
  left: 42%;
  animation-duration: 18s;
  animation-delay: -5s;
  opacity: 0.85;
}
.vm-float-icon--h {
  bottom: 42%;
  right: 22%;
  animation-duration: 14s;
  animation-delay: -7s;
}

@keyframes vm-float-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  25% {
    transform: translate3d(10px, -14px, 0) rotate(4deg);
  }
  50% {
    transform: translate3d(-8px, 8px, 0) rotate(-3deg);
  }
  75% {
    transform: translate3d(6px, 10px, 0) rotate(2deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .vm-float-icon {
    animation: none;
  }
}

@media (max-width: 767.98px) {
  .vm-float-icon--g {
    display: none;
  }
  .vm-float-icon svg {
    transform: scale(0.88);
    transform-origin: center center;
  }
}

.vm-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(15, 23, 42, 0.18) 0%,
    rgba(15, 23, 42, 0.35) 50%,
    rgba(10, 15, 30, 0.5) 100%
  );
  z-index: 0;
}

.vm-hero .vm-hero-copy .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.vm-hero h1 {
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.vm-hero .lead {
  color: rgba(255, 255, 255, 0.92);
  max-width: 36rem;
}

.vm-hero .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.55);
  opacity: 1;
}

.vm-hero .swiper-pagination-bullet-active {
  background: var(--vm-yellow);
}

.vm-hero .swiper-pagination,
.vm-hero .swiper-button-prev,
.vm-hero .swiper-button-next {
  z-index: 5;
}

.vm-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  color: var(--vm-yellow);
  font-size: 1.75rem;
  animation: vm-bounce 2s infinite;
}

@keyframes vm-bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* Sections */
.vm-section {
  min-height: 80vh;
  padding: 4.5rem 0;
  position: relative;
}

.vm-section.vm-section--alt {
  min-height: auto;
  background: var(--vm-bg-alt) !important;
}

#hakkimizda.vm-section,
#araclarimiz.vm-section {
  min-height: auto;
}

.vm-section.vm-parallax {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

.vm-section.vm-parallax::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(248, 250, 252, 0.93);
  z-index: 0;
}

.vm-section.vm-parallax > .container {
  position: relative;
  z-index: 1;
}

.vm-sec-title {
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--vm-text);
  margin-bottom: 2rem;
  text-transform: uppercase;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  padding-left: 1rem;
  border-left: 4px solid var(--vm-yellow);
}

.vm-sec-title span {
  color: inherit;
}

/* Hakkımızda / içerik */
.vm-site .about-html {
  color: var(--vm-text-muted);
  line-height: 1.75;
}

.vm-site .about-html p:last-child {
  margin-bottom: 0;
}

/* Gallery grid */
.vm-gallery-grid a {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--vm-border);
  box-shadow: var(--vm-shadow);
  background: var(--vm-surface);
}

.vm-gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.vm-gallery-grid a:hover img {
  transform: scale(1.04);
}

/* Vehicle cards */
.vm-vcard {
  background: var(--vm-surface);
  border: 1px solid var(--vm-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--vm-shadow);
  transition: 0.35s ease;
}

.vm-vcard:hover {
  border-color: rgba(230, 184, 0, 0.55);
  box-shadow: var(--vm-shadow-hover);
  transform: translateY(-4px);
}

.vm-vcard img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.vm-vcard .text-muted {
  color: var(--vm-text-muted) !important;
}

.vm-price {
  color: var(--vm-price);
  font-weight: 800;
  font-size: 1.2rem;
}

/* sahibinden benzeri: fiyatın hemen altında İl / İlçe / Mahalle */
.vm-detail-loc {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1565c0;
  line-height: 1.45;
  margin-top: 0;
}

/* Spec table (vehicle detail) */
.vm-spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--vm-surface);
  border: 1px solid var(--vm-border);
  box-shadow: var(--vm-shadow);
}

.vm-spec-table tr:nth-child(odd) {
  background: rgba(248, 250, 252, 0.95);
}

.vm-spec-table tr:nth-child(even) {
  background: var(--vm-surface);
}

.vm-spec-table th,
.vm-spec-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--vm-border);
}

.vm-spec-table th {
  width: 40%;
  font-weight: 700;
  color: var(--vm-text-muted);
}

.vm-spec-table td {
  color: var(--vm-text);
}

.vm-ilan-no {
  color: #c62828;
}

/* Vehicle gallery */
.vm-v-main {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--vm-border);
  background: var(--vm-surface);
  box-shadow: var(--vm-shadow);
}

.vm-v-main img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
}

.vm-v-main--gallery {
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  touch-action: pan-y pinch-zoom;
  -webkit-touch-callout: none;
}

.vm-v-main--gallery:active {
  cursor: grabbing;
}

.vm-v-main--gallery img {
  pointer-events: none;
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
}

.vm-v-main--gallery:focus {
  outline: 2px solid var(--vm-yellow);
  outline-offset: 2px;
}

.vm-v-main--gallery:focus:not(:focus-visible) {
  outline: none;
}

.vm-v-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.vm-v-thumbs button {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  opacity: 0.85;
  transition: 0.2s;
}

.vm-v-thumbs button:hover,
.vm-v-thumbs button.is-active {
  opacity: 1;
  border-color: var(--vm-yellow);
}

.vm-v-thumbs img {
  width: 88px;
  height: 66px;
  object-fit: cover;
  display: block;
}

/* İletişim formu — açık tema */
.vm-contact-form .form-control {
  background: var(--vm-surface);
  color: var(--vm-text);
  border-color: var(--vm-border);
}

.vm-contact-form .form-control:focus {
  border-color: var(--vm-yellow);
  box-shadow: 0 0 0 0.2rem rgba(230, 184, 0, 0.2);
}

.vm-map-embed {
  border-color: var(--vm-border) !important;
}

/* Footer */
.vm-site-footer {
  background: var(--vm-bg-alt);
  border-color: var(--vm-border) !important;
  color: var(--vm-text-muted);
}

/* Boyalı / değişen parça şeması (sahibinden benzeri) */
.vm-bp-wrap {
  background: var(--vm-surface);
  border: 1px solid var(--vm-border);
  border-radius: 10px;
  padding: 1.25rem;
}
.vm-bp-title {
  color: #1565c0;
  font-weight: 700;
}
.vm-bp-legend .vm-bp-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: middle;
  border: 1px solid rgba(0, 0, 0, 0.12);
}
.vm-bp-diagram {
  max-width: 180px;
  margin: 0 auto;
}
.vm-bp-diagram svg {
  width: 100%;
  height: auto;
  display: block;
}
.vm-bp-part {
  stroke: #fff;
  stroke-width: 1.2;
  transition: filter 0.15s ease;
  cursor: default;
}
.vm-bp-fill-0 {
  fill: #cfd4dc;
  background-color: #cfd4dc;
}
.vm-bp-fill-1 {
  fill: #f5a623;
  background-color: #f5a623;
}
.vm-bp-fill-2 {
  fill: #2d7ce8;
  background-color: #2d7ce8;
}
.vm-bp-fill-3 {
  fill: #e53935;
  background-color: #e53935;
}

/* Breadcrumb detail */
.vm-site .breadcrumb-item a {
  color: #1565c0;
}

.vm-site .breadcrumb-item.active {
  color: var(--vm-text-muted);
}

/* Emlak detay — Leaflet */
.vm-detail-map {
  min-height: 320px;
  height: min(45vh, 420px);
  width: 100%;
  z-index: 1;
}

.vm-detail-map--loading {
  background: repeating-linear-gradient(
    -45deg,
    #f1f5f9,
    #f1f5f9 10px,
    #e2e8f0 10px,
    #e2e8f0 20px
  );
}

@media (max-width: 767.98px) {
  .vm-parallax {
    background-attachment: scroll !important;
  }
  .vm-v-thumbs img {
    width: 72px;
    height: 54px;
  }
  .vm-section {
    min-height: auto;
    padding: 3.5rem 0;
  }
}
