/* Giptaş — Açık / Koyu tema */

[data-theme="light"] {
  --g-bg: #ffffff;
  --g-bg-soft: #f8fafc;
  --g-bg-muted: #f1f5f9;
  --g-text: #0f172a;
  --g-text-muted: #64748b;
  --g-primary: #00204a;
  --g-nav-bg: #005555;
  --g-nav-text: rgba(255, 255, 255, 0.72);
  --g-nav-text-hover: #ffffff;
  --g-nav-text-active: #ffffff;
  --g-nav-shadow: 0 15px 30px -15px rgba(0, 0, 0, 0.2);
  --g-footer-bg: #f1f5f9;
  --g-footer-text: #64748b;
  --g-footer-heading: #00204a;
  --g-card-bg: #ffffff;
  --g-card-border: #e2e8f0;
  --g-input-bg: #ffffff;
  --g-input-border: #cbd5e1;
  --g-switcher-bg: rgba(255, 255, 255, 0.12);
  --g-switcher-border: rgba(255, 255, 255, 0.2);
  --g-switcher-text: rgba(255, 255, 255, 0.82);
  --g-switcher-active-bg: #ffffff;
  --g-switcher-active-text: #00204a;
  --g-switcher-mobile-bg: #f1f5f9;
  --g-switcher-mobile-border: #e2e8f0;
  --g-switcher-mobile-text: #64748b;
  --g-switcher-mobile-active-bg: #00204a;
  --g-switcher-mobile-active-text: #ffffff;
  --g-mobile-menu-bg: #ffffff;
  --g-mobile-menu-text: #334155;
  --g-burger-color: #ffffff;
}

[data-theme="dark"] {
  --g-bg: #0b1220;
  --g-bg-soft: #111827;
  --g-bg-muted: #1e293b;
  --g-text: #e2e8f0;
  --g-text-muted: #94a3b8;
  --g-primary: #60a5fa;
  --g-nav-bg: #005555;
  --g-nav-text: rgba(255, 255, 255, 0.72);
  --g-nav-text-hover: #ffffff;
  --g-nav-text-active: #ffffff;
  --g-nav-shadow: 0 15px 30px -15px rgba(0, 0, 0, 0.35);
  --g-footer-bg: #111827;
  --g-footer-text: #94a3b8;
  --g-footer-heading: #e2e8f0;
  --g-card-bg: #1e293b;
  --g-card-border: #334155;
  --g-input-bg: #0f172a;
  --g-input-border: #475569;
  --g-switcher-bg: rgba(255, 255, 255, 0.12);
  --g-switcher-border: rgba(255, 255, 255, 0.2);
  --g-switcher-text: rgba(255, 255, 255, 0.82);
  --g-switcher-active-bg: #ffffff;
  --g-switcher-active-text: #00204a;
  --g-mobile-menu-bg: #111827;
  --g-mobile-menu-text: #e2e8f0;
  --g-burger-color: #ffffff;
}

html[data-theme] body {
  background-color: var(--g-bg);
  color: var(--g-text);
  transition: background-color 0.25s ease, color 0.25s ease;
}

