/* FILE: styles.css */

:root {
  --gold: #c9a24d;
  --gold-hover: #b08c3c;
  --dark: #1c1c1c;
  --cream: #faf7f2;
  --border: #e5dcc8;
  --light-green: #e8f5e9;
  --brown: #8d6e63;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  background-color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
  padding-top: 90px; /* Sticky header için üst padding (logo büyütüldü) */
}

/* Font Display Optimization */
@font-face {
  font-family: 'Poppins';
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  font-display: swap;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--dark);
}

/* Header & Navigation */
.navbar {
  background: linear-gradient(135deg, var(--gold), var(--gold-hover)) !important;
  box-shadow: 0 4px 20px rgba(201, 162, 77, 0.3);
  padding: 1.2rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1030;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.logo-img {
  height: 70px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .logo-img {
    height: 55px;
  }
}

@media (max-width: 576px) {
  .logo-img {
    height: 50px;
  }
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #fff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

.btn-gold {
  background-color: var(--gold);
  color: #fff;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-gold:hover {
  background-color: var(--gold-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(201, 162, 77, 0.3);
}

.btn-outline-gold {
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
  padding: 0.5rem 1.5rem;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-outline-gold:hover {
  background-color: var(--gold);
  color: #fff;
  transform: translateY(-2px);
}

/* Header içindeki butonlar için özel stiller */
.navbar .btn-gold {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar .btn-gold:hover {
  background-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.navbar .btn-outline-gold {
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  background-color: transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar .btn-outline-gold:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(201, 162, 77, 0.9), rgba(28, 28, 28, 0.8)), url('https://via.placeholder.com/1920x1080') center/cover;
  color: #fff;
  padding: 120px 0 80px;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  color: #fff;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Container ve Row düzenlemeleri */
.container,
.container-fluid {
  max-width: 100%;
  overflow-x: hidden;
}

.row {
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
}

[class*="col-"] {
  max-width: 100%;
}

/* Hero Video Section */
.hero-video-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.hero-video {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
  max-width: 100%;
}

.hero-video video,
.hero-video .hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  max-width: none;
  z-index: -1;
  transform: translateX(-50%) translateY(-50%);
  background-size: cover;
  object-fit: cover;
}

.video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  z-index: 1;
  /* Performans optimizasyonu */
  will-change: transform;
  transform-origin: center center;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(201, 162, 77, 0.4), rgba(28, 28, 28, 0.6));
  z-index: 2;
}

.video-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 2rem;
}

.video-content h1 {
  font-size: 3.5rem;
  color: #fff;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
  font-weight: 700;
}

.video-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* Responsive Video Hero */
@media (max-width: 768px) {
  .hero-video-container {
    height: 70vh;
    min-height: 500px;
    max-height: 600px;
    max-width: 100%;
  }
  
  .hero-video {
    height: 70vh;
    min-height: 500px;
    max-height: 600px;
  }
  
  .video-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .video-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .video-content .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
  }
  
  .video-content .btn-lg {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
  }
}

@media (max-width: 576px) {
  .hero-video-container {
    height: 60vh;
    min-height: 400px;
    max-height: 500px;
    max-width: 100%;
  }
  
  .hero-video {
    height: 60vh;
    min-height: 400px;
    max-height: 500px;
  }
  
  .hero-video video,
  .hero-video .hero-video {
    min-width: 100%;
    max-width: 100%;
  }
  
  .video-content {
    padding: 1rem;
  }
  
  .video-content h1 {
    font-size: 1.75rem;
  }
  
  .video-content p {
    font-size: 0.9rem;
  }
  
  .video-content .btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }
}

/* Section Styles */
.section {
  padding: 80px 0;
  overflow: visible !important;
}

/* Tüm section'larda scroll okları oluşmasını engelle */
section {
  overflow: visible !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
}

section .container {
  overflow: visible !important;
}

/* Mobilde section padding'i azalt */
@media (max-width: 767.98px) {
  .section {
    padding: 3rem 0;
  }
  
  .section.py-5 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
}

/* Hero Section - Sticky header için üst padding */
.hero-video {
  margin-top: 0;
  padding-top: 0;
}

.hero-video-container {
  margin-top: 0;
}

/* Feature Card Hover Effect */
.feature-card-hover:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(201, 162, 77, 0.2) !important;
}

