/* =====================
   CSS RESET & VARIABLES
===================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0b1f3b;
  --gold: #c9a227;
  --dark: #1a1a1a;
  --light: #ffffff;
  --muted: #5f6f7a;
}

body {
  background-color: #fff9f0; /* very light cream */
  color: #111;               /* default text color */
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
}

/* =====================
   GLOBAL
===================== */

.container {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 0.4rem;
}

h1 {
  line-height: 1.3;
}

p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* =====================
   HEADER
===================== */

.header {
  background: linear-gradient(135deg, #0f3d2e 0%, #134a38 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  display: block;
  max-width: 170px;          /* scales down if needed */
  width: auto;               /* keeps aspect ratio */
  height: auto;              /* keeps aspect ratio */
  border-radius: 18px;       /* curved edges */
  border: 3px solid #c9a24a; /* gold border */
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #fff;
  cursor: pointer;
}

/* =====================
   NAV
===================== */

.nav-links li {
  padding: 1rem 0;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #111;
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
}

.nav-whatsapp {
  background: #b88a2e;
  color: #fff;
  padding: 4px 4px;
  font-weight: 400;
  text-decoration: none;
  font-size: 14px;
  display: inline-block;
}

/* =====================
   HERO SECTION
===================== */

.hero {
  position: relative;
  height: 90vh;
  min-height: 520px;
  overflow: hidden;
  color: #fff;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.hero-title {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  color: #111;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.gold-text {
  color: #c79a3b;
}

.hero-subtext {
  font-size: 18px;
  color: #2b2b2b;
  margin-bottom: 32px;
  max-width: 520px;
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #c79a3b;
  color: #fff;
  padding: 12px 22px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 1px;
  font-size: 14px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* =========================
   READY TO STAY SECTION
========================= */
.section.cta {
  background: #000; /* black background */
  color: #fff; /* default text white */
}

.section.cta h2 {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 15px;
}

.section.cta h2 .gold {
  color: #c9a227; /* gold text for STAY? */
}

.section.cta p {
  color: #ccc; /* light gray text for paragraph */
  margin-bottom: 25px;
}

.contact-info {
  margin-top: 30px;
}

.contact-info div {
  margin-bottom: 15px;
  color: #bbb;
}

.btn-gold {
  background: #c9a227;
  color: #000; /* optional: black text for contrast */
  padding: 16px;
  text-align: center;
  display: block;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 1px;
  margin-top: 20px;
  transition: 0.3s;
}

.btn-gold:hover {
  opacity: 0.85;
}

.btn-outline {
  border: 1px solid #c9a227; /* gold outline */
  padding: 16px;
  display: block;
  text-align: center;
  margin-top: 15px;
  text-decoration: none;
  color: #fff;
}

.form-card {
  border: 1px solid #444;
  padding: 30px;
  margin-top: 50px;
  background: #111; /* dark card background */
  border-radius: 8px;
}

.form-card h3 {
  font-size: 28px;
  margin-bottom: 25px;
  color: #fff;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #aaa;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  background: #11161c;
  border: 1px solid #333;
  color: #fff;
  font-family: inherit;
  border-radius: 6px;
}

.form-group textarea {
  min-height: 120px;
  resize: none;
}

/* =========================
   FOOTER
========================= */
footer {
  background: #000;
  color: #fff;
  padding: 60px 0 30px;
  margin-top: 80px;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #fff;
}

.footer p {
  color: #ccc;
}

.footer-links a {
  display: block;
  margin-bottom: 10px;
  text-decoration: none;
  color: #ccc;
}

.footer-links a:hover {
  color: #c9a227; /* gold hover */
}

.footer-bottom {
  border-top: 1px solid #333;
  margin-top: 40px;
  padding-top: 20px;
  color: #666;
  font-size: 14px;
}

/* =========================
   READY TO STAY SECTION FIX
========================= */
.section.cta {
  background: #000;       /* ensure black background */
  color: #fff;
  margin-bottom: 0;       /* remove bottom margin */
  padding-bottom: 50px;   /* adjust padding as needed */
}

footer {
  background: #000;       /* ensure footer is also black */
  margin-top: 0;          /* remove any extra top margin */
  padding-top: 60px;      /* keep your desired padding */
}

.footer-bottom .gold {
  color: #c9a227;
  text-decoration: none;
  font-weight: 600;
}

.footer-bottom .gold:hover {
  opacity: 0.85;
}

/* =========================
   INTRO SECTION - BELOW HERO
========================= */
.intro {
  background-color: #fff9f0; /* very light cream background */
  padding: 80px 20px;
  text-align: center;
}

.intro-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Decorative gold lines */
.intro-lines {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
}

.intro-lines span {
  display: block;
  width: 50px;
  height: 3px;
  background-color: #c9a227; /* gold */
  border-radius: 2px;
}

/* Heading */
.intro h1 {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
}

.intro h1 .gold {
  color: #c9a227; /* gold accent */
}

/* Paragraph */
.intro p {
  font-size: 18px;
  color: #333;
  font-weight: 500;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 30px auto;
}

/* Button/Link */
.intro-link {
  display: inline-block;
  background-color: #c9a227; /* gold button */
  color: #111;
  padding: 16px 28px;
  font-weight: 600;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: 8px;
  transition: 0.3s;
}

.intro-link:hover {
  opacity: 0.85;
}

/* =========================
   HOMEPAGE APARTMENTS
========================= */
.apartments-container {
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding: 80px 20px;
  background-color: #fff9f0; /* luxury light cream */
}

/* Individual apartment card */
.apartment-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}

.apartment-card:hover {
  transform: translateY(-5px);
}

/* Gallery image */
.apartment-gallery {
  position: relative;
  width: 100%;
  max-height: 400px;
  overflow: hidden;
}

.apartment-gallery img {
  width: 100%;
  display: block;
  border-radius: 12px 12px 0 0;
}

.gallery-count {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 600;
}

/* Apartment info */
.apartment-info {
  padding: 24px;
}

.apartment-info h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}