html[data-theme] .menu-bg-wrap {
  background-color: var(--g-nav-bg) !important;
  box-shadow: var(--g-nav-shadow) !important;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

html[data-theme] .logo,
html[data-theme] .logo:hover,
html[data-theme] .logo .site-logo-text {
  color: rgba(255, 255, 255, 0.9) !important;
}

html[data-theme] .logo:hover .site-logo-text {
  color: #fff !important;
}

html[data-theme] .site-nav .site-navigation .site-menu > li > a {
  color: var(--g-nav-text) !important;
}

html[data-theme] .site-nav .site-navigation .site-menu > li > a:hover,
html[data-theme] .site-nav .site-navigation .site-menu > li.active > a {
  color: var(--g-nav-text-active) !important;
}

html[data-theme] .burger.light span,
html[data-theme] .burger.light span::before,
html[data-theme] .burger.light span::after {
  background: var(--g-burger-color) !important;
}

html[data-theme] .section.bg-light,
html[data-theme] .sec-testimonials.bg-light,
html[data-theme] .features-1,
html[data-theme] .section-4.bg-light,
html[data-theme] .section-5.bg-light {
  background-color: var(--g-bg-soft) !important;
}

html[data-theme] .text-black-50 {
  color: var(--g-text-muted) !important;
}

html[data-theme] .heading.text-primary,
html[data-theme] h2.text-primary,
html[data-theme] h3.text-primary {
  color: var(--g-primary) !important;
}

html[data-theme] .site-footer {
  background: var(--g-footer-bg) !important;
  color: var(--g-footer-text) !important;
}

html[data-theme] .site-footer .widget h3 {
  color: var(--g-footer-heading) !important;
}

html[data-theme] .site-footer a {
  color: var(--g-footer-text) !important;
}

html[data-theme] .site-footer a:hover {
  color: var(--g-nav-text-active) !important;
}

html[data-theme] .site-footer .social li a {
  text-decoration: none !important;
}

html[data-theme="dark"] .site-footer .social li a {
  background: var(--g-bg-muted) !important;
  color: var(--g-primary) !important;
  border: 1px solid var(--g-card-border);
}

html[data-theme="dark"] .site-footer .social li a:hover {
  background: var(--g-primary) !important;
  color: #fff !important;
  border-color: var(--g-primary) !important;
}

html[data-theme="light"] .site-footer .social li a {
  background: rgba(0, 32, 74, 0.08) !important;
  color: var(--g-primary) !important;
}

html[data-theme="light"] .site-footer .social li a:hover {
  background: var(--g-primary) !important;
  color: #fff !important;
}

html[data-theme] .property-item,
html[data-theme] .box-feature,
html[data-theme] .project-card,
html[data-theme] .bagmar-card,
html[data-theme] .bagmar-product,
html[data-theme] .bagmar-filter-btn,
html[data-theme] .property-specs,
html[data-theme] .agent-box--sidebar,
html[data-theme] .destination-card,
html[data-theme] .listings-filters-panel,
html[data-theme] .legal-content,
html[data-theme] .contact-info .rounded,
html[data-theme] .faq-accordion .accordion-item {
  background-color: var(--g-card-bg) !important;
  border-color: var(--g-card-border);
  color: var(--g-text);
}

html[data-theme="dark"] .property-item,
html[data-theme="dark"] .box-feature,
html[data-theme="dark"] .project-card,
html[data-theme="dark"] .bagmar-card,
html[data-theme="dark"] .bagmar-product {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

html[data-theme] .bagmar-card-body h3,
html[data-theme] .bagmar-product-body h4,
html[data-theme] .bagmar-product-price,
html[data-theme] .bagmar-card-cta {
  color: var(--g-text);
}

html[data-theme] .property-specs-title,
html[data-theme] .property-specs-row dt {
  color: var(--g-text);
}

html[data-theme] .property-specs-row dd {
  color: var(--g-text-muted);
}

html[data-theme] .property-specs-row {
  border-bottom-color: var(--g-card-border);
}

html[data-theme] .bagmar-product-desc,
html[data-theme] .bagmar-products-eyebrow {
  color: var(--g-text-muted);
}

html[data-theme] .bagmar-filter-btn.is-active {
  background: var(--g-primary) !important;
  border-color: var(--g-primary) !important;
  color: #fff !important;
}

/* İlan kartı — property-content şablonda #fff sabit; tema ile uyumla */
html[data-theme] .property-item .property-content {
  background-color: var(--g-card-bg) !important;
  color: var(--g-text);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

html[data-theme] .property-item .property-content .text-black-50 {
  color: var(--g-text-muted) !important;
}

html[data-theme] .property-item .property-content .city {
  color: var(--g-text) !important;
}

html[data-theme] .property-item .property-content .specs [class^="icon-"] {
  color: var(--g-primary) !important;
}

html[data-theme] .property-item .property-content .specs .caption {
  color: var(--g-text-muted) !important;
}

html[data-theme="dark"] .property-item .property-content .price {
  color: #5eead4 !important;
}

html[data-theme="dark"] .property-item .property-content .price span:after {
  background-color: #5eead4 !important;
}

html[data-theme="light"] .property-item .property-content .price {
  color: #005555 !important;
}

html[data-theme="light"] .property-item .property-content .price span:after {
  background-color: #005555 !important;
}

html[data-theme="dark"] .property-item .property-content .badge.bg-secondary {
  background-color: var(--g-bg-muted) !important;
  color: var(--g-text-muted) !important;
}

html[data-theme] .form-control,
html[data-theme] .form-select {
  background-color: var(--g-input-bg) !important;
  border-color: var(--g-input-border) !important;
  color: var(--g-text) !important;
}

html[data-theme] .form-control::placeholder {
  color: var(--g-text-muted) !important;
}

html[data-theme] .site-mobile-menu {
  background: var(--g-mobile-menu-bg) !important;
}

html[data-theme] .site-mobile-menu .site-nav-wrap a {
  color: var(--g-mobile-menu-text) !important;
}

html[data-theme] .giptas-lang-switcher,
html[data-theme] .giptas-theme-switcher {
  background: var(--g-switcher-bg) !important;
  border-color: var(--g-switcher-border) !important;
}

html[data-theme] .giptas-lang-switcher__btn,
html[data-theme] .giptas-theme-switcher__btn {
  color: var(--g-switcher-text) !important;
}

html[data-theme] .giptas-lang-switcher__btn.is-active,
html[data-theme] .giptas-theme-switcher__btn.is-active {
  background: var(--g-switcher-active-bg) !important;
  color: var(--g-switcher-active-text) !important;
}

html[data-theme="dark"] .btn-outline-primary {
  color: #93c5fd !important;
  border-color: #3b82f6 !important;
}

html[data-theme="dark"] .btn-outline-primary:hover {
  background: #1d4ed8 !important;
  color: #fff !important;
}

html[data-theme="dark"] .accordion-button {
  background: var(--g-card-bg) !important;
  color: var(--g-text) !important;
}

html[data-theme="dark"] .accordion-body {
  background: var(--g-bg-muted) !important;
  color: var(--g-text-muted) !important;
}

/* Koyu tema — okunabilirlik (şablondaki sabit #00204a / #000 renkleri) */
html[data-theme="dark"] h1:not(.text-primary),
html[data-theme="dark"] h2:not(.text-primary),
html[data-theme="dark"] h3:not(.text-primary),
html[data-theme="dark"] h4:not(.text-primary),
html[data-theme="dark"] h5:not(.text-primary),
html[data-theme="dark"] h6:not(.text-primary),
html[data-theme="dark"] .h1:not(.text-primary),
html[data-theme="dark"] .h2:not(.text-primary),
html[data-theme="dark"] .h3:not(.text-primary),
html[data-theme="dark"] .h4:not(.text-primary),
html[data-theme="dark"] .h5:not(.text-primary),
html[data-theme="dark"] .h6:not(.text-primary),
html[data-theme="dark"] .heading:not(.text-primary) {
  color: var(--g-text) !important;
}

html[data-theme="dark"] .text-black {
  color: var(--g-text) !important;
}

html[data-theme="dark"] a:not(.btn):not(.site-menu a):not(.site-mobile-menu a) {
  color: var(--g-primary);
}

html[data-theme="dark"] a:not(.btn):not(.site-menu a):not(.site-mobile-menu a):hover {
  color: #93c5fd;
}

html[data-theme="dark"] .feature-h .wrap-icon {
  background: var(--g-bg-muted) !important;
}

html[data-theme="dark"] .feature-h .wrap-icon [class^="icon-"] {
  color: var(--g-primary) !important;
}

html[data-theme="dark"] .feature-h:hover .wrap-icon,
html[data-theme="dark"] .feature-h:focus .wrap-icon {
  border-color: var(--g-primary) !important;
  background-color: transparent !important;
}

html[data-theme="dark"] .feature-h:hover [class^="icon-"],
html[data-theme="dark"] .feature-h:focus [class^="icon-"] {
  color: var(--g-primary) !important;
}

html[data-theme="dark"] .box-feature [class^="flaticon-"] {
  color: var(--g-primary) !important;
}

html[data-theme="dark"] .box-feature p {
  color: var(--g-text-muted) !important;
}

html[data-theme="dark"] a.learn-more {
  color: var(--g-primary) !important;
  text-decoration: none;
}

html[data-theme="dark"] .learn-more:before {
  background-color: var(--g-primary) !important;
}

html[data-theme="dark"] .testimonial blockquote,
html[data-theme="dark"] .testimonial blockquote p {
  color: var(--g-text-muted) !important;
}

html[data-theme="dark"] .sec-testimonials {
  background-color: var(--g-bg) !important;
}

html[data-theme="dark"] .features-1,
html[data-theme="dark"] .section-4 {
  background-color: var(--g-bg-soft) !important;
}

html[data-theme="dark"] #testimonial-nav span,
html[data-theme="dark"] #property-nav span,
html[data-theme="dark"] #hero-nav .prev,
html[data-theme="dark"] #hero-nav .next {
  background: rgba(96, 165, 250, 0.18) !important;
  color: var(--g-primary) !important;
}

html[data-theme="dark"] #testimonial-nav span:hover,
html[data-theme="dark"] #testimonial-nav span.active,
html[data-theme="dark"] #property-nav span:hover,
html[data-theme="dark"] #property-nav span.active,
html[data-theme="dark"] #hero-nav .prev:hover,
html[data-theme="dark"] #hero-nav .next:hover {
  background: #3b82f6 !important;
  color: #fff !important;
}

html[data-theme="dark"] .custom-pagination a {
  background: rgba(96, 165, 250, 0.15) !important;
  color: var(--g-primary) !important;
}

html[data-theme="dark"] .custom-pagination a:hover,
html[data-theme="dark"] .custom-pagination a.active {
  background: #3b82f6 !important;
  color: #fff !important;
}

/* Tema seçici */
.giptas-theme-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid transparent;
  vertical-align: middle;
}

