/* ============================================
   Reset & Base
============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: #ffffff;
  color: #1c2b3a;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ============================================
   Navbar (Sticky)
============================================ */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #10202e;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 30px;
}

/* The logo file is a transparent PNG, so it sits directly on the navy navbar (no white plate).
   The faint light edge keeps the logo's dark outline visible against the navy. */
.logo-link {
  display: inline-block;
  line-height: 0;
  border-radius: 6px;
  cursor: pointer;
}
.logo-link:focus-visible { outline: 2px solid #f4813f; outline-offset: 3px; }

.logo-img {
  display: block;
  height: 52px;
  width: auto;          /* keeps the logo's real proportions (no cropping/stretching) */
  max-width: 100%;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.55));
}

@media (max-width: 480px) {
  .logo-img { height: 42px; }
}

/* Groups the nav links + Book now button together on the right side */
.nav-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

/* The navbar is sticky (~76px tall), so without this offset the browser
   scrolls each anchor target flush to the top of the viewport and the
   navbar ends up covering the start of the section. */
#hero,
#about,
#location,
#how-to-book,
#contact {
  scroll-margin-top: 90px;
}

.nav-links {
  display: inline-flex;
  gap: 28px;
}

.nav-links a {
  color: #ffffff;
  font-size: 15px;
  font-weight: 300;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #f4813f;
}

.book-now-btn {
  background-color: #f4652a;
  color: #ffffff;
  border: none;
  padding: 10px 24px;
  border-radius: 25px 15px 25px 15px;
  font-size: 15px;
  font-weight: 300px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.book-now-btn:hover {
  background-color: #d9541c;
}

/* Hamburger menu (hidden on desktop) */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-toggle span {
  width: 26px;
  height: 3px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ============================================
   Hero Section
============================================ */
.hero {
  position: relative;
  background: url("../../images/resort/hero.jpg") center/cover no-repeat;
  padding: 60px 20px;
  overflow: hidden;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(16, 32, 46, 0.45);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  color: #ffffff;
  font-size: 32px;
  font-weight: 400;
  font-family: Georgia, 'Times New Roman', serif;
}

.hero-content h1 .highlight {
  color: #f4652a;
}

.hero-content h2 {
  color: #ffffff;
  font-size: 32px;
  font-weight: 400;
  font-family: Georgia, 'Times New Roman', serif;
  margin-bottom: 20px;
}

.hero-content p {
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
}

/* ============================================
   Areas Section
============================================ */
.areas {
  background-color: #e9e6de;
  padding: 60px 20px;
}

.section-title {
  text-align: center;
  color: #1c2b3a;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 40px;
}

.areas-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 60px;
  position: relative;
}

/* vertical divider effect sa gitna, tulad ng design */
.areas-grid::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background-color: #c9c5ba;
}

.area-item {
  text-align: center;
}

