/* ==========================================================================
   MayaDiş Ağız ve Diş Sağlığı Merkezi - Custom Child Theme Styles
   Full-Width, Modal Popups, Anti-Pink Hello Elementor Overrides & Multilingual
   ========================================================================== */

:root {
  --mayadis-orange: #ff0000;
  --mayadis-orange-hover: #cc0000;
  --mayadis-grey-dark: #23272a;
  --mayadis-grey-menu: #6e6e72;
  --mayadis-grey-border: #e9e9e9;
  --mayadis-whatsapp: #6dc44e;
  --mayadis-font: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Ensure no Hello Elementor Pink (#cc3366) bleeds into our design */
html body.mayadis-page,
html body.mayadis-page * {
  --e-global-color-primary: #ff0000 !important;
  --e-global-color-secondary: #23272a !important;
  --e-global-color-text: #6e6e72 !important;
  --e-global-color-accent: #ff0000 !important;
  box-sizing: border-box;
}

html body.mayadis-page a:focus,
html body.mayadis-page button:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* Force 100% full width and prevent parent theme width constraints */
html,
body.mayadis-page,
body.mayadis-page #page,
body.mayadis-page #content,
body.mayadis-page #primary,
body.mayadis-page .site,
body.mayadis-page .site-content,
body.mayadis-page .site-main,
body.mayadis-page .page-content,
body.mayadis-page .entry-content,
body.mayadis-page main,
body.mayadis-page .mayadis-main-content,
body:not([class*="elementor-page-"]) .site-main,
body:not([class*="elementor-page-"]) #primary,
body:not([class*="elementor-page-"]) main {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  float: none !important;
}

body.mayadis-page {
  font-family: var(--mayadis-font) !important;
  background-color: #ffffff !important;
  overflow-x: hidden !important;
}

/* Fix sticky header position */
.sticky {
  position: fixed !important;
  top: 0;
  width: 100%;
  background: #ffffff !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  z-index: 1000 !important;
}

/* --------------------------------------------------------------------------
   Interactive Modal Windows (Appointment, Message, Panoramic X-Ray)
   -------------------------------------------------------------------------- */
.mayadis-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(17, 24, 39, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mayadis-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.mayadis-modal-box {
  background-color: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 32px 36px;
  position: relative;
}

.mayadis-modal-backdrop.is-open .mayadis-modal-box {
  transform: translateY(0) scale(1);
}

.mayadis-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f3f4f6;
}

.mayadis-modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.mayadis-modal-title svg {
  color: var(--mayadis-orange);
}

.mayadis-modal-close {
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: color 0.2s, background-color 0.2s;
}

.mayadis-modal-close:hover {
  color: #111827;
  background-color: #f3f4f6;
}

.mayadis-form-group {
  margin-bottom: 18px;
}

.mayadis-form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.mayadis-form-input,
.mayadis-form-select,
.mayadis-form-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  color: #111827;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.mayadis-form-input:focus,
.mayadis-form-select:focus,
.mayadis-form-textarea:focus {
  outline: none;
  border-color: var(--mayadis-orange);
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.15);
}

.mayadis-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 580px) {
  .mayadis-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.mayadis-form-submit {
  width: 100%;
  padding: 13px;
  background-color: var(--mayadis-orange);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  margin-top: 10px;
}

.mayadis-form-submit:hover {
  background-color: var(--mayadis-orange-hover);
  transform: translateY(-1px);
}

/* Upload dropzone for Panoramic X-Ray */
.mayadis-dropzone {
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  background-color: #fafafa;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.mayadis-dropzone:hover,
.mayadis-dropzone.dragover {
  border-color: var(--mayadis-orange);
  background-color: #fff6f6;
}

.mayadis-dropzone-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px auto;
  color: var(--mayadis-orange);
}

.mayadis-dropzone-text {
  font-size: 14px;
  color: #4b5563;
  margin: 0 0 4px 0;
}

.mayadis-dropzone-hint {
  font-size: 12px;
  color: #9ca3af;
  margin: 0;
}

/* Ensure right action bar active states and transitions */
.r-fixed {
  box-shadow: -2px 0 20px rgba(0, 0, 0, 0.04);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* --------------------------------------------------------------------------
   Hero Slider Container & Trail / Controls Scoping
   Ensures trail tabs and next/prev arrows scroll naturally with the slider
   -------------------------------------------------------------------------- */
.mayadis-hero-slider-wrap {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100vh !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

.mayadis-hero-slider-wrap .slider-bg {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  width: 400% !important;
  max-width: none !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 1 !important;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  pointer-events: none !important;
}

.mayadis-hero-slider-wrap .slider-bg .slide-bg-item {
  flex: 0 0 25% !important;
  width: 25% !important;
  max-width: 25% !important;
  min-width: 0 !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.mayadis-hero-slider-wrap .slider {
  position: relative !important;
  z-index: 5 !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  width: 400% !important;
  max-width: none !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  will-change: transform;
}

.mayadis-hero-slider-wrap .slider .box {
  flex: 0 0 25% !important;
  width: 25% !important;
  max-width: 25% !important;
  min-width: 0 !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.mayadis-hero-slider-wrap .slider .box .details {
  position: relative !important;
  z-index: 5 !important;
  width: 100% !important;
  max-width: 720px !important;
  box-sizing: border-box !important;
}

.mayadis-hero-slider-wrap .hero-spotlight {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

.mayadis-hero-slider-wrap .trail {
  position: absolute !important;
  bottom: 10% !important;
  z-index: 10 !important;
}

@media (min-width: 992px) {
  .mayadis-hero-slider-wrap .trail {
    left: 5rem !important;
    right: 200px !important;
    width: auto !important;
    max-width: 1080px !important;
  }
}

@media (min-width: 1550px) {
  .mayadis-hero-slider-wrap .trail {
    left: 10rem !important;
    right: 220px !important;
    max-width: 1120px !important;
  }
}

.mayadis-hero-slider-wrap .prev,
.mayadis-hero-slider-wrap .next {
  position: absolute !important;
  z-index: 10 !important;
}

/* --------------------------------------------------------------------------
   Lora Mobilya - Brand Overrides & 4-Slide Trail Grid
   -------------------------------------------------------------------------- */
.logo,
.no-webp .logo,
.sticky .logo,
.footer-logo,
.no-webp .footer-logo {
  background-image: url('../images/lora-logo.jpg') !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center left !important;
}

/* 4-Column Hero Slider Trail Bar */
.trail {
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.5rem !important;
}

.trail div {
  padding: 1.5rem 0.5rem !important;
  border-bottom: 2px solid rgba(214, 214, 215, 0.5) !important;
  cursor: pointer;
  color: #6e6e72;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-weight: 500;
}

.trail div:hover {
  color: #ff0000 !important;
  border-bottom-color: #ff0000 !important;
}

.trail div.active {
  color: #ff0000 !important;
  border-bottom: 2px solid #ff0000 !important;
  font-weight: 600 !important;
}

/* Hover effects for cards */
.hover-zoom {
  transition: transform 0.4s ease;
}
.hover-zoom:hover {
  transform: scale(1.04);
}

.br-10 {
  border-radius: 10px !important;
}
.br-20 {
  border-radius: 20px !important;
}

.bg-orange {
  background-color: #ff0000 !important;
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   Lora Mobilya - İnteraktif Ürün & Koleksiyon Galerisi + İçerik Düzeni
   -------------------------------------------------------------------------- */
.lora-product-gallery {
  width: 100%;
}

.lora-gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #f8f9fa;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #eef0f3;
}

.lora-gallery-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease;
  display: block;
}

.lora-gallery-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.lora-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.lora-gallery-main:hover .lora-gallery-slide.is-active img {
  transform: scale(1.02);
}

.lora-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #23272a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.lora-gallery-nav:hover {
  background-color: #ff0000;
  color: #ffffff;
  transform: translateY(-50%) scale(1.06);
}

.lora-gallery-prev {
  left: 14px;
}

.lora-gallery-next {
  right: 14px;
}

.lora-gallery-counter {
  position: absolute;
  bottom: 12px;
  right: 14px;
  z-index: 5;
  background: rgba(17, 24, 39, 0.68);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  pointer-events: none;
}

.lora-gallery-zoom-badge {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #23272a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

.lora-gallery-thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 2px 4px;
  scrollbar-width: thin;
}

.lora-gallery-thumb {
  flex: 0 0 88px;
  width: 88px;
  height: 66px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f4f6;
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.lora-gallery-thumb:hover,
.lora-gallery-thumb.is-active {
  opacity: 1;
  border-color: #ff0000;
  transform: translateY(-2px);
}

.lora-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Sayfa Altı / Eski WordPress İçerik Görsellerini Düzene Sokar */
.lora-hide-inline-gallery .wp-block-gallery,
.lora-hide-inline-gallery .gallery,
.lora-hide-inline-gallery .elementor-image-gallery {
  display: none !important;
}

.lora-product-content .wp-block-columns {
  align-items: flex-start !important;
  gap: 24px !important;
  margin-bottom: 1.5rem;
}

.lora-product-content .wp-block-column {
  min-width: 0;
}

.lora-product-content .wp-block-image,
.lora-product-content figure {
  margin: 0 0 1.25rem 0;
}

.lora-product-content .wp-block-image img,
.lora-product-content figure img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 520px;
  object-fit: contain;
  border-radius: 14px;
  display: block;
}

.lora-product-content .wp-block-gallery,
.lora-product-content .blocks-gallery-grid,
.lora-product-content .gallery {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin: 1.5rem 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.lora-product-content .wp-block-gallery figure,
.lora-product-content .blocks-gallery-item,
.lora-product-content .gallery-item {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.lora-product-content .wp-block-gallery img,
.lora-product-content .blocks-gallery-item img,
.lora-product-content .gallery-item img {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  border-radius: 14px;
}

@media (max-width: 991.98px) {
  .lora-product-content .wp-block-gallery,
  .lora-product-content .blocks-gallery-grid,
  .lora-product-content .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 575.98px) {
  .lora-gallery-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 54px;
  }
  .lora-product-content .wp-block-gallery,
  .lora-product-content .blocks-gallery-grid,
  .lora-product-content .gallery {
    grid-template-columns: 1fr !important;
  }
}

