/* ===================================================
   A&Z Rentals — Design System & Styles
   Soft, light, professional, inviting
   =================================================== */

/* Google Fonts loaded via <link> in HTML for better performance */

/* ---------- Tokens ---------- */
:root {
  --bg: #FAF8F5;
  --bg-alt: #F1EDE8;
  --bg-card: #FFFFFF;
  --text: #2C2C2C;
  --text-muted: #6B6B6B;
  --text-light: #9A9590;
  --accent: #5B8C6A;
  --accent-hover: #4A7558;
  --accent-light: #E8F0EB;
  --accent-dark: #3D6149;
  --border: #E0DBD5;
  --border-light: #EDE9E4;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .07);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, .10);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, .12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: .3s cubic-bezier(.4, 0, .2, 1);
  --max-width: 1200px;
  --nav-height: 80px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
}

h1 {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 400;
  letter-spacing: -0.5px;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.3px;
}

h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
}

h4 {
  font-size: 1.2rem;
  font-weight: 600;
}

.section-subtitle {
  font-size: .75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 500;
  margin-bottom: .75rem;
}

.section-title {
  margin-bottom: 1rem;
}

/* ---------- Utility ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

.section-padding {
  padding: 5rem 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2.25rem;
  font-size: .8rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: none;
  transition: all var(--transition);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(91, 140, 106, .25);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(91, 140, 106, .35);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--accent);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-white:focus-visible {
  outline-color: #fff;
}

/* ===================================================
   NAVIGATION
   =================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(250, 248, 245, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: all var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(250, 248, 245, .97);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.nav-logo img {
  height: 48px;
  width: auto;
}

.nav-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .5px;
}

.nav-logo-text span {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: .65rem;
  color: var(--text-light);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: .8rem;
  font-weight: 400;
  color: var(--text);
  position: relative;
  padding: .3rem 0;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent);
}

.nav-links a:focus-visible::after {
  width: 100%;
}

.nav-links a:focus-visible {
  outline: none;
}

.nav-links a.active {
  color: var(--accent);
}

.nav-cta {
  padding: .65rem 1.5rem !important;
  font-size: .85rem !important;
}

.nav-links a.nav-cta.active,
.nav-links a.nav-cta:hover {
  color: #fff;
}

.nav-links a.nav-cta::after {
  display: none;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    padding: 6rem 2rem 2.5rem;
    gap: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
  }

  .nav-links a {
    text-align: left;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-mobile-contact {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
    width: 100%;
  }

  .nav-mobile-cta {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    padding: .85rem 1.25rem;
    border-radius: var(--radius-sm);
    background: var(--accent-light);
    color: var(--accent-dark) !important;
    font-size: .85rem;
    font-weight: 500;
    letter-spacing: .3px;
    text-transform: none !important;
    transition: all var(--transition);
  }

  .nav-mobile-cta::after {
    display: none !important;
  }

  .nav-mobile-cta:hover {
    background: var(--accent);
    color: #fff !important;
  }

  .nav-mobile-cta svg {
    flex-shrink: 0;
    color: var(--accent);
  }

  .nav-mobile-cta:hover svg {
    color: #fff;
  }
}

/* -- Mobile contact: hidden on desktop -- */
@media (min-width: 769px) {
  .nav-mobile-contact {
    display: none !important;
  }
}