.feature-card-hover:hover .feature-icon {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

/* Service Card Hover */
.card:hover img {
  transform: scale(1.1);
}

.card {
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15) !important;
}

/* Stat Card Hover */
.stat-card:hover {
  transform: translateY(-5px) scale(1.05);
}

/* Pulse Animation */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* Button Hover Enhancements */
.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.4) !important;
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

/* Trust Badge Hover */
.trust-badge:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* Feature Card Hover */
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15) !important;
}

/* Gallery Image Hover */
.position-relative.overflow-hidden:hover {
  transform: translateY(-5px);
}

.position-relative.overflow-hidden:hover img {
  transform: scale(1.1);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--gold);
}

/* Cards */
.card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card-img-top {
  height: 250px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--gold), var(--gold-hover));
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  margin-bottom: 1rem;
}

/* Feature Icons */
.feature-icon {
  width: 80px;
  height: 80px;
  background-color: var(--gold);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
}

/* Footer */
.footer {
  background-color: var(--dark);
  color: #fff;
  padding: 60px 0 30px;
}

.footer h5 {
  color: var(--gold);
  margin-bottom: 1.5rem;
  font-family: 'Playfair Display', serif;
}

.footer a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
  color: #999;
}

/* WhatsApp Floating Button - Artık gold buton kullanılıyor */
/* Eski yeşil buton stilleri kaldırıldı */

/* Forms */
.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 0.2rem rgba(201, 162, 77, 0.25);
}

.form-label {
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

/* Reservation Summary Card */
.reservation-summary {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  position: sticky;
  top: 100px;
}

.reservation-summary h5 {
  color: var(--gold);
  border-bottom: 2px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.summary-item:last-child {
  border-bottom: none;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--gold);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid var(--gold);
}

/* Badge */
.badge-gold {
  background-color: var(--gold);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-weight: 500;
}

/* Badge on white background - ensure text is dark */
.badge[style*="background: rgba(255,255,255"] {
  color: #1c1c1c !important;
}

.badge[style*="background:rgba(255,255,255"] {
  color: #1c1c1c !important;
}

/* Accordion */
.accordion-button:not(.collapsed) {
  background-color: var(--gold);
  color: #fff;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(201, 162, 77, 0.25);
}

/* Gallery */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s;
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Gallery Caption */
.gallery-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  font-family: 'Playfair Display', serif;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7), 0 0 20px rgba(0,0,0,0.5);
  white-space: nowrap;
  z-index: 2;
}

/* Contact Info Cards */
.contact-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
  height: 100%;
}

.contact-card:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.contact-card i {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section {
    padding: 50px 0;
  }
  
  .reservation-summary {
    position: relative;
    top: 0;
    margin-top: 2rem;
  }
  
  /* Mobilde body padding ayarı (sticky header için) */
  body {
    padding-top: 70px;
  }
  
  .navbar {
    padding: 0.75rem 0;
  }
}

/* Toast Notification */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1050;
}

.toast {
  background-color: #fff;
  border-left: 4px solid var(--gold);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.toast-header {
  background-color: var(--gold);
  color: #fff;
  border-bottom: none;
}

/* Loading Spinner */
.spinner-border-gold {
  color: var(--gold);
}

/* Text Colors */
.text-gold {
  color: var(--gold) !important;
}

.bg-light {
  background-color: #f8f9fa !important;
}

/* Plan Carousel */
#planCarousel::-webkit-scrollbar { 
  height: 8px; 
}
#planCarousel::-webkit-scrollbar-thumb { 
  background: var(--border); 
  border-radius: 999px; 
}
#planCarousel { 
  -webkit-overflow-scrolling: touch; 
}

/* Form text helper */
.form-text {
  font-size: 0.875rem;
  color: #6c757d;
}

/* =========================
   Benya Halal Resort – Gold Theme
   ========================= */

:root{
  --gold: #c9a24d;        /* ana gold */
  --gold-dark: #b08b3e;   /* hover */
  --gold-soft: #f6efe2;   /* soft bg */
  --border: #e8e1d4;      /* soft border */
  --text-dark: #1f2937;
}

/* Base */
body{
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text-dark);
  background-color: #fff;
}

