/* =========================================================
   Oasis Home Stay - single shared stylesheet (all pages)
   1 Base  2 Image slots  3 Nav  4 Shared blocks  5 Home page
   6 Inner pages  7 Footer & utilities  8 Responsive
   ========================================================= */

/* ---------- 1. Base ---------- */
:root {
  --green: #2f7d46;
  --green-d: #1f5a32;
  --forest: #16281f;
  --soft: #eef4f0;
  --ink: #1d2a22;
  --muted: #5d6b63;
  --script: "Playball", cursive;
  --serif: "Playfair Display", serif;
  --sans: "Poppins", sans-serif;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  color: var(--ink);
  font-size: 0.95rem;
}
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--serif);
  font-weight: 600;
}
section {
  scroll-margin-top: 70px;
}
.script {
  font-family: var(--script);
  color: var(--green);
  font-size: 1.4rem;
  display: block;
  margin-bottom: 0.2rem;
}
.sec-title {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  color: var(--forest);
}
.btn-g {
  background: var(--green);
  color: #fff;
  border-radius: 50rem;
  padding: 0.65rem 1.5rem;
  font-weight: 500;
  border: 0;
  transition: 0.3s;
}
.btn-g:hover {
  background: var(--green-d);
  color: #fff;
  transform: translateY(-2px);
}
.btn-d {
  background: var(--green-d);
  color: #fff;
  border-radius: 50rem;
  padding: 0.6rem 1.4rem;
  font-weight: 500;
  transition: 0.3s;
}
.btn-d:hover {
  background: var(--forest);
  color: #fff;
}
:focus-visible {
  outline: 3px solid #7ccf93;
  outline-offset: 3px;
}
.pad {
  padding: 5.5rem 0;
}
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@keyframes up {
  from {
    opacity: 0;
    transform: translateY(36px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 2. Image slots (replace files in /images with your own photos) ---------- */
.ph {
  background: var(--bg) center/cover no-repeat;
}
.p1 {
  --bg: url("../images/house-night.jpg");
}
.p2 {
  --bg: url("../images/hero-balcony.jpg");
}
.p3 {
  --bg: url("../images/bonfire.jpg");
}
.p4 {
  --bg: url("../images/about-house.jpg");
}
.p5 {
  --bg: url("../images/room1.jpg");
}
.p6 {
  --bg: url("../images/room2.jpg");
}
.p7 {
  --bg: url("../images/hills.jpg");
}
.p8 {
  --bg: url("../images/bonfire.jpg");
}
.p9 {
  --bg: url("../images/flower.jpg");
}
.p10 {
  --bg: url("../images/forest.jpg");
}
.p11 {
  --bg: url("../images/clouds.jpg");
}
.p12 {
  --bg: url("../images/room3.jpg");
}
.p13 {
  --bg: url("../images/lake.jpg");
}

/* ---------- 3. Navigation ---------- */
.navbar {
  padding: 1rem 0;
  transition: 0.35s;
}
.navbar.scrolled {
  background: rgba(22, 40, 31, 0.96);
  backdrop-filter: blur(8px);
  padding: 0.5rem 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
  line-height: 1;
}
.brand b {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 600;
  display: block;
}
.brand small {
  font-family: var(--serif);
  font-size: 0.8rem;
  display: block;
  text-align: right;
  opacity: 0.9;
}
.navbar .nav-link {
  color: #fff;
  margin: 0 0.6rem;
  position: relative;
}
.navbar .nav-link.active {
  color: #9be0ae;
}
.navbar .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0;
  height: 2px;
  background: #9be0ae;
}
.navbar-toggler-icon {
  filter: invert(1);
}

/* ---------- 4. Blocks shared by several pages ---------- */
/* blob image (Home + About) */
.blob {
  position: relative;
  max-width: 460px;
}
.blob .main {
  height: 330px;
  border-radius: 58% 42% 55% 45%/48% 58% 42% 52%;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}
.blob-lg .main {
  height: 360px;
}
.blob .circ {
  position: absolute;
  right: -8px;
  bottom: -34px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 6px solid #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}
.blob .leaf {
  position: absolute;
  right: -24px;
  top: 10px;
  font-size: 3.6rem;
  color: #8bb69a;
  transform: rotate(25deg);
  opacity: 0.8;
}
/* dark photo band with fixed (parallax) background; tweak with --img / --a / --b */
.band-dark {
  color: #fff;
  background:
    linear-gradient(
      rgba(14, 30, 20, var(--a, 0.72)),
      rgba(14, 30, 20, var(--b, 0.82))
    ),
    var(--img, url("../images/forest.jpg")) center/cover fixed;
}
/* form card (Home + Contact) */
.form-box {
  background: #fff;
  color: var(--ink);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(22, 40, 31, 0.12);
}
.form-box h5 {
  font-size: 1.1rem;
}
.form-control,
.form-select {
  font-size: 0.88rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.6rem;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 0.2rem rgba(47, 125, 70, 0.15);
}
.form-label {
  font-size: 0.78rem;
  margin-bottom: 0.25rem;
  color: var(--muted);
}

/* ---------- 5. Home page ---------- */
#home {
  position: relative;
  height: min(100vh, 760px);
  min-height: 560px;
  overflow: hidden;
  background: var(--forest);
}
#hero,
.carousel-inner,
.carousel-item {
  height: 100%;
}
.slide {
  height: 100%;
  display: flex;
  align-items: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.slide .bgimg {
  position: absolute;
  inset: -8% 0;
  background: var(--bg) center/cover;
  will-change: transform;
}
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.5),
    rgba(0, 0, 0, 0.05) 70%
  );
}
.slide .container {
  position: relative;
  z-index: 2;
}
.slide .script {
  color: #fff;
  font-size: 1.7rem;
}
.slide h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 700;
}
.slide .tag {
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0.5rem 0 1rem;
}
.slide p.txt {
  max-width: 30rem;
  opacity: 0.92;
}
.carousel-item.active .slide .container > * {
  animation: up 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.carousel-item.active .slide .container > *:nth-child(2) {
  animation-delay: 0.12s;
}
.carousel-item.active .slide .container > *:nth-child(3) {
  animation-delay: 0.24s;
}
.carousel-item.active .slide .container > *:nth-child(4) {
  animation-delay: 0.36s;
}
.carousel-item.active .slide .container > *:nth-child(5) {
  animation-delay: 0.48s;
}
.carousel-control-prev,
.carousel-control-next {
  width: auto;
  opacity: 1;
  padding: 0 1rem;
}
.arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
  color: #fff;
}
.carousel-indicators {
  margin-bottom: 1.8rem;
}
.carousel-indicators [data-bs-target] {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
}
.loc {
  position: absolute;
  right: 3rem;
  bottom: 2rem;
  z-index: 5;
  color: #fff;
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.loc i {
  font-size: 1.5rem;
}
.loc b {
  font-family: var(--serif);
  font-size: 1.15rem;
  display: block;
  line-height: 1.1;
}
.loc small {
  font-size: 0.7rem;
  opacity: 0.85;
}
.mini {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.mini i {
  font-size: 1.9rem;
  color: var(--green);
}
.mini span {
  font-size: 0.85rem;
  line-height: 1.3;
}
#facilities {
  padding: 5rem 0 4rem;
  background:
    linear-gradient(rgba(240, 246, 243, 0.82), rgba(240, 246, 243, 0.35)),
    url("../images/clouds.jpg") center/cover fixed;
}
.fac {
  background: #fff;
  border-radius: 0.8rem;
  padding: 1.3rem 0.5rem;
  text-align: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
  height: 100%;
}
.fac:hover {
  transform: translateY(-6px);
}
.fac i {
  font-size: 1.8rem;
  color: var(--green);
  display: block;
  margin-bottom: 0.3rem;
}
.fac span {
  font-size: 0.8rem;
  font-weight: 500;
}
.room {
  background: var(--soft);
  border-radius: 0.7rem;
  overflow: hidden;
  height: 100%;
  transition: 0.3s;
}
.room:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}
.room .ph {
  height: 150px;
}
.room .body {
  padding: 1rem;
}
.room h5 {
  font-size: 1.1rem;
}
.room li {
  list-style: none;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.4rem;
}
.room li i {
  color: var(--green);
  margin-right: 0.5rem;
}
#gallery {
  background: var(--soft);
}
.gi {
  border-radius: 0.6rem;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: zoom-in;
}
.gi .ph {
  height: 100%;
  transition: transform 0.6s;
}
.gi:hover .ph {
  transform: scale(1.12);
}
.tcard {
  background: #fff;
  border-radius: 0.7rem;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  height: 100%;
}
.tcard .ph {
  height: 110px;
}
.tcard .b {
  padding: 1.2rem;
  display: flex;
  gap: 0.9rem;
}
.av {
  flex: 0 0 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 600;
}
.tcard q {
  font-size: 0.82rem;
  color: var(--muted);
  display: block;
  margin-bottom: 0.6rem;
  quotes: none;
}
.tcard .n {
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.2;
}
.tcard small {
  color: var(--muted);
}
.stars {
  color: #f5b301;
  font-size: 0.8rem;
}
#contact {
  padding: 5rem 0;
}
#contact .script {
  color: #7ccf93;
}
.ci {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}
.ci i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--green);
  border-radius: 0.4rem;
}