/* ===================================================
   HERO
   =================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(20, 20, 15, .15) 0%,
      rgba(20, 20, 15, .45) 45%,
      rgba(20, 20, 15, .7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem 1.5rem;
}

.hero-badge {
  display: inline-block;
  background: transparent;
  color: rgba(255, 255, 255, .9);
  padding: .4rem 0;
  border-radius: 0;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, .35);
  padding-bottom: .5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .7), 0 4px 16px rgba(0, 0, 0, .5);
}

.hero h1 {
  margin-bottom: 1.5rem;
  color: #fff;
  font-size: clamp(3.4rem, 8vw, 5.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.5px;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, .8),
    0 4px 12px rgba(0, 0, 0, .6),
    0 8px 40px rgba(0, 0, 0, .5),
    0 16px 80px rgba(0, 0, 0, .3);
}

.hero-divider {
  width: 70px;
  height: 2px;
  background: #fff;
  margin: 0 auto 1.75rem;
  box-shadow: 0 0 12px rgba(255, 255, 255, .3);
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .95);
  margin-bottom: 2.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  letter-spacing: .3px;
  font-weight: 300;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .7), 0 4px 16px rgba(0, 0, 0, .5);
}

.hero-buttons {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .btn-primary {
  background: #fff;
  color: var(--text);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .3), 0 2px 6px rgba(0, 0, 0, .2);
  font-weight: 500;
  text-shadow: none;
}

.hero .btn-primary:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 28px rgba(0, 0, 0, .4);
}

.hero .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, .6);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .2);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}

.hero .btn-outline:hover {
  background: #fff;
  color: var(--text);
  border-color: #fff;
  text-shadow: none;
}

/* ===================================================
   FEATURED PROPERTY (Home)
   =================================================== */
.featured {
  background: var(--bg-alt);
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.featured-gallery {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.featured-gallery img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.featured-badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: var(--accent);
  color: #fff;
  padding: .45rem 1.2rem;
  border-radius: 50px;
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.featured-info h3 {
  margin-bottom: .5rem;
}

.featured-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1rem;
  letter-spacing: .5px;
}

.featured-info p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.featured-highlights {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.featured-highlight {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .9rem;
  color: var(--text-muted);
}

.featured-highlight svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

@media (max-width: 900px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }

  .featured-gallery img {
    height: 300px;
  }
}

/* ===================================================
   WHY BOOK DIRECT
   =================================================== */
.why-direct-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all var(--transition);
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.why-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.why-icon svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
}

.why-card h4 {
  margin-bottom: .5rem;
}

.why-card p {
  font-size: .9rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .why-direct-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================================
   ABOUT TEASER (Home) & ABOUT PAGE
   =================================================== */
.about-teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-teaser-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-teaser-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.about-teaser-text h2 {
  margin-bottom: 1rem;
}

.about-teaser-text p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .about-teaser-grid {
    grid-template-columns: 1fr;
  }
}

/* About page hero */
.page-hero {
  position: relative;
  height: 50vh;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: var(--nav-height);
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(20, 20, 15, .2) 0%,
      rgba(20, 20, 15, .5) 50%,
      rgba(20, 20, 15, .7) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.page-hero-content .section-subtitle {
  color: rgba(255, 255, 255, .85);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .7), 0 4px 16px rgba(0, 0, 0, .5);
}

.page-hero-content h1 {
  margin-bottom: .5rem;
  color: #fff;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, .8),
    0 4px 12px rgba(0, 0, 0, .6),
    0 8px 40px rgba(0, 0, 0, .5);
}

.page-hero-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .7), 0 4px 16px rgba(0, 0, 0, .5);
}

/* About content */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-story-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-story-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-story.reversed .about-story-img {
  order: 2;
}

.about-story.reversed .about-story-text {
  order: 1;
}

.about-story-text h2 {
  margin-bottom: 1rem;
}

.about-story-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.value-card .why-icon {
  margin-bottom: 1rem;
}

.value-card h4 {
  margin-bottom: .5rem;
}

.value-card p {
  font-size: .9rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .about-story {
    grid-template-columns: 1fr;
  }

  .about-values {
    grid-template-columns: 1fr;
  }
}

/* ===================================================
   PROPERTIES PAGE
   =================================================== */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.property-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.property-card-img {
  position: relative;
  overflow: hidden;
  height: 240px;
}

.property-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.property-card:hover .property-card-img img {
  transform: scale(1.05);
}

.property-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--accent);
  color: #fff;
  padding: .3rem .85rem;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  z-index: 2;
}

.property-card-badge.shared {
  background: #8B7355;
}

.property-card-badge.featured-tag {
  background: #C4964D;
}

