/* =====================================================
   Doubleview Hotel — Main Stylesheet
   ===================================================== */

/* ---- Tailwind CSS CDN (for development) ---- */
/* In production, replace with a built Tailwind CSS file */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Lato:wght@300;400;700;900&display=swap');

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

:root {
  --gold: #C9A84C;
  --gold-light: #E8D5A3;
  --gold-dark: #A68B3C;
  --charcoal: #1a1a1a;
  --cream: #FAF8F3;
  --text: #2C2418;
  --text-muted: #6B5E4F;
  --border: #E5DFD5;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: white; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ---- Utility: Font Classes ---- */
.font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }

/* ---- Utility: Container ---- */
.max-w-7xl { max-width: 1280px; margin: 0 auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.sm\:px-6 { }
@media (min-width: 640px) { .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; } }

/* ---- Layout: Flex & Grid ---- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.flex-1 { flex: 1; }
.shrink-0 { flex-shrink: 0; }
.flex-wrap { flex-wrap: wrap; }
.inline-flex { display: inline-flex; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:flex-row { flex-direction: row; }
  .md\:text-4xl { font-size: 2.25rem; }
  .md\:text-5xl { font-size: 3rem; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .lg\:flex { display: flex; }
  .lg\:col-span-1 { grid-column: span 1; }
  .lg\:text-left { text-align: left; }
}
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .sm\:flex-row { flex-direction: row; }
  .sm\:text-5xl { font-size: 3rem; }
  .sm\:text-xl { font-size: 1.25rem; }
  .sm\:left-8 { left: 2rem; }
  .sm\:right-8 { right: 2rem; }
}

/* ---- Spacing ---- */
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.p-6 { padding: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-4 { margin-top: 1rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }

/* ---- Typography ---- */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-7xl { font-size: 4.5rem; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.text-center { text-align: center; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }

/* ---- Text Colors ---- */
.text-white { color: #fff; }
.text-white\/80 { color: rgba(255,255,255,0.8); }
.text-white\/70 { color: rgba(255,255,255,0.7); }
.text-white\/60 { color: rgba(255,255,255,0.6); }
.text-white\/50 { color: rgba(255,255,255,0.5); }
.text-white\/40 { color: rgba(255,255,255,0.4); }
.text-white\/30 { color: rgba(255,255,255,0.3); }

/* ---- Background ---- */
.bg-background { background: var(--cream); }
.bg-card { background: #fff; }
.bg-secondary { background: #F0EBE1; }
.bg-\[\#1a1a1a\] { background: var(--charcoal); }
.bg-\[\#1a1a1a\]\/90 { background: rgba(26,26,26,0.9); }
.bg-\[\#C9A84C\] { background: var(--gold); }
.bg-transparent { background: transparent; }

/* ---- Borders ---- */
.border { border: 1px solid var(--border); }
.border-border { border-color: var(--border); }
.border-white\/10 { border-color: rgba(255,255,255,0.1); }
.border-white\/20 { border-color: rgba(255,255,255,0.2); }
.border-white\/30 { border-color: rgba(255,255,255,0.3); }
.border-white\/50 { border-color: rgba(255,255,255,0.5); }
.border-t { border-top: 1px solid; }
.border-b { border-bottom: 1px solid; }
.border-2 { border: 2px solid; }
.rounded-full { border-radius: 9999px; }

/* ---- Position ---- */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.top-4 { top: 1rem; }
.top-1\/2 { top: 50%; }
.left-4 { left: 1rem; }
.right-4 { right: 1rem; }
.bottom-4 { bottom: 1rem; }
.bottom-10 { bottom: 2.5rem; }
.bottom-24 { bottom: 6rem; }
.left-1\/2 { left: 50%; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* ---- Transforms ---- */
.-translate-y-1\/2 { transform: translateY(-50%); }
.-translate-x-1\/2 { transform: translateX(-50%); }
.translate-y-0 { transform: translateY(0); }

/* ---- Sizing ---- */
.w-full { width: 100%; }
.h-full { height: 100%; }
.h-screen { height: 100vh; }
.min-h-screen { min-height: 100vh; }
.w-3 { width: 0.75rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.h-3 { height: 0.75rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }

/* ---- Object Fit ---- */
.object-cover { object-fit: cover; }
.overflow-hidden { overflow: hidden; }

/* ---- Aspect Ratio ---- */
.aspect-\[4\/3\] { aspect-ratio: 4/3; }

/* ---- Line Clamp ---- */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Hero Overlay ---- */
.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.75) 100%
  );
}

/* ---- Gold Divider ---- */
.gold-divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #C9A84C, transparent);
  margin: 0 auto;
}

/* ---- Animations ---- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-6px); }
}

.animate-fade-in  { animation: fadeIn 0.8s ease-out forwards; }
.animate-slide-up { animation: slideUp 0.8s ease-out forwards; }
.animate-bounce   { animation: bounce 2s ease-in-out infinite; }

/* ---- Room Card Hover ---- */
.room-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.room-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* ---- Group Hover: Image Scale ---- */
.group { position: relative; }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }
.group:hover .group-hover\:opacity-100 { opacity: 1 !important; }
.group:hover .group-hover\:text-\[\#C9A84C\] { color: var(--gold) !important; }
.group:hover .group-hover\:w-3 { width: 0.75rem !important; }
.group:hover .group-hover\:bg-white\/5 { background: rgba(255,255,255,0.05) !important; }
.group:hover .group-hover\:border-\[\#C9A84C\]\/40 { border-color: rgba(201,168,76,0.4) !important; }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }
.group:hover .group-hover\:bg-\[\#C9A84C\] { background: var(--gold) !important; }

/* Transition helpers */
.transition-all { transition: all 0.3s; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.duration-700 { transition-duration: 700ms; }

/* ---- Gradient Text ---- */
.gold-gradient-text {
  background: linear-gradient(135deg, #CEE84C, #EEE5A3, #EE84C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Backdrop Blur ---- */
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.backdrop-blur-md { backdrop-filter: blur(12px); }

/* ---- Amenity Hover ---- */
.group.p-6:hover { background: rgba(255,255,255,0.05); border-color: rgba(201,168,76,0.4); }
.group.p-6:hover .group-hover\:scale-110 { transform: scale(1.1); }
.group.p-6:hover .group-hover\:text-\[\#C9A84C\] { color: var(--gold); }

/* ---- Filter Button Active State ---- */
.filter-btn.active {
  background: var(--gold) !important;
  color: white !important;
  border-color: var(--gold) !important;
}

/* ---- Responsive Hidden ---- */
@media (max-width: 1023px) {
  .lg\:hidden { display: none; }
  .lg\:flex { display: none; }
}
@media (min-width: 1024px) {
  .lg\:hidden.hidden-lg { display: none; }
  .hidden.lg\:flex { display: flex; }
}

/* ---- CTA Link Hover ---- */
a.bg-\[\#C9A84C\]:hover { background: var(--gold-dark); }
a.border-2:hover { border-color: var(--gold); color: var(--gold); }

/* ---- Button Hover States ---- */
button.bg-\[\#C9A84C\]:hover { background: var(--gold-dark); }
button.bg-\[\#1a1a1a\]:hover { background: var(--gold); }
button.border-white\/30:hover { border-color: var(--gold); color: var(--gold); }
button.border-border:hover { border-color: var(--gold); color: var(--gold); }

/* ---- Scrollbar (for webkit) ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--charcoal); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 4px; }

/* ---- Responsive Typography ---- */
@media (min-width: 640px) {
  .sm\:text-5xl { font-size: 3rem; }
  .sm\:text-xl { font-size: 1.25rem; }
}
@media (min-width: 768px) {
  .md\:text-4xl { font-size: 2.25rem; }
  .md\:text-5xl { font-size: 3rem; }
}
@media (min-width: 1024px) {
  .lg\:text-7xl { font-size: 4.5rem; }
}

/* ---- Slider Transition ---- */
.slider-slide {
  transition: opacity 1s ease-in-out;
}

/* ---- Gradient Utilities ---- */
.bg-gradient-to-t { background-image: linear-gradient(to top, var(--tw-gradient-stops)); }
.from-black\/60 { --tw-gradient-from: rgba(0,0,0,0.6); }
.via-transparent { --tw-gradient-via: transparent; }
.to-transparent { --tw-gradient-to: transparent; }

/* ---- Specific Element Styles ---- */
.backdrop-blur-md { backdrop-filter: blur(12px); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1); }

/* ---- Screen Reader Only ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
