/* ==========================================
   BUNGALOV REZERVASYON SİSTEMİ
   Mobile-First Premium Design
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --primary: #059669;
  --primary-light: #10B981;
  --primary-dark: #047857;
  --primary-glow: rgba(5, 150, 105, 0.3);
  --accent: #F59E0B;
  --accent-light: #FBBF24;
  --accent-dark: #D97706;
  --bg-dark: #0F172A;
  --bg-darker: #020617;
  --bg-card: rgba(30, 41, 59, 0.7);
  --bg-card-hover: rgba(30, 41, 59, 0.9);
  --bg-glass: rgba(15, 23, 42, 0.6);
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --border: rgba(148, 163, 184, 0.1);
  --border-light: rgba(148, 163, 184, 0.2);
  --danger: #F43F5E;
  --danger-light: rgba(244, 63, 94, 0.15);
  --success: #10B981;
  --success-light: rgba(16, 185, 129, 0.15);
  --warning: #F59E0B;
  --warning-light: rgba(245, 158, 11, 0.15);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.3), 0 2px 4px -2px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -4px rgba(0,0,0,0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.5), 0 8px 10px -6px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px var(--primary-glow);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-darker);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-darker); }
::-webkit-scrollbar-thumb { background: var(--primary-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ---- Utility ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  padding: 16px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 12px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.navbar-brand .brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
}

.navbar-brand .brand-text {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.5px;
}

.navbar-brand .brand-sub {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  display: block;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--primary-light);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
  border-radius: 1px;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
  color: white !important;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  font-size: 13px !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.nav-cta::after { display: none !important; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 16px 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) saturate(1.3);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(2, 6, 23, 0.25) 0%,
    rgba(2, 6, 23, 0.4) 50%,
    rgba(2, 6, 23, 0.95) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: fadeInDown 0.8s ease;
}

.hero-badge i {
  font-size: 10px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 7vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
  animation: fadeInUp 1s ease;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(14px, 2.5vw, 18px);
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.4s both;
}

.hero-stats {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-top: 48px;
  animation: fadeInUp 1s ease 0.6s both;
}

.hero-stat {
  text-align: center;
}

.hero-stat .stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-light);
  font-family: 'Playfair Display', serif;
}

.hero-stat .stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-family: inherit;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-outline:hover {
  background: var(--bg-card);
  border-color: var(--primary);
  color: var(--primary-light);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--bg-dark);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ---- Section ---- */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 12px;
  padding: 6px 14px;
  background: rgba(5, 150, 105, 0.1);
  border: 1px solid rgba(5, 150, 105, 0.2);
  border-radius: 50px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 5vw, 40px);
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* ---- Bungalow Cards ---- */
.bungalows-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.bungalow-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  position: relative;
}

.bungalow-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.bungalow-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.bungalow-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.bungalow-card:hover .bungalow-card-image img {
  transform: scale(1.05);
}

.bungalow-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.bungalow-card-price {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  color: white;
}

.bungalow-card-price small {
  font-weight: 400;
  font-size: 11px;
  opacity: 0.8;
}

.bungalow-card-body {
  padding: 16px;
}

.bungalow-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
}

.bungalow-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.5;
}

.bungalow-card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.bungalow-card-features .feature-tag {
  padding: 4px 10px;
  background: rgba(5, 150, 105, 0.1);
  border: 1px solid rgba(5, 150, 105, 0.15);
  border-radius: 50px;
  font-size: 11px;
  color: var(--primary-light);
  font-weight: 500;
}

.bungalow-card-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.bungalow-card-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.bungalow-card-meta .meta-item i {
  color: var(--primary-light);
  font-size: 12px;
}

.bungalow-card-footer {
  display: flex;
  gap: 8px;
}

.bungalow-card-footer .btn {
  flex: 1;
  justify-content: center;
  padding: 10px;
  font-size: 13px;
}

/* ---- Price Info ---- */
.price-section {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.1), rgba(245, 158, 11, 0.05));
  border: 1px solid rgba(5, 150, 105, 0.15);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  text-align: center;
}

.price-item {
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.price-item .price-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.price-item .price-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-light);
  font-family: 'Playfair Display', serif;
}

.price-item .price-unit {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ---- Modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%;
  max-width: 600px;
  max-height: 92vh;
  overflow-y: auto;
  animation: slideUp 0.4s ease;
  position: relative;
}

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

.modal-handle {
  width: 40px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 2px;
  margin: 12px auto 0;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--bg-dark);
  z-index: 10;
}

.modal-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 16px;
}

.modal-close:hover {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  position: sticky;
  bottom: 0;
  background: var(--bg-dark);
}

/* ---- Reservation Steps ---- */
.steps-indicator {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}