.property-card-body {
  padding: 1.5rem;
}

.property-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: .4rem;
}

.property-card-location {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.property-card-location svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.property-card-meta {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.property-card-meta-item {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .85rem;
  color: var(--text-muted);
}

.property-card-meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.property-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.property-card-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.property-card-price span {
  font-size: .8rem;
  font-weight: 400;
  color: var(--text-muted);
}

.property-card-footer .btn {
  padding: .55rem 1.2rem;
  font-size: .82rem;
}

@media (max-width: 500px) {
  .properties-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================================
   BRUMA AZUL DETAIL PAGE
   =================================================== */
.detail-hero {
  margin-top: var(--nav-height);
  padding: 2rem 0 0;
}

.detail-hero-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.detail-hero-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.detail-hero-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}

.detail-hero-price span {
  font-size: .85rem;
  font-weight: 400;
  color: var(--text-muted);
}

.detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.detail-meta-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .95rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  padding: .5rem 1rem;
  border-radius: 50px;
}

.detail-meta-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 230px 230px;
  gap: .5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 3rem;
}

.gallery-grid .gallery-item {
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery-grid .gallery-item:first-child {
  grid-row: 1 / 3;
}

.gallery-grid .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.gallery-grid .gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-more {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px;
  }

  .gallery-grid .gallery-item:first-child {
    grid-column: 1 / 3;
    grid-row: auto;
  }
}

/* Detail content layout */
.detail-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
}

.detail-main h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.detail-main h2:first-child {
  border-top: none;
  padding-top: 0;
}

.detail-main p,
.detail-main li {
  color: var(--text-muted);
  margin-bottom: .75rem;
}

.detail-main ul {
  padding-left: 0;
}

.detail-main ul li {
  padding-left: 1.5rem;
  position: relative;
}

.detail-main ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: .7rem;
  top: .3rem;
}

/* Detail sidebar / booking card */
.detail-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
  align-self: start;
}

.booking-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.booking-card h3 {
  font-size: 1.2rem;
  margin-bottom: .3rem;
}

.booking-card .detail-hero-price {
  margin-bottom: 1.5rem;
}

.booking-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
}

.booking-card p.booking-note {
  font-size: .8rem;
  color: var(--text-light);
  text-align: center;
  margin-top: .75rem;
}

/* ---------- Price Calculator ---------- */
.price-calc-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 1rem 0;
}

.price-calc-dates .date-field {
  display: flex;
  flex-direction: column;
  padding: .6rem .75rem;
}

.price-calc-dates .date-field:first-child {
  border-right: 1px solid var(--border);
}

.price-calc-dates .date-field label {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text);
  margin-bottom: .2rem;
}

.price-calc-dates .date-field input[type="date"] {
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  color: var(--text);
  background: transparent;
  padding: 0;
  width: 100%;
  cursor: pointer;
}

.price-calc-breakdown {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin: 1rem 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.price-calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .9rem;
}

.price-calc-row .calc-label {
  color: var(--text-muted);
}

.price-calc-row .calc-value {
  font-weight: 600;
  color: var(--text);
}

.price-calc-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 700;
  padding-top: .75rem;
  margin-top: .25rem;
  border-top: 1px solid var(--border);
}

.price-calc-prompt {
  text-align: center;
  color: var(--text-light);
  font-size: .85rem;
  padding: 1rem 0;
  font-style: italic;
}

.price-calc-extras {
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid var(--border-light);
}

.price-calc-extras h4 {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
  margin-bottom: .5rem;
  font-family: 'Inter', sans-serif;
}

.price-calc-extras .extra-item {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  color: var(--text-muted);
  padding: .3rem 0;
}

.price-calc-extras .extra-item span:last-child {
  font-weight: 500;
  color: var(--text);
}

/* Amenities grid */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .9rem;
  color: var(--text-muted);
  padding: .75rem 1rem;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
}

.amenity-item svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

/* Room-by-room gallery sections */
.room-gallery {
  margin-bottom: 2rem;
}

