/* Kirala.co overrides – en sonda yüklendiği için tüm stilleri geçer */
/* Hero: lycianescapes-overrides.css ile birebir aynı (sadece mobil renk TR) */

/* ============================================ */
/* Lycian Escapes - Hero Banner Overrides      */
/* Mobile: Dönen yazı + doğal görsel boyutu    */
/* Desktop: Akıcı ülke ismi geçişleri          */
/* v13 - Vue-style seamless loop animation     */
/* ============================================ */

/* ============================================ */
/* BASE BANNER STYLES                          */
/* ============================================ */
body .Banner.Banner-home {
  position: relative !important;
  z-index: 0 !important;
}

/* ============================================ */
/* DESKTOP STYLES (> 768px)                    */
/* Vue-like smooth animation                   */
/* ============================================ */
@media (min-width: 769px) {
  body .Banner.Banner-home .Banner-home-text-spin {
    display: flex !important;
    align-items: center !important;
    height: 48px !important;
    overflow: hidden !important;
    margin-bottom: 5px !important;
  }

  body .Banner.Banner-home .Banner-home-text-spin h1 {
    font-size: 39px !important;
    font-weight: 500 !important;
    line-height: normal !important;
    margin: 0 !important;
  }

  body .Banner.Banner-home .Banner-home-text-spin .words {
    overflow: hidden !important;
    margin-left: 9px !important;
    height: 48px !important;
    display: inline-block !important;
    vertical-align: bottom !important;
  }

  body .Banner.Banner-home .Banner-home-text-spin .words-inner {
    display: block !important;
    animation: spin_words_desktop 18s cubic-bezier(0.23, 1, 0.32, 1) infinite !important;
    will-change: transform !important;
  }

  body .Banner.Banner-home .Banner-home-text-spin .words-inner span {
    display: block !important;
    height: 48px !important;
    line-height: 48px !important;
    font-size: 39px !important;
    font-weight: 800 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* Desktop animasyon - Vue tarzı seamless loop */
/* 6 kelime: Spain, Greece, Italy, Thailand, Croatia, Turkey */
/* words-inner toplam height = 6 × 48px = 288px */
/* -16.67% = 1 kelime (48px), -33.33% = 2 kelime (96px), vs. */
/* Her kelime ~2.5s görünür, ~0.5s geçiş = 18s toplam */
@keyframes spin_words_desktop {
  /* Spain (0% - 14%) */
  0%, 14% {
    transform: translateY(0);
  }
  /* Slide to Greece (14% - 16.67%) */
  16.67% {
    transform: translateY(-16.67%);
  }
  /* Greece (16.67% - 31%) */
  31% {
    transform: translateY(-16.67%);
  }
  /* Slide to Italy (31% - 33.33%) */
  33.33% {
    transform: translateY(-33.33%);
  }
  /* Italy (33.33% - 47.5%) */
  47.5% {
    transform: translateY(-33.33%);
  }
  /* Slide to Thailand (47.5% - 50%) */
  50% {
    transform: translateY(-50%);
  }
  /* Thailand (50% - 64%) */
  64% {
    transform: translateY(-50%);
  }
  /* Slide to Croatia (64% - 66.67%) */
  66.67% {
    transform: translateY(-66.67%);
  }
  /* Croatia (66.67% - 81%) */
  81% {
    transform: translateY(-66.67%);
  }
  /* Slide to Turkey (81% - 83.33%) */
  83.33% {
    transform: translateY(-83.33%);
  }
  /* Turkey (83.33% - 100%) - son kelimede kalıp loop */
  100% {
    transform: translateY(-83.33%);
  }
}

/* ============================================ */
/* MOBILE STYLES (≤ 768px)                     */
/* Vue-like smooth animation                   */
/* ============================================ */
@media (max-width: 768px) {
  body .Banner.Banner-home {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    transform: none !important;
    background-image: none !important;
    overflow: visible !important;
  }

  body .Banner.Banner-home img.mobile,
  body .Banner.Banner-home > img {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    object-fit: contain !important;
    vertical-align: top !important;
    z-index: 0 !important;
  }

  body .Banner.Banner-home .container,
  body .Banner.Banner-home .Banner-home-in {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    z-index: 1 !important;
    padding: 30px 20px !important;
    display: block !important;
    pointer-events: none !important;
  }

  body .Banner.Banner-home .Banner-home-text {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    z-index: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    pointer-events: auto !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  body .Banner.Banner-home .Banner-home-text-spin {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
    margin-bottom: 10px !important;
    min-height: auto !important;
    height: auto !important;
  }

  body .Banner.Banner-home .Banner-home-text-spin h1 {
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    color: #2E2E2E !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
  }

  body .Banner.Banner-home .Banner-home-text-spin .words {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: hidden !important;
    height: 32px !important;
    vertical-align: bottom !important;
    margin-left: 5px !important;
    position: relative !important;
  }

  body .Banner.Banner-home .Banner-home-text-spin .words-inner {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    animation: spin_words_mobile 18s cubic-bezier(0.23, 1, 0.32, 1) infinite !important;
    will-change: transform !important;
  }

  body .Banner.Banner-home .Banner-home-text-spin .words-inner span {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: 32px !important;
    line-height: 32px !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #2E2E2E !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
  }

  body .Banner.Banner-home .Banner-home-text h2 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #2E2E2E !important;
    margin: 10px 0 !important;
    line-height: 1.3 !important;
  }

  body .Banner.Banner-home .Banner-home-text p.Banner-home-explore-text {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
  body .Banner.Banner-home .Banner-home-text p {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 14px !important;
    color: #2E2E2E !important;
    margin: 10px 0 0 0 !important;
    line-height: 1.5 !important;
    max-width: 100% !important;
  }
}

/* Mobile animasyon - Vue tarzı seamless loop */
/* 6 kelime, words-inner = 6 × 32px = 192px */
/* -16.67% = 1 kelime, -33.33% = 2 kelime, vs. */
@keyframes spin_words_mobile {
  /* Spain (0% - 14%) */
  0%, 14% {
    transform: translateY(0);
  }
  /* Slide to Greece (14% - 16.67%) */
  16.67% {
    transform: translateY(-16.67%);
  }
  /* Greece (16.67% - 31%) */
  31% {
    transform: translateY(-16.67%);
  }
  /* Slide to Italy (31% - 33.33%) */
  33.33% {
    transform: translateY(-33.33%);
  }
  /* Italy (33.33% - 47.5%) */
  47.5% {
    transform: translateY(-33.33%);
  }
  /* Slide to Thailand (47.5% - 50%) */
  50% {
    transform: translateY(-50%);
  }
  /* Thailand (50% - 64%) */
  64% {
    transform: translateY(-50%);
  }
  /* Slide to Croatia (64% - 66.67%) */
  66.67% {
    transform: translateY(-66.67%);
  }
  /* Croatia (66.67% - 81%) */
  81% {
    transform: translateY(-66.67%);
  }
  /* Slide to Turkey (81% - 83.33%) */
  83.33% {
    transform: translateY(-83.33%);
  }
  /* Turkey (83.33% - 100%) - son kelimede kalıp loop */
  100% {
    transform: translateY(-83.33%);
  }
}

/* ============================================ */
/* EXTRA SMALL MOBILE (≤ 480px)                */
/* ============================================ */
@media (max-width: 480px) {
  body .Banner.Banner-home .container,
  body .Banner.Banner-home .Banner-home-in {
    padding: 20px 15px !important;
  }

  body .Banner.Banner-home .Banner-home-text-spin h1 {
    font-size: 18px !important;
  }

  body .Banner.Banner-home .Banner-home-text-spin .words {
    height: 28px !important;
  }

  body .Banner.Banner-home .Banner-home-text-spin .words-inner {
    animation: spin_words_480 18s cubic-bezier(0.23, 1, 0.32, 1) infinite !important;
  }

  body .Banner.Banner-home .Banner-home-text-spin .words-inner span {
    height: 28px !important;
    line-height: 28px !important;
    font-size: 18px !important;
  }

  body .Banner.Banner-home .Banner-home-text h2 {
    font-size: 16px !important;
  }

  body .Banner.Banner-home .Banner-home-text p {
    font-size: 13px !important;
  }
}

/* 480px altı - Vue tarzı seamless loop */
/* 6 kelime, words-inner = 6 × 28px = 168px */
/* -16.67% = 1 kelime, -33.33% = 2 kelime, vs. */
@keyframes spin_words_480 {
  /* Spain (0% - 14%) */
  0%, 14% {
    transform: translateY(0);
  }
  /* Slide to Greece (14% - 16.67%) */
  16.67% {
    transform: translateY(-16.67%);
  }
  /* Greece (16.67% - 31%) */
  31% {
    transform: translateY(-16.67%);
  }
  /* Slide to Italy (31% - 33.33%) */
  33.33% {
    transform: translateY(-33.33%);
  }
  /* Italy (33.33% - 47.5%) */
  47.5% {
    transform: translateY(-33.33%);
  }
  /* Slide to Thailand (47.5% - 50%) */
  50% {
    transform: translateY(-50%);
  }
  /* Thailand (50% - 64%) */
  64% {
    transform: translateY(-50%);
  }
  /* Slide to Croatia (64% - 66.67%) */
  66.67% {
    transform: translateY(-66.67%);
  }
  /* Croatia (66.67% - 81%) */
  81% {
    transform: translateY(-66.67%);
  }
  /* Slide to Turkey (81% - 83.33%) */
  83.33% {
    transform: translateY(-83.33%);
  }
  /* Turkey (83.33% - 100%) - son kelimede kalıp loop */
  100% {
    transform: translateY(-83.33%);
  }
}

/* ============================================ */
/* REDUCED MOTION PREFERENCE                   */
/* ============================================ */
@media (prefers-reduced-motion: reduce) {
  body .Banner.Banner-home .Banner-home-text-spin .words-inner {
    animation: none !important;
    transform: translateY(0) !important;
  }
}

/* Short breaks – mobil/tablet (max-width: 991px) – body ile ezme garantisi */
@media (max-width: 991px) {
  body .Opportunity-slider {
    padding: 28px 0 40px !important;
    min-height: unset !important;
  }
  body .Opportunity-slider .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
    max-width: 100% !important;
  }
  body .Opportunity-slider .Opportunity-in {
    flex-direction: column !important;
    gap: 20px !important;
    padding: 0 !important;
  }
  .Opportunity-slider .Opportunity-left {
    width: 100% !important;
    text-align: center;
  }
  .Opportunity-slider .Opportunity-left .icon-opportunity {
    width: 32px;
    height: 32px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
  }
  .Opportunity-slider .Opportunity-left-head h3 {
    font-size: 22px !important;
    max-width: none;
  }
  .Opportunity-slider .Opportunity-left p {
    font-size: 14px !important;
    margin-top: 8px;
  }
  .Opportunity-slider .Opportunity-right {
    width: 100% !important;
  }
  .Opportunity-slider .Opportunity-right .nav-pills {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    margin-bottom: 16px !important;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .Opportunity-slider .Opportunity-right .nav-pills::-webkit-scrollbar {
    display: none;
  }
  .Opportunity-slider .Opportunity-right .nav-item {
    flex-shrink: 0;
  }
  .Opportunity-slider .Opportunity-right .nav-link {
    font-size: 13px !important;
    padding: 10px 14px !important;
  }
  /* 2x2: 4 dikdörtgen, %15 homojen küçültülmüş (0.85) */
  body .Opportunity-slider .Opportunity-list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    column-gap: 10px !important;
    row-gap: 10px !important;
    width: 100% !important;
  }
  body .Opportunity-slider .Opportunity-list-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 15px 17px !important;
    min-height: 75px !important;
    max-height: none !important;
    height: auto !important;
    gap: 10px !important;
    overflow: visible !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  body .Opportunity-slider .Opportunity-list-item-content {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }
  body .Opportunity-slider .Opportunity-list-item-content b {
    font-size: 32px !important;
    font-weight: 500 !important;
    margin-right: 8px !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
    color: var(--bs-theme-first) !important;
  }
  body .Opportunity-slider .Opportunity-list-item-content-in {
    min-width: 0 !important;
    overflow: visible !important;
    padding-top: 0 !important;
    line-height: 1.2 !important;
  }
  body .Opportunity-slider .Opportunity-list-item-content-in span,
  body .Opportunity-slider .Opportunity-list-item-content-in p,
  body .Opportunity-slider .Opportunity-list-item-content-in small {
    display: block !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
  }
  .Opportunity-slider .Opportunity-list-item-content-in span {
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: normal !important;
  }
  body .Opportunity-slider .Opportunity-list-item-content-in p {
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: normal !important;
  }
  .Opportunity-slider .Opportunity-list-item-content-in small {
    font-size: 9px !important;
    font-weight: 500 !important;
    line-height: normal !important;
  }
  body .Opportunity-slider .Opportunity-list-item-count {
    position: static !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    margin-top: 0 !important;
    padding: 7px 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    width: 77px !important;
    min-width: 77px !important;
    flex-shrink: 0 !important;
    text-align: center !important;
    border-radius: 3px !important;
  }
  body .Opportunity-slider .Opportunity-list-item-count span,
  body .Opportunity-slider .Opportunity-list-item .Opportunity-list-item-count span {
    font-size: 12px !important;
    font-weight: 600 !important;
  }

  /* Villa Types – Short breaks ile temas etmesin, biraz aşağı */
  body .categories-section {
    margin-top: 24px !important;
    padding-top: 8px !important;
  }
  /* Villa Types – yan yana, alt alta değil */
  body .categories-section .section-caption .primary-title {
    white-space: nowrap !important;
  }
  body .categories-section .section-caption .primary-title span {
    display: inline !important;
  }
}

/* Güven kartı – iyzico logo kenarlara kadar dolsun, boşluk kalmasın */
.H_info-item-icon.H_info-item-icon--logo {
  padding: 4px !important;
}
.H_info-item-icon.H_info-item-icon--logo img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}

/* ============================================ */
/* Countries bölümü – swipe pagination noktaları (Vue gibi) */
/* ============================================ */
.country-section .country-slider-wrapper {
  padding-bottom: 36px;
}
.country-section .swiper-pagination {
  position: relative !important;
  bottom: auto !important;
  margin-top: 20px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
}
.country-section .swiper-pagination-bullet {
  width: 8px !important;
  height: 8px !important;
  background: var(--bs-theme-grey2, #E0E0E0) !important;
  opacity: 1 !important;
  transition: background 0.2s ease, transform 0.2s ease;
}
.country-section .swiper-pagination-bullet-active {
  background: var(--bs-theme-first, #1A8FBF) !important;
  transform: scale(1.2);
}
.country-section .swiper-pagination-bullet:hover {
  background: var(--bs-theme-first-light, #4DB3D6) !important;
}

/* ============================================ */
/* VILLA SEARCH MODAL                          */
/* ============================================ */
.villa-search-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 20px;
  animation: modalOverlayFadeIn 0.2s ease;
}

@keyframes modalOverlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.villa-search-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modalSlideIn 0.25s ease;
  overflow: hidden;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Modal Header */
.villa-search-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.villa-search-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f3f4f6;
  border-radius: 10px;
  padding: 0 16px;
  transition: all 0.2s ease;
}

.villa-search-input-wrapper:focus-within {
  background: #fff;
  box-shadow: 0 0 0 2px var(--bs-theme-first, #1A8FBF);
}

.villa-search-input-wrapper i {
  color: #9ca3af;
  font-size: 18px;
}

.villa-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 0;
  font-size: 16px;
  color: #1f2937;
  outline: none;
}

.villa-search-input::placeholder {
  color: #9ca3af;
}

.villa-search-clear {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.villa-search-clear:hover {
  color: #374151;
}

.villa-search-close-btn {
  background: #f3f4f6;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
}

.villa-search-close-btn:hover {
  background: #e5e7eb;
  color: #374151;
}

/* Modal Body */
.villa-search-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  min-height: 200px;
}

/* Loading State */
.villa-search-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 12px;
  color: #6b7280;
}

.villa-search-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e5e7eb;
  border-top-color: var(--bs-theme-first, #1A8FBF);
  border-radius: 50%;
  animation: spinnerRotate 0.8s linear infinite;
}

@keyframes spinnerRotate {
  to { transform: rotate(360deg); }
}

/* Empty State */
.villa-search-empty,
.villa-search-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: #6b7280;
}

