/*=============== HOME - FULLSCREEN HERO SLIDER ===============*/

/* ── Section base ── */
#home,
.home {
  position: relative;
  width: 100%;
  min-height: 75vh;
  display: flex;
  align-items: center;
  padding: 0;
}

/* ── Fullscreen background swiper ── */
.home-bg-swiper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

/* Swiper wrapper must be full height for slide effect */
.home-bg-swiper .swiper-wrapper {
  height: 100%;
}

.home-bg-slide {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
}

/* Ken Burns zoom on active slide */
.home-bg-swiper .swiper-slide-active {
  animation: kenBurns 8s ease forwards;
}

@keyframes kenBurns {
  0% {
    transform: scale(1.06);
  }

  100% {
    transform: scale(1);
  }
}

/* ── Dark cinematic overlay ── */
.home__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg,
      rgba(5, 8, 20, 0.6) 0%,
      rgba(5, 8, 20, 0.4) 50%,
      rgba(5, 8, 20, 0.2) 100%);
}

/* Additional bottom gradient so special offers card reads well */
.home::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
  z-index: 2;
  background: linear-gradient(to top, rgba(5, 8, 20, 0.75) 0%, transparent 100%);
  pointer-events: none;
}

/* ── Content layer (over overlay) ── */
.home__content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 8rem;
}

/* ── Badge ── */
.home__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 166, 35, 0.15);
  border: 1px solid rgba(245, 166, 35, 0.45);
  color: #f5a623;
  padding: 0.45rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.home__badge i {
  font-size: 0.9rem;
}

/* ── Text swiper ── */
.home-text-swiper {
  width: 100%;
  overflow: hidden;
  margin-bottom: 0;
}

.home-text-swiper .swiper-wrapper {
  align-items: flex-start;
}

.home-text-swiper .swiper-slide {
  height: auto;
  width: 100% !important;
}