.room-gallery h3 {
  font-size: 1.15rem;
  margin-bottom: .75rem;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  border: none;
  padding-top: 0;
}

.room-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.room-gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform .4s ease;
  cursor: pointer;
}

.room-gallery-grid img:hover {
  transform: scale(1.03);
}

@media (max-width: 600px) {
  .room-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .room-gallery-grid img {
    height: 140px;
  }
}

/* ===================================================
   PHOTO MODAL (Airbnb-style "Show All Photos")
   =================================================== */
.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

.photo-modal.open {
  opacity: 1;
  visibility: visible;
}

.photo-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 2;
}

.photo-modal-header h2 {
  font-size: 1.3rem;
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
}

.photo-modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition);
}

.photo-modal-close:hover,
.photo-modal-close:focus-visible {
  background: var(--bg-alt);
}

.photo-modal-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.photo-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

.photo-modal-section {
  margin-bottom: 2.5rem;
}

.photo-modal-section h3 {
  font-size: 1.15rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  margin-bottom: .75rem;
  color: var(--text);
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border-light);
}

.photo-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .5rem;
}

.photo-modal-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform .3s ease;
  cursor: pointer;
}

.photo-modal-grid img:hover {
  transform: scale(1.02);
}

@media (max-width: 600px) {
  .photo-modal-header {
    padding: 1rem;
  }

  .photo-modal-header h2 {
    font-size: 1.1rem;
  }

  .photo-modal-body {
    padding: 1rem;
  }

  .photo-modal-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-modal-grid img {
    height: 140px;
  }
}

/* "Show All Photos" button on gallery grid */
.gallery-show-all {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, .95);
  color: var(--text);
  border: 1px solid var(--border-light);
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 3;
  backdrop-filter: blur(4px);
}

.gallery-show-all:hover,
.gallery-show-all:focus-visible {
  background: #fff;
  box-shadow: var(--shadow-md);
}

.gallery-show-all:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .detail-content {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    position: static;
  }
}

/* ===================================================
   LIGHTBOX
   =================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .9);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, .15);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: rgba(255, 255, 255, .3);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .15);
  border: none;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}

.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
  background: rgba(255, 255, 255, .3);
}

.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.lightbox-prev {
  left: 1.5rem;
}

.lightbox-next {
  right: 1.5rem;
}

.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .7);
  font-size: .9rem;
}

/* ===================================================
   CONTACT PAGE
   =================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.contact-form h2 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: .4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 140, 106, .12);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Form feedback messages */
.form-message {
  display: none;
}

.form-message-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  font-size: .85rem;
  margin-top: 1rem;
}

.form-message-error.visible {
  display: block;
}

.form-message-success {
  text-align: center;
  padding: 3rem 2rem;
}

.form-message-success.visible {
  display: block;
}

/* Contact sidebar */
.contact-sidebar h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.contact-info-item h4 {
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: .2rem;
}

.contact-info-item p {
  font-size: .9rem;
  color: var(--text-muted);
}

.contact-info-item a {
  color: var(--text-muted);
}

.contact-info-item a:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  background: #2C2C2C;
  color: rgba(255, 255, 255, .7);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: .9rem;
  margin-top: 1rem;
  line-height: 1.6;
}

.footer-brand .nav-logo {
  margin-bottom: .5rem;
}

.footer-brand .nav-logo img {
  filter: invert(1);
}

.footer-brand .nav-logo-text {
  color: #fff;
}

.footer-brand .nav-logo-text span {
  color: rgba(255, 255, 255, .5);
}

.footer h4 {
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.footer ul li {
  margin-bottom: .6rem;
}

.footer ul a {
  color: rgba(255, 255, 255, .6);
  font-size: .9rem;
  transition: color var(--transition);
}

.footer ul a:hover {
  color: #fff;
}

.footer-contact p {
  font-size: .9rem;
  margin-bottom: .5rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.footer-social {
  display: flex;
  gap: .75rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .7);
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  color: #fff;
}

.footer-social a svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 1.5rem 0;
  text-align: center;
  font-size: .82rem;
  color: rgba(255, 255, 255, .4);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================================
   ANIMATIONS
   =================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    transition: none;
    opacity: 1;
    transform: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===================================================
   SKIP LINK (Accessibility)
   =================================================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: #fff;
  padding: .75rem 1.5rem;
  border-radius: var(--radius-sm);
  z-index: 10002;
  font-size: .85rem;
  font-weight: 500;
  transition: top .2s ease;
}

