/* Hostal Chillán - Custom CSS Styles & Animations */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

:root {
  --color-primary: #182319;
  --color-primary-container: #2d382e;
  --color-secondary: #835425;
  --color-secondary-container: #d8e7d6;
  --color-surface: #fbf9f6;
  --color-surface-low: #f5f3f0;
  --color-surface-high: #eae8e5;
  --color-surface-card: #FAF8F5;
  --color-outline: #747872;
  --color-outline-variant: #c4c8c1;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--color-surface);
  color: #1b1c1a;
  -webkit-font-smoothing: antialiased;
}

/* Material Symbols alignment & fill styles */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  display: inline-block;
  vertical-align: middle;
}

.material-symbols-outlined.fill-icon {
  font-variation-settings: 'FILL' 1;
}

/* Typography Helpers */
.font-serif {
  font-family: var(--font-serif);
}

/* Custom Boutique Shadows & Transitions */
.boutique-shadow {
  box-shadow: 0 4px 20px rgba(45, 56, 46, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.boutique-shadow:hover {
  box-shadow: 0 10px 30px rgba(45, 56, 46, 0.1);
  transform: translateY(-3px);
}

.ambient-shadow {
  box-shadow: 0 8px 30px rgba(24, 35, 25, 0.08);
}

/* Glassmorphism Effect */
.glass-card {
  background: rgba(251, 249, 246, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.glass-dark {
  background: rgba(24, 35, 25, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-surface);
}

::-webkit-scrollbar-thumb {
  background: #c4c8c1;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #747872;
}

/* Button & Badge Classes */
.amber-button {
  background-color: #8B5A2B;
  color: #FAF8F5;
  transition: all 0.2s ease;
}

.amber-button:hover {
  background-color: #724923;
}

.olive-button {
  background-color: #2D382E;
  color: #FAF8F5;
  transition: all 0.2s ease;
}

.olive-button:hover {
  background-color: #1F271F;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(100px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.05); opacity: 1; }
}

.animate-fade-in {
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-up {
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-pulse-glow {
  animation: pulseGlow 3s infinite ease-in-out;
}

/* Modal Overlay Backdrop */
.modal-backdrop {
  background-color: rgba(24, 35, 25, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Palpitating Heart Animation */
@keyframes heartbeat {
  0% { transform: scale(1); }
  14% { transform: scale(1.25); }
  28% { transform: scale(1); }
  42% { transform: scale(1.25); }
  70% { transform: scale(1); }
}

/* Touch & Mobile Gestures Support */
#home-carousel-track,
#home-carousel-viewport,
[data-room-carousel] {
  touch-action: pan-y !important;
  -webkit-user-select: none;
  user-select: none;
}

/* Admin Dashboard Mobile Drawer & Responsiveness */
@media (max-width: 767.98px) {
  #admin-sidebar {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 280px !important;
    max-width: 85vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease !important;
    z-index: 60 !important;
    box-shadow: none !important;
    background-color: #f9f3eb !important;
  }

  #admin-sidebar.sidebar-open {
    transform: translateX(0) !important;
    box-shadow: 10px 0 35px rgba(0, 0, 0, 0.3) !important;
  }

  #admin-sidebar-backdrop {
    position: fixed !important;
    inset: 0 !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 55 !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease !important;
  }

  #admin-sidebar-backdrop.backdrop-open {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  main.admin-main {
    margin-left: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  /* Responsive matrix calendar adjustments on mobile */
  #calendar-matrix-container {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }
}

@media (min-width: 768px) {
  #admin-sidebar {
    transform: translateX(0) !important;
  }
  #admin-sidebar-backdrop {
    display: none !important;
  }
  main.admin-main {
    margin-left: 18rem !important;
    width: calc(100% - 18rem) !important;
    max-width: calc(100% - 18rem) !important;
    min-width: 0 !important;
  }
}

/* Touch-friendly table containers */
.table-responsive-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}