.giptas-theme-switcher__btn {
  appearance: none;
  border: 0;
  background: transparent;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0.42rem 0.58rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

@media (min-width: 992px) {
  .site-nav .site-menu > li.giptas-theme-nav-item {
    vertical-align: middle;
    margin-left: 6px;
  }
}

@media (max-width: 991.98px) {
  .site-navigation > .site-menu > .giptas-theme-nav-item {
    display: none !important;
  }
}

.giptas-theme-mobile-block {
  padding: 0 2rem 1.25rem;
}

.giptas-theme-mobile-label,
.giptas-tools-mobile-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.65rem;
}

html[data-theme="dark"] .giptas-theme-mobile-label,
html[data-theme="dark"] .giptas-tools-mobile-label,
html[data-theme="dark"] .giptas-lang-mobile-label {
  color: #64748b;
}

.giptas-nav-tools-mobile {
  padding: 1rem 2rem 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin-top: 0.5rem;
}

html[data-theme="dark"] .giptas-nav-tools-mobile {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.giptas-nav-tools-mobile__row + .giptas-nav-tools-mobile__row {
  margin-top: 1rem;
}

.giptas-nav-tools-mobile .giptas-lang-switcher,
.giptas-nav-tools-mobile .giptas-theme-switcher {
  background: var(--g-switcher-bg) !important;
  border: 1px solid var(--g-switcher-border) !important;
}

/* Mobil menü — açık temada dil/tema seçicileri okunaklı olsun */
html[data-theme="light"] .giptas-nav-tools-mobile .giptas-lang-switcher,
html[data-theme="light"] .giptas-nav-tools-mobile .giptas-theme-switcher,
html[data-theme="light"] .site-mobile-menu .giptas-lang-switcher,
html[data-theme="light"] .site-mobile-menu .giptas-theme-switcher {
  background: var(--g-switcher-mobile-bg) !important;
  border-color: var(--g-switcher-mobile-border) !important;
}

html[data-theme="light"] .giptas-nav-tools-mobile .giptas-lang-switcher__btn,
html[data-theme="light"] .giptas-nav-tools-mobile .giptas-theme-switcher__btn,
html[data-theme="light"] .site-mobile-menu .giptas-lang-switcher__btn,
html[data-theme="light"] .site-mobile-menu .giptas-theme-switcher__btn {
  color: var(--g-switcher-mobile-text) !important;
}

html[data-theme="light"] .giptas-nav-tools-mobile .giptas-lang-switcher__btn.is-active,
html[data-theme="light"] .giptas-nav-tools-mobile .giptas-theme-switcher__btn.is-active,
html[data-theme="light"] .site-mobile-menu .giptas-lang-switcher__btn.is-active,
html[data-theme="light"] .site-mobile-menu .giptas-theme-switcher__btn.is-active {
  background: var(--g-switcher-mobile-active-bg) !important;
  color: var(--g-switcher-mobile-active-text) !important;
}
