/* H11 Evergreen - Premium Design System & Stylesheet */

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

:root {
  /* Color Palette - Light Mode (Nature Luxury) */
  --bg-primary: #fbfbf9;
  --bg-secondary: #f3f4ee;
  --bg-tertiary: #e9ebd8;
  
  --card-bg: #ffffff;
  --card-border: rgba(36, 59, 45, 0.06);
  
  --text-primary: #1e2c22;
  --text-secondary: #4a5d50;
  --text-muted: #829286;
  
  --accent-pine: #1b4332;       /* Deep Forest Green */
  --accent-pine-hover: #143225;
  --accent-sage: #52b788;       /* Alpine Meadow Green */
  --accent-wood: #b79a70;       /* Golden Wood/Timber Accent */
  --accent-wood-hover: #a18359;
  
  --status-free: #2d6a4f;
  --status-booked: #b7094c;
  --status-blocked: #6c757d;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  --shadow-sm: 0 2px 8px rgba(27, 67, 50, 0.04);
  --shadow-md: 0 12px 30px rgba(27, 67, 50, 0.08);
  --shadow-lg: 0 20px 40px rgba(27, 67, 50, 0.12);
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Outfit', system-ui, sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* Dark Mode Tokens (Deep Forest Moss) */
body.dark {
  --bg-primary: #0a0f0d;
  --bg-secondary: #121915;
  --bg-tertiary: #19221d;
  
  --card-bg: #121b16;
  --card-border: rgba(255, 255, 255, 0.05);
  
  --text-primary: #f3f5f3;
  --text-secondary: #c5cdca;
  --text-muted: #7d8c85;
  
  --accent-pine: #38a3a5;
  --accent-pine-hover: #2a9d8f;
  --accent-sage: #52b788;
  --accent-wood: #cca46e;
  --accent-wood-hover: #e0b882;
  
  --status-free: #38b000;
  --status-booked: #ef233c;
  --status-blocked: #495057;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Base resets & setups */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.5s ease, color 0.5s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: var(--radius-sm);
  border: 2px solid var(--bg-secondary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* Layout container */
.container-custom {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Luxury utilities */
.glassmorphism {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
}

.text-gradient {
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-wood) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Calendar styling details */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-day-header {
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 0;
  color: var(--text-secondary);
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid var(--card-border);
  background-color: var(--card-bg);
  position: relative;
}

.calendar-day.empty {
  background: transparent;
  border: none;
  cursor: default;
  pointer-events: none;
}

.calendar-day.available {
  background-color: rgba(45, 106, 79, 0.08);
  border-color: rgba(45, 106, 79, 0.2);
  color: var(--status-free);
}
.calendar-day.available:hover {
  background-color: rgba(45, 106, 79, 0.16);
}

.calendar-day.booked {
  background-color: rgba(183, 9, 76, 0.08);
  border-color: rgba(183, 9, 76, 0.2);
  color: var(--status-booked);
  cursor: not-allowed;
}

.calendar-day.blocked {
  background-color: rgba(108, 117, 125, 0.08);
  border-color: rgba(108, 117, 125, 0.2);
  color: var(--text-muted);
  cursor: not-allowed;
}

.calendar-day.selected-range {
  background-color: var(--accent-wood) !important;
  color: white !important;
  border-color: var(--accent-wood) !important;
}

.calendar-day.range-mid {
  background-color: rgba(183, 154, 112, 0.25) !important;
  color: var(--text-primary) !important;
  border-color: rgba(183, 154, 112, 0.4) !important;
}

.calendar-day.past {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* Skeleton Loading Animation */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

.skeleton {
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  animation: pulse 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Cookie consent slide-in */
#cookie-consent {
  transform: translateY(150%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
#cookie-consent.show {
  transform: translateY(0);
}

/* Toasts */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  width: 100%;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-md);
  background-color: var(--card-bg);
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  border-left: 5px solid var(--accent-wood);
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast.success {
  border-left-color: var(--status-free);
}

.toast.error {
  border-left-color: var(--status-booked);
}

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

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 15, 13, 0.95);
  z-index: 99999;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* Custom transitions and animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Google Translate Widget overrides */
body {
  top: 0 !important;
}
.skiptranslate, iframe.goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame {
  display: none !important;
  visibility: hidden !important;
}
.goog-te-banner-frame {
  display: none !important;
}
.goog-logo-link {
  display: none !important;
}
.goog-te-gadget {
  font-size: 0 !important;
}
.goog-tooltip, .goog-tooltip:hover {
  display: none !important;
  visibility: hidden !important;
}
