/* Set up the overall text size and base typography */
html {
  font-size: 16px;
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
  line-height: 1.75;
  color: #2a2a2a;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: url('/images/front_view_day.jpeg') no-repeat center center fixed;
  background-size: cover;
}

h2, h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #1c1c1c;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

ul {
  padding-left: 1rem;
  list-style-type: none;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

ul li {
  padding-left: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

/* Header tweaks */
header > .bg-black {
  background-color: rgba(0, 0, 0, 0.5) !important;
  padding-bottom: 1.5rem;
}

header h1.f2 {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

header .tc-l.pv3.ph3.ph4-ns {
  padding-top: 0;
  padding-bottom: 0;
}

.flex-l > a[href="/"] {
  display: block;
  max-width: 180px;
  width: 35vw;
  height: auto;
  aspect-ratio: 402 / 313;
  background: url('/images/sapumal_lodge_logo.svg') no-repeat center center;
  background-size: contain;
  color: transparent !important;
  text-indent: -9999px;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0;
}

/* Burger menu styles */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  margin-left: auto;
  padding: 0.5rem;
  transition: transform 0.3s ease;
}

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

  .main-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    left: 0;
    z-index: 999;
    animation: fadeIn 0.25s ease-in-out;
  }

  .main-menu.open {
    display: flex;
  }

  .main-menu ul {
    background-color: rgba(0, 0, 0, 0.95);
    padding: 1.5rem;
    margin: 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .main-menu li {
    margin-bottom: 1rem;
  }
}

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

/* Content container */
main > article,
main > div {
  text-align: left !important;
  max-width: 90vw !important;
  margin: 1.5rem auto;
  padding: 2.5rem;
  background-color: rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

@media screen and (min-width: 30em) {
  div.pa3.pa4-ns.w-100.w-70-ns.center {
    width: 90% !important;
    max-width: 90% !important;
  }
}

aside.instapaper_ignoref {
  display: none;
}

/* Shared image styles with lightbox */
.room-photo,
.facility-photo,
.eco-photo,
.gallery-photo {
  width: 100%;
  max-width: 220px;
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
  cursor: pointer;
}

.room-photo:hover,
.facility-photo:hover,
.eco-photo:hover,
.gallery-photo:hover {
  transform: scale(1.03);
}

/* Flex layout for sections */
.room-flex,
.facility-flex,
.eco-flex,
.review-flex {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .room-flex,
  .facility-flex,
  .eco-flex,
  .review-flex {
    flex-direction: row;
    align-items: flex-start;
  }

  .room-text,
  .facility-text,
  .eco-text,
  .review-box {
    flex: 1;
  }

  .room-gallery,
  .facility-gallery,
  .eco-image {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }
}

/* Reviews section */
.review-flex {
  justify-content: center;
  text-align: center;
  margin: 2.5rem 0;
}

.review-box {
  max-width: 320px;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 280px;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.review-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1);
}

.review-logo {
  margin-bottom: 1rem;
}

/* Google Maps container */
.map-container iframe {
  width: 100% !important;
  height: auto;
  border: none;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  margin-top: 1.5rem;
  aspect-ratio: 4 / 3;
}

/* Safari prices layout */
.safari-prices-flex {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .safari-prices-flex {
    flex-direction: row;
    justify-content: space-between;
  }
}

.safari-prices-box {
  flex: 1;
  background: #f9f9f9;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.safari-prices-box h4 {
  margin-top: 0;
  font-size: 1.25rem;
  color: #1c1c1c;
}


.breakfast-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin: 2rem 0;
}



.breakfast-layout .bottom-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}


.breakfast-layout .top-image img {
  width: 100%;
  max-width: 540px; /* was 720px */
  border-radius: 16px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.breakfast-layout .bottom-row img {
  width: 100%;
  max-width: 260px; /* was 360px */
  border-radius: 16px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  justify-items: center;
  align-items: center;
  margin-top: 1.5rem;
}

@media (min-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}


form {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

form input,
form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.3rem;
  margin-bottom: 1.2rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

form button {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  background: #0077cc;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

form button:hover {
  background: #005fa3;
}

.contact-container {
  display: flex;
  max-width: 100%;
  overflow: hidden;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.contact-info, .contact-form {
  flex: 1 1 300px;
}

.contact-info h3, .contact-info h4 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact-info p, .contact-info a {
  margin: 0.25rem 0;
  font-size: 1rem;
  color: #222;
  line-height: 1.6;
}

.contact-info a {
  text-decoration: none;
  color: #004466;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  min-width: 0;  /* allow it to shrink on narrow screens */
}

.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-row input {
  flex: 1;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  margin: 0.5rem 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
}

.contact-form button {
  margin-top: 1rem;
  padding: 0.75rem;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

.contact-form button:hover {
  background: #0056b3;
}