.home__title {
  font-size: clamp(1.8rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: #fff;
  font-weight: 800;
  max-width: 100%;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.home__title-main {
  display: block;
  white-space: nowrap !important;
}

/* ── CTA section title ── */
.cta__title {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.1;
  color: #fff;
  font-weight: 800;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  margin-inline: auto;
  text-align: center;
}

@media screen and (min-width: 1024px) {
  .cta__title {
    white-space: nowrap;
  }
}

.home__highlight {
  color: var(--second-color);
  text-shadow: 0 0 30px rgba(245, 166, 35, 0.4);
  display: block;
  white-space: nowrap !important;
}

/* ── Typing Cursor ── */
.typing-cursor {
  font-weight: 800;
  color: #fff;
  display: inline-block;
  margin-right: 2px;
  animation: cursorBlink 0.8s step-end infinite;
}

@keyframes cursorBlink {

  from,
  to {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* ── Hero description ── */
.home__description {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 2rem;
  max-width: 520px;
  line-height: 1.75;
  font-size: 1.05rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ── CTA Button ── */
.home__hero-btns {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  max-width: 520px;
}

.home__hero-btns-row {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  flex-wrap: wrap;
}

/* Override global .button — ghost style for hero */
.home__hero-btns-row .button {
  flex: 1;
  justify-content: center;
  white-space: nowrap;
  min-width: 150px;
  background: transparent !important;
  border: 1.5px solid rgba(255, 255, 255, 0.55) !important;
  color: #fff !important;
  box-shadow: none !important;
  backdrop-filter: blur(1px);
  position: relative;
  will-change: transform;
  backface-visibility: hidden;
  transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

@media (hover: hover) {
  .home__hero-btns-row .button:hover {
    background: var(--first-color) !important;
    border-color: var(--first-color) !important;
    color: #fff !important;
    box-shadow: 0 6px 24px rgba(0, 166, 153, 0.4) !important;
  }
}

.home__hero-btns-row .button:active {
  transform: scale(0.98);
}

/* Gold glow ghost for reviews button */
.home__hero-btns-row .button-rate {
  background: transparent !important;
  border: 1.5px solid rgba(245, 166, 35, 0.6) !important;
  color: #f5a623 !important;
  box-shadow: none !important;
  animation: none !important;
}

@media (hover: hover) {
  .home__hero-btns-row .button-rate:hover {
    background: linear-gradient(135deg, #f5a623, #e89216) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 6px 28px rgba(245, 166, 35, 0.55) !important;
  }
}

.home__hero-btns-row .button-rate:active {
  transform: scale(0.98);
}

/* ── Trust Bar ── */
.home__trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.home__trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

.home__trust-item i {
  color: var(--second-color);
  font-size: 1rem;
}

/* ── Pill pagination (bottom-center of section) ── */
.home-swiper-pagination {
  position: absolute !important;
  bottom: 4.5rem !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 20;
  display: flex;
  gap: 0.5rem;
  width: auto !important;
}

.home-swiper-pagination .swiper-pagination-bullet {
  width: 28px;
  height: 4px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.35);
  opacity: 1;
  margin: 0 !important;
  transition: background 0.4s ease, width 0.4s ease;
}

.home-swiper-pagination .swiper-pagination-bullet-active {
  background: var(--second-color);
  width: 52px;
  box-shadow: 0 0 12px rgba(245, 166, 35, 0.7);
}

/* ── Special Offers Card ── */
.home__special-offer {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  width: max-content;
  max-width: 95%;
  padding: 1.25rem 2rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(251, 191, 36, 0.25);
  background: rgba(8, 12, 28, 0.97);
  z-index: 200;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (hover: hover) {
  .home__special-offer:hover {
    transform: translate(-50%, 48%);
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
  }
}

.home__special-offer:active {
  transform: translate(-50%, 51%) scale(0.98);
}

.home__special-offer::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 1.25rem;
  background: linear-gradient(45deg,
      transparent 0%,
      rgba(251, 191, 36, 0.4) 25%,
      rgba(245, 158, 11, 0.6) 50%,
      rgba(251, 191, 36, 0.4) 75%,
      transparent 100%);
  background-size: 400% 400%;
  animation: goldGlow 4s ease-in-out infinite;
  z-index: -1;
  filter: blur(3px);
}

@keyframes goldGlow {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.home__special-title {
  color: #fbbf24;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.home__special-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.home__special-icon {
  color: #22c55e;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.home__special-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.home__special-text strong {
  color: #fff;
  font-size: 1rem;
  line-height: 1.2;
}

.home__special-text span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

/* ════════════════════════════════════
   TABLET (768px – 1023px)
════════════════════════════════════ */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .home__content {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 9rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .home__title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    max-width: 560px;
  }

  .home__description {
    display: block !important;
    text-align: left;
    margin-left: 0;
  }

  .home__hero-btns,
  .home__hero-btns-row {
    justify-content: flex-start !important;
    margin-left: 0 !important;
    align-items: flex-start !important;
  }

  .home-swiper-pagination {
    bottom: 4.5rem !important;
  }

  .home__special-offer {
    flex-direction: row;
    gap: 1.5rem;
    padding: 0.85rem 2rem;
  }

  .home__special-title {
    white-space: nowrap;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 1.5rem;
    font-size: 0.8rem;
  }
}

/* ════════════════════════════════════
   MOBILE (max 767px)
════════════════════════════════════ */
@media screen and (max-width: 767px) {

  #home,
  .home {
    min-height: 88svh;
  }

  .home__content {
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 8rem;
    max-width: 100%;
    text-align: left;
  }

  .home__title {
    font-size: clamp(1.75rem, 8vw, 2.4rem);
  }

  .home__description {
    font-size: 0.95rem;
    max-width: 100%;
  }

  .home__hero-btns {
    max-width: 100%;
  }

  .home__hero-btns-row {
    flex-direction: column;
    gap: 0.65rem;
  }

  .home__hero-btns-row .button:not(.button-rate),
  .button-rate {
    min-width: unset;
    width: fit-content;
    padding: 0.8rem 1.5rem;
  }

  .home__trust-bar {
    gap: 0.45rem 0.9rem;
  }

  .home__trust-item {
    font-size: 0.72rem;
  }

  .home-swiper-pagination {
    bottom: 7rem !important;
  }

  .home__special-offer {
    width: max-content;
    max-width: calc(100% - 3rem);
    padding: 1rem 1.5rem;
    gap: 0.5rem;
    bottom: 0;
    transform: translate(-50%, 50%);
    /* Restored vertical shift to match desktop look */
  }

  .home__special-title {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    justify-content: center;
  }

  .home__special-content {
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
    text-align: center;
  }

  .home__special-icon {
    display: none !important;
  }

  .home__special-text {
    align-items: center;
    white-space: normal;
    text-align: center;
  }

  .home__special-text strong {
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.15rem;
  }

  .home__special-text span {
    font-size: 0.75rem;
    display: block;
  }
}

/* ════════════════════════════════════
   DESKTOP (1024px+)
════════════════════════════════════ */
@media screen and (min-width: 1024px) {

  #home,
  .home {
    min-height: 88vh;
  }

  .home__content {
    padding-top: calc(var(--header-height) + 5rem);
    padding-bottom: 9rem;
  }

  .home__title {
    max-width: 700px;
  }

  .home__special-offer {
    flex-direction: row;
    gap: 3rem;
    padding: 1rem 3.5rem;
  }

  .home__special-title {
    white-space: nowrap;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 2.5rem;
    font-size: 0.95rem;
    margin-bottom: 0;
  }

  .home__special-icon {
    display: block !important;
  }

  .home__special-text strong {
    font-size: 1rem;
    white-space: nowrap;
  }

  .home__special-text span {
    font-size: 0.85rem;
    white-space: nowrap;
  }
}

/*=============== ABOUT ===============*/
.about {
  padding-top: 5rem;
}

.about__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.about__images {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about__img-wrapper {
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  background: var(--body-color);
}

.about__img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about__img--arch {
  width: 320px;
  max-width: 90%;
  height: 480px;
  border-radius: 200px 200px 20px 20px;
  border: 4px solid #fff;
  animation: floatUp 6s ease-in-out infinite;
}

.about__content {
  text-align: left;
}

.about__title {
  font-size: var(--h2-font-size);
  margin-bottom: 1.25rem;
  color: var(--title-color);
  line-height: 1.3;
}

.about__text {
  color: var(--text-color);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: var(--normal-font-size);
}

.about__highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 0.75rem;
  margin-top: 2rem;
}

@media screen and (max-width: 350px) {
  .about__highlights {
    grid-template-columns: 1fr;
  }
}

.about__highlight-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--small-font-size);
  font-weight: 500;
  color: var(--title-color);
}

.about__highlight-item i {
  font-size: 1.35rem;
  color: var(--first-color);
}

.about__highlight-item:nth-last-child(-n+3) {
  grid-column: span 2;
}

@media screen and (min-width: 1024px) {
  .about__container {
    grid-template-columns: 2fr 3fr;
  }

  .about__img--arch {
    width: 380px;
    height: 540px;
  }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
  .about__container {
    grid-template-columns: 2fr 3fr;
    gap: 2rem;
  }

  .about__img--arch {
    width: 280px;
    height: 400px;
  }
}

/*=============== ACCOMMODATIONS ===============*/
.accommodations {
  background-color: #faf9f7;
  /* Warm beige background as in reference */
  padding-bottom: 1.5rem;
}

@media screen and (min-width: 1024px) {
  .accommodations {
    padding-bottom: 5rem;
  }
}

.accommodations__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: flex-start;
}

.accommodations__subtitle {
  display: block;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-bold);
  color: rgb(255, 90, 0);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 2rem;
}

.accommodations__subtitle::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5rem;
  height: 2px;
  background-color: var(--second-color);
}

.accommodations__title {
  font-size: var(--h1-font-size);
  color: var(--title-color);
  margin-bottom: 2.5rem;
  font-family: var(--title-font);
}

.accommodations__featured {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.accommodations__img-box {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.accommodations__img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.accommodations__img-box:hover img {
  transform: scale(1.05);
}

.accommodations__data {
  text-align: left;
}

.accommodations__item-title {
  font-size: 1.5rem;
  color: var(--title-color);
  margin-bottom: 0.75rem;
  font-family: var(--title-font);
}

.accommodations__description {
  font-size: var(--small-font-size);
  color: var(--text-color);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 480px;
}

.accommodations__list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.accommodations__item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accommodations__explore-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #5c4b3a;
  color: #fff;
  padding: 0.75rem 1.75rem;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-semi-bold);
  transition: var(--transition);
  border-radius: 2px;
}

@media (hover: hover) {
  .accommodations__explore-btn:hover {
    background-color: #4a3c2e;
  }

  .accommodations__explore-btn:hover i {
    transform: translate(2px, -2px);
  }
}

/* New features section for accommodations */
.accommodations__features {
  display: flex;
  /* Shown on all screens now */
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.acc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--title-color);
  background: rgba(0, 166, 153, 0.08);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  border: 1px solid rgba(0, 166, 153, 0.15);
}