.step-dot {
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  transition: var(--transition);
}

.step-dot.active {
  background: var(--primary);
}

.step-dot.completed {
  background: var(--primary-light);
}

.reservation-step {
  display: none;
}

.reservation-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Form ---- */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
  -webkit-appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-control::placeholder {
  color: var(--text-muted);
}

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

.form-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-error {
  font-size: 11px;
  color: var(--danger);
  margin-top: 4px;
}

/* ---- Calendar / Date Picker ---- */
.date-picker-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}

.date-picker-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.date-picker-label i {
  color: var(--primary-light);
}

/* Flatpickr Custom Theme */
.flatpickr-calendar {
  background: var(--bg-dark) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-xl) !important;
  font-family: 'Inter', sans-serif !important;
  width: 100% !important;
  max-width: 100% !important;
}

.flatpickr-calendar.inline {
  box-shadow: none !important;
  border: none !important;
}

.flatpickr-months {
  padding: 8px 0 !important;
}

.flatpickr-months .flatpickr-month {
  background: transparent !important;
  color: var(--text-primary) !important;
  height: 40px !important;
}

.flatpickr-current-month {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  color: var(--text-secondary) !important;
  fill: var(--text-secondary) !important;
  padding: 8px !important;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
  color: var(--primary-light) !important;
  fill: var(--primary-light) !important;
}

.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
  fill: inherit !important;
}

span.flatpickr-weekday {
  background: transparent !important;
  color: var(--text-muted) !important;
  font-weight: 600 !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
}

.flatpickr-days {
  border: none !important;
  width: 100% !important;
  max-width: 100% !important;
}

.dayContainer {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
}

.flatpickr-day {
  color: var(--text-primary) !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  height: 38px !important;
  line-height: 38px !important;
  border: none !important;
  max-width: none !important;
}

.flatpickr-day:hover {
  background: var(--bg-card-hover) !important;
  border-color: var(--primary) !important;
}

.flatpickr-day.today {
  border: 1px solid var(--primary) !important;
  color: var(--primary-light) !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: white !important;
}

.flatpickr-day.inRange {
  background: rgba(5, 150, 105, 0.2) !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
  background: var(--danger-light) !important;
  color: var(--danger) !important;
  text-decoration: line-through !important;
  cursor: not-allowed !important;
  opacity: 0.7 !important;
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  color: var(--text-muted) !important;
  opacity: 0.3 !important;
}

.flatpickr-innerContainer {
  border: none !important;
}

.flatpickr-rContainer {
  width: 100% !important;
}

/* Date Legend */
.date-legend {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.date-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.date-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.date-legend-dot.available {
  background: var(--primary);
}

.date-legend-dot.unavailable {
  background: var(--danger);
}

.date-legend-dot.today-dot {
  border: 2px solid var(--primary);
  background: transparent;
}

/* ---- Price Summary ---- */
.price-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 16px;
}

.price-summary-header {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-summary-header i {
  color: var(--accent);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.price-row.total {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.price-row.total .price-amount {
  color: var(--primary-light);
  font-size: 20px;
}

/* ---- Loading ---- */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 100;
  border-radius: inherit;
}

.loading-overlay .loading-spinner {
  width: 32px;
  height: 32px;
}

/* ---- Toast / Notification ---- */
.toast-container {
  position: fixed;
  top: 80px;
  right: 16px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  min-width: 280px;
  max-width: 400px;
  box-shadow: var(--shadow-xl);
  animation: slideInRight 0.3s ease;
  transition: var(--transition);
}

.toast.toast-success {
  border-color: var(--success);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), var(--bg-dark));
}

.toast.toast-error {
  border-color: var(--danger);
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.1), var(--bg-dark));
}

.toast.toast-warning {
  border-color: var(--warning);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), var(--bg-dark));
}

.toast-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.toast-success .toast-icon { color: var(--success); }
.toast-error .toast-icon { color: var(--danger); }
.toast-warning .toast-icon { color: var(--warning); }

.toast-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 14px;
}

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

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* ---- Success Page ---- */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--bg-darker);
}

.success-card {
  text-align: center;
  max-width: 500px;
  width: 100%;
  padding: 40px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--success-light);
  border: 2px solid var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--success);
  animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.success-card h1 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  margin-bottom: 8px;
}

.success-card p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 14px;
}

.reservation-details {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
  text-align: left;
}

.reservation-details .detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}

.reservation-details .detail-row:last-child {
  border-bottom: none;
}

.reservation-details .detail-label {
  color: var(--text-muted);
}

.reservation-details .detail-value {
  color: var(--text-primary);
  font-weight: 600;
}

