/* Modern Luxury Hotel Theme - CSS */

/* Custom CSS Variables */
:root {
  --primary-color: #2C3E50;
  --secondary-color: #E74C3C;
  --accent-gold: #F39C12;
  --light-gray: #ECF0F1;
  --dark-gray: #34495E;
  --white: #FFFFFF;
  --black: #2C2C2C;
  --shadow-light: 0 2px 10px rgba(44, 62, 80, 0.1);
  --shadow-medium: 0 5px 20px rgba(44, 62, 80, 0.2);
  --shadow-heavy: 0 10px 40px rgba(44, 62, 80, 0.3);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 8px;
  --font-primary: 'Playfair Display', serif;
  --font-secondary: 'Inter', sans-serif;
}

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@300;400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-secondary);
  font-weight: 400;
  line-height: 1.6;
  color: var(--black);
  background-color: var(--white);
  overflow-x: hidden;
}

/* Bootstrap 5 Overrides */
.container-fluid {
  padding-left: 15px;
  padding-right: 15px;
}

.btn {
  font-family: var(--font-secondary);
  font-weight: 500;
  border-radius: var(--border-radius);
  padding: 12px 30px;
  transition: var(--transition-smooth);
  border: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--dark-gray);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #C0392B;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

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

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

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

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

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

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

p {
  margin-bottom: 1.2rem;
  color: var(--dark-gray);
}

.lead {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--dark-gray);
}

/* Header and Navigation */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-light);
  transition: var(--transition-smooth);
  padding: 1rem 0;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  background-color: rgba(255, 255, 255, 0.98);
}

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

.navbar-nav .nav-link {
  font-family: var(--font-secondary);
  font-weight: 500;
  color: var(--primary-color);
  margin: 0 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition-smooth);
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: var(--secondary-color);
  background-color: rgba(231, 76, 60, 0.1);
}

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

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

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

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  background: linear-gradient(rgba(44, 62, 80, 0.4), rgba(44, 62, 80, 0.6)),
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%23ECF0F1" width="1200" height="800"/><text x="50%" y="50%" font-size="64" fill="%232C3E50" text-anchor="middle" dy=".3em">Hotel Hero Image</text></svg>');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.hero-content {
  max-width: 800px;
  padding: 2rem;
  animation: fadeInUp 1s ease-out;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

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

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

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

/* Cards */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition-smooth);
  overflow: hidden;
  height: 100%;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
}

.card-img-top {
  height: 250px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.card-text {
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

/* Forms */
.form-control {
  border: 2px solid rgba(44, 62, 80, 0.1);
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.1);
}

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

.form-group {
  margin-bottom: 1.5rem;
}

/* Booking Form */
.booking-form {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  margin-top: -100px;
  position: relative;
  z-index: 10;
}

/* Gallery */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 62, 80, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
}

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

.gallery-overlay i {
  font-size: 2rem;
  color: var(--white);
}

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

.footer h5 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer p, .footer li {
  color: rgba(255, 255, 255, 0.8);
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer a:hover {
  color: var(--accent-gold);
}

.footer .list-unstyled li {
  padding: 0.3rem 0;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  margin-right: 0.5rem;
  transition: var(--transition-smooth);
}

.social-links a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

/* Utilities */
.bg-primary {
  background-color: var(--primary-color);
}

.bg-secondary {
  background-color: var(--secondary-color);
}

.bg-light {
  background-color: var(--light-gray);
}

.text-primary {
  color: var(--primary-color);
}

.text-secondary {
  color: var(--secondary-color);
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Loading Animation */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--light-gray);
  border-top: 2px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Error States */
.error {
  border-color: var(--secondary-color);
  background-color: rgba(231, 76, 60, 0.05);
}

.error-message {
  color: var(--secondary-color);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.error-message.show {
  display: block;
}

/* Success States */
.success {
  border-color: #27AE60;
  background-color: rgba(39, 174, 96, 0.05);
}

.success-message {
  color: #27AE60;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
    height: 70vh;
    padding: 1rem;
  }
  
  .hero-content {
    padding: 1rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .booking-form {
    margin-top: 0;
    padding: 1.5rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .navbar-nav {
    text-align: center;
    padding: 1rem 0;
  }
  
  .navbar-nav .nav-link {
    margin: 0.2rem 0;
  }
  
  .gallery-item img {
    height: 200px;
  }
}

@media (max-width: 576px) {
  .hero {
    height: 60vh;
  }
  
  .booking-form {
    padding: 1rem;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .card-img-top {
    height: 200px;
  }
  
  .gallery-item img {
    height: 180px;
  }
}

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

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.5);
    --shadow-medium: 0 4px 8px rgba(0, 0, 0, 0.5);
    --shadow-heavy: 0 8px 16px rgba(0, 0, 0, 0.5);
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn {
    display: none;
  }
  
  .hero {
    background: none;
    color: var(--black);
  }
  
  * {
    box-shadow: none;
  }
}