/* -------------------------------------------------
   GLOBAL RESET & BASE
------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

:root{
  --content-max:1150px;
  --header-height:70px; /* used for scroll-padding & offsets */
}

html {
  /* ensure headings anchored by hash or scroll are visible below fixed header */
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  background: #fffdf9;
  color: #333;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  /* small global content inset to avoid text stuck to left on very wide monitors */
  padding-left: 6px;
  padding-right: 6px;
}

img {
  max-width: 100%;
  display: block;
}

/* -------------------------------------------------
   NAVBAR
------------------------------------------------- */
header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  background: rgba(255,255,255,0.97);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  backdrop-filter: blur(6px);
  height: var(--header-height);
}

.navbar {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  color: #222;
}

.nav-links a:hover,
.nav-links a.active {
  color: #e63946;
}

/* Hamburger for mobile */
.hamburger {
  display: none;
  font-size: 32px;
  cursor: pointer;
}

/* MOBILE NAV */
@media (max-width: 900px) {
  .hamburger {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    width: 230px;
    background: #fff;
    flex-direction: column;
    padding: 20px 0;
    gap: 0;
    border-radius: 0 0 0 12px;
    display: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  }
  .nav-links.show {
    display: flex;
  }
  .nav-links li {
    padding: 14px 0;
    text-align: center;
  }
}

/* -------------------------------------------------
   HERO (HOME PAGE SLIDESHOW)
------------------------------------------------- */

.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  padding-top:calc(var(--header-height) + 10px); /* ensure hero content below header */
}

.hero-slideshow {
  position:absolute;
  inset:0;
  z-index:-2;
  overflow:hidden;
}

.hero-slide {
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  opacity:0;
  transition:opacity 1.2s ease;
}

.hero-slide.active {
  opacity:1;
}

.hero-overlay {
  position:absolute;
  inset:0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.34), rgba(0,0,0,0.18));
  z-index:-1;
}

.hero-content {
  text-align:center;
  color:#fff;
  z-index:20;
  max-width:900px;
  padding:0 20px;
}

.hero-title {
  font-family:"Playfair Display", serif;
  font-size:56px;
}

.hero-title span {
  font-size:32px;
}

.hero-tagline {
  margin-top:14px;
  font-size:18px;
}

/* -------------------------------------------------
   BUTTONS
------------------------------------------------- */
.btn-primary,
.btn-outline {
  display:inline-block;
  padding:12px 24px;
  border-radius:8px;
  text-decoration:none;
  font-weight:600;
  transition:0.25s;
}

.btn-primary {
  background:#e63946;
  color:#fff;
  box-shadow:0 6px 18px rgba(230,57,70,0.25);
}

.btn-primary:hover {
  background:#c52734;
}

.btn-outline {
  border:2px solid #e63946;
  color:#e63946;
}

.btn-outline:hover {
  background:#e63946;
  color:#fff;
}

/* -------------------------------------------------
   PAGE HERO (ABOUT, ROOMS, GALLERY, CONTACT)
   and consistent section heading alignment fix
------------------------------------------------- */

/* Ensure section titles line up with content grid */
.section-title {
  max-width: var(--content-max);
  margin: 40px auto 18px;
  padding: 0 20px;
  font-family: "Playfair Display", serif;
  font-size: 32px;
  color: #222;
}

/* Some pages use .page-hero; keep consistent top spacing so they don't hide under fixed header */
.page-hero {
  padding: calc(var(--header-height) + 60px) 20px 60px;
  text-align:center;
}

/* ensure centered internal headings inside page-hero remain visible */
.page-hero-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.page-hero-inner h1 {
  font-family:"Playfair Display", serif;
  font-size:40px;
}

.text-muted {
  color:#666;
  font-size:16px;
}

