/* Theme variables for JR Home Stay */
:root {
  --primary: #0085C3;
  --secondary: #0078D4;
  --foreground: #333333;
  --muted: #F5F5F5;
  --muted-foreground: #717182;
  --border: rgba(0, 0, 0, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Utility classes for theme colors (Tailwind CDN may not have these) */
.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.text-primary { color: var(--primary); }
.text-foreground { color: var(--foreground); }
.bg-foreground { background-color: var(--foreground); }
.bg-muted { background-color: var(--muted); }
.text-muted-foreground { color: var(--muted-foreground); }
.bg-primary\/10 { background-color: rgba(0, 133, 195, 0.1); }
.bg-primary\/5 { background-color: rgba(0, 133, 195, 0.05); }
.bg-secondary\/10 { background-color: rgba(0, 120, 212, 0.1); }
.bg-white\/95 { background-color: rgba(255, 255, 255, 0.95); }
.bg-black\/95 { background-color: rgba(0, 0, 0, 0.95); }
.from-primary { --tw-gradient-from: var(--primary); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.to-secondary { --tw-gradient-to: var(--secondary); }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.from-primary\/10 { --tw-gradient-from: rgba(0, 133, 195, 0.1); }
.to-secondary\/10 { --tw-gradient-to: rgba(0, 120, 212, 0.1); }
.from-foreground\/95 { --tw-gradient-from: rgba(51, 51, 51, 0.95); }
.to-foreground { --tw-gradient-to: var(--foreground); }
.border-border { border-color: var(--border); }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }
.text-white\/80 { color: rgba(255, 255, 255, 0.8); }
.text-white\/70 { color: rgba(255, 255, 255, 0.7); }
.text-foreground\/80 { color: rgba(51, 51, 51, 0.8); }
.text-foreground\/70 { color: rgba(51, 51, 51, 0.7); }
.text-foreground\/60 { color: rgba(51, 51, 51, 0.6); }
.hover\:text-primary:hover { color: var(--primary); }
.ring-primary { --tw-ring-color: var(--primary); }

/* Room tabs */
.rooms-tab-content { display: none; }
.rooms-tab-content.active { display: block; }
.rooms-tab-btn.active { background: white; color: var(--primary); box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }

/* Gallery masonry fallback (no JS masonry lib) */
.gallery-grid {
  column-count: 1;
  column-gap: 1rem;
}
@media (min-width: 768px) {
  .gallery-grid { column-count: 2; }
}
@media (min-width: 1024px) {
  .gallery-grid { column-count: 3; }
}
.gallery-grid .gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
}

/* Testimonial slider */
.testimonial-slide { display: none; }
.testimonial-slide.active { display: flex; }

/* Lightbox */
.lightbox { display: none; position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,0.95); align-items: center; justify-content: center; padding: 1rem; }
.lightbox.open { display: flex; }

/* Mobile menu */
.mobile-menu { display: none; }
.mobile-menu.open { display: block; }

/* Nav scrolled */
nav.nav-scrolled { background: white; box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1); }

/* Icon sizes */
.icon-sm { width: 1rem; height: 1rem; }
.icon-md { width: 1.25rem; height: 1.25rem; }
.icon-lg { width: 1.5rem; height: 1.5rem; }
.icon-xl { width: 2rem; height: 2rem; }

/* Form response messages */
.hidden { display: none; }

#form-response {
  animation: slideIn 0.3s ease-out forwards;
}

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

/* Success message styling */
.text-green-700 { color: #15803d; }
.bg-green-100 { background-color: #dcfce7; }
.border-green-300 { border-color: #6ee7b7; }

/* Error message styling */
.text-red-700 { color: #b91c1c; }
.bg-red-100 { background-color: #fee2e2; }
.border-red-300 { border-color: #fca5a5; }

/* WhatsApp button enhanced styling */
#submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

a[href*="wa.me"] {
  text-decoration: none;
  transition: all 0.3s ease;
}

a[href*="wa.me"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}
