/*
Theme Name: Rock N River (v2.0)
Theme URI: http://localhost/rocknriver/
Author: Antigravity AI
Description: Version 2.0 luxury resort & homestay experience theme for Rock N River Darjeeling Sittong.
Version: 2.0.0
Text Domain: rocknriver-v2
*/

:root {
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  --primary: #1b382b;
  --primary-hover: #12281e;
  --primary-light: #2c5443;
  --accent: #c69214;
  --accent-light: #dfaa2b;
  --accent-soft: #fcf6e5;
  
  --bg-main: #fbf9f5;
  --bg-card: #ffffff;
  --bg-alt: #f3eee7;
  --bg-dark: #111a15;
  
  --text-main: #19241e;
  --text-muted: #58675f;
  --text-light: #8e9e95;
  --text-white: #ffffff;
  
  --border-light: rgba(27, 56, 43, 0.1);
  --border-gold: rgba(198, 146, 20, 0.3);
  
  --shadow-sm: 0 4px 12px rgba(27, 56, 43, 0.04);
  --shadow-md: 0 10px 30px rgba(27, 56, 43, 0.08);
  --shadow-lg: 0 20px 50px rgba(27, 56, 43, 0.14);
  --shadow-gold: 0 12px 35px rgba(198, 146, 20, 0.25);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  filter: contrast(1.04) saturate(1.06);
}

/* Typography */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
}

.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background-color: var(--accent);
  display: inline-block;
}

/* Header & Glass Navigation */
.v2-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(251, 249, 245, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.v2-nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.v2-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.v2-brand-logo {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.v2-brand-text strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--primary);
  line-height: 1.1;
}

.v2-brand-text small {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.v2-desktop-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.v2-desktop-menu a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  position: relative;
  padding: 4px 0;
}

.v2-desktop-menu a:not(.v2-btn-primary)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.v2-desktop-menu a:not(.v2-btn-primary):hover::after,
.v2-desktop-menu a.active::after {
  width: 100%;
}

/* Buttons */
.v2-btn-primary {
  background: var(--primary);
  color: var(--text-white) !important;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
  border: 1px solid transparent;
}

.v2-btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.v2-btn-gold {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: var(--primary) !important;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.v2-btn-gold:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.v2-btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.v2-btn-secondary:hover {
  background: rgba(27, 56, 43, 0.06);
}

/* Mobile Navigation */
.v2-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.v2-mobile-drawer {
  display: none;
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  background: var(--bg-card);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  border-bottom: 1px solid var(--border-light);
  flex-direction: column;
  gap: 16px;
  z-index: 999;
}

.v2-mobile-drawer.is-open {
  display: flex;
}

/* Hero Section */
.v2-hero {
  position: relative;
  padding: 80px 24px 100px;
  background: linear-gradient(180deg, rgba(27, 56, 43, 0.03) 0%, rgba(251, 249, 245, 1) 100%);
  overflow: hidden;
}

.v2-hero-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.v2-hero-content h1 {
  font-size: 3.5rem;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.v2-hero-content h1 span {
  color: var(--accent);
  font-style: italic;
}

.v2-hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 520px;
}

.v2-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.v2-hero-stats {
  display: flex;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.v2-stat-item strong {
  display: block;
  font-size: 1.8rem;
  font-family: var(--font-serif);
  color: var(--primary);
}

.v2-stat-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.v2-hero-visual {
  position: relative;
}

.v2-image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}

.v2-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.v2-image-frame:hover img {
  transform: scale(1.04);
}

.v2-glass-card {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-gold);
  max-width: 260px;
}

.v2-glass-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.v2-glass-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Sections */
.v2-section {
  padding: 90px 24px;
}

.v2-section-alt {
  background: var(--bg-alt);
}

.v2-section-dark {
  background: var(--bg-dark);
  color: var(--text-white);
}

.v2-section-dark h2, .v2-section-dark h3 {
  color: var(--text-white);
}

.v2-container {
  max-width: 1280px;
  margin: 0 auto;
}

.v2-section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.v2-section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.v2-section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Room Cards Grid */
.v2-rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.v2-room-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.v2-room-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-gold);
}

.v2-room-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.v2-room-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.v2-room-card:hover .v2-room-thumb img {
  transform: scale(1.06);
}