.acc-badge i {
  color: var(--first-color);
  font-size: 0.9rem;
}

@media screen and (min-width: 768px) {
  .accommodations__features {
    display: flex;
  }
}

@media screen and (min-width: 1024px) {
  .accommodations__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
  }

  .accommodations__list {
    margin-top: 5rem;
  }

  .accommodations__img--large {
    height: 520px;
  }

  .accommodations__img--small {
    height: 320px;
  }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
  .accommodations__container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .accommodations__list {
    margin-top: 5rem;
  }
}

@media screen and (max-width: 767px) {
  .accommodations__img--large {
    height: 350px;
  }

  .accommodations__img--small {
    height: 250px;
  }
}

/*=============== FACILITIES (POPULAR) ===============*/
.facilities__container {
  padding: 1rem 0 4rem;
}

.facilities__card {
  background-color: #fff;
  padding: .75rem .75rem 1.5rem;
  border-radius: 1.5rem;
  border: 1px solid var(--bg-low-light);
  transition: var(--transition);
}

.facilities__card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-5px);
}

.facilities__img {
  width: 100%;
  height: 220px;
  border-radius: 1rem;
  margin-bottom: 1.25rem;
  object-fit: cover;
}

.facilities__data {
  padding: 0 .5rem;
}

.facilities__title {
  font-size: var(--h3-font-size);
  margin-bottom: .5rem;
}