/* Gold button */
.btn-gold{
  --bs-btn-color: #111;
  --bs-btn-bg: var(--gold);
  --bs-btn-border-color: var(--gold);
  --bs-btn-hover-color: #111;
  --bs-btn-hover-bg: var(--gold-dark);
  --bs-btn-hover-border-color: var(--gold-dark);
  --bs-btn-focus-shadow-rgb: 201,162,77;
  --bs-btn-active-color: #111;
  --bs-btn-active-bg: var(--gold-dark);
  --bs-btn-active-border-color: var(--gold-dark);
  border-radius: 14px;
  font-weight: 600;
}

/* Outline dark tweak */
.btn-outline-dark{
  border-radius: 14px;
  font-weight: 600;
}

/* Cards */
.card{
  border-radius: 18px;
}
.card-soft{
  border: 1px solid var(--border);
  background-color: #fff;
}

/* Badges */
.badge.gold,
.gold-badge{
  background: #fff;
  border: 1px solid var(--border);
  color: #111;
}

/* Forms */
.form-control,
.form-select{
  border-radius: 14px;
  border-color: var(--border);
}
.form-control:focus,
.form-select:focus{
  border-color: var(--gold);
  box-shadow: 0 0 0 .2rem rgba(201,162,77,.15);
}

/* Section separators */
.mini-sep{
  height: 1px;
  background: var(--border);
}

/* Plan cards hover */
#planCarousel {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

#planCarousel .card{
  min-width: 280px;
  max-width: 320px;
  flex-shrink: 0;
}

#planCarousel .card:hover{
  transform: translateY(-2px);
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.06);
}

@media (max-width: 576px) {
  #planCarousel .card {
    min-width: 260px;
    max-width: 280px;
  }
}

/* Sticky summary fix on mobile */
@media (max-width: 991px){
  .sticky-summary{
    position: static;
    top: auto;
  }
}

/* Floating WhatsApp */
#floatingWhatsapp{
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 600;
  max-width: calc(100vw - 32px);
  right: 16px !important;
  left: auto !important;
}

/* Alerts */
.alert{
  border-radius: 14px;
}

/* Genel responsive düzenlemeler - yatay kaydırmayı engelle */
@media (max-width: 1200px) {
  .container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
  }
  
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Fixed elementler için */
  #floatingWhatsapp {
    right: 16px !important;
    max-width: calc(100vw - 32px);
  }
  
  /* Plan carousel için */
  #planCarousel {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
  }
}

/* Tüm sayfalar için genel düzenleme */
section {
  max-width: 100%;
  overflow-x: hidden;
}

.card, .card-body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Navbar düzenlemesi */
.navbar {
  max-width: 100%;
  overflow-x: hidden;
}

.navbar .container {
  max-width: 100%;
}

/* Footer düzenlemesi */
.footer {
  max-width: 100%;
  overflow-x: hidden;
}

.footer .container {
  max-width: 100%;
}

/* Image responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Video responsive */
video {
  max-width: 100%;
  height: auto;
}

/* Bootstrap override - container genişlikleri */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* =========================
   ADVANCED VISUAL ENHANCEMENTS
   ========================= */

/* Glassmorphism Effects */
.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px 0 rgba(201, 162, 77, 0.1);
}

/* Advanced Shadows & Depth */
.shadow-gold {
  box-shadow: 0 10px 40px rgba(201, 162, 77, 0.3),
              0 0 20px rgba(201, 162, 77, 0.1);
}

.shadow-soft {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08),
              0 0 0 1px rgba(0, 0, 0, 0.05);
}

.shadow-hard {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
              0 0 0 1px rgba(0, 0, 0, 0.1);
}

.shadow-inner {
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--gold), var(--gold-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* 3D Tilt Card */
.tilt-card {
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
}

/* Ripple Effect */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Enhanced Button Styles */
.btn-gold-enhanced {
  background: linear-gradient(135deg, var(--gold), var(--gold-hover));
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(201, 162, 77, 0.4);
}

.btn-gold-enhanced::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-gold-enhanced:hover::before {
  width: 300px;
  height: 300px;
}

.btn-gold-enhanced:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 162, 77, 0.5);
}

/* Sticky Header Styles */
.navbar.scrolled {
  background: linear-gradient(135deg, var(--gold), var(--gold-hover)) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(201, 162, 77, 0.4);
  transition: all 0.3s ease;
  padding: 0.75rem 0;
}

