/* Doğan Tarım UI Patch (dt-v2)
   Not: Bu dosya sadece <body class="dt-v2"> olan sayfalarda etki eder. */

.dt-v2 {
  background: #f6f7f8;
  color: #1b1b1b;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.dt-v2 html { scroll-behavior: smooth; }

/* Erişilebilir odak halkası */
.dt-v2 a:focus-visible,
.dt-v2 button:focus-visible {
  outline: 3px solid rgba(31, 122, 59, 0.35);
  outline-offset: 3px;
  border-radius: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .dt-v2 html { scroll-behavior: auto; }
  .dt-v2 *,
  .dt-v2 *::before,
  .dt-v2 *::after {
    transition: none !important;
    animation: none !important;
  }
}

.dt-v2 header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* Navbar + Logo (eski düzene dönüş) */
.dt-v2 .navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  flex-wrap: nowrap;
}

/* Menü: bullet/varsayılan liste stillerini sıfırla (bazı temalarda !important ile eziliyordu) */
.dt-v2 header nav ul,
.dt-v2 header nav ol {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.dt-v2 header nav ul li,
.dt-v2 header nav ol li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Desktop menü: sola taşınmış + tek sütun (dikey) */
@media (min-width: 769px) {
  /* Menü en solda dursun, logo mevcut boyutta kalırken çakışmasın */
  .dt-v2 header .navbar nav {
    display: block !important; /* sayfadaki inline CSS ile uyumlu */
    flex: 0 0 auto;
    order: -1; /* en sol */
    margin-right: 14px;
  }

  .dt-v2 header .navbar nav ul {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
  }

  .dt-v2 header .navbar nav ul li a {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 10px;
    font-weight: 700;
    line-height: 1.15;
    font-size: 0.96rem;
    color: rgba(25, 45, 25, 0.92);
    transition: background 160ms ease, color 160ms ease;
  }

  .dt-v2 header .navbar nav ul li a:hover {
    background: rgba(31, 122, 59, 0.10);
  }

  .dt-v2 header .navbar nav ul li a.active {
    background: rgba(31, 122, 59, 0.16);
    color: #145a2e;
  }
}

/* Mobil menü: dropdown (logo/hamburger üst üste binmesin) */
@media (max-width: 768px) {
  .dt-v2 header .navbar { position: relative; }
  .dt-v2 header .navbar nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(0,0,0,0.12);
    padding: 10px 14px;
    z-index: 1200;
  }
  .dt-v2 header .navbar nav ul { display: block !important; }
  .dt-v2 header .navbar nav ul li { padding: 6px 0 !important; }
}

.dt-v2 .navbar .logo {

  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
}

.dt-v2 .navbar .logo a { display: inline-flex; }

.dt-v2 .navbar .logo img {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: 100;
  width: 600px;
  max-width: 600px;
}

@media (max-width: 1024px) {
  .dt-v2 .navbar .logo img {
    height: 50px;
    max-width: 360px;
  }
}

@media (max-width: 768px) {
  .dt-v2 .navbar .logo img {
    height: 42px;
    /* hamburger ile çakışmayı engelle */
    max-width: calc(100vw - 78px);
  }
}

/* Hamburger: mobilde her zaman sağda kalsın */
.dt-v2 .hamburger {
  flex: 0 0 auto;
  margin-left: auto;
}


.dt-v2 .hero {
  padding: 2.2rem 0 1.6rem;
  background: linear-gradient(95deg, rgba(233,246,235,0.92) 50%, rgba(255,255,255,0.96) 100%);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.dt-v2 .hero h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.7vw, 2.1rem);
  letter-spacing: 0.2px;
}

.dt-v2 .dt-quick-actions {
  margin-top: 1rem;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.dt-v2 .dt-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.72rem 1.05rem;
  border-radius: 999px;
  text-decoration: none;
  background: #1f7a3b;
  color: #fff;
  box-shadow: 0 6px 18px rgba(31,122,59,0.22);
  border: 1px solid rgba(0,0,0,0.02);
  font-weight: 600;
}

.dt-v2 .dt-btn.secondary {
  background: #fff;
  color: #1f7a3b;
  border: 1px solid rgba(31,122,59,0.22);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.dt-v2 .dt-btn:active { transform: translateY(1px); }

/* Bölüm başlığı (küçük, modern) */
.dt-v2 .dt-section-head {
  text-align: center;
  margin: 0 0 16px;
}
.dt-v2 .dt-section-head h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  letter-spacing: 0.2px;
}
.dt-v2 .dt-section-head p {
  margin: 8px auto 0;
  max-width: 860px;
  color: rgba(0,0,0,0.68);
  line-height: 1.65;
}