.facilities__description {
  font-size: var(--small-font-size);
  color: var(--text-color);
}

/*=============== VALUE (ACCORDION) ===============*/
.value__container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.value__img {
  position: absolute;
  width: 260px;
  height: 300px;
  overflow: hidden;
  border-radius: 130px 130px 12px 12px;
  inset: 0;
  margin: auto;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

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

.value__accordion {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
  margin-top: 2rem;
}

@media screen and (min-width: 768px) {
  .value__accordion {
    grid-template-columns: repeat(2, 1fr);
    align-items: flex-start;
  }
}

.value__accordion-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.value__accordion-item {
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 1rem;
  transition: var(--transition);
}

.value__accordion-header {
  display: flex;
  align-items: center;
  padding: 1.25rem;
  cursor: pointer;
}

.value__accordion-icon {
  background-color: var(--bg-low-light);
  color: var(--first-color);
  padding: .5rem;
  border-radius: .5rem;
  font-size: 1.25rem;
  margin-right: 1rem;
  transition: var(--transition);
}

.value__accordion-title {
  font-size: var(--normal-font-size);
  flex: 1;
}

.value__accordion-arrow {
  color: var(--first-color);
  font-size: 1.25rem;
  transition: var(--transition);
}

.value__accordion-content {
  overflow: hidden;
  height: 0;
  transition: var(--transition);
}

.value__accordion-description {
  padding: 0 1.25rem 1.25rem 3.75rem;
  font-size: var(--small-font-size);
  color: var(--text-color);
}

.accordion-open {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
  border-color: var(--first-color);
}

.accordion-open .value__accordion-icon {
  background-color: var(--first-color);
  color: #fff;
}

.accordion-open .value__accordion-arrow {
  transform: rotate(180deg);
}

/*=============== VILLA GALLERY ===============*/
.villa-gallery {
  background-color: #faf9f7;
  /* Light background as in Accommodations */
  padding-bottom: 5rem;
}

.villa-gallery__header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.villa-gallery__title {
  font-size: var(--h1-font-size);
}

.villa-gallery__description {
  font-size: var(--normal-font-size);
  color: var(--text-color);
  max-width: 600px;
  margin: 0 auto;
}

.villa-gallery__grid {
  display: grid;
  gap: 1.5rem;
}

.villa-gallery__img-box {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.villa-gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.villa-gallery__img-box:hover .villa-gallery__img {
  transform: scale(1.05);
}

/* Desktop Grid Layout (>1024px) */
@media screen and (min-width: 1024px) {
  .villa-gallery__grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 200px);
    /* Reduced height for a longer/horizontal look */
  }

  .villa-gallery__img-box:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
  }
}