/* Navbar Toggler (Mobile Menu Button) */
.navbar-toggler {
  border: 2px solid rgba(255, 255, 255, 0.6);
  padding: 0.25rem 0.5rem;
  border-radius: 5px;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile Menu (Collapse) */
.navbar-collapse {
  background: transparent;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: linear-gradient(135deg, var(--gold), var(--gold-hover));
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-item {
    margin: 0.5rem 0;
  }
  
  .navbar-nav .btn {
    width: 100%;
    margin: 0.5rem 0;
  }
  
  /* Mobilde body padding ayarı */
  body {
    padding-top: 75px;
  }
}

@media (min-width: 992px) {
  body {
    padding-top: 90px;
  }
}

/* Navbar Toggler (Mobile Menu Button) */
.navbar-toggler {
  border: 2px solid rgba(255, 255, 255, 0.6);
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile Menu (Collapse) */
.navbar-collapse {
  background: transparent;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: linear-gradient(135deg, var(--gold), var(--gold-hover));
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-item {
    margin: 0.5rem 0;
  }
  
  .navbar-nav .btn {
    width: 100%;
    margin: 0.5rem 0;
  }
}

/* Section Dividers */
.section-divider {
  position: relative;
  height: 100px;
  overflow: hidden;
}

.section-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.wave-divider {
  position: relative;
  height: 100px;
  overflow: hidden;
}

.wave-divider svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100px;
  fill: var(--cream);
}

/* Image Overlay Effects */
.image-overlay {
  position: relative;
  overflow: hidden;
}

.image-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(201, 162, 77, 0.1), rgba(28, 28, 28, 0.3));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-overlay:hover::after {
  opacity: 1;
}

.image-overlay img {
  transition: transform 0.5s ease;
}

.image-overlay:hover img {
  transform: scale(1.1);
}

/* Floating Animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

/* Pulse Glow Animation */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(201, 162, 77, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(201, 162, 77, 0.8);
  }
}

.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Gradient Border Animation */
.gradient-border {
  position: relative;
  background: #fff;
  border-radius: 10px;
  padding: 2px;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 10px;
  padding: 2px;
  background: linear-gradient(135deg, var(--gold), var(--gold-hover));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rotate-gradient 3s linear infinite;
}

@keyframes rotate-gradient {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* Typography Enhancements */
.text-shadow-strong {
  text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.5),
              0 0 20px rgba(0, 0, 0, 0.3);
}

