/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
  --primary-color: #d4af37;
  --primary-dark: #b4932a;
  --text-dark: #1a1a1a;
  --text-light: #666;
  --bg-light: #f9f9f9;
  --white: #ffffff;
  --black: #000000;
  --font-serif: "Playfair Display", serif;
  --font-sans: "Inter", sans-serif;
  --transition: all 0.3s ease;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* =========================================
   2. LAYOUT & CONTAINERS
   ========================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-dark);
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 15px auto 0;
}

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  padding: 15px 0;
  z-index: 1000;
  transition: var(--transition);
}

.header_container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-list {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-list a {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white) !important;
  padding: 10px 25px;
  border-radius: var(--radius);
  font-weight: 600;
}

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

.menu-toggle {
  display: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero-section {
  height: 100vh;
  background-image: url("../images/bg-hotel.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  color: var(--white);
  padding: 0;
}

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

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: 4rem;
  margin-bottom: 20px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  font-weight: 300;
}

.btn-hero {
  display: inline-block;
  padding: 15px 40px;
  border: 2px solid var(--white);
  color: var(--white);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.btn-hero:hover {
  background-color: var(--white);
  color: var(--black);
}

/* =========================================
   5. ABOUT SECTION
   ========================================= */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.divider {
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  margin-bottom: 20px;
}

.about-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* =========================================
   6. ROOMS SECTION
   ========================================= */
.rooms-section {
  background-color: var(--bg-light);
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

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

.room-card:hover {
  transform: translateY(-10px);
}

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

.room-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.room-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

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

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

.room-details {
  padding: 25px;
  text-align: center;
}

.room-details h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.room-price {
  color: var(--primary-color);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.room-price span {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 400;
}

.room-features {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.btn-secondary {
  display: inline-block;
  padding: 10px 30px;
  background-color: var(--text-dark);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
}

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

/* =========================================
   7. SERVICES SECTION
   ========================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.service-item {
  padding: 30px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  transition: var(--transition);
}

.service-item:hover {
  border-color: var(--primary-color);
}

.service-item i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.service-item h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 10px;
}

/* =========================================
   8. PROMOTIONS SECTION
   ========================================= */
.promotions-section {
  background-color: #fcfcfc;
}

.promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

.promo-card {
  display: flex;
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary-color);
  gap: 20px;
  align-items: flex-start;
}

.promo-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
}

.promo-content h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

/* =========================================
   9. BOOKING SECTION
   ========================================= */
.booking-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-row .form-group {
  flex: 1;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.btn-submit {
  width: 100%;
  padding: 15px;
  background-color: var(--text-dark);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

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

.error-message {
  color: red;
  font-size: 0.85rem;
  margin-top: 5px;
  display: none;
}

/* =========================================
   10. REVIEWS SECTION
   ========================================= */
.reviews-section {
  background-color: var(--bg-light);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.review-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
}

.review-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 3px solid var(--bg-light);
}

.review-card blockquote {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 20px;
}

.review-card cite {
  font-weight: 700;
  font-family: var(--font-serif);
  color: var(--text-dark);
}

/* =========================================
   11. CONTACT SECTION
   ========================================= */
.contact-section {
  padding: 80px 0;
  background-color: #222;
  color: var(--white);
}

.container.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.contact-info p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 15px;
}

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

.social-links {
  margin-top: 30px;
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

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

.contact-map {
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
}

/* =========================================
   12. FOOTER
   ========================================= */
.footer {
  background-color: var(--black);
  color: #777;
  padding: 30px 0;
  text-align: center;
  font-size: 0.9rem;
}

.footer-links {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

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

/* =========================================
   13. RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 3rem;
  }

  .about-container,
  .container.contact-container {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }

  .promotions-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .header_nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    padding: 20px;
    clip-path: circle(0% at 100% 0);
    transition: all 0.5s ease-in-out;
  }

  .header_nav.active {
    clip-path: circle(140% at 100% 0);
  }

  .nav-list {
    flex-direction: column;
    gap: 20px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

/* =========================================
   14. SCROLL TO TOP BUTTON
   ========================================= */
#scrollToTopBtn {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  border: none;
  outline: none;
  width: 50px;
  height: 50px;
  padding: 0;
  line-height: 50px;
  text-align: center;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  cursor: pointer;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s, transform 0.3s;
}

#scrollToTopBtn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
}

/* =========================================
   15. BUTTON ANIMATIONS (HOVER EFFECTS)
   ========================================= */

.btn-primary,
.btn-hero,
.btn-secondary,
.btn-submit {
  transition: all 0.3s ease;
  position: relative;
  top: 0;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
  background-color: var(--primary-dark);
}

.btn-hero:hover {
  transform: translateY(-3px);
  background-color: var(--white);
  color: var(--black);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover,
.btn-submit:hover {
  transform: translateY(-3px);
  background-color: var(--primary-color);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.4);
}

/* =========================================
   16. PRELOADER
   ========================================= */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

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

#preloader.hide {
  opacity: 0;
  visibility: hidden;
}

/* =========================================
   17. PRICE CALCULATOR DISPLAY
   ========================================= */
.price-display {
  background-color: var(--bg-light);
  padding: 15px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  text-align: center;
  border: 1px dashed var(--primary-color);
  font-family: var(--font-serif);
  color: var(--text-dark);
  font-size: 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.price-display.visible {
  opacity: 1;
  transform: translateY(0);
}

#total-price-value {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.5rem;
}

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

/* =========================================
   18. MOBILE RESPONSIVENESS
   ========================================= */

/* Tablet Devices (max-width: 992px) */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 3rem;
  }

  .about-container,
  .container.contact-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-image {
    order: -1;
  }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
  /* 1. Hero Background Image */
  .hero-section {
    background-attachment: scroll !important;
    background-position: center center !important;
    background-size: cover !important;
    height: 100vh;
    min-height: 500px;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

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

  /* 2. Form Inputs & Layout */
  .booking-wrapper {
    padding: 25px 20px;
    width: 90%;
    margin: 0 auto;
  }

  .form-row {
    flex-direction: column;
    gap: 15px;
  }

  .form-group {
    width: 100%;
  }

  .form-control {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 8px;
    font-size: 16px;
  }

  input[type="date"] {
    min-width: 95%;
    display: block;
  }

  /* 3. Section Spacing */
  section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  /* 4. Mobile Navigation (Hamburger Menu) */
  .menu-toggle {
    display: block;
    position: relative;
    z-index: 2000;
    color: var(--primary-color);
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .menu-toggle:hover {
    color: var(--white);
    transform: rotate(90deg);
  }

  .header_nav {
    position: fixed;
    top: 0;
    right: -100%;
    left: auto;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.4s ease;
    clip-path: none;
  }

  .header_nav.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .nav-list a {
    font-size: 1.5rem;
  }

  /* 5. Contact Map & Images */
  .contact-map {
    height: 300px;
    margin-top: 20px;
  }

  .room-image-wrapper {
    height: 200px;
  }
}