/* Tablet Layout (768px - 1023px) */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .villa-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .villa-gallery__img-box:nth-child(1) {
    grid-column: span 2;
    height: 380px;
    /* Reduced from 420px */
  }

  .villa-gallery__img-box {
    height: 250px;
    /* Reduced from 280px */
  }

  .villa-gallery__btn-card {
    grid-column: span 2;
    width: 100%;
    max-width: 600px;
    height: auto !important;
    justify-self: center;
    padding: 3.5rem 2rem !important;
    /* Larger padding for high width look */
  }
}

/* Mobile Layout (<768px) */
@media screen and (max-width: 767px) {
  .villa-gallery__grid {
    grid-template-columns: 1fr;
  }

  .villa-gallery__img-box {
    height: 200px;
    /* Reduced from 240px */
  }

  .villa-gallery__img-box:nth-child(1) {
    height: 260px;
    /* Reduced from 300px */
  }

  .villa-gallery__btn-card {
    width: 100%;
    height: auto !important;
    justify-self: center;
    padding: 3rem 1.5rem !important;
  }
}

/* Button Styling (CU Tours Style) */
.villa-gallery__btn-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e5d5c5 0%, #d39d88 100%);
  /* Gradient background as requested */
  border-radius: 1.25rem;
  padding: 3rem 2rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.villa-gallery__btn-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.villa-gallery__btn-text {
  font-size: var(--h3-font-size);
  font-weight: var(--font-bold);
  color: var(--title-color);
}

.villa-gallery__button {
  background-color: #ff6b35;
  /* Orange as in CU Tours */
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 0.75rem;
  font-size: var(--normal-font-size);
  font-weight: var(--font-semi-bold);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition);
  box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.villa-gallery__button:hover {
  background-color: #f7931e;
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(255, 107, 53, 0.4);
}

/* Shake Animation */
.villa-gallery__button i {
  font-size: 1.25rem;
  animation: arrowShake 1.5s infinite;
}

@keyframes arrowShake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(4px);
  }

  75% {
    transform: translateX(-4px);
  }
}

/*=============== AMENITIES ===============*/
.amenities__container {
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.amenities__card {
  background-color: #f8fafc;
  /* light glassy grey background matching the image style */
  padding: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  transition: var(--transition);
}

.amenities__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
  border-color: var(--first-color);
}

.amenities__icon {
  width: 36px;
  height: 36px;
  background-color: var(--first-color);
  color: #fff;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 166, 153, 0.2);
}

.amenities__title {
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  line-height: 1.2;
}

@media screen and (min-width: 820px) {
  .amenities__container {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .amenities__card {
    padding: 1.5rem;
    border-radius: 1rem;
    gap: 1.25rem;
  }

  .amenities__icon {
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    border-radius: 10px;
  }

  .amenities__title {
    font-size: var(--normal-font-size);
    line-height: 1.3;
  }
}

/*=============== EXPLORE ===============*/
.explore {
  scroll-margin-top: calc(var(--header-height) + 0.1rem);
}

.explore__slider-container {
  overflow: hidden;
  margin-top: 1rem;
  margin-left: 1.5rem;
}

@media screen and (min-width: 1200px) {
  .explore__slider-container {
    margin-left: calc((100% - 1200px) / 2 + 1.5rem);
  }
}

@media screen and (min-width: 1668px) {
  .explore__slider-container {
    margin-left: calc((100% - 1600px) / 2 + 1.5rem);
  }
}

.explore__swiper {
  padding-bottom: 2.5rem;
}

.explore__card {
  position: relative;
  display: block;
  height: 420px;
  overflow: hidden;
  text-decoration: none;
  background-color: #f0f0f0;
  border-radius: 0.75rem;
}

.explore__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.explore__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  pointer-events: auto;
}

.explore__sub {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background-color: rgba(0, 0, 0, 0.45);
  padding: 0.5rem 0.8rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  width: 100%;
  text-align: center;
  transition: all 0.3s ease;
  pointer-events: auto;
  text-decoration: none;
}