/* ---------- 6. Inner pages (About / Gallery / Contact) ---------- */
.page-hero {
  position: relative;
  min-height: 380px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  padding: 7rem 0 3rem;
  background: var(--forest);
}
.page-hero .bgimg {
  position: absolute;
  inset: -60% 0;
  background:
    linear-gradient(rgba(14, 30, 20, 0.5), rgba(14, 30, 20, 0.75)),
    var(--bg) center/cover;
  will-change: transform;
}
.page-hero .container {
  position: relative;
  z-index: 2;
  animation: up 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
}
.page-hero .script {
  color: #9be0ae;
  font-size: 1.7rem;
}
.crumbs {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.14);
  padding: 0.35rem 1rem;
  border-radius: 50rem;
  backdrop-filter: blur(4px);
}
.crumbs a {
  color: #fff;
  text-decoration: none;
  opacity: 0.85;
}
.crumbs a:hover {
  opacity: 1;
}
/* About */
.stat {
  text-align: center;
  padding: 1rem 0.5rem;
  border-radius: 0.8rem;
  background: var(--soft);
}
.stat b {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--green-d);
  display: block;
  line-height: 1;
}
.stat span {
  font-size: 0.78rem;
  color: var(--muted);
}
.tour {
  --a: 0.86;
  --b: 0.92;
}
.phone {
  position: relative;
  width: min(300px, 80vw);
  aspect-ratio: 9/16;
  margin: auto;
  border-radius: 36px;
  padding: 10px;
  background: #0b140f;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 0 2px rgba(255, 255, 255, 0.14);
}
.phone video {
  width: 100%;
  height: 100%;
  border-radius: 27px;
  object-fit: cover;
  display: block;
  background: #000;
}
.phone .play {
  position: absolute;
  inset: 10px;
  border-radius: 27px;
  border: 0;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 4rem;
  transition: 0.3s;
}
.phone .play i {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(47, 125, 70, 0.92);
  box-shadow: 0 0 0 12px rgba(47, 125, 70, 0.3);
  animation: pulse 2s infinite;
}
.phone .play.hide {
  opacity: 0;
  pointer-events: none;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 22px rgba(47, 125, 70, 0);
  }
}
.tick {
  list-style: none;
  padding: 0;
}
.tick li {
  padding: 0.35rem 0 0.35rem 2rem;
  position: relative;
}
.tick li::before {
  content: "\F26A";
  font-family: bootstrap-icons;
  position: absolute;
  left: 0;
  color: #7ccf93;
}
.amen {
  background: #fff;
  border: 1px solid #e1ebe5;
  border-radius: 1rem;
  padding: 1.6rem 1.3rem;
  height: 100%;
  transition: 0.35s;
}
.amen:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 36px rgba(31, 90, 50, 0.14);
  border-color: transparent;
}
.amen i {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--soft);
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  margin-bottom: 1rem;
  transition: 0.35s;
}
.amen:hover i {
  background: var(--green);
  color: #fff;
  transform: rotate(-6deg);
}
.amen h5 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}
.amen p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}
.cta {
  --img: url("../images/clouds.jpg");
  --a: 0.78;
  --b: 0.88;
  text-align: center;
}
/* Gallery */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.filters button {
  border: 1px solid #cfdcd3;
  background: #fff;
  color: var(--ink);
  padding: 0.45rem 1.2rem;
  border-radius: 50rem;
  font-size: 0.85rem;
  transition: 0.25s;
}
.filters button:hover {
  border-color: var(--green);
}
.filters button.on {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.masonry {
  columns: 3 260px;
  column-gap: 1rem;
}
.m-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  position: relative;
  border-radius: 0.8rem;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--soft);
  animation: fadein 0.5s both;
}
.m-item img {
  width: 100%;
  display: block;
  transition: transform 0.7s;
}
.m-item:hover img {
  transform: scale(1.08);
}
.m-item .cap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  color: #fff;
  background: linear-gradient(transparent 45%, rgba(10, 22, 15, 0.8));
  opacity: 0;
  transition: 0.35s;
}
.m-item:hover .cap,
.m-item:focus-visible .cap {
  opacity: 1;
}
.m-item .cap i {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}
.m-item .cap b {
  font-family: var(--serif);
  font-size: 1.05rem;
}
.m-item .cap small {
  opacity: 0.8;
}
@keyframes fadein {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.lbx {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(8, 16, 11, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.3s;
}
.lbx.open {
  display: flex;
}
.lbx.in {
  opacity: 1;
}
.lbx figure {
  margin: 0;
  text-align: center;
  max-width: 92vw;
}
.lbx img {
  max-width: 92vw;
  max-height: 78vh;
  border-radius: 0.6rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: zoom 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes zoom {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.lbx figcaption {
  color: #fff;
  margin-top: 1rem;
  font-family: var(--serif);
  font-size: 1.2rem;
}
.lbx figcaption small {
  display: block;
  font-family: var(--sans);
  font-size: 0.78rem;
  opacity: 0.65;
}
.lbx button {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.3rem;
  transition: 0.25s;
}
.lbx button:hover {
  background: var(--green);
}
.lbx .x {
  top: 1.2rem;
  right: 1.2rem;
}
.lbx .pv {
  left: 1.2rem;
  top: 50%;
  margin-top: -23px;
}
.lbx .nx {
  right: 1.2rem;
  top: 50%;
  margin-top: -23px;
}
/* Contact */
.icard {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
  height: 100%;
  transition: 0.3s;
}
.icard:hover {
  transform: translateY(-6px);
}
.icard i {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.8rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 1.4rem;
}
.icard h5 {
  font-size: 1.05rem;
}
.icard a,
.icard span {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
}
.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
.map {
  border-radius: 1rem;
  overflow: hidden;
  min-height: 420px;
  box-shadow: 0 20px 50px rgba(22, 40, 31, 0.12);
}
.map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
}

#contact {
  padding: 5rem 0;
  color: #fff;
  background:
    linear-gradient(rgba(14, 30, 20, 0.72), rgba(14, 30, 20, 0.82)),
    url("../images/forest.jpg") center/cover;
  background-attachment: fixed;
  background-size: cover;
}
#contact .script {
  color: #7ccf93;
}
.ci {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}
.ci i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--green);
  border-radius: 0.4rem;
}
.form-box {
  background: #fff;
  color: var(--ink);
  border-radius: 0.7rem;
  padding: 1.6rem;
}
.form-box h5 {
  font-size: 1.1rem;
}
.form-control {
  font-size: 0.85rem;
}
.form-label {
  font-size: 0.75rem;
  margin-bottom: 0.2rem;
  color: var(--muted);
}

/* ---------- 7. Footer & utilities ---------- */
footer {
  background: var(--forest);
  color: rgba(255, 255, 255, 0.8);
  padding: 2.5rem 0 1.2rem;
  font-size: 0.82rem;
}
footer a {
  color: #fff;
  text-decoration: none;
  margin: 0 0.6rem;
}
.soc a {
  margin: 0 0.25rem;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
}
.soc a:hover {
  background: var(--green);
}
#top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  border: 0;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}
#top.show {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- 8. Responsive & accessibility ---------- */
@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--forest);
    padding: 1rem;
    border-radius: 0.8rem;
    margin-top: 0.6rem;
  }
  #facilities,
  #contact,
  .tour,
  .cta {
    --img: url("../images/clouds.jpg");
    --a: 0.78;
    --b: 0.88;
    text-align: center;
  }
}
@media (max-width: 767px) {
  .loc {
    display: none;
  }
}
@media (max-width: 575px) {
  .lbx .pv,
  .lbx .nx {
    top: auto;
    bottom: 1.2rem;
    margin: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}
