/* Modern Luxury Hotel CSS */

/* CSS Custom Properties */
:root {
  --primary-color: #2C3E50;
  --secondary-color: #F39C12;
  --primary-dark: #1a252f;
  --secondary-dark: #d68910;
  --text-light: #ffffff;
  --text-dark: #2C3E50;
  --text-muted: #6c757d;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --shadow-sm: 0 0.125rem 0.25rem rgba(44, 62, 80, 0.075);
  --shadow-md: 0 0.5rem 1rem rgba(44, 62, 80, 0.15);
  --shadow-lg: 0 1rem 3rem rgba(44, 62, 80, 0.175);
  --border-radius: 0.375rem;
  --transition: all 0.3s ease;
  --font-primary: 'Playfair Display', serif;
  --font-secondary: 'Inter', sans-serif;
}

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

body {
  font-family: var(--font-secondary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  overflow-x: hidden;
}

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

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

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

a:hover {
  color: var(--secondary-dark);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Bootstrap 5 Overrides */
.btn-primary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--text-light);
  padding: 0.75rem 2rem;
  font-weight: 500;
  border-radius: var(--border-radius);
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--text-light);
}

.navbar-dark {
  background-color: var(--primary-color);
}

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

.navbar-nav .nav-link {
  color: var(--text-light);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: var(--transition);
  position: relative;
}

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

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 80%;
  left: 10%;
}

.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
}

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

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

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

.form-control {
  border: 2px solid #e9ecef;
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.2rem rgba(243, 156, 18, 0.25);
}

/* Custom Components */
.hero-section {
  height: 100vh;
  background: linear-gradient(rgba(44, 62, 80, 0.4), rgba(44, 62, 80, 0.4));
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  color: var(--text-light);
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  margin-bottom: 2rem;
  opacity: 0.9;
}

.section-padding {
  padding: 5rem 0;
}

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

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

.luxury-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  height: 100%;
}

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

.testimonial-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--secondary-color);
  margin-bottom: 2rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 1rem;
}

.booking-form {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  margin-top: -100px;
  position: relative;
  z-index: 3;
}

.room-gallery {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.room-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent, rgba(44, 62, 80, 0.8));
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: var(--transition);
}

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

.footer-luxury {
  background: var(--primary-color);
  color: var(--text-light);
  padding: 3rem 0 2rem;
}

.footer-luxury h5 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.footer-luxury a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-luxury a:hover {
  color: var(--secondary-color);
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--secondary-dark);
  transform: translateY(-3px);
}

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

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

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

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Loading Spinner */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

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

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

.form-control.is-valid {
  border-color: #198754;
  background-image: none;
}

.invalid-feedback {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

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

/* Mobile Menu */
.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

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

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    height: 70vh;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
  
  .booking-form {
    margin-top: 2rem;
    padding: 1.5rem;
  }
  
  .luxury-card {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .navbar-nav {
    background-color: var(--primary-dark);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-top: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-content {
    padding: 0 1rem;
  }
  
  .btn-primary {
    padding: 0.625rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .luxury-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.5);
  }
}

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