.apartment-info p {
  font-size: 16px;
  margin-bottom: 16px;
  color: #333;
}

.amenities-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.amenities-list li {
  font-size: 16px;
  margin-bottom: 8px;
}

.view-pricing {
  display: inline-block;
  text-decoration: none;
  background: #c9a227;
  color: #000;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 600;
  transition: opacity 0.3s;
}

.view-pricing:hover {
  opacity: 0.85;
}

/* ================= BOOKING MODAL ================= */

.booking-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.booking-modal.active {
  display: block;
}

.booking-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
}

.booking-box {
  position: relative;
  background: #fff;
  max-width: 650px;
  margin: 5% auto;
  padding: 30px;
  border-radius: 18px;
  animation: fadeUp 0.3s ease;
}

@keyframes fadeUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.booking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.booking-header span {
  cursor: pointer;
  font-size: 20px;
}

.booking-dates {
  display: flex;
  gap: 20px;
  margin: 20px 0;
}

.booking-dates input {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.apartment-option {
  display: flex;
  gap: 15px;
  align-items: center;
  border: 1px solid #eee;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
}

.apartment-option img {
  width: 70px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.modal-summary {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin: 20px 0;
}

.full-width {
  width: 100%;
}

/* =========================
   LUXURY GALLERY
========================= */

.luxury-gallery {
  padding: 80px 0;
  background: #111;
  color: #fff;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 2px;
}

.section-header p {
  color: #bbb;
  margin-top: 10px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-auto-rows: 250px;
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* changed from cover to contain */
  background: #000;      /* fills empty space nicely */
  transition: transform 0.6s ease;
}

/* Make some items bigger for luxury feel */
.gallery-item:nth-child(1) {
  grid-row: span 2;
}

.gallery-item:nth-child(4) {
  grid-column: span 2;
}

/* Video overlay */
.video-item .play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: #fff;
  background: rgba(0,0,0,0.3);
  transition: 0.3s;
}

.video-item:hover .play-icon {
  background: rgba(0,0,0,0.5);
}

/* =========================
   GALLERY VIEW MORE BUTTON
========================= */

.gallery-cta {
  text-align: center;
  margin-top: 50px;
}

.btn-view-more {
  display: inline-block;
  padding: 14px 34px;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: #c6a55c;
  border: 1px solid #c6a55c;
  transition: all 0.4s ease;
  position: relative;
}

.btn-view-more:hover {
  background: #c6a55c;
  color: #111;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(198,165,92,0.3);
}

/* =========================
   FULL GALLERY PAGE
========================= */

.full-gallery {
  padding: 100px 0;
  background: #111;
}

.full-gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.full-gallery .gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.4s ease;
}

