/* ============================================
   MIRAMAR VILLA 499 — SECTIONS
   ============================================ */

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: all var(--duration-normal) var(--ease-natural);
}

.site-header.transparent {
  background: transparent;
}

.site-header.scrolled {
  background: rgba(15, 32, 39, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.header-logo {
  display: flex;
  flex-direction: column;
}

.header-logo .logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.header-logo .logo-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.75rem;
  color: var(--golden-hour);
  letter-spacing: 0.05em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
  transition: color var(--duration-fast) var(--ease-natural);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--golden-hour);
  transition: width var(--duration-normal) var(--ease-natural);
}

.nav-link:hover {
  color: var(--text-white);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--text-white);
}

.nav-link.active::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-white);
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease-natural);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 32, 39, 0.98);
  z-index: 999;
  padding: calc(var(--header-height) + var(--space-3xl)) var(--space-xl) var(--space-xl);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-slow) var(--ease-natural);
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav .mobile-nav-link {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  color: var(--text-light);
  transition: color var(--duration-fast) var(--ease-natural);
}

.mobile-nav .mobile-nav-link:hover {
  color: var(--golden-hour);
}

/* ---------- HERO SECTION ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  max-height: 1200px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(15, 32, 39, 0.2) 0%,
    rgba(15, 32, 39, 0.1) 40%,
    rgba(15, 32, 39, 0.5) 70%,
    rgba(15, 32, 39, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-bottom: var(--space-4xl);
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.hero-location svg {
  width: 16px;
  height: 16px;
}

.hero h1 {
  color: var(--text-white);
  margin-bottom: var(--space-sm);
  max-width: 700px;
}

.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-lg);
  max-width: 560px;
  opacity: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero .tagline {
  color: rgba(245, 239, 224, 0.85);
  max-width: 560px;
  margin-bottom: var(--space-xl);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

/* Hero scroll hint */
.scroll-hint {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: float 2s ease-in-out infinite;
}

.scroll-hint .scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- OVERVIEW SECTION ---------- */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.overview-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.overview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
}

.overview-content .divider {
  margin: var(--space-lg) 0 var(--space-xl);
}

.overview-content p {
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.overview-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

.overview-feature {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(44, 120, 115, 0.08);
}

.overview-feature svg {
  width: 28px;
  height: 28px;
  color: var(--caribbean-teal);
  margin-bottom: var(--space-sm);
}

.overview-feature span {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-heading);
}

/* ---------- GALLERY SECTION ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 280px);
  gap: var(--space-md);
}

.gallery-grid .gallery-item:nth-child(1) {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.gallery-grid .gallery-item:nth-child(1) img {
  height: 100%;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-natural);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item .gallery-label {
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-md);
  padding: 6px 14px;
  background: rgba(15, 32, 39, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--duration-normal) var(--ease-natural);
}

.gallery-item:hover .gallery-label {
  opacity: 1;
  transform: translateY(0);
}

.gallery-cta {
  text-align: center;
  margin-top: var(--space-2xl);
}

/* ---------- AMENITIES SECTION ---------- */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

/* ---------- LOCATION SECTION ---------- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.location-map {
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 400px;
  background: var(--midnight-teal);
}

.location-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  min-height: 400px;
  filter: saturate(0.8) contrast(1.1);
}

.location-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.location-group-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-heading);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-xs);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid rgba(212, 168, 83, 0.25);
}

.location-group-title:first-child {
  margin-top: 0;
}

/* ---------- REVIEWS SECTION ---------- */
.reviews-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.reviews-badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 20px;
  background: rgba(212, 168, 83, 0.1);
  border-radius: var(--radius-full);
  border: 1px solid rgba(212, 168, 83, 0.2);
}

.reviews-badge .rating-number {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
}

.reviews-badge .rating-source {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

/* ---------- RATES SECTION ---------- */
.rates-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.rates-info h3 {
  margin-bottom: var(--space-md);
}

.rates-info p {
  margin-bottom: var(--space-lg);
  color: var(--text-muted);
  line-height: 1.7;
}

.rates-list {
  margin-bottom: var(--space-xl);
}

.rates-list li {
  display: flex;
  justify-content: space-between;
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.9375rem;
}

.rates-list .rate-label {
  color: var(--text-body);
}

.rates-list .rate-price {
  font-weight: 600;
  color: var(--text-heading);
}

/* ---------- FAQ SECTION ---------- */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
}

/* ---------- CTA SECTION ---------- */
.cta-section {
  position: relative;
  padding: var(--space-5xl) 0;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

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

.cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 32, 39, 0.85),
    rgba(15, 32, 39, 0.92)
  );
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.cta-content h2 {
  color: var(--text-white);
  margin-bottom: var(--space-lg);
}

.cta-content .tagline {
  color: rgba(245, 239, 224, 0.7);
  max-width: 560px;
  margin: 0 auto var(--space-2xl);
}

.contact-form {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.contact-form .form-input,
.contact-form .form-textarea,
.contact-form .form-select {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-light);
}

.contact-form .form-input:focus,
.contact-form .form-textarea:focus,
.contact-form .form-select:focus {
  border-color: var(--golden-hour);
  box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.15);
}

.contact-form .form-input::placeholder,
.contact-form .form-textarea::placeholder {
  color: rgba(245, 239, 224, 0.4);
}

.contact-form .form-label {
  color: var(--text-light);
}

.contact-form .form-submit {
  text-align: center;
  margin-top: var(--space-xl);
}

.contact-form .or-divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-xl) 0;
  color: rgba(245, 239, 224, 0.4);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-form .or-divider::before,
.contact-form .or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.quick-contact {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--deep-ocean);
  padding: var(--space-4xl) 0 var(--space-xl);
  color: var(--text-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand .logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: var(--space-xs);
}

.footer-brand .logo-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--golden-hour);
  font-size: 0.875rem;
  margin-bottom: var(--space-lg);
}

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(245, 239, 224, 0.6);
  line-height: 1.7;
  max-width: 300px;
}

.footer-heading {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--golden-hour);
  margin-bottom: var(--space-lg);
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(245, 239, 224, 0.6);
  transition: color var(--duration-fast) var(--ease-natural);
}

.footer-links a:hover {
  color: var(--text-white);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-size: 0.875rem;
  color: rgba(245, 239, 224, 0.6);
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--caribbean-teal);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  color: rgba(245, 239, 224, 0.4);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245, 239, 224, 0.5);
  transition: all var(--duration-fast) var(--ease-natural);
}

.footer-social a:hover {
  background: var(--caribbean-teal);
  color: var(--text-white);
}

.footer-social a svg {
  width: 16px;
  height: 16px;
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 32, 39, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--ease-natural);
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  transform: scale(0.95);
  transition: transform var(--duration-slow) var(--ease-natural);
}

.lightbox.open img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: var(--space-xl);
  right: var(--space-xl);
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: var(--text-white);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease-natural);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: var(--text-white);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease-natural);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev { left: var(--space-xl); }
.lightbox-next { right: var(--space-xl); }

.lightbox-counter {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}