.v2-badge-pill {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(17, 26, 21, 0.75);
  backdrop-filter: blur(8px);
  color: var(--text-white);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.v2-room-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.v2-room-body h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.v2-room-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.v2-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.v2-feature-tag {
  background: var(--bg-main);
  color: var(--primary);
  border: 1px solid var(--border-light);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.825rem;
  font-weight: 600;
}

/* Feature Showcase Split */
.v2-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.v2-photo-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.v2-photo-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.v2-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--transition);
}

.v2-photo-card:hover img {
  transform: scale(1.08);
}

.v2-photo-card::after {
  content: '🔍 View';
  position: absolute;
  inset: 0;
  background: rgba(27, 56, 43, 0.6);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.v2-photo-card:hover::after {
  opacity: 1;
}

/* Stream Banner */
.v2-stream-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--text-white);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.v2-stream-banner h2 {
  color: var(--text-white);
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.v2-stream-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
}

.v2-stream-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

/* Gallery Filter Tabs */
.v2-filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.v2-filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.v2-filter-btn:hover, .v2-filter-btn.active {
  background: var(--primary);
  color: var(--text-white);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.v2-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.v2-gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.v2-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--transition);
}

.v2-gallery-item:hover img {
  transform: scale(1.07);
}

.v2-gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 26, 21, 0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: var(--text-white);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.v2-gallery-item:hover .v2-gallery-overlay {
  opacity: 1;
}

/* Lightbox Modal */
.v2-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 16, 12, 0.92);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.v2-lightbox.is-visible {
  display: flex;
}

.v2-lightbox-content {
  position: relative;
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.v2-lightbox-content img {
  max-height: 80vh;
  max-width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.v2-lightbox-caption {
  color: var(--text-white);
  margin-top: 16px;
  font-size: 1.1rem;
  font-family: var(--font-serif);
}

.v2-lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 2rem;
  cursor: pointer;
}

/* Booking Form Component */
.v2-booking-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.v2-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.v2-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.v2-form-group.full-width {
  grid-column: span 2;
}

.v2-form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
}

.v2-form-group input, .v2-form-group select {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-main);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

.v2-form-group input:focus, .v2-form-group select:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px rgba(27, 56, 43, 0.1);
}

/* Alert Boxes */
.v2-alert {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-weight: 600;
}

.v2-alert-success {
  background: #e6f4ea;
  color: #137333;
  border: 1px solid #ceead6;
}

.v2-alert-error {
  background: #fce8e6;
  color: #c5221f;
  border: 1px solid #fad2cf;
}

/* Footer */
.v2-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 80px 24px 32px;
  margin-top: auto;
}

.v2-footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 60px;
}

.v2-footer-brand h3 {
  color: var(--text-white);
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.v2-footer-col h4 {
  color: var(--text-white);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.v2-footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.v2-footer-col a:hover {
  color: var(--accent-light);
}

.v2-footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

/* Responsive Rules */
@media (max-width: 1024px) {
  .v2-hero-grid, .v2-split-grid, .v2-stream-banner, .v2-footer-grid {
    grid-template-columns: 1fr;
  }
  .v2-hero-content h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .v2-desktop-menu {
    display: none;
  }
  .v2-mobile-toggle {
    display: block;
  }
  .v2-form-grid {
    grid-template-columns: 1fr;
  }
  .v2-form-group.full-width {
    grid-column: span 1;
  }
  .v2-photo-stack {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    margin-top: 24px;
  }
  .v2-photo-card {
    aspect-ratio: 16 / 10 !important;
    width: 100% !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-md) !important;
  }
}

/* Floating WhatsApp Button */
.v2-whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1500;
  background: #25D366;
  color: #ffffff !important;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  border: 2px solid #ffffff;
}

.v2-whatsapp-float:hover {
  transform: translateY(-4px) scale(1.04);
  background: #1eb954;
  box-shadow: 0 14px 40px rgba(37, 211, 102, 0.5);
}

@media (max-width: 768px) {
  .v2-whatsapp-float {
    bottom: 20px;
    right: 20px;
    padding: 10px 18px;
    font-size: 0.875rem;
  }
}