.explore__btn-details {
  background-color: var(--first-color, #e07b33);
  border-color: var(--first-color, #e07b33);
}

.explore__btn-details:hover {
  background-color: #c96724;
  border-color: #c96724;
  transform: translateY(-2px);
}

.explore__btn-map:hover {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.explore__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 5rem 1.5rem 1.5rem 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
  /* Let clicks pass through to sub button */
}

.explore__name {
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

/* Re-enable clicks for the button */
}

@media (hover: hover) {
  .explore__card:hover .explore__img {
    transform: scale(1.05);
  }

  .explore__card:hover .explore__sub {
    background-color: var(--first-color);
    border-color: var(--first-color);
  }
}

.explore__sub i {
  font-size: 1rem;
  color: #fff;
}

/* Responsive Desktop */
@media screen and (min-width: 1024px) {
  .home__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    text-align: left;
  }

  .home__data {
    text-align: left;
  }

  .home__description {
    margin-left: 0;
  }

  .home__footer {
    justify-content: flex-start;
  }

  .value__container {
    padding: 0 2rem;
  }

  .amenities__container {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Mobile Alignment Polish (Phones only) */
@media screen and (max-width: 767px) {

  .home__data,
  .about__content {
    text-align: center;
  }

  .home__description,
  .about__text {
    margin-left: auto;
    margin-right: auto;
  }

  .home__hero-btns,
  .home__hero-btns-row {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  .home__whatsapp-bar {
    justify-content: center;
    gap: 1rem;
  }

  /* Center the about subtitle specifically */
  .about__content .section__subtitle {
    text-align: center !important;
  }
}

/*=============== MODAL STYLES ===============*/
.modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 28, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.modal.active-modal {
  opacity: 1;
  visibility: visible;
}

.modal__content {
  position: relative;
  background: #1a1e26;
  width: 100%;
  max-width: 550px;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0;
  transform: translateY(30px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

@media screen and (min-width: 992px) {
  .modal__content {
    max-height: 100vh;
    /* More height on desktop to avoid scroll */
  }
}

.modal.active-modal .modal__content {
  transform: translateY(0);
}

.modal__header {
  padding: 2.5rem 2.5rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.modal__body {
  padding: 1.5rem 2.5rem;
  overflow-y: auto;
  flex: 1;
  /* Custom Thin Scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--first-color) transparent;
}

.modal__body::-webkit-scrollbar {
  width: 5px;
}

.modal__body::-webkit-scrollbar-track {
  background: transparent;
}

.modal__body::-webkit-scrollbar-thumb {
  background: var(--first-color);
  border-radius: 10px;
}

.modal__body::-webkit-scrollbar-thumb:hover {
  background: var(--first-color-alt);
}

.modal__footer {
  padding: 1rem 2.5rem 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.modal__close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-size: 2.25rem;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__close:hover {
  color: #fff;
  transform: scale(1.1);
}

.modal__header .stays-card__title {
  padding-right: 3rem;
  /* Leave abundant room so title NEVER overlaps close button */
}

.modal__header .stays-card__title i.bxl-whatsapp {
  color: #25d366 !important;
  /* Authentic vibrant green WhatsApp brand color */
  font-size: 1.95rem;
  /* Larger pop size for the top icon */
  filter: drop-shadow(0 2px 8px rgba(37, 211, 102, 0.35));
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.modal__description {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Replicating Stays Form Styles */
.stays-card--form {
  background: transparent;
  padding: 0;
}

.stays-card__title {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stays-card__title i {
  color: var(--first-color);
}

.stays-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

@media screen and (max-width: 575px) {
  .modal {
    padding: 1rem;
  }

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

  .modal__body,
  .modal__footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .modal__header {
    padding-left: 1.5rem;
    padding-right: 3.5rem !important;
    /* Leave abundant right padding on mobile so close button NEVER overrides title text! */
    padding-top: 2rem;
  }

  .modal__close {
    top: 1rem;
    right: 1rem;
    font-size: 1.75rem;
    /* Sized beautifully for mobile */
  }

  .modal__footer {
    padding-bottom: 2rem;
  }
}

@media screen and (max-width: 430px) {
  .modal {
    padding: 0.75rem;
  }

  .modal__header {
    padding-left: 1.25rem;
    padding-right: 2.75rem !important;
    padding-top: 1.75rem;
  }

  .modal__body,
  .modal__footer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .modal__header .stays-card__title {
    font-size: 1.3rem !important;
    /* Scale down title text size to keep it on a single line! */
    gap: 0.5rem;
  }

  .modal__header .stays-card__title i.bxl-whatsapp {
    font-size: 1.65rem !important;
    /* Scale down green WhatsApp icon */
  }

  .modal__close {
    top: 0.85rem;
    right: 0.85rem;
    font-size: 1.75rem;
  }
}

@media screen and (max-width: 340px) {
  .modal {
    padding: 0.5rem;
  }

  .modal__header .stays-card__title {
    font-size: 1.15rem !important;
  }

  .modal__header .stays-card__title i.bxl-whatsapp {
    font-size: 1.5rem !important;
  }
}

.stays-form__group label {
  display: block;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.stays-form__input-box {
  position: relative;
  width: 100%;
}

.stays-form__input-box i {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: var(--first-color);
  font-size: 1.25rem;
  pointer-events: none;
}

.stays-form__input-box:has(textarea) i {
  top: 1.25rem;
  transform: none;
}

.stays-form__nights-count {
  margin: 0.5rem 0 1.5rem;
  animation: fadeIn 0.4s ease;
}

.nights-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 166, 153, 0.1);
  border: 1px solid rgba(0, 166, 153, 0.2);
  border-radius: 99px;
  color: var(--first-color);
  font-size: 0.85rem;
  font-weight: 600;
}

.nights-badge i {
  font-size: 1.1rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

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

.stays-form__group input,
.stays-form__group select,
.stays-form__group textarea {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  /* Extra left padding for the icon */
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.3s ease;
  outline: none;
}

.stays-form__group select {
  padding-right: 2.5rem;
  /* Space for the dropdown arrow */
  cursor: pointer;
}

.stays-form__group input:focus,
.stays-form__group select:focus,
.stays-form__group textarea:focus {
  border-color: var(--first-color);
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 0 4px rgba(0, 166, 153, 0.1);
}

.stays-form__group input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

/* Force date text visibility on mobile (iOS/Android) */
.stays-form__group input[type="date"]::-webkit-datetime-edit,
.stays-form__group input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.stays-form__group input[type="date"]::-webkit-datetime-edit-text,
.stays-form__group input[type="date"]::-webkit-datetime-edit-month-field,
.stays-form__group input[type="date"]::-webkit-datetime-edit-day-field,
.stays-form__group input[type="date"]::-webkit-datetime-edit-year-field {
  color: #fff !important;
  opacity: 1 !important;
}

.stays-form__group input[type="date"] {
  min-height: 3.2rem;
}

.stays-form__min-nights {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 1.5rem 0;
}

.stays-form__min-nights i {
  color: var(--first-color);
  font-size: 1.1rem;
}

.stays-form__submit {
  width: 100%;
  padding: 1.1rem;
  background: linear-gradient(135deg, var(--first-color) 0%, var(--first-color-alt) 100%);
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 166, 153, 0.2);
}

.stays-form__submit i.bxl-whatsapp {
  font-size: 1.6rem !important;
  /* Increased size from defaults */
  margin-right: 0.25rem;
  filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.2));
}

@media (hover: hover) {
  .stays-form__submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 166, 153, 0.3);
  }
}

@media screen and (min-width: 1668px) {
  .home__title {
    font-size: 5.5rem;
    /* Increased from 4.5rem */
  }

  .home__description {
    font-size: 1.15rem;
    max-width: 700px;
    /* Increased from 520px */
    margin-bottom: 3rem;
  }

  .home__hero-btns {
    max-width: 650px;
  }

  .home__hero-btns .button {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
  }

  .home__whatsapp-bar {
    max-width: 650px;
    padding: 0.8rem 1rem 0.8rem 1.5rem;
  }

  .home__whatsapp-info i {
    font-size: 2.25rem;
  }

  .home__whatsapp-info span {
    font-size: 1rem;
  }

  .button-message {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }

  .home__img--left,
  .home__img--right {
    width: 280px;
    /* Increased from 210px */
    height: 420px;
    /* Increased from 320px */
  }

  .home__grid {
    gap: 8rem;
    /* Balanced gap for ultra-wide */
  }
}

/* Small screen hero adjustment */
@media screen and (max-width: 380px) {
  .home__title {
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   LAYOUT BALANCING & BUG FIXES FOR HERO TRANSLATION
   ========================================================================== */

/* 1. RESTORE PREMIUM GAPS & BALANCE WITH 90VH MIN-HEIGHT ON DESKTOP */
@media screen and (min-width: 1024px) {

  #home,
  .home {
    min-height: 90vh !important;
    /* Balanced height so the overlapping card fits above the fold */
  }

  .home__content {
    padding-top: calc(var(--header-height) + 2.5rem) !important;
    /* Balanced top gap */
    padding-bottom: 6rem !important;
    /* Balanced bottom gap */
  }

  .home__badge {
    margin-bottom: 1.25rem !important;
    /* Balanced */
  }

  .home__title {
    margin-bottom: 1rem !important;
    /* Balanced */
    max-width: 980px !important;
    /* 3. WIDEN CONTAINER TO PREVENT PREMATURE TITLE WRAPPING */
  }

  .home__description {
    margin-bottom: 1.75rem !important;
    /* Balanced */
  }

  .home__hero-btns {
    margin-bottom: 1.75rem !important;
    /* Balanced */
  }

  .global-translator {
    margin-top: 1.5rem !important;
    /* Balanced */
    margin-bottom: 0.75rem !important;
    /* Balanced */
  }
}

/* 2. PREVENT LAYOUT JUMPING BY RESERVING SPACE FOR HERO DESCRIPTION */
.home__description {
  min-height: 4.5rem;
  /* Reserves space for 2-3 lines of text on desktop */
}

@media screen and (max-width: 767px) {
  .home__description {
    min-height: 5.5rem;
    /* Taller on mobile for narrower screen wrap */
  }
}

/* 3. POSITION SPECIAL OFFERS CARD WITH ELEGANT VERTICAL OVERLAP (NO CUT-OFF) */
.home__special-offer {
  bottom: 0 !important;
  transform: translate(-50%, 50%) !important;
  /* 50% vertical offset to overlap next section beautifully */
}

@media screen and (max-width: 767px) {
  .home__special-offer {
    bottom: 0 !important;
    transform: translate(-50%, 50%) !important;
  }
}

/* 4. GOOGLE TRANSLATE SPECIFIC ADJUSTMENTS */
html.translated-ltr .home__title,
html.translated-rtl .home__title {
  font-size: clamp(1.4rem, 4.5vw, 3.2rem);
}

html.translated-ltr .home__title-main,
html.translated-rtl .home__title-main,
html.translated-ltr .home__highlight,
html.translated-rtl .home__highlight {
  white-space: normal !important;
  word-break: break-word;
}

/* 5. PREVENT FOUT (FLASH OF UNTRANSLATED CONTENT) */
html.translation-pending .home-text-container {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Smooth transition when fading back in */
.home-text-container {
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* WIDEN HERO DESCRIPTION ON DESKTOP & TABLETS ONLY WHEN TRANSLATED TO PREVENT 3-LINE WRAPPING */
@media screen and (min-width: 768px) {

  html.translated-ltr .home__description,
  html.translated-rtl .home__description {
    max-width: 680px !important;
  }
}

/* DYNAMIC AUTO-WIDTH ADJUSTMENT FOR HERO BUTTONS WHEN TRANSLATED */
html.translated-ltr .home__hero-btns,
html.translated-rtl .home__hero-btns {
  max-width: 680px !important;
}

html.translated-ltr .home__hero-btns-row .button,
html.translated-rtl .home__hero-btns-row .button {
  flex: 0 0 auto !important;
  /* Keep buttons perfectly compact, matching their text size */
  min-width: max-content !important;
  padding: 1rem 1.5rem !important;
  /* Crisp, balanced side spacing */
}

html.translated-ltr .home__title-main,
html.translated-rtl .home__title-main,
html.translated-ltr .home__highlight,
html.translated-rtl .home__highlight {
  white-space: normal !important;
  word-break: break-word;
}

/* 5. PREVENT FOUT (FLASH OF UNTRANSLATED CONTENT) */
html.translation-pending .home-text-container {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Smooth transition when fading back in */
.home-text-container {
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* WIDEN HERO DESCRIPTION ON DESKTOP & TABLETS ONLY WHEN TRANSLATED TO PREVENT 3-LINE WRAPPING */
@media screen and (min-width: 768px) {

  html.translated-ltr .home__description,
  html.translated-rtl .home__description {
    max-width: 680px !important;
  }
}

/* DYNAMIC AUTO-WIDTH ADJUSTMENT FOR HERO BUTTONS WHEN TRANSLATED */
html.translated-ltr .home__hero-btns,
html.translated-rtl .home__hero-btns {
  max-width: 680px !important;
}

html.translated-ltr .home__hero-btns-row .button,
html.translated-rtl .home__hero-btns-row .button {
  flex: 0 0 auto !important;
  /* Keep buttons perfectly compact, matching their text size */
  min-width: max-content !important;
  padding: 1rem 1.5rem !important;
  /* Crisp, balanced side spacing */
}