.villa-search-empty i,
.villa-search-hint i {
  font-size: 48px;
  color: #d1d5db;
  margin-bottom: 16px;
}

.villa-search-empty p,
.villa-search-hint p {
  font-size: 16px;
  font-weight: 500;
  color: #374151;
  margin: 0 0 8px;
}

.villa-search-empty span,
.villa-search-hint span {
  font-size: 14px;
  color: #9ca3af;
}

/* Results */
.villa-search-results-count {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
}

.villa-search-results-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.villa-search-result-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 12px;
  background: #f9fafb;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.villa-search-result-item:hover {
  background: #f3f4f6;
  transform: translateX(4px);
}

.villa-search-result-image {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #e5e7eb;
}

.villa-search-result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.villa-search-result-no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e5e7eb;
  color: #9ca3af;
}

.villa-search-result-no-image i {
  font-size: 24px;
}

.villa-search-result-info {
  flex: 1;
  min-width: 0;
}

h4.villa-search-result-code {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 6px;
  padding: 0;
  background: none;
}

.villa-search-result-destination {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #6b7280;
}

.villa-search-result-destination i {
  font-size: 12px;
}

.villa-search-result-arrow {
  color: #9ca3af;
  transition: all 0.2s ease;
}

.villa-search-result-item:hover .villa-search-result-arrow {
  color: var(--bs-theme-first, #1A8FBF);
  transform: translateX(4px);
}

/* Mobile Styles */
@media (max-width: 640px) {
  .villa-search-modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .villa-search-modal {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 16px 16px 0 0;
    animation: modalSlideUp 0.3s ease;
  }

  @keyframes modalSlideUp {
    from {
      opacity: 0;
      transform: translateY(100%);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .villa-search-modal-header {
    padding: 12px 16px;
  }

  .villa-search-input {
    font-size: 16px; /* Prevent zoom on iOS */
  }

  .villa-search-modal-body {
    padding: 12px 16px;
  }

  .villa-search-result-item {
    padding: 10px;
    gap: 12px;
  }

  .villa-search-result-image {
    width: 64px;
    height: 48px;
  }

  .villa-search-result-name {
    font-size: 14px;
  }
}

/* ============================================ */
/* VILLA DETAIL PAGE - Mobile Fixes            */
/* ============================================ */
/* Remove any dotted/dashed lines under villa code and around sections */
@media (max-width: 768px) {
  .view-top-title h1,
  .detail-top h1,
  .View-title,
  .View-desc,
  .view-detail-section h1 {
    border: none !important;
    border-bottom: none !important;
    text-decoration: none !important;
  }
  .view-top-title h1::after,
  .detail-top h1::after,
  .View-title::after,
  .View-desc::before,
  .View-desc::after {
    display: none !important;
    content: none !important;
  }
  /* Remove any separator lines */
  .view-detail-section hr,
  .View hr {
    display: none !important;
  }
}

/* ============================================ */
/* SEARCH BAR - Region Warning Animation       */
/* ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.Search-region-warning {
  animation: fadeIn 0.3s ease-in-out;
}

/* ============================================ */
/* VILLA CARD - Distance Information           */
/* ============================================ */
.Card-content-distances {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
  flex-wrap: wrap;
}

.Card-content-distances-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6b7280;
}

.Card-content-distances-item i {
  font-size: 14px;
  color: #9ca3af;
}

/* VILLA LIST ITEM - Distance Information */
.F_villa-item-distances {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.F_villa-item-distances-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #6b7280;
}

.F_villa-item-distances-item i {
  font-size: 16px;
  color: #9ca3af;
}

/* ============================================ */
/* VILLA DETAIL - Reservation Form Mobile Fix  */
/* ============================================ */
/* Fix: Map should not overlay Check Availability button on mobile */
@media (max-width: 991px) {
  /* Map container should have low z-index */
  .View-location,
  .View-location-map-inline,
  .leaflet-container {
    z-index: 1 !important;
  }

  /* Bottom bar (Check Availability) must be above map */
  .Reservation-form-bottom {
    position: fixed !important;
    z-index: 999 !important;
  }

  /* Modal when opened should be highest and VISIBLE */
  .Reservation-form-top.mobile-active {
    z-index: 1000 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
    display: block !important;
    position: fixed !important;
    top: 80px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: calc(100dvh - 80px) !important;
    background-color: #fff !important;
  }

  /* Hamburger menu panel - MUST be visible when active */
  .Header-menu.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
    display: flex !important;
    position: fixed !important;
    top: 80px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: calc(100dvh - 80px) !important;
    z-index: 998 !important;
    flex-direction: column !important;
    background-color: var(--bs-theme-first, #1A8FBF) !important;
  }
}

/* ============================================ */
/* MOBILE RESERVATION FORM - CRITICAL FIX      */
/* SORUN: .View { overflow: hidden } fixed      */
/* position elementleri gizliyor                */
/* ============================================ */

/* 🔑 KRİTİK: .View overflow:hidden kaldır - mobilde form görünür olsun */
@media (max-width: 991px) {
  .View {
    overflow: visible !important;
  }

  /* view-detail-section için de aynısı */
  .view-detail-section {
    overflow: visible !important;
  }

  /* main elementi için de overflow visible */
  main {
    overflow: visible !important;
  }
}

@media (max-width: 991px) {
  /* Form aktif - TAM EKRAN, EN ÜSTTE */
  .Reservation-form-top.mobile-active {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 70px !important;
    width: 100vw !important;
    height: calc(100vh - 70px) !important;
    height: calc(100dvh - 70px) !important;
    z-index: 100000000 !important;
    background-color: #fff !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  /* Form içeriği */
  .Reservation-form-top.mobile-active .Reservation-form-top-in {
    display: flex !important;
    flex-direction: column !important;
    padding: 15px 20px !important;
    gap: 10px !important;
  }

  /* Hesap özeti - tarih kutusundan 20px aşağıda */
  .Reservation-form-top.mobile-active .Reservation-form-detail {
    display: block !important;
    position: relative !important;
    padding: 15px !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
    margin: 20px 0 10px 0 !important;
  }

  /* Total Amount kısmı gizle */
  .Reservation-form-top.mobile-active .Reservation-form-info-item {
    display: none !important;
  }

  /* Accordion/View Details gizle */
  .Reservation-form-top.mobile-active .Reservation-form-info-item-more {
    display: none !important;
  }
}

/* Alt bar - sabit en altta */
@media (max-width: 991px) {
  .Reservation-form-bottom {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 100000001 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 15px !important;
    background: #fff !important;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1) !important;
  }
}

/* ============================================ */
/* MOBILE MENU PORTAL STYLES                    */
/* ============================================ */

/* Mobile Menu Portal - Overlay */
.mobile-menu-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.5) !important;
  z-index: 99999998 !important;
}

/* Mobile Menu Portal - Panel */
.mobile-menu-panel {
  position: fixed !important;
  top: 80px !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: calc(100vh - 80px) !important;
  height: calc(100dvh - 80px) !important;
  background-color: #1A8FBF !important;
  z-index: 99999999 !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 20px !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

/* ============================================ */
/* MOBILE TOUCH FIX - Critical                  */
/* touch-action: none was blocking all touches  */
/* on real mobile devices (not DevTools)        */
/* ============================================ */
body.over,
html.over {
  touch-action: auto !important;
  -ms-touch-action: auto !important;
  -webkit-touch-callout: default !important;
}

/* Also fix the overflow-hidden class */
.overflow-hidden {
  touch-action: auto !important;
  -ms-touch-action: auto !important;
}

/* Ensure hamburger menu and buttons are always clickable */
.menu-toggle,
.Header-menu-overlay,
.Reservation-form-submit,
.Reservation-form-bottom button {
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1) !important;
  cursor: pointer !important;
}
