/* Eleven Guest House - Rooms Page Styles */

:root {
  --primary-color: #8b4513;
  --secondary-color: #d2691e;
  --accent-color: #ffd700;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --white: #ffffff;
  --light-bg: #f8f9fa;
  --border-color: #e9ecef;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

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

.navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.eleven-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.eleven-logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.navbar-nav .nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: var(--transition);
  position: relative;
}

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

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

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

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

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.contact-item i {
  color: var(--primary-color);
}

.btn-primary {
  background: var(--primary-color);
  border-color: var(--primary-color);
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-weight: 500;
  transition: var(--transition);
}

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

/* Hero Section */
.rooms-hero {
  height: 60vh;
  position: relative;
  overflow: hidden;
}

.hero-background {
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  color: var(--white);
  z-index: 2;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Section Styles */
.section-badge {
  background: var(--accent-color);
  color: var(--text-dark);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 1rem;
}

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

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 1rem 0;
}

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

/* Room Types Section */
.room-types-section {
  padding: 6rem 0;
  background: var(--white);
}

.room-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  margin-bottom: 3rem;
  position: relative;
}

.room-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

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

.room-image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

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

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

.room-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent-color);
  color: var(--text-dark);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.room-content {
  padding: 2rem;
}

.room-content h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.room-description {
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.6;
}

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

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

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

.room-pricing {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.currency {
  font-size: 1rem;
  color: var(--text-light);
}

.amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.period {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Amenities Section */
.amenities-section {
  padding: 5rem 0;
  background: var(--light-bg);
}

.amenity-item {
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  margin-bottom: 2rem;
}

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

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

.amenity-icon i {
  font-size: 1.5rem;
  color: var(--text-dark);
}

.amenity-item h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.amenity-item p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Room Galleries Section */
.room-galleries-section {
  padding: 5rem 0;
  background: var(--white);
}

.room-gallery {
  margin-bottom: 4rem;
}

.room-gallery h3 {
  color: var(--text-dark);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.room-gallery h3::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 2px;
}

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

.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  aspect-ratio: 4/3;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

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

/* Responsive Design for Room Galleries */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
  }

  .room-gallery h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Booking Info Section */
.booking-info-section {
  padding: 6rem 0;
  background: var(--white);
}

.booking-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 1rem 0 1.5rem;
  color: var(--text-dark);
}

.booking-content p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.booking-steps {
  margin-bottom: 2rem;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h5 {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.step-content p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
}

.contact-methods {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--light-bg);
  border-radius: 25px;
  text-decoration: none;
  color: var(--text-dark);
  transition: var(--transition);
}

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

.contact-method i {
  font-size: 1.2rem;
}

.booking-image img {
  border-radius: 15px;
  box-shadow: var(--shadow);
}

/* Policies Section */
.policies-section {
  padding: 6rem 0;
  background: var(--light-bg);
}

.policy-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
  height: 100%;
  margin-bottom: 2rem;
}

.policy-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.policy-icon i {
  font-size: 1.5rem;
  color: var(--text-dark);
}

.policy-card h4 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.policy-card ul {
  list-style: none;
  padding: 0;
}

.policy-card li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-light);
  font-size: 0.9rem;
}

.policy-card li:last-child {
  border-bottom: none;
}

.policy-card li::before {
  content: "✓";
  color: var(--primary-color);
  font-weight: bold;
  margin-right: 0.5rem;
}

/* CTA Section */
.cta-section {
  padding: 6rem 0;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

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

.btn-outline-light {
  border-color: var(--white);
  color: var(--white);
  padding: 0.75rem 2rem;
  border-radius: 25px;
  font-weight: 500;
  transition: var(--transition);
}

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

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

.footer-brand {
  margin-bottom: 2rem;
}

.footer-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.footer-brand h4 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: #bdc3c7;
  line-height: 1.6;
}

.footer-contact {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  color: #bdc3c7;
}

.contact-item i {
  color: var(--accent-color);
  margin-top: 0.25rem;
}

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

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #bdc3c7;
  text-decoration: none;
  transition: var(--transition);
}

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

.map-container {
  border-radius: 10px;
  overflow: hidden;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #34495e;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

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

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .booking-content h2 {
    font-size: 2rem;
  }

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

  .room-pricing {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .contact-methods {
    justify-content: center;
  }

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

  .footer-bottom {
    text-align: center;
  }

  .social-links {
    justify-content: center;
    margin-top: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .booking-content h2 {
    font-size: 1.8rem;
  }

  .room-content {
    padding: 1.5rem;
  }

  .policy-card {
    padding: 1.5rem;
  }
}

/* Loading Animation */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading.hidden {
  display: none;
}

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

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

/* Responsive Navigation Styles */
@media (max-width: 768px) {
  .navbar {
    padding: 0.75rem 0;
  }

  .navbar-brand {
    flex: 1;
  }

  .eleven-logo {
    gap: 0.75rem;
  }

  .eleven-logo img {
    width: 40px;
    height: 40px;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .navbar-contact-info {
    display: none;
  }

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

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

  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  }

  .navbar-nav {
    text-align: center;
    margin-bottom: 1rem;
  }

  .navbar-nav .nav-link {
    margin: 0.5rem 0;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    transition: var(--transition);
  }

  .navbar-nav .nav-link:hover {
    background: var(--primary-color);
    color: var(--white) !important;
  }

  .dropdown-menu {
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin-top: 0.5rem;
  }

  .dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: 5px;
    margin: 0.25rem 0;
  }

  .dropdown-item:hover {
    background: var(--primary-color);
    color: var(--white);
  }
}

@media (max-width: 576px) {
  .navbar {
    padding: 0.5rem 0;
  }

  .eleven-logo img {
    width: 35px;
    height: 35px;
  }

  .logo-text {
    font-size: 1.1rem;
  }

  .navbar-toggler {
    padding: 0.2rem 0.4rem;
    font-size: 0.9rem;
  }

  .navbar-collapse {
    margin-top: 0.75rem;
    padding: 0.75rem;
  }

  .navbar-nav .nav-link {
    padding: 0.6rem 0.75rem;
    font-size: 0.95rem;
  }

  .dropdown-item {
    padding: 0.6rem 0.75rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0.4rem 0;
  }

  .eleven-logo {
    gap: 0.5rem;
  }

  .eleven-logo img {
    width: 30px;
    height: 30px;
  }

  .logo-text {
    font-size: 1rem;
  }

  .navbar-toggler {
    padding: 0.15rem 0.3rem;
    font-size: 0.8rem;
  }

  .navbar-collapse {
    margin-top: 0.5rem;
    padding: 0.5rem;
  }

  .navbar-nav .nav-link {
    padding: 0.5rem 0.6rem;
    font-size: 0.9rem;
  }

  .dropdown-item {
    padding: 0.5rem 0.6rem;
    font-size: 0.9rem;
  }
}