/* ---- Failure Page ---- */
.failure-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--danger-light);
  border: 2px solid var(--danger);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--danger);
  animation: scaleIn 0.5s ease;
}

/* ---- Payment Page ---- */
.payment-page {
  min-height: 100vh;
  padding: 80px 16px 40px;
  background: var(--bg-darker);
}

.payment-container {
  max-width: 600px;
  margin: 0 auto;
}

.payment-header {
  text-align: center;
  margin-bottom: 24px;
}

.payment-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  margin-bottom: 8px;
}

.payment-header p {
  color: var(--text-secondary);
  font-size: 14px;
}

.payment-form-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  min-height: 400px;
  position: relative;
}

#iyzipay-checkout-form {
  min-height: 300px;
}

/* ---- Footer ---- */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 40px 0 20px;
  margin-top: 40px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 8px;
}

/* ==========================================
   MOBILE RESPONSIVE (Mobile-First Focus)
   ========================================== */

/* ------ Small phones (< 360px) ------ */
@media (max-width: 360px) {
  .hero h1 { font-size: 28px; }
  .hero-stats { gap: 16px; }
  .hero-stat .stat-value { font-size: 22px; }
  .form-row { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
}

/* ------ Phones (< 640px) ------ */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(2, 6, 23, 0.98);
    backdrop-filter: blur(20px);
    padding: 16px;
    border-bottom: 1px solid var(--border);
    animation: fadeInDown 0.3s ease;
  }
  
  .hero { min-height: auto; padding: 100px 16px 40px; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .hero-stat { flex: 1; min-width: 80px; }
  
  .section { padding: 48px 0; }
  .section-title { font-size: 24px; }
  
  .bungalows-grid { grid-template-columns: 1fr; gap: 16px; }
  
  .modal { border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 95vh; }
  
  .toast { min-width: auto; max-width: calc(100vw - 32px); }
  .toast-container { right: 8px; left: 8px; }
  
  .price-summary { padding: 12px; }
}

/* ------ Tablets (641px - 1024px) ------ */
@media (min-width: 641px) and (max-width: 1024px) {
  .bungalows-grid { grid-template-columns: repeat(2, 1fr); }
  .modal { max-width: 500px; border-radius: var(--radius-xl); }
  .modal-overlay { align-items: center; padding: 20px; }
}

/* ------ Desktop (> 1024px) ------ */
@media (min-width: 1025px) {
  .container { padding: 0 32px; }
  .bungalows-grid { grid-template-columns: repeat(4, 1fr); }
  .modal { max-width: 560px; border-radius: var(--radius-xl); }
  .modal-overlay { align-items: center; padding: 40px; }
  
  @keyframes slideUp {
    from { transform: translateY(20px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
  }
}

/* ---- Print Styles ---- */
@media print {
  .navbar, .footer, .modal-overlay, .toast-container { display: none !important; }
  .hero { min-height: auto; padding: 20px; }
  body { background: white; color: black; }
}

/* ==== NEW SECTIONS CSS ==== */

/* Features (Neler Sunuyoruz) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition);
}
.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(5, 150, 105, 0.1);
  color: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.feature-info h3 {
  font-size: 16px;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text-primary);
}
.feature-info p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 250px;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.08);
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.1);
  transition: background 0.3s;
}
.gallery-item:hover::after {
  background: rgba(0,0,0,0);
}

/* Extras (Özel Hizmetler) */
.extras-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.extra-card {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.extra-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.1);
  transform: translateY(-4px);
}
.extra-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.extra-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.extra-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.extra-content p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  right: 20px;
  font-family: 'Playfair Display', serif;
  font-size: 60px;
  color: rgba(5, 150, 105, 0.1);
  line-height: 1;
}
.testimonial-stars {
  color: var(--accent);
  font-size: 14px;
  margin-bottom: 16px;
}
.testimonial-text {
  font-size: 15px;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 24px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--primary-light);
  border: 1px solid var(--border);
}
.testimonial-author-info h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.testimonial-author-info span {
  font-size: 12px;
  color: var(--text-muted);
}

/* FAQ Accordion */
.faq-container {
  max-width: 800px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item:hover {
  border-color: var(--primary);
}
.faq-item summary {
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-primary);
  transition: var(--transition);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary:hover {
  background: rgba(5, 150, 105, 0.05);
}
.faq-item summary::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--text-muted);
  transition: transform 0.3s;
}
.faq-item[open] summary::after {
  transform: rotate(180deg);
  color: var(--primary-light);
}
.faq-item[open] summary {
  border-bottom: 1px solid var(--border);
  color: var(--primary-light);
}
.faq-answer {
  padding: 18px 24px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  background: var(--bg-darker);
}

/* Map Section */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 400px;
  margin-top: 40px;
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}