/* Öne Çıkanlar */
.dt-v2 .dt-features {
  padding: 1.4rem 0 2rem;
}
.dt-v2 .dt-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.dt-v2 .dt-feature-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  padding: 16px 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}
.dt-v2 .dt-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: rgba(31, 122, 59, 0.10);
  border: 1px solid rgba(31, 122, 59, 0.12);
}
.dt-v2 .dt-feature-card h3 {
  margin: 10px 0 6px;
  font-size: 1.05rem;
  letter-spacing: 0.2px;
}
.dt-v2 .dt-feature-card p {
  margin: 0;
  color: rgba(0,0,0,0.70);
  line-height: 1.55;
}

@media (max-width: 992px) {
  .dt-v2 .dt-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .dt-v2 .dt-features { padding-top: 1rem; }
  .dt-v2 .dt-feature-grid {
    grid-template-columns: 1fr;
  }
}

/* Şube kartları */
.dt-v2 .branches .branch-row {
  margin: 1.25rem auto;
  max-width: 1200px;
}

/* Şube ismi: resmin üstünde, ortalı */
.dt-v2 .dt-branch-name {
  font-weight: 800;
  /* Masaüstünde daha büyük, küçük ekranlarda otomatik küçülen başlık */
  font-size: clamp(2.1rem, 3.6vw, 3.8rem) !important;
  text-align: center;
  margin: 14px 0 12px;
  letter-spacing: 0.2px;
}

@media (max-width: 768px) {
  .dt-v2 .dt-branch-name {
    font-size: clamp(1.35rem, 7vw, 2.25rem) !important;
    margin: 12px 0 10px;
  }
}

.dt-v2 .branches .branch-card {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,0.10);
  position: relative;
}

.dt-v2 .dt-branch-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.dt-v2 .branches .branch-card img {
  border-radius: 0;
  transform: scale(1);
  transition: transform 220ms ease;
}

@media (hover: hover) {
  .dt-v2 .branches .branch-card:hover img { transform: scale(1.03); }
}

.dt-v2 .dt-branch-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(0,0,0,0.02) 40%, rgba(0,0,0,0.60) 100%);
}

.dt-v2 .dt-branch-title {
  color: #fff;
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.1;
}

.dt-v2 .dt-branch-sub {
  color: rgba(255,255,255,0.85);
  margin-top: 4px;
  font-size: 0.95rem;
}

.dt-v2 .dt-branch-cta {
  color: #fff;
  font-weight: 700;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .dt-v2 .dt-branch-overlay { padding: 12px; }
  .dt-v2 .dt-branch-title { font-size: 1.15rem; }
  .dt-v2 .dt-branch-cta { font-size: 0.92rem; }
}

/* Galeri başlık satırı */
.dt-v2 .branch-album .album-header {
  align-items: flex-end;
}

.dt-v2 .album-title-link {
  text-decoration: none;
  color: inherit;
}

@media (hover:hover) {
  .dt-v2 .album-title-link:hover { text-decoration: underline; }
}

.dt-v2 .album-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  text-decoration: none;
  font-size: 0.92rem;
  color: inherit;
}

/* İletişim */
.dt-v2 .contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.dt-v2 .contact-item {
  flex: 1 1 48%;
}

.dt-v2 .contact-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 1rem 1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

/* İletişim hızlı aksiyonlar */
.dt-v2 .dt-contact-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dt-v2 .dt-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #1f7a3b;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid rgba(0,0,0,0.02);
  box-shadow: 0 6px 18px rgba(31,122,59,0.18);
}