/* -------------------------------------------------
   SLIDE-UP ANIMATION
------------------------------------------------- */
.slide-up {
  opacity:0;
  transform:translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.slide-up.visible {
  opacity:1;
  transform:translateY(0);
}

.reveal {
  opacity:0;
  transform: translateY(25px);
  transition:0.6s;
}

.reveal.visible {
  opacity:1;
  transform:translateY(0);
}

/* -------------------------------------------------
   ABOUT PAGE / HOME ABOUT SECTION
   fixes: slider images showing halves and alignment/spacing
------------------------------------------------- */
.about-inner {
  max-width: var(--content-max);
  margin: 40px auto;
  padding: 20px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
}

.about-list li {
  margin-bottom:8px;
}

/* slider container tweaks - MAIN FIXES: .slide should occupy full width so only one image shows */
.slider {
  position:relative;
  overflow:hidden;
  border-radius:12px;
  box-shadow:0 8px 24px rgba(0,0,0,0.12);
}

/* slides is a flex container; each .slide must be 100% of the viewport of the slider */
.slides {
  display:flex;
  width:100%;
  transition:transform .6s ease;
  align-items:stretch; /* make children stretch vertically */
}

.slide {
  flex: 0 0 100%;   /* <-- ensures each slide occupies full slider width */
  display:flex;
  align-items:center;
  justify-content:center;
}

.slide img {
  width:100%;
  height:360px;          /* fixed height to keep slider consistent */
  object-fit:cover;      /* cover avoids half-cut image look */
  border-radius:12px;
}

/* slider controls (prev/next/dots) */
.slider-prev,
.slider-next {
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:rgba(0,0,0,0.4);
  color:white;
  border:none;
  padding:10px 15px;
  border-radius:50%;
  cursor:pointer;
}

.slider-prev { left:12px; }
.slider-next { right:12px; }

.slider-dots {
  position:absolute;
  bottom:12px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  gap:6px;
}

.slider-dots button {
  width:10px;
  height:10px;
  background:#fff;
  opacity:.6;
  border:none;
  border-radius:50%;
}

.slider-dots button.active {
  opacity:1;
  background:#e63946;
}

/* Responsive ABOUT layout */
@media (max-width:900px){
  .about-inner {
    grid-template-columns:1fr;
  }
  .slide img { height:260px; }
}

/* -------------------------------------------------
   ROOMS PAGE
   fixes: ensure text/buttons centered and spacing consistent
------------------------------------------------- */
.room-grid {
  max-width: var(--content-max);
  margin:auto;
  padding:40px 20px;
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(270px,1fr));
  gap:28px;
}

.room-card {
  background:#fff;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 6px 20px rgba(0,0,0,0.1);
  transition:.3s;
  display:flex;
  flex-direction:column;
}

.room-card:hover {
  transform:translateY(-6px);
}

/* center room card body text so buttons appear centered and spacing consistent */
.room-body {
  padding:15px 18px;
  text-align:center;          /* <-- main alignment fix requested */
  flex: 1 1 auto;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

/* buttons area: center and keep consistent sizes */
.room-actions {
  margin-top:14px;
  display:flex;
  gap:10px;
  justify-content:center;      /* <-- center buttons */
  align-items:center;
}

/* Make .btn-outline and .btn-primary same height in cards */
.room-actions .btn-primary,
.room-actions .btn-outline {
  padding:10px 20px;
  border-radius:8px;
}

/* Keep card title consistent */
.room-card h3 {
  margin-top:12px;
  font-weight:700;
  font-family:"Playfair Display", serif;
}

/* -------------------------------------------------
   GALLERY PAGE
------------------------------------------------- */
.gallery-grid {
  max-width:1200px;
  margin:auto;
  padding:40px 20px;
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap:18px;
}

.gallery-grid img {
  width:100%;
  height:200px;
  object-fit:cover;
  border-radius:12px;
  transition:.4s;
}

.gallery-grid img:hover {
  transform:scale(1.04);
}

/* -------------------------------------------------
   CONTACT PAGE
   fixes: form and card layout so fields don't display inline
------------------------------------------------- */
.contact-grid {
  max-width:var(--content-max);
  margin:auto;
  padding:40px 20px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:30px;
}

/* make contact cards visually consistent */
.contact-card {
  background:#fff;
  padding:22px;
  border-radius:12px;
  box-shadow:0 6px 20px rgba(0,0,0,0.1);
}

/* make labels stack vertically and inputs full width */
.contact-card form label {
  display:block;                /* <-- ensures each input stacks */
  margin-bottom:8px;
  font-weight:600;
}

.contact-card form input,
.contact-card form textarea {
  width:100%;
  margin-top:6px;
  margin-bottom:14px;
  padding:12px;
  border:1px solid #ccc;
  border-radius:8px;
  box-sizing:border-box;
}

/* small tweak to ensure map fits nicely */
.map-box iframe {
  width:100%;
  border-radius:12px;
}

/* small screens: stack contact columns */
@media(max-width:900px) {
  .contact-grid {
    grid-template-columns:1fr;
  }
}

/* -------------------------------------------------
   MODAL (ROOM DETAILS)
------------------------------------------------- */
.modal {
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.55);
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
  z-index:9999;
}

