/* Custom Alert Styles */
.custom-alert {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  background-color: #28a745;
  color: white;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  font-family: Arial, sans-serif;
  font-size: 14px;
  max-width: 300px;
  word-wrap: break-word;
}

.custom-alert.error {
  background-color: #dc3545;
}

.custom-alert .alert-close-btn {
  position: absolute;
  top: 5px;
  right: 10px;
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

/* Admin Modal Specific Styles */
.error-message {
  background-color: #f8d7da;
  color: #721c24;
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid #f5c6cb;
  font-size: 0.9em;
  margin: 0.5rem 0;
}


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

:root {
  --primary-color: #800000;
  --secondary-color: #FFD600;
  --accent-color: #2c5530;
  --text-dark: #1a1a1a;
  --text-light: #666;
  --text-muted: #999;
  --bg-light: #fffbe9;
  --bg-white: #ffffff;
  --border-light: #e5e5e5;
  --shadow-light: 0 2px 10px rgba(0,0,0,0.08);
  --shadow-medium: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-heavy: 0 8px 30px rgba(0,0,0,0.15);
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 24px;
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  line-height: 1;
}

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

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

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

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

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

/* Header and Navigation */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
}

.navbar {
  padding: 1rem 0;
}

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

.nav-logo h2 {
  color: var(--primary-color);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-menu.active {
  display: flex;
}

.nav-link {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link.admin-link {
  background: var(--primary-color);
  color: white;
  padding: 8px 16px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link.admin-link:hover {
  background: #600000;
  color: white;
}

.nav-link.admin-link i {
  font-size: 0.9rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
}

.hamburger .bar {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  margin: 3px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
  margin-top: 80px; /* Add space for fixed header */
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slideshow-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 4;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s;
}

.indicator.active {
  background: white;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
}

.hero-description {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  color: rgba(255,255,255,0.9);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-cta .btn {
  padding: 15px 30px;
  font-size: 1.1rem;
}

.hero-cta .btn-outline {
  border-color: white;
  color: white;
}

.hero-cta .btn-outline:hover {
  background: white;
  color: var(--primary-color);
}

/* Section Styles */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Featured Stay Section */
.featured-stay {
  background: var(--bg-light);
}

.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

.featured-image {
  position: relative;
  height: 400px;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 8px 16px;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 0.875rem;
}

.featured-content {
  padding: 2rem;
}

.featured-content h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.featured-description {
  margin-bottom: 2rem;
}

.featured-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
}

.feature i {
  color: var(--primary-color);
  width: 20px;
}

/* Why Choose Us Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

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

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), #a00000);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.feature-icon i {
  font-size: 2rem;
  color: white;
}

.feature-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Accommodations Section */
.accommodations {
  background: var(--bg-light);
}

.accommodations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.accommodation-card {
  background: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

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

.accommodation-card.featured {
  border: 2px solid var(--secondary-color);
}

.card-image {
  position: relative;
  height: 250px;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 6px 12px;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 0.8rem;
}

.card-content {
  padding: 1.5rem;
}

.card-content h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.card-content p {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.card-features {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.card-features .feature {
  font-size: 0.875rem;
}

/* Testimonials Section */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-light);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: var(--secondary-color);
  font-family: serif;
}

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.testimonial-rating i {
  color: var(--secondary-color);
}

.testimonial-text {
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  margin: 0;
  color: var(--primary-color);
  font-size: 1rem;
}

.author-info span {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Review Form Sections */
.reviews-section {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-light);
}

.reviews-header {
  text-align: center;
  margin-bottom: 2rem;
}

.reviews-header h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.email-form, .review-form {
  max-width: 500px;
  margin: 0 auto;
}

.user-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
}

.user-details {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-details i {
  font-size: 2rem;
  color: var(--primary-color);
}

.user-details div {
  display: flex;
  flex-direction: column;
}

.user-details span:first-child {
  font-weight: 600;
  color: var(--text-dark);
}

.user-details span:last-child {
  color: var(--text-light);
  font-size: 0.875rem;
}

.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  gap: 0.25rem;
}

.star-rating input {
  display: none;
}

.star-rating label {
  cursor: pointer;
  font-size: 1.5rem;
  color: #ddd;
  transition: var(--transition);
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: var(--secondary-color);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border-light);
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.input-group {
  display: flex;
  gap: 0.5rem;
}

.input-group input {
  flex: 1;
}

/* Quick Links Section */
.quick-links {
  background: var(--bg-light);
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.quick-link-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-light);
  text-align: center;
  transition: var(--transition);
}

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

.quick-link-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.quick-link-icon i {
  font-size: 1.5rem;
  color: white;
}

.quick-link-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  color: white;
  font-size: 1.2rem;
}

.contact-details h4 {
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.contact-details a {
  color: var(--text-light);
  text-decoration: none;
}

.contact-details a:hover {
  color: var(--primary-color);
}

.contact-form-wrapper {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-light);
}

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

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.footer-section ul li a:hover {
  color: white;
}

.footer-section ul li i {
  color: var(--secondary-color);
  width: 16px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #333;
  color: rgba(255,255,255,0.6);
}

/* Modal Styles */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex;
}