.full-gallery .gallery-item video {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 12px;
}

.full-gallery .gallery-item:hover img,
.full-gallery .gallery-item:hover video {
  transform: scale(1.05);
}

/* =========================
   HOME REVIEWS SECTION
========================= */

.home-reviews {
  background: #f6f1e8; /* very light cream */
  padding: 100px 0;
}

.section-header.center {
  text-align: center;
  margin-bottom: 60px;
}

.section-header.center h2 {
  font-size: 32px;
  letter-spacing: 1px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

/* Review Card */
.review-card {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.review-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
}

/* Instagram Badge */
.instagram-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: linear-gradient(45deg,#f58529,#dd2a7b,#8134af,#515bd4);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Header */
.review-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.review-header img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.review-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.review-header span {
  font-size: 12px;
  color: #999;
}

/* Text */
.review-text {
  font-size: 15px;
  line-height: 1.7;
  color: #444;
  margin: 0;
}

/* =========================
   SOCIAL ICONS
========================= */

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  max-width: 40px;       /* Add this */
  max-height: 40px;      /* Add this */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #222;
  border-radius: 50%;
  color: #fff;
  transition: 0.3s ease;
}

.social-icons a:hover {
  background: #c9a227; /* gold hover */
  transform: translateY(-4px);
}

/* SVG inside icon */
.social-icons svg {
  width: 20px;
  height: 20px;
  max-width: 100%;   /* Add this */
  max-height: 100%;  /* Add this */
}

.map-fallback {
  text-align: center;
  margin-top: 10px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-item:nth-child(4) {
    grid-column: span 1;
  }
}

/* =========================
   DESKTOP LAYOUT
========================= */
@media(min-width:1024px){
  .apartments-container {
    flex-direction: column;
    gap: 80px;
  }

  .apartment-card {
    flex-direction: row;
  }

  .apartment-gallery,
  .apartment-info {
    flex: 1;
  }

  .apartment-gallery {
    max-height: none;
  }

  .apartment-info {
    padding: 40px;
  }
}

/* MOBILE LAYOUT */
@media(max-width:1023px){
  .apartment-card {
    flex-direction: column;
  }
  .apartment-gallery {
    max-height: 300px;
  }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .intro {
    padding: 60px 15px;
  }

  .intro h1 {
    font-size: clamp(28px, 8vw, 44px);
  }

  .intro p {
    font-size: 16px;
  }

  .intro-link {
    padding: 14px 24px;
    font-size: 14px;
  }

  .intro-lines span {
    width: 35px;
    height: 2.5px;
  }
}

/* =========================
   DESKTOP LAYOUT
========================= */
@media (min-width: 768px) {
  .cta-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 60px;
  }

  .cta-left,
  .cta-right {
    flex: 1;
  }

  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
    align-items: center;
  }

  .nav-links {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    list-style: none;
  }

  .nav-cta {
    margin-left: auto; /* pushes phone + WhatsApp to right */
  }

  .nav-phone {
    color: #fff; /* fix dark text on dark header */
  }
}

/* =====================
   RESPONSIVE
===================== */

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }

  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1100px;
  }

  .menu-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    display: flex;
    flex-direction: row;
    background: none;
    gap: 1.5rem;
    list-style: none;
  }

  .hero {
    height: 95vh;
  }
}

/* =====================
   MOBILE NAV
===================== */

@media (max-width: 1023px) {

  .nav {
    position: relative;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: linear-gradient(135deg, #0f3d2e 0%, #134a38 100%);
    display: none;
    flex-direction: column;
    text-align: center;
    padding-bottom: 1rem;
    list-style: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-cta {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
  }

  /* Show CTA when menu is open */
  .nav-links.open + .nav-cta {
    display: flex;
  }

  .nav-phone {
    color: #fff;
    justify-content: center;
  }

  .nav-whatsapp {
    width: 80%;
    margin: 0 auto;
  }
}

/* =========================
   MOBILE GALLERY FIX
========================= */
@media (max-width: 768px) {

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr); /* force 2 columns */
    grid-auto-rows: 180px; /* equal height */
  }

  /* Remove large spanning items on mobile */
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(4) {
    grid-column: span 1;
    grid-row: span 1;
  }

}