.text-shadow-gold {
  text-shadow: 0 0 20px rgba(201, 162, 77, 0.5),
               2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Loading Skeleton */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Counter Styles */
.counter {
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  font-family: 'Playfair Display', serif;
}

/* Lightbox Custom Styles */
.lb-nav a.lb-prev,
.lb-nav a.lb-next {
  opacity: 0.8;
  transition: opacity 0.3s;
}

.lb-nav a.lb-prev:hover,
.lb-nav a.lb-next:hover {
  opacity: 1;
}

/* Form Enhancements */
.form-floating label {
  color: var(--dark);
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 0.2rem rgba(201, 162, 77, 0.25);
  transform: scale(1.02);
  transition: all 0.3s ease;
}

.form-control:focus + label,
.form-control:not(:placeholder-shown) + label {
  color: var(--gold);
  transform: translateY(-1.5rem) scale(0.85);
}

/* iPhone/iOS Specific Styles */
@supports (-webkit-touch-callout: none) {
  /* iOS Safari specific */
  .hero-video-container {
    height: -webkit-fill-available;
  }
  
  .navbar {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
  
  /* Fix iOS viewport height */
  :root {
    --vh: 1vh;
  }
  
  .full-height {
    height: calc(var(--vh, 1vh) * 100);
  }
  
  /* Disable tap highlight */
  * {
    -webkit-tap-highlight-color: transparent;
  }
  
  /* Smooth scrolling on iOS */
  html {
    -webkit-overflow-scrolling: touch;
  }
  
  /* Fix input zoom on iOS */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  textarea,
  select {
    font-size: 16px !important;
  }
  
  /* Fix video autoplay on iOS */
  video {
    -webkit-playsinline: true;
    playsinline: true;
  }
  
  /* Fix fixed positioning on iOS */
  .navbar.fixed-top {
    position: -webkit-sticky;
    position: sticky;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Mobile touch devices */
  .card:hover {
    transform: none;
  }
  
  .btn:hover {
    transform: none;
  }
  
  /* Larger touch targets */
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Disable hover effects on touch */
  .tilt-card {
    transform: none !important;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .glass-effect {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--dark);
  }
  
  .btn-gold-enhanced {
    border: 2px solid var(--dark);
  }
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  .floating-whatsapp {
    display: none !important;
  }
  
  .card {
    break-inside: avoid;
  }
}

/* =========================
   MOBILE BOTTOM ACTION BAR
   ========================= */

.mobile-bottom-bar {
  display: none !important;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1080;
  background: transparent;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  border-top: none;
  padding: 0;
  margin: 0;
  flex-direction: row;
  align-items: stretch;
}

/* Desktop'ta kesinlikle gizle */
@media (min-width: 992px) {
  .mobile-bottom-bar {
    display: none !important;
  }
}

.mobile-bottom-bar .action-item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 65px;
  max-width: 100%;
  border: none;
  outline: none;
}

.mobile-bottom-bar .action-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.mobile-bottom-bar .action-item:active::before {
  opacity: 0.2;
}

.mobile-bottom-bar .action-item .icon {
  font-size: 1.4rem;
  margin-bottom: 3px;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.mobile-bottom-bar .action-item:active .icon {
  transform: scale(0.9);
}

.mobile-bottom-bar .action-item .text {
  font-size: 0.7rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
  text-align: center;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Bilgi Al - Mavi Gradient */
.mobile-bottom-bar .action-item.info {
  background: linear-gradient(135deg, #2196F3, #1976D2);
}

.mobile-bottom-bar .action-item.info::before {
  background: rgba(255, 255, 255, 0.3);
}

.mobile-bottom-bar .action-item.info:hover {
  background: linear-gradient(135deg, #1976D2, #1565C0);
}

/* Rezervasyon - Altın Gradient */
.mobile-bottom-bar .action-item.reservation {
  background: linear-gradient(135deg, var(--gold), var(--gold-hover));
}

.mobile-bottom-bar .action-item.reservation::before {
  background: rgba(255, 255, 255, 0.3);
}

.mobile-bottom-bar .action-item.reservation:hover {
  background: linear-gradient(135deg, var(--gold-hover), #9d7a3a);
}

/* WhatsApp - Yeşil Gradient */
.mobile-bottom-bar .action-item.whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
}

.mobile-bottom-bar .action-item.whatsapp::before {
  background: rgba(255, 255, 255, 0.3);
}

.mobile-bottom-bar .action-item.whatsapp:hover {
  background: linear-gradient(135deg, #128C7E, #075E54);
}

/* Desktop'ta gizle, mobilde göster */
@media (max-width: 991.98px) {
  .mobile-bottom-bar {
    display: flex !important;
    flex-direction: row;
    align-items: stretch;
  }
  
  /* Mobilde floating WhatsApp'ı gizle */
  #floatingWhatsapp {
    display: none !important;
  }
  
  /* Footer için bottom padding ekle (mobil bottom bar için yer aç) */
  body {
    padding-bottom: 65px;
  }
  
  .mobile-bottom-bar .action-item {
    min-height: 60px;
    padding: 8px 2px;
  }
  
  .mobile-bottom-bar .action-item .icon {
    font-size: 1.3rem;
    margin-bottom: 2px;
  }
  
  .mobile-bottom-bar .action-item .text {
    font-size: 0.65rem;
  }
}

/* Tablet ve üzeri ekranlarda kesinlikle gizle */
@media (min-width: 768px) {
  .mobile-bottom-bar {
    display: none !important;
  }
}

/* iPhone/iOS Safe Area Support */
@supports (padding: max(0px)) {
  @media (max-width: 991.98px) {
    .mobile-bottom-bar {
      padding-bottom: max(0px, env(safe-area-inset-bottom));
    }
    
    .mobile-bottom-bar .action-item {
      padding-bottom: max(8px, env(safe-area-inset-bottom));
    }
  }
}

/* Animasyonlar */
@keyframes pulse-bottom {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.mobile-bottom-bar .action-item.active .icon {
  animation: pulse-bottom 1s ease-in-out infinite;
}

/* Hover efekti (touch device'larda çalışmaz ama desktop'ta test için) */
@media (hover: hover) {
  .mobile-bottom-bar .action-item:hover {
    transform: translateY(-2px);
  }
}

/* =========================
   ALANYA GEZİLECEK YERLER CAROUSEL
   ========================= */

#alanyaAttractionsCarousel {
  position: relative;
  padding: 0 50px;
}

#alanyaAttractionsCarousel .carousel-control-prev,
#alanyaAttractionsCarousel .carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(201, 162, 77, 0.9);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

#alanyaAttractionsCarousel .carousel-control-prev {
  left: -25px;
}

#alanyaAttractionsCarousel .carousel-control-next {
  right: -25px;
}

#alanyaAttractionsCarousel .carousel-control-prev:hover,
#alanyaAttractionsCarousel .carousel-control-next:hover {
  background: var(--gold);
  transform: translateY(-50%) scale(1.1);
  border-color: rgba(255, 255, 255, 0.5);
}

#alanyaAttractionsCarousel .carousel-control-prev-icon,
#alanyaAttractionsCarousel .carousel-control-next-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

#alanyaAttractionsCarousel .carousel-indicators {
  position: relative;
  margin-top: 2rem;
  margin-bottom: 0;
}

#alanyaAttractionsCarousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  opacity: 0.5;
  transition: all 0.3s ease;
  margin: 0 5px;
}

#alanyaAttractionsCarousel .carousel-indicators button.active {
  opacity: 1;
  transform: scale(1.2);
  background: var(--gold-hover);
}