.modal {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-heavy);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.modal-header h3 {
  color: var(--primary-color);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--border-light);
  color: var(--text-dark);
}

.modal-body {
  padding: 1.5rem;
}

.booking-success {
  text-align: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.success-icon i {
  font-size: 2rem;
  color: white;
}

.booking-success h3 {
  color: #10b981;
  margin-bottom: 1rem;
}

.booking-details {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin: 1.5rem 0;
  text-align: left;
}

.payment-info {
  background: #fef3c7;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin: 1.5rem 0;
  border-left: 4px solid #f59e0b;
}

.payment-info h4 {
  color: #92400e;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mpesa-info {
  background: #059669;
  color: white;
  padding: 1rem;
  border-radius: var(--border-radius);
  margin: 1rem 0;
  text-align: center;
  font-size: 1.1rem;
}

/* Custom Alert Styles */
.custom-alert {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #10b981;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  min-width: 300px;
  max-width: 400px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: slideInRight 0.3s ease;
}

.custom-alert.error {
  background: #ef4444;
}

.custom-alert.warning {
  background: #f59e0b;
}

.custom-alert.info {
  background: #3b82f6;
}

.custom-alert p {
  margin: 0;
  flex: 1;
  padding-right: 1rem;
}

.alert-close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.alert-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .container {
    padding: 0 15px;
  }

  .featured-card,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
    width: 100%;
    text-align: center;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .nav-link.admin-link {
    margin-top: 1rem;
    justify-content: center;
    border: none;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .hero {
    margin-top: 70px; /* Adjust for smaller header on mobile */
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 300px;
  }

  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }

  section {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .accommodations-grid,
  .features-grid,
  .quick-links-grid {
    grid-template-columns: 1fr;
  }

  .featured-features {
    grid-template-columns: 1fr;
  }

  .card-features {
    flex-direction: column;
    gap: 0.5rem;
  }

  .modal {
    margin: 10px;
    max-height: calc(100vh - 20px);
  }

  .modal-header,
  .modal-body {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .accommodations-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .accommodation-card {
    margin: 0 10px;
  }

  .featured-card {
    margin: 0 10px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scale-in {
  transform: scale(0.9);
  opacity: 0;
  animation: scaleIn 0.4s ease forwards;
}

@keyframes scaleIn {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Loading States */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-light);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden { display: none; }
.visible { display: block; }

/* Print Styles */
@media print {
  .main-header,
  .hero-cta,
  .btn,
  .modal-backdrop,
  .footer {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  .container {
    max-width: none;
    padding: 0;
  }
}
/* ===========================================
   ENHANCED BOOKING & GALLERY FEATURES
   =========================================== */

/* Price Tags and Card Actions */
.card-price-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.price-tag {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.price-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.price-period {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.15rem;
}

/* Gallery Button */
.gallery-btn {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 25px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
}

.gallery-btn:hover {
  background: rgba(128, 0, 0, 0.95);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(128, 0, 0, 0.3);
}

.gallery-btn i {
  font-size: 1rem;
}

/* Glassy Modal Effect */
.glassy-modal {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  animation: glassySlideIn 0.4s ease;
}

@keyframes glassySlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-backdrop.active {
  display: flex !important;
  animation: fadeIn 0.3s ease;
}

/* Booking Summary Box */
.booking-summary {
  background: linear-gradient(135deg, rgba(128, 0, 0, 0.1), rgba(255, 214, 0, 0.1));
  border: 2px solid rgba(128, 0, 0, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(128, 0, 0, 0.1);
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row.highlight {
  background: rgba(128, 0, 0, 0.05);
  margin: 0 -1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 600;
}

.summary-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dark);
  font-weight: 500;
}

.summary-label i {
  color: var(--primary-color);
  width: 20px;
}

.summary-value {
  color: var(--primary-color);
  font-weight: 600;
  text-align: right;
}

/* Gallery Modal */
.gallery-modal {
  max-width: 90vw;
  width: 1000px;
  max-height: 90vh;
}

.gallery-modal .modal-body {
  padding: 0;
}

.gallery-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  min-height: 400px;
}

.gallery-main-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-main-image img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.gallery-nav:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
  left: 20px;
}

.gallery-next {
  right: 20px;
}

.gallery-thumbnails {
  display: flex;
  gap: 10px;
  padding: 1rem;
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.05);
  justify-content: center;
}

.gallery-thumbnail {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  flex-shrink: 0;
}

.gallery-thumbnail:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.gallery-thumbnail.active {
  opacity: 1;
  border-color: var(--primary-color);
}

.gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-counter {
  text-align: center;
  padding: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.9);
}

/* Flatpickr Custom Styling for Date Indicators */
/* AVAILABLE DATES — green ring indicator */
.flatpickr-day.available-date {
  box-shadow: inset 0 0 0 2px #4caf50 !important;
  color: #2e7d32 !important;
  font-weight: 700;
  border-radius: 50%;
}

/* BOOKED DATES — grey ring + strikethrough */
.flatpickr-day.booked-date {
  box-shadow: inset 0 0 0 2px #bdbdbd !important;
  color: #aaa !important;
  text-decoration: line-through;
  cursor: not-allowed !important;
  border-radius: 50%;
}

/* Hover on available */
.flatpickr-day.available-date:hover {
  background-color: rgba(76, 175, 80, 0.12) !important;
  color: #1b5e20 !important;
}

/* Calendar legend */
.calendar-legend {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  color: #555;
  justify-content: center;
}
.calendar-legend .leg-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.cal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.cal-dot.avail { box-shadow: inset 0 0 0 2px #4caf50; }
.cal-dot.booked { box-shadow: inset 0 0 0 2px #bdbdbd; }

/* Mobile Gallery Adjustments */
@media (max-width: 768px) {
  .gallery-modal {
    width: 95vw;
    max-width: 95vw;
  }

  .gallery-main-image img {
    max-height: 50vh;
  }

  .gallery-nav {
    width: 40px;
    height: 40px;
  }

  .gallery-prev {
    left: 10px;
  }

  .gallery-next {
    right: 10px;
  }

  .gallery-thumbnail {
    width: 60px;
    height: 45px;
  }

  .card-price-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-price-actions .btn {
    width: 100%;
  }

  .price-tag {
    margin-bottom: 0.5rem;
  }
}

/* Enhanced Modal Backdrop */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

/* Flatpickr Calendar Popup Adjustments */
.flatpickr-calendar {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(128, 0, 0, 0.1);
}

.flatpickr-day.today {
  border-color: var(--primary-color);
  font-weight: bold;
}

.flatpickr-months .flatpickr-month {
  background: var(--primary-color);
  color: white;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
  background: var(--primary-color);
  color: white;
}

.flatpickr-weekdays {
  background: rgba(128, 0, 0, 0.1);
}

.flatpickr-weekday {
  color: var(--primary-color);
  font-weight: 600;
}

/* Smooth Transitions for All Interactive Elements */
.accommodation-card,
.btn,
.gallery-btn,
.modal,
.gallery-thumbnail,
.flatpickr-day {
  transition: all 0.3s ease;
}