.area-images {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.area-img-game1 {
  flex: 1;
  height: 150px;
  background-color: #d3cfc4;
  border-radius: 4px;
  background: url("../../images/areas/game-1.jpg") center/cover no-repeat;
}

.area-img-game2 {
  flex: 1;
  height: 150px;
  background-color: #d3cfc4;
  border-radius: 4px;
  background: url("../../images/areas/game-2.jpg") center/cover no-repeat;
}

.area-img-bonding1 {
  flex: 1;
  height: 150px;
  background-color: #d3cfc4;
  border-radius: 4px;
  background: url("../../images/areas/bonding-1.jpg") center/cover no-repeat;
}

.area-img-bonding2{
  flex: 1;
  height: 150px;
  background-color: #d3cfc4;
  border-radius: 4px;
  background: url("../../images/areas/bonding-2.jpg") center/cover no-repeat;
}

.area-img-room1 {
  flex: 1;
  height: 150px;
  background-color: #d3cfc4;
  border-radius: 4px;
  background: url("../../images/areas/room-1.jpg") center/cover no-repeat;
}

.area-img-room2{
  flex: 1;
  height: 150px;
  background-color: #d3cfc4;
  border-radius: 4px;
  background: url("../../images/areas/room-2.jpg") center/cover no-repeat;
}

.area-img-pool1 {
  flex: 1;
  height: 150px;
  background-color: #d3cfc4;
  border-radius: 4px;
  background: url("../../images/areas/pool-1.jpg") center/cover no-repeat;
}

.area-img-pool2{
  flex: 1;
  height: 150px;
  background-color: #d3cfc4;
  border-radius: 4px;
  background: url("../../images/areas/pool-2.jpg") center/cover no-repeat;
}

.area-item h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.area-item p {
  font-size: 13px;
  color: #4a5568;
  max-width: 380px;
  margin: 0 auto;
}

/* ============================================
   Image Lightbox (Areas: Gaming/Bonding/Room/Pool)
   Reuses .modal-overlay/.modal-overlay.active for the
   backdrop — same pattern as the Log in/Sign up/Rules
   modals below.
============================================ */
.area-img-game1, .area-img-game2,
.area-img-bonding1, .area-img-bonding2,
.area-img-room1, .area-img-room2,
.area-img-pool1, .area-img-pool2 {
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-img {
  display: block;
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.lightbox-close-btn {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background-color: #ffffff;
  color: #1c2b3a;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: background-color 0.2s ease;
}

.lightbox-close-btn:hover {
  background-color: #f4652a;
  color: #ffffff;
}

/* ============================================
  How to Book Section
============================================ */
.htb-section{
  background: #e9e6de center/cover no-repeat;
  padding: 60px 20px;
}

.htb-inner{
  max-width: 1100px;
  margin: 0 auto;
}

.htb-inner h2{
  color: #1c2b3a;
  text-align: center;
  font-size: 32px;
  margin-bottom: 8px;
}

.htb-inner  p{
  color: #1c2b3a;
  text-align: center;
  margin-bottom: 35px;
  font-size: 15px;
}

.htb-steps{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.htb-card{
  background: #fff;
  border-radius: 14px;
  padding: 22px 16px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
  transition: transform .2s ease, box-shadow .2s ease;
}

.htb-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
}

.htb-step-num{
  width: 36px;
  height: 36px;
  line-height: 36px;
  border-radius: 50%;
  background: #0b6e7f;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  margin: 0 auto 12px;
}

.htb-card h3{
  font-size: 15px;
  margin-bottom: 8px;
  color: #111;
}

.htb-card p{
  color: #444;
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0;
}

/* ============================================
   About Section
============================================ */
.about {
  background-color:  #e9e6de;
  padding: 60px 20px 80px;
}

.about-card {
  max-width: 1100px;
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
}

.about-text {
  padding: 40px;
}

.about-text h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 18px;
  text-align: center;
}

.about-text p {
  font-size: 13px;
  color: #4a5568;
  line-height: 1.7;
}

.about-image-placeholder {
  height: 280px;
  background-color: #d3cfc4;
  background: url("../../images/resort/about.jpg") center/cover no-repeat;
}

/* ============================================
   Location Section
============================================ */
.location {
  background-color: #e9e6de;
  padding: 60px 20px 80px;
}

.location-card {
  max-width: 1100px;
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: stretch;
  overflow: hidden;
}

.location-map {
  height: 100%;
  min-height: 320px;
  background-color: #d3cfc4;
}

.location-map iframe {
  display: block;
}

.location-details {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.location-details h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1c2b3a;
  margin-bottom: 10px;
}

.location-address {
  font-size: 13px;
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 20px;
}

.location-info-row {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: #1c2b3a;
  margin-bottom: 8px;
}

.location-info-label {
  flex-shrink: 0;
  width: 70px;
  font-weight: 700;
  color: #0b6e7f;
}

.location-directions-btn {
  display: inline-block;
  align-self: flex-start;
  margin-top: 20px;
  background-color: #f4652a;
  color: #ffffff;
  border: none;
  padding: 10px 24px;
  border-radius: 25px 15px 25px 15px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.location-directions-btn:hover {
  background-color: #d9541c;
}

/* ============================================
   Responsive Design
============================================ */

/* Tablet */
@media (max-width: 992px) {
  .about-card {
    grid-template-columns: 1fr;
  }

  .about-image-placeholder {
    height: 220px;
  }

  .location-card {
    grid-template-columns: 1fr;
  }

  .location-map {
    min-height: 260px;
  }

}

/* Mobile */
@media (max-width: 768px) {
  .nav-right {
    gap: 0;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #10202e;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.active {
    max-height: 250px;
  }

  .nav-links a {
    padding: 15px 0;
    width: 100%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .menu-toggle {
    display: flex;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 24px;
  }

  .areas-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .areas-grid::before {
    display: none;
  }

  .area-images {
    flex-direction: row;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 10px 20px;
  }

  .book-now-btn {
    padding: 8px 18px;
    font-size: 13px;
  }

  .hero {
    padding: 40px 15px;
  }

  .about-text {
    padding: 25px;
  }

  .location-details {
    padding: 25px;
  }

  .location-map {
    min-height: 220px;
  }
}

/*===== Modal Styles (Log in / Sign up) ===== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay.active {
  display: flex;
}

.login-card,
.signup-card {
  position: relative;
  width: 340px;
  max-width: 88%;
  background: #FDF7F2;
  border-radius: 18px;
  padding: 28px 26px 32px;
  font-family: Arial, Helvetica, sans-serif;
  box-sizing: border-box;
}

.login-card *,
.signup-card * {
  box-sizing: border-box;
}

.close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 16px;
  height: 16px;
  display: inline-block;
}

.close-btn img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.login-title,
.signup-title {
  text-align: center;
  font-size: 19px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 22px;
}

.field-group {
  margin-bottom: 10px;
}

.field-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #3b5bfd;
  margin-bottom: 4px;
}

.field-input {
  width: 100%;
  padding: 7px 10px;
  border: 1.2px solid #1a1a1a;
  border-radius: 8px;
  font-size: 12px;
  outline: none;
  background: #fff;
}

.field-error {
  display: block;
  font-size: 10.5px;
  color: #d9271e;
  margin-top: 3px;
  min-height: 12px;
}

/* Password show/hide eye icon (Log in / Sign up) */
.password-field-wrap {
  position: relative;
}

.password-field-wrap .field-input {
  padding-right: 32px;
}

.toggle-password-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border: none;
  background: none;
  color: #6b7280;
  cursor: pointer;
}

.toggle-password-btn:hover {
  color: #f4652a;
}

.toggle-password-btn .icon-eye-off,
.toggle-password-btn.is-showing .icon-eye {
  display: none;
}

.toggle-password-btn.is-showing .icon-eye-off {
  display: block;
}

.forgot-password {
  display: block;
  text-align: left;
  font-size: 12px;
  color: #3b5bfd;
  text-decoration: none;
  margin: 2px 0 18px;
}

.forgot-password:hover {
  text-decoration: underline;
}

.login-btn,
.signup-btn {
  display: block;
  width: 100%;
  padding: 10px;
  background: #16222b;
  color: #fff;
  text-align: center;
  text-decoration: none;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
  border: none;
  cursor: pointer;
}

.signup-btn {
  margin: 18px 0 14px;
}

.login-btn:hover,
.signup-btn:hover {
  background: #223141;
}

.signup-link,
.login-link {
  display: block;
  text-align: center;
  font-size: 12px;
  color: #3b5bfd;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
}

.signup-link:hover,
.login-link:hover {
  text-decoration: underline;
}

/* ===== Sign up modal: pinalaki at pinaayos para kasya ang dagdag na fields ===== */
.signup-card {
  width: 380px;
  max-width: 92%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 24px 24px 26px;
}

/* Firstname / Lastname side by side, tulad ng quick-links two-column layout */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Checkbox row para sa Terms & Privacy */
.terms-group {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 4px 0 16px;
}

.terms-group input[type="checkbox"] {
  width: 13px;
  height: 13px;
  margin-top: 2px;
  accent-color: #16222b;
  flex-shrink: 0;
  cursor: pointer;
}

.terms-group label {
  font-size: 11px;
  color: #1a1a1a;
  line-height: 1.5;
}

.terms-group label a {
  color: #3b5bfd;
  font-weight: 600;
}

.terms-group label a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/*===== Rules and Guidelines ===== */

.rules-card{
  position: relative;
  width: 620px;
  max-width: 92%;
  max-height: 82vh;
  background-color: #ffffff;
  border-radius: 18px;
  padding: 30px 28px 26px;
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
 
.rules-card *{
  box-sizing: border-box;
}
 
.rules-header{
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 6px;
  flex-shrink: 0;
}
 
.rules-header h1{
  font-size: 20px;
  font-weight: 700;
  color: #10202e;
  text-align: center;
  margin: 0;
}
 
.rules-header .close-btn{
  position: absolute;
  top: -6px;
  right: -6px;
  width: 16px;
  height: 16px;
  display: inline-block;
}
 
.rules-header .close-btn img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
 
.rules-subtitle{
  text-align: center;
  color: #8a7f74;
  font-size: 12.5px;
  margin-bottom: 18px;
  flex-shrink: 0;
}
 
.rules-body{
  overflow-y: auto;
  padding-right: 6px;
  flex: 1;
}
 
.rules-body::-webkit-scrollbar{
  width: 6px;
}
 
.rules-body::-webkit-scrollbar-thumb{
  background: #d9cfc1;
  border-radius: 10px;
}
 
.rules-list{
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}
 
.rules-list li{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 6px;
  font-size: 13.5px;
  color: #3a3a3a;
  line-height: 1.5;
  border-bottom: 1px solid #ece3d6;
}
 
.rules-list li:last-child{
  border-bottom: none;
}
 
.rules-list li:hover{
  background: #f4ede3;
  border-radius: 8px;
}
 
.rules-bullet{
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  line-height: 22px;
  border-radius: 50%;
  background: #f4652a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}
 
.rules-note{
  background: #fdece0;
  border-left: 4px solid #f4652a;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 12.5px;
  color: #6b4a30;
  margin-bottom: 12px;
  line-height: 1.6;
}
 
.rules-agreement{
  background: #eef2f6;
  border-left: 4px solid #10202e;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 12px;
  color: #333;
  line-height: 1.7;
}
 
@media (max-width: 480px){
.rules-card{
  padding: 22px 18px 18px;
}
.rules-header h1{
  font-size: 17px;
}
}

/* ===== CSS-only X icon for the Log in / Sign up / Rules and Guidelines close buttons (no image file needed) ===== */

.login-card .close-btn img,
.signup-card .close-btn img,
.rules-card .close-btn img{
  display: none;
}

.login-card .close-btn,
.signup-card .close-btn,
.rules-card .close-btn{
  display: block;
}

.login-card .close-btn::before,
.login-card .close-btn::after,
.signup-card .close-btn::before,
.signup-card .close-btn::after,
.rules-card .close-btn::before,
.rules-card .close-btn::after{
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #1a1a1a;
  border-radius: 2px;
  transition: background-color 0.2s ease;
}

.login-card .close-btn::before,
.signup-card .close-btn::before,
.rules-card .close-btn::before{
  transform: translateY(-50%) rotate(45deg);
}

.login-card .close-btn::after,
.signup-card .close-btn::after,
.rules-card .close-btn::after{
  transform: translateY(-50%) rotate(-45deg);
}

.login-card .close-btn:hover::before,
.login-card .close-btn:hover::after,
.signup-card .close-btn:hover::before,
.signup-card .close-btn:hover::after,
.rules-card .close-btn:hover::before,
.rules-card .close-btn:hover::after{
  background-color: #f4652a;
}

/* ===== Shared paragraph/heading styling inside popup bodies (Rules, Terms, Privacy) ===== */
.rules-body h3{
  font-size: 14px;
  font-weight: 700;
  color: #10202e;
  margin: 16px 0 6px;
}

.rules-body h3:first-child{
  margin-top: 0;
}

.rules-body p{
  font-size: 13px;
  color: #4a5568;
  line-height: 1.65;
  margin-bottom: 10px;
}

/* ===== Numbered section design for Terms and Privacy Policy popups ===== */
.policy-section{
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 10px;
  border-bottom: 1px solid #ece3d6;
}

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

.policy-section:hover{
  background: #f4ede3;
  border-radius: 10px;
}

.policy-num{
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  line-height: 26px;
  border-radius: 50%;
  background: #10202e;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  margin-top: 2px;
}

.policy-content h3{
  margin: 0 0 6px;
}

.policy-content p{
  margin-bottom: 0;
}

.policy-section-highlight{
  background: #fdece0;
  border-radius: 10px;
  border-bottom: none;
}

.policy-section-highlight .policy-num{
  background: #f37c48;
}
/* ===== Forgot Password modal (reuses .login-card container/close-btn/
   .field-group/.field-input/.login-btn/.login-link styling above —
   these are just the extra bits unique to this modal) ===== */

.fp-subtitle {
  font-size: 12px;
  color: #4a4a4a;
  line-height: 1.5;
  margin: 0 0 16px;
}

.fp-subtitle strong {
  color: #1a1a1a;
}

.fp-message {
  font-size: 11.5px;
  line-height: 1.4;
  min-height: 0;
  margin: -2px 0 12px;
}

.fp-message:empty {
  display: none;
}

.fp-message.error {
  color: #d9271e;
}

.fp-message.success {
  color: #1c8a4b;
}

.fp-otp-input {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 8px;
}

#fpResendOtpBtn.is-disabled {
  pointer-events: none;
  opacity: 0.55;
}


/*===== Rental Rates modal (opened from the "Rental Rates" nav item) =====
   Built on the same card as Rules and Guidelines (.rules-card): white card,
   centered header with the CSS X close button, scrollable body. Only the
   rate content has its own styles below. */

body.rates-modal-open { overflow: hidden; }   /* the page behind never scrolls */

.rates-card {
  width: 520px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);            /* phones: the visible height */
}

.rates-body { padding-right: 4px; }

.rates-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.rates-card-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 14px;
  padding: 18px 10px;
  color: #ffffff;
}

.rates-card-day { background: linear-gradient(135deg, #f4813f, #f4652a); }
.rates-card-night { background: linear-gradient(135deg, #1c3347, #10202e); }

.rates-card-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 6px;
  filter: brightness(0) invert(1);            /* white icon on the colored card */
}

.rates-card-label { font-size: 14px; font-weight: 700; }
.rates-card-hours { font-size: 11.5px; opacity: 0.88; margin-top: 2px; }
.rates-card-price { font-size: 24px; font-weight: 700; margin-top: 10px; }

.rates-guest-info {
  background-color: #f4ede3;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rates-guest-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #3a3a3a;
}

.rates-section { margin-bottom: 16px; }

.rates-section h3 {
  font-size: 12.5px;
  color: #10202e;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.rates-inclusions-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}

.rates-inclusions-list li {
  position: relative;
  padding-left: 20px;
  font-size: 13px;
  color: #3a3a3a;
  line-height: 1.4;
}

.rates-inclusions-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: #2f9e5b;
  font-weight: 700;
}

.rates-room-rate {
  background: #fdece0;
  border-left: 4px solid #f4652a;
  border-radius: 8px;
  padding: 12px 14px;
}

.rates-room-rate h3 { margin-bottom: 4px; }

.rates-room-rate p {
  margin: 0;
  font-size: 12.5px;
  color: #6b4a30;
  line-height: 1.6;
}

/* Keyboard focus ring for the top-right X (the modal's only close button) */
.rates-card .close-btn:focus-visible {
  outline: 2px solid #f4652a;
  outline-offset: 4px;
  border-radius: 2px;
}

@media (max-width: 480px) {
  .rates-card { max-width: 94%; }
  .rates-cards { gap: 10px; }
  .rates-card-item { padding: 14px 8px; }
  .rates-card-price { font-size: 21px; }
  .rates-inclusions-list { grid-template-columns: 1fr; }
}

/* very short screens (phones held sideways) */
@media (max-height: 480px) {
  .rates-card { padding: 14px 16px 12px; }
}


/* ===== Fix: "How to book?" cards had a fixed 4-column grid on every screen size, which made the
   homepage wider than a phone screen (sideways scroll / zoomed-out page, and every popup looked
   cut off). They now drop to 2 columns on tablets and 1 column on phones. Desktop is unchanged. ===== */
@media (max-width: 768px) {
  .htb-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .htb-steps { grid-template-columns: 1fr; }
}


/* ===== Navbar on tablets: with the "Rental Rates" item there are six links, so between 769px and 920px
   the links get a little tighter (smaller gaps/text) to stay on ONE line instead of wrapping.
   Phones (<= 768px, hamburger menu) and desktop (> 920px) are untouched. nav fits on one line ===== */
@media (min-width: 769px) and (max-width: 920px) {
  .nav-container { padding: 12px 16px; }
  .nav-right { gap: 14px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 13px; white-space: nowrap; }
  .book-now-btn { padding: 8px 16px; font-size: 13px; white-space: nowrap; }
}


/* ===== Customer account icon + dropdown (navbar, logged-in customers only) ===== */
.account-menu {
  position: relative;
  margin-left: 16px;
  display: flex;
  align-items: center;
}
.account-menu[hidden] { display: none; }

.account-icon-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #e5e5e5;
  overflow: hidden;
  cursor: pointer;
  display: block;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.account-icon-btn:hover,
.account-icon-btn[aria-expanded="true"] { border-color: #f4813f; }
.account-icon-btn:focus-visible { outline: 2px solid #f4813f; outline-offset: 2px; }

.account-icon-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 140px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  padding: 6px;
  z-index: 1100;
}
.account-dropdown[hidden] { display: none; }

.account-dropdown-item {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  color: #10202e;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  border-radius: 7px;
  cursor: pointer;
}
.account-dropdown-item:hover,
.account-dropdown-item:focus-visible { background: #f1efe8; outline: none; }

.book-now-btn[hidden] { display: none; }

.account-logout-btn {
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: #d9271e;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  border-radius: 7px;
  cursor: pointer;
}
.account-logout-btn:hover { background: #fdecea; }
.account-logout-btn:disabled { opacity: 0.6; cursor: default; }

.terms-error { margin: -12px 0 12px 20px; min-height: 0; }
.terms-error:empty { display: none; }

@media (max-width: 768px) {
  .account-menu { margin-left: 10px; }
  .account-icon-btn { width: 36px; height: 36px; }
}
@media (min-width: 769px) and (max-width: 920px) {
  .account-menu { margin-left: 10px; }
  .account-icon-btn { width: 34px; height: 34px; }
}


/* ===== Log in popup: scroll on very short screens (it now also holds the Google button) ===== */
.login-card {
  max-height: 92vh;
  max-height: 92dvh;
  overflow-y: auto;
}