.dt-v2 .dt-chip.secondary {
  background: #fff;
  color: #1f7a3b;
  border: 1px solid rgba(31,122,59,0.22);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.dt-v2 .dt-chip.ghost {
  background: rgba(31, 122, 59, 0.08);
  color: #145a2e;
  border: 1px solid rgba(31,122,59,0.18);
  box-shadow: none;
}

.dt-v2 .dt-chip:active { transform: translateY(1px); }

/* Telefon linkleri: mobilde tıklanabilir, görünüm text gibi
   Not: "Ara" butonları (dt-chip) tel: kullandığı için bu kuralın dışında bırakılır. */
.dt-v2 .contact-card a[href^="tel:"]:not(.dt-chip) {
  color: inherit;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px dashed rgba(31, 122, 59, 0.35);
  padding-bottom: 1px;
}
.dt-v2 .contact-card a[href^="tel:"]:not(.dt-chip):hover {
  border-bottom-style: solid;
}
.dt-v2 .contact-card a[href^="tel:"]:not(.dt-chip):active {
  opacity: 0.85;
}


.dt-v2 .map-container iframe {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
  .dt-v2 .contact-item { flex: 1 1 100%; }
  .dt-v2 .map-container iframe { height: 220px; }
}

/* Footer (modern) */
.dt-v2 footer.dt-footer {
  margin-top: 1.5rem;
  background: linear-gradient(180deg, #0f2f1c 0%, #0b2315 100%);
  color: rgba(255,255,255,0.92);
  border-top: 1px solid rgba(255,255,255,0.10);
  padding: 38px 0 18px;
  position: relative;
  clear: both;
}

.dt-v2 footer.dt-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: rgba(255,255,255,0.14);
}

.dt-v2 .dt-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr 1fr;
  gap: 26px;
  align-items: start;
}

.dt-v2 .dt-footer-col h4 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  letter-spacing: 0.2px;
  color: #ffffff;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  display: inline-block;
}

.dt-v2 .dt-footer-brand .dt-footer-logo img {
  display: block;
  height: 46px;
  width: auto;
  max-width: 100%;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.25));
}

.dt-v2 .dt-footer-brand p {
  margin: 10px 0 0;
  color: rgba(255,255,255,0.78);
  line-height: 1.45;
}

.dt-v2 .dt-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dt-v2 .dt-footer-col li { margin: 0 0 8px; }

.dt-v2 .dt-footer-col a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  padding: 5px 0;
}

.dt-v2 .dt-footer-col a:hover { text-decoration: underline; }

.dt-v2 .dt-footer-branch {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

.dt-v2 .dt-footer-branch-title {
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.dt-v2 .dt-footer-branch-text {
  color: rgba(255,255,255,0.82);
  line-height: 1.45;
  font-size: 0.95rem;
}

.dt-v2 .dt-footer-bottom {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.72);
  font-size: 0.92rem;
}

.dt-v2 .dt-footer-right { opacity: 0.9; }
.dt-v2 .dt-footer-sep { opacity: 0.6; }

@media (max-width: 1024px) {
  .dt-v2 .dt-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .dt-v2 footer.dt-footer { padding: 26px 0 14px; }
  .dt-v2 .dt-footer-grid {
    grid-template-columns: 1fr;
  }
  .dt-v2 .dt-footer-brand .dt-footer-logo img { height: 42px; }
  .dt-v2 .dt-footer-bottom { justify-content: center; text-align: center; }
}

/* Back to Top (tüm sayfalarda aynı) */
.dt-v2 #backToTop {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  width: 48px;
  height: 48px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 24px;
  line-height: 48px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: opacity 0.3s;
}
.dt-v2 #backToTop.show {
  display: block;
  opacity: 0.8;
}
.dt-v2 #backToTop:hover { opacity: 1; }

@media (max-width: 768px) {
  .dt-v2 #backToTop {
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 20px;
    line-height: 40px;
    border-radius: 20px;
  }
}


/* ==== Lightbox (aynı sayfada görsel görüntüleme) ==== */
.dt-lb-open { overflow: hidden !important; }

.dt-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}
.dt-lightbox.open { display: flex; }
.dt-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.78);
}
.dt-lightbox-panel {
  position: relative;
  width: min(1100px, 92vw);
  height: min(88vh, 860px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dt-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 14px 50px rgba(0,0,0,0.45);
  background: #111;
}
.dt-lightbox-close,
.dt-lightbox-prev,
.dt-lightbox-next {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(0,0,0,0.40);
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 42px;
  text-align: center;
  user-select: none;
}
.dt-lightbox-close { top: 10px; right: 10px; font-size: 26px; line-height: 40px; }
.dt-lightbox-prev  { left: 10px; top: 50%; transform: translateY(-50%); }
.dt-lightbox-next  { right: 10px; top: 50%; transform: translateY(-50%); }
.dt-lightbox-counter {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  color: rgba(255,255,255,0.95);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .dt-lightbox-panel { width: 94vw; height: 88vh; }
  .dt-lightbox-prev, .dt-lightbox-next { width: 40px; height: 40px; line-height: 38px; }
}