.modal.open {
  display:flex;
}

.modal-inner {
  background:#fff;
  padding:20px;
  border-radius:12px;
  max-width:550px;
  width:100%;
  box-shadow:0 8px 30px rgba(0,0,0,0.2);
  max-height:80vh;
  overflow-y:auto;
}

.modal-close {
  background:none;
  border:none;
  font-size:22px;
  float:right;
  cursor:pointer;
}

/* -------------------------------------------------
   FLOATING WHATSAPP BUTTON
------------------------------------------------- */
.whatsapp-float {
  position:fixed;
  bottom:20px;
  right:20px;
  width:58px;
  height:58px;
  background:#25D366;
  color:white;
  font-size:30px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 10px 25px rgba(0,0,0,0.2);
  z-index:99999;
  text-decoration:none;
}

.whatsapp-float:hover {
  background:#1ebe57;
}

/* -------------------------------------------------
   FOOTER
------------------------------------------------- */
footer {
  text-align:center;
  padding:20px;
  background:#e63946;
  color:white;
  margin-top:40px;
}
/* --- FIX ROOM CARD BUTTON LAYOUT (HOMEPAGE) --- */

.room-card {
  background:#fff;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 6px 20px rgba(0,0,0,0.1);
  transition:.3s;
  text-align: center;
}

.room-card img {
  width:100%;
  height: 230px;
  object-fit: cover;
}

.room-card h3 {
  margin-top:10px;
  font-size:18px;
  font-weight:700;
}

.room-card p {
  padding: 0 15px;
  font-size: 15px;
  margin-top:6px;
  margin-bottom:12px;
}

.room-card .btn-outline,
.room-card .btn-primary {
  width: 85%;
  margin: 6px auto 12px auto;
  display: block;
}
.room-card .card-content {
    min-height: 160px; /* ensures equal height for all cards */
}

.room-card .btn-container {
    margin-top: 15px; /* gives perfect spacing so buttons align */
}
/* --- FIX MOBILE BUTTON COLLISIONS --- */
@media (max-width: 480px) {

    /* About page button spacing */
    .about-buttons,
    .room-buttons,
    .contact-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px !important;
        width: 100%;
    }

    .about-buttons a,
    .contact-buttons a,
    .room-buttons a {
        width: 100% !important;
        text-align: center;
    }

    /* Contact page button spacing */
    .contact-actions {
        display: flex;
        flex-direction: column;
        gap: 12px !important;
        width: 100%;
    }
}
/* ----------------------------
   FIX MOBILE BUTTON COLLISIONS
   (About Us + Contact Page)
-----------------------------*/
@media (max-width: 600px) {

  /* ABOUT PAGE BUTTONS */
  .about-left > div {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .about-left > div a {
    width: 100% !important;
    text-align: center !important;
  }

  /* CONTACT PAGE BUTTONS */
  .contact-card > div {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .contact-card > div a {
    width: 100% !important;
    text-align: center !important;
  }
}