.skip-link:focus {
  top: 1rem;
  color: #fff;
}

/* ===================================================
   QUICK FACTS CARD (Property Detail Sidebar)
   =================================================== */
.quick-facts {
  margin-top: 1.5rem;
  padding: 1.5rem;
}

.quick-facts h4 {
  margin-bottom: .75rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.quick-facts-list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.quick-facts-row {
  display: flex;
  justify-content: space-between;
  font-size: .9rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--border-light);
}

.quick-facts-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.quick-facts-label {
  color: var(--text-muted);
}

.quick-facts-value {
  font-weight: 600;
}

/* ===================================================
   HOW BOOKING WORKS (Contact Sidebar)
   =================================================== */
.booking-steps {
  background: var(--accent-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1rem;
}

.booking-steps h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  margin-bottom: .5rem;
  font-size: .95rem;
}

.booking-steps ol {
  padding-left: 1.25rem;
  list-style: decimal;
}

.booking-steps li {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: .4rem;
}

.booking-steps li:last-child {
  margin-bottom: 0;
}

/* ===================================================
   FORM FEEDBACK
   =================================================== */
.form-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
}

.form-success.visible {
  display: block;
}

.form-success-icon {
  width: 64px;
  height: 64px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.form-success-icon svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.form-success h2 {
  font-size: 1.5rem;
  margin-bottom: .5rem;
  border: none;
  padding-top: 0;
}

.form-success p {
  color: var(--text-muted);
  margin-bottom: .5rem;
}

.form-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  margin-bottom: 1rem;
  display: none;
}

.form-error.visible {
  display: block;
}

/* ---------- Flatpickr Theme Overrides ---------- */
.flatpickr-calendar {
  font-family: 'Inter', sans-serif;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  background: var(--bg-card);
  width: 100%;
  max-width: 320px;
}

.flatpickr-calendar.open {
  z-index: 100;
}

.flatpickr-months {
  padding: .25rem 0;
}

.flatpickr-months .flatpickr-month {
  color: var(--text);
  fill: var(--text);
  height: 36px;
}

.flatpickr-current-month {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
  font-weight: 600;
  color: var(--text);
  background: transparent;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  fill: var(--text-muted);
  color: var(--text-muted);
  padding: 8px 10px;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
  fill: var(--accent);
  color: var(--accent);
}

span.flatpickr-weekday {
  color: var(--text-muted);
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.flatpickr-day {
  color: var(--text);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  line-height: 36px;
  height: 36px;
  max-width: 36px;
  margin: 1px;
}

.flatpickr-day:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--accent-dark);
}

.flatpickr-day.today {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.flatpickr-day.today:hover {
  background: var(--accent-light);
  color: var(--accent-dark);
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
  color: #CDCAC6 !important;
  background: transparent !important;
  border-color: transparent !important;
  text-decoration: line-through;
  text-decoration-color: #CDCAC6;
  cursor: not-allowed;
  opacity: 1 !important;
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  color: var(--border);
}

.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover {
  background: var(--bg-alt);
  border-color: var(--bg-alt);
}

/* Ensure calendar fits within the booking card sidebar */
.booking-card .flatpickr-calendar {
  max-width: 100%;
}

/* Style the text inputs that Flatpickr enhances */
.price-calc-dates .date-field input[type="text"] {
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  color: var(--text);
  background: transparent;
  padding: 0;
  width: 100%;
  cursor: pointer;
}

.price-calc-dates .date-field input[type="text"]::placeholder {
  color: var(--text-light);
  font-size: .85rem;
}