/* Modern Luxury Hotel CSS */

/* Custom Properties */
:root {
  --primary-color: #1a1a2e;
  --secondary-color: #e94560;
  --accent-color: #f5f5f5;
  --text-light: #ffffff;
  --text-dark: #333333;
  --text-muted: #666666;
  --gold-accent: #d4af37;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  --shadow-heavy: rgba(0, 0, 0, 0.3);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 12px;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
}

/* Base Styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Bootstrap 5 Overrides */
.btn {
  border-radius: var(--border-radius);
  padding: 0.75rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #2a2a4e);
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(26, 26, 46, 0.3);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #2a2a4e, var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 26, 46, 0.4);
  color: var(--text-light);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color), #ff5577);
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: linear-gradient(135deg, #ff5577, var(--secondary-color));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 69, 96, 0.4);
  color: var(--text-light);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
}

.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px var(--shadow-light);
  transition: var(--transition-smooth);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px var(--shadow-medium);
}

.card-img-top {
  transition: var(--transition-smooth);
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

.form-control,
.form-select {
  border-radius: var(--border-radius);
  border: 2px solid #e0e0e0;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.2rem rgba(233, 69, 96, 0.25);
}

.form-label {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Navigation */
.navbar {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem 0;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background: var(--primary-color);
  box-shadow: 0 2px 20px var(--shadow-medium);
  padding: 0.5rem 0;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.navbar-brand:hover {
  color: var(--gold-accent);
}

.nav-link {
  color: var(--text-light);
  font-weight: 500;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--secondary-color);
  background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  color: var(--secondary-color);
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
  color: var(--text-light);
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: none;
  width: 25px;
  height: 2px;
  background: var(--text-light);
  position: relative;
  transition: var(--transition-smooth);
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 2px;
  background: var(--text-light);
  left: 0;
  transition: var(--transition-smooth);
}

.navbar-toggler-icon::before {
  top: -8px;
}

.navbar-toggler-icon::after {
  top: 8px;
}

.navbar-toggler.active .navbar-toggler-icon {
  background: transparent;
}

.navbar-toggler.active .navbar-toggler-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.navbar-toggler.active .navbar-toggler-icon::after {
  transform: rotate(-45deg);
  top: 0;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.7), rgba(233, 69, 96, 0.3)),
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%23f0f0f0" width="1200" height="800"/></svg>');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, var(--primary-color) 0%, rgba(26, 26, 46, 0.8) 50%, rgba(233, 69, 96, 0.2) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--text-light);
  max-width: 800px;
  padding: 2rem;
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-weight: 300;
  letter-spacing: 2px;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
}

/* Sections */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-dark {
  background: linear-gradient(135deg, var(--primary-color), #2a2a4e);
  color: var(--text-light);
}

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

.section-light {
  background: var(--accent-color);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary-color), var(--gold-accent));
  border-radius: 2px;
}

/* Room Cards */
.room-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px var(--shadow-light);
  transition: var(--transition-smooth);
}

.room-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--shadow-medium);
}

.room-image {
  position: relative;
  overflow: hidden;
  height: 250px;
  background: #f0f0f0;
}

.room-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.room-card:hover .room-image img {
  transform: scale(1.1);
}

.room-price {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--secondary-color);
  color: var(--text-light);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
}

.room-details {
  padding: 1.5rem;
}

.room-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.room-description {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.room-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.amenity-tag {
  background: rgba(26, 26, 46, 0.1);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Booking Form */
.booking-form {
  background: var(--text-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 15px 35px var(--shadow-medium);
  position: relative;
  z-index: 10;
}

.form-floating {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-floating > .form-control {
  height: calc(3.5rem + 2px);
  padding: 1rem 0.75rem;
}

.form-floating > label {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  padding: 1rem 0.75rem;
  pointer-events: none;
  border: 1px solid transparent;
  transform-origin: 0 0;
  transition: var(--transition-smooth);
  color: var(--text-muted);
}

.date-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Amenities Grid */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.amenity-item {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--text-light);
  border-radius: var(--border-radius);
  box-shadow: 0 5px 20px var(--shadow-light);
  transition: var(--transition-smooth);
}

.amenity-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow-medium);
}

.amenity-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--secondary-color), #ff5577);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--text-light);
  font-size: 1.5rem;
}

/* Footer */
.footer {
  background: var(--primary-color);
  color: var(--text-light);
  padding: 3rem 0 1rem;
}

.footer h5 {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  display: block;
  padding: 0.25rem 0;
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: var(--secondary-color);
  padding-left: 0.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  border-radius: 50%;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.social-link:hover {
  background: var(--secondary-color);
  color: var(--text-light);
  transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.fade-in-left {
  animation: fadeInLeft 0.8s ease-out;
}

.fade-in-right {
  animation: fadeInRight 0.8s ease-out;
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(233, 69, 96, 0.3);
  border-left: 4px solid var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Form Validation Styles */
.form-control.is-valid {
  border-color: #28a745;
  background-image: none;
}

.form-control.is-invalid {
  border-color: var(--secondary-color);
  background-image: none;
}

.invalid-feedback {
  color: var(--secondary-color);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.valid-feedback {
  color: #28a745;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .hero {
    height: 80vh;
    min-height: 500px;
  }
  
  .hero-content {
    padding: 1rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .booking-form {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .date-inputs {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .amenities-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .navbar-collapse {
    background: var(--primary-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-top: 1rem;
    box-shadow: 0 10px 30px var(--shadow-medium);
  }
  
  .nav-link {
    margin: 0.25rem 0;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .btn {
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .room-card {
    margin-bottom: 2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero {
    background-attachment: scroll;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .hero,
  .booking-form {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
}