#alanyaAttractionsCarousel .card:hover img {
  transform: scale(1.1);
}

#alanyaAttractionsCarousel .card {
  transition: all 0.3s ease;
  border: none;
}

#alanyaAttractionsCarousel .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}

#alanyaAttractionsCarousel .card-body {
  background: #fff;
}

#alanyaAttractionsCarousel .card-title {
  color: var(--dark);
  font-weight: 600;
}

#alanyaAttractionsCarousel .btn-outline-gold {
  border-color: var(--gold);
  color: var(--gold);
  transition: all 0.3s ease;
}

#alanyaAttractionsCarousel .btn-outline-gold:hover {
  background: var(--gold);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201, 162, 77, 0.3);
}

@media (max-width: 991.98px) {
  #alanyaAttractionsCarousel {
    padding: 0 40px;
  }
  
  #alanyaAttractionsCarousel .carousel-control-prev {
    left: -15px;
  }
  
  #alanyaAttractionsCarousel .carousel-control-next {
    right: -15px;
  }
  
  #alanyaAttractionsCarousel .carousel-control-prev,
  #alanyaAttractionsCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
  }
  
  #alanyaAttractionsCarousel .carousel-control-prev-icon,
  #alanyaAttractionsCarousel .carousel-control-next-icon {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 575.98px) {
  #alanyaAttractionsCarousel {
    padding: 0 10px;
    margin-bottom: 0;
  }
  
  #alanyaAttractionsCarousel .carousel-control-prev {
    left: -5px;
  }
  
  #alanyaAttractionsCarousel .carousel-control-next {
    right: -5px;
  }
  
  #alanyaAttractionsCarousel .carousel-control-prev,
  #alanyaAttractionsCarousel .carousel-control-next {
    width: 35px;
    height: 35px;
  }
  
  #alanyaAttractionsCarousel .carousel-control-prev-icon,
  #alanyaAttractionsCarousel .carousel-control-next-icon {
    width: 15px;
    height: 15px;
  }
  
  #alanyaAttractionsCarousel .card {
    margin-bottom: 0;
  }
  
  #alanyaAttractionsCarousel .card-body {
    padding: 1rem !important;
  }
  
  #alanyaAttractionsCarousel .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem !important;
  }
  
  #alanyaAttractionsCarousel .card-text {
    font-size: 0.85rem;
    margin-bottom: 1rem !important;
  }
  
  #alanyaAttractionsCarousel .position-relative {
    height: 200px !important;
  }
  
  #alanyaAttractionsCarousel .carousel-inner {
    padding-bottom: 0;
  }
  
  #alanyaAttractionsCarousel .carousel-indicators {
    margin-top: 1rem !important;
    margin-bottom: 0 !important;
  }
  
  #alanyaAttractionsCarousel .row {
    margin: 0;
  }
  
  #alanyaAttractionsCarousel .row > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
  }
}
