/* ========================================
   RESIDENCE I MARI — Stylesheet
   Inspired by maremmaresidence.com
   ======================================== */

/* --- RESET & BASE --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --c-primary: #1a5276;
  --c-primary-dark: #0e3a54;
  --c-primary-light: #2980b9;
  --c-accent: #c9a96e;
  --c-accent-light: #dfc598;
  --c-sand: #f5f0e8;
  --c-sand-dark: #e8dfd1;
  --c-white: #ffffff;
  --c-dark: #1a1a1a;
  --c-text: #3a3a3a;
  --c-text-light: #6b6b6b;
  --c-border: #e0dbd3;

  --f-heading: 'Cormorant Garamond', Georgia, serif;
  --f-body: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;

  --w-container: 1200px;
  --w-wide: 1400px;

  --t-fast: 0.2s;
  --t-normal: 0.35s;
  --t-slow: 0.6s;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--f-body);
  font-weight: 300;
  color: var(--c-text);
  background: var(--c-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast);
}

/* --- UTILITIES --- */
.container {
  max-width: var(--w-container);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: all var(--t-normal);
  white-space: nowrap;
}

.btn--primary {
  background: var(--c-primary);
  color: var(--c-white);
  border-color: var(--c-primary);
}
.btn--primary:hover {
  background: var(--c-primary-dark);
  border-color: var(--c-primary-dark);
}

.btn--outline {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-primary);
}
.btn--outline:hover {
  background: var(--c-primary);
  color: var(--c-white);
}

.btn--outline-light {
  background: transparent;
  color: var(--c-white);
  border-color: var(--c-white);
}
.btn--outline-light:hover {
  background: var(--c-white);
  color: var(--c-primary);
}

.btn--sm { padding: 10px 24px; font-size: 0.8rem; }
.btn--lg { padding: 16px 40px; font-size: 0.9rem; }
.btn--block { width: 100%; }

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--t-normal), box-shadow var(--t-normal);
}

.header.scrolled {
  background: var(--c-white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.header__inner {
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.header__logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.header__logo-name {
  font-family: var(--f-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--c-white);
  transition: color var(--t-normal);
}

.header__logo-sub {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  transition: color var(--t-normal);
}

.header.scrolled .header__logo-name { color: var(--c-primary); }
.header.scrolled .header__logo-sub { color: var(--c-text-light); }

.header__nav {
  display: flex;
  gap: 32px;
}

.header__link {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-white);
  position: relative;
  transition: color var(--t-normal);
}

.header__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width var(--t-normal);
}

.header__link:hover::after { width: 100%; }

.header.scrolled .header__link { color: var(--c-text); }
.header.scrolled .header__link:hover { color: var(--c-primary); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__actions .btn--primary {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-dark);
  font-size: 0.75rem;
}
.header__actions .btn--primary:hover {
  background: var(--c-accent-light);
  border-color: var(--c-accent-light);
}

.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header__burger span {
  width: 24px;
  height: 2px;
  background: var(--c-white);
  transition: all var(--t-normal);
}

.header.scrolled .header__burger span { background: var(--c-dark); }

/* --- MOBILE NAV --- */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: var(--c-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-normal);
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-nav__link {
  font-family: var(--f-heading);
  font-size: 2rem;
  color: var(--c-white);
  transition: color var(--t-fast);
}
.mobile-nav__link:hover { color: var(--c-accent); }

.mobile-nav__cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
}

.mobile-nav__cta .btn--outline {
  color: var(--c-white);
  border-color: var(--c-white);
}

/* --- HERO --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.hero__slide.active { opacity: 1; }

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.3) 0%,
    rgba(0,0,0,0.15) 40%,
    rgba(0,0,0,0.4) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--c-white);
  padding: 0 24px;
}

.hero__pre {
  font-family: var(--f-body);
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.3s forwards;
}

.hero__title {
  font-family: var(--f-heading);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.5s forwards;
}

.hero__sub {
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.7s forwards;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.9s forwards;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollPulse 2s infinite;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* --- SECTIONS --- */
.section {
  padding: 100px 0;
}

.section__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 12px;
}

.section__title {
  font-family: var(--f-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--c-dark);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section__subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--c-text-light);
  margin-bottom: 48px;
}

/* --- INTRO SECTION --- */
.section--intro {
  background: var(--c-sand);
}

.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.intro__desc {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
  color: var(--c-text);
}

.intro__badges {
  display: flex;
  gap: 24px;
  margin-top: 32px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--c-white);
  border-radius: 4px;
}

.badge__icon {
  font-size: 1.4rem;
}

.badge__text {
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--c-dark);
}

.badge__text small {
  font-weight: 300;
  color: var(--c-text-light);
}

.intro__images {
  position: relative;
  min-height: 500px;
}

.intro__img {
  overflow: hidden;
  border-radius: 4px;
}

.intro__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.intro__img:hover img {
  transform: scale(1.03);
}

.intro__img--main {
  width: 85%;
  height: 380px;
  position: relative;
  z-index: 1;
}

.intro__img--accent {
  width: 55%;
  height: 250px;
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 2;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}

/* --- APARTMENTS SECTION --- */
.section--apartments {
  background: var(--c-white);
}

.apartments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.apt-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow var(--t-normal), transform var(--t-normal);
}

.apt-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.apt-card__gallery {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.apt-card__img {
  height: 100%;
}

.apt-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.apt-card:hover .apt-card__img img {
  transform: scale(1.05);
}

.apt-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--c-primary);
  color: var(--c-white);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 2px;
}

.apt-card__body {
  padding: 24px;
}

.apt-card__title {
  font-family: var(--f-heading);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--c-dark);
  margin-bottom: 8px;
}

.apt-card__title a {
  color: inherit;
  text-decoration: none;
}
.apt-card__title a:hover { color: var(--c-primary); }

a.apt-card__gallery { display: block; }

.apt-card__meta {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.apt-card__meta span {
  font-size: 0.8rem;
  color: var(--c-text-light);
  padding: 4px 10px;
  background: var(--c-sand);
  border-radius: 2px;
}

.apt-card__desc {
  font-size: 0.9rem;
  color: var(--c-text-light);
  margin-bottom: 16px;
  line-height: 1.6;
}

.apt-card__amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.apt-card__amenities span {
  font-size: 0.75rem;
  color: var(--c-primary);
  border: 1px solid var(--c-primary);
  padding: 4px 10px;
  border-radius: 2px;
  letter-spacing: 0.02em;
}

/* --- SERVICES SECTION --- */
.section--services {
  background: var(--c-primary);
  color: var(--c-white);
}

.section--services .section__tag { color: var(--c-accent); }
.section--services .section__title { color: var(--c-white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}

.service {
  text-align: center;
  padding: 32px 24px;
}

.service__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  color: var(--c-accent);
}

.service__icon svg {
  width: 100%;
  height: 100%;
}

.service__title {
  font-family: var(--f-heading);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.service__desc {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
  opacity: 0.85;
}

/* --- CASTIGLIONE SECTION --- */
.section--castiglione {
  padding-bottom: 0;
}

.castiglione-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  max-width: var(--w-wide);
  margin: 40px auto 0;
  padding: 0 24px;
}

.castiglione-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.castiglione-card--hero {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

.castiglione-card--wide {
  grid-column: span 2;
}

.castiglione-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.castiglione-card:hover img {
  transform: scale(1.06);
}

.castiglione-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  color: var(--c-white);
  transform: translateY(10px);
  opacity: 0;
  transition: all var(--t-normal);
}

.castiglione-card:hover .castiglione-card__overlay {
  transform: translateY(0);
  opacity: 1;
}

.castiglione-card__overlay h3 {
  font-family: var(--f-heading);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.castiglione-card__overlay p {
  font-size: 0.85rem;
  font-weight: 300;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .castiglione-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .castiglione-card--hero {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16/9;
  }
  .castiglione-card--wide {
    grid-column: span 2;
  }
  .castiglione-card__overlay {
    transform: translateY(0);
    opacity: 1;
  }
}

/* --- GALLERY SECTION --- */
.section--gallery {
  padding-bottom: 80px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 8px;
  margin-top: 40px;
  max-width: var(--w-wide);
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

.gallery__item {
  overflow: hidden;
  cursor: pointer;
  border-radius: 2px;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.gallery__item:hover img {
  transform: scale(1.05);
}

.gallery__item--wide {
  grid-column: span 2;
}

.gallery__item--tall {
  grid-row: span 2;
}

/* --- LIGHTBOX --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-normal);
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: none;
  border: none;
  color: var(--c-white);
  cursor: pointer;
  font-size: 2.5rem;
  padding: 16px;
  transition: opacity var(--t-fast);
  z-index: 2001;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { opacity: 0.7; }

.lightbox__close { top: 16px; right: 24px; font-size: 2rem; }
.lightbox__prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 24px; top: 50%; transform: translateY(-50%); }

/* --- LOCATION SECTION --- */
.section--location {
  background: var(--c-sand);
}

.location {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.location__desc {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.location__list {
  list-style: none;
  margin-bottom: 32px;
}

.location__list li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  font-size: 0.95rem;
}

.location__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--c-accent);
  font-weight: 600;
}

.location__map {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

/* --- CONTACT SECTION --- */
.section--contact {
  background: var(--c-white);
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
}

.contact__desc {
  font-size: 1rem;
  color: var(--c-text-light);
  margin-bottom: 32px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact__item strong {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-light);
}

.contact__item a:hover { color: var(--c-primary); }

/* --- CONTACT FORM --- */
.contact-form {
  background: var(--c-sand);
  padding: 40px;
  border-radius: 4px;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form__field--full {
  margin-bottom: 24px;
}

.contact-form__field label {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-text-light);
}

.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
  font-family: var(--f-body);
  font-size: 0.95rem;
  font-weight: 300;
  padding: 12px 16px;
  border: 1px solid var(--c-border);
  border-radius: 2px;
  background: var(--c-white);
  color: var(--c-dark);
  transition: border-color var(--t-fast);
  outline: none;
}

.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus {
  border-color: var(--c-primary);
}

.contact-form__field textarea {
  resize: vertical;
}

/* --- FOOTER --- */
.footer {
  background: var(--c-dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer__brand {
  font-family: var(--f-heading);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--c-white);
  margin-bottom: 12px;
}

.footer__col h4 {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-white);
  margin-bottom: 16px;
}

.footer__col a {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  transition: color var(--t-fast);
}

.footer__col a:hover { color: var(--c-accent); }

.footer__col p {
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.footer__address {
  margin-top: 12px;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
}

/* --- ANIMATIONS (scroll reveal) --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s, transform 0.7s;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .apartments-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header__nav { display: none; }
  .header__actions .btn { display: none; }
  .header__burger { display: flex; }

  .hero__title { font-size: 2.8rem; }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

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

  .intro__images {
    min-height: 350px;
  }

  .intro__badges {
    flex-wrap: wrap;
  }

  .apartments-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }

  .gallery__item--wide,
  .gallery__item--tall {
    grid-column: span 1;
    grid-row: span 1;
  }

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

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

  .contact-form {
    padding: 24px;
  }

  .contact-form__row {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section {
    padding: 64px 0;
  }
}

@media (max-width: 480px) {
  .hero__title { font-size: 2.2rem; }

  .apt-card__gallery { height: 180px; }

  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }
}

/* ========================================
   BOTTOM BAR — GPS / PRENOTA / CHIAMA
   ======================================== */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  height: 64px;
  box-shadow: 0 -2px 20px rgba(0,0,0,0.15);
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.bottom-bar.hidden {
  transform: translateY(100%);
}

.bottom-bar__btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  font-family: var(--f-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: filter 0.2s;
}

.bottom-bar__btn:hover {
  filter: brightness(1.1);
}

.bottom-bar__btn svg {
  width: 22px;
  height: 22px;
}

.bottom-bar__btn--gps {
  background: #8B5E3C;
  color: var(--c-white);
}

.bottom-bar__btn--book {
  background: var(--c-primary);
  color: var(--c-white);
}

.bottom-bar__btn--call {
  background: #6B8E5A;
  color: var(--c-white);
}

/* Add padding to body so content doesn't hide behind bar */
body { padding-bottom: 64px; }

/* ========================================
   BOOKING MODAL
   ======================================== */
.booking-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.booking-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.booking-modal {
  background: var(--c-white);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 20px 20px 0 0;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.booking-overlay.open .booking-modal {
  transform: translateY(0);
}

.booking-modal__header {
  position: sticky;
  top: 0;
  background: var(--c-primary);
  color: var(--c-white);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 20px 20px 0 0;
}

.booking-modal__header h3 {
  font-family: var(--f-heading);
  font-size: 1.4rem;
  font-weight: 500;
}

.booking-modal__close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: var(--c-white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.booking-modal__close:hover {
  background: rgba(255,255,255,0.35);
}

.booking-modal__body {
  padding: 24px;
}

.booking-field {
  margin-bottom: 20px;
}

.booking-field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-light);
  margin-bottom: 8px;
}

.booking-field input,
.booking-field select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--c-sand);
  border-radius: 8px;
  font-family: var(--f-body);
  font-size: 1rem;
  color: var(--c-dark);
  background: var(--c-white);
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.booking-field input:focus,
.booking-field select:focus {
  outline: none;
  border-color: var(--c-primary);
}

.booking-field__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.booking-field__row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.booking-modal__submit {
  width: 100%;
  padding: 16px;
  background: var(--c-primary);
  color: var(--c-white);
  border: none;
  border-radius: 8px;
  font-family: var(--f-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-top: 8px;
}

.booking-modal__submit:hover {
  background: #143d59;
}

.booking-modal__submit:active {
  transform: scale(0.98);
}

.booking-modal__note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--c-text-light);
  margin-top: 12px;
}

.booking-modal__success {
  display: none;
  text-align: center;
  padding: 40px 24px;
}

.booking-modal__success.show {
  display: block;
}

.booking-modal__success svg {
  width: 64px;
  height: 64px;
  color: #6B8E5A;
  margin-bottom: 16px;
}

.booking-modal__success h4 {
  font-family: var(--f-heading);
  font-size: 1.5rem;
  color: var(--c-dark);
  margin-bottom: 8px;
}

.booking-modal__success p {
  color: var(--c-text);
  line-height: 1.6;
}

/* Desktop: center modal */
@media (min-width: 769px) {
  .booking-overlay {
    align-items: center;
  }
  .booking-modal {
    border-radius: 12px;
    max-height: 85vh;
    transform: translateY(30px);
    opacity: 0;
  }
  .booking-overlay.open .booking-modal {
    transform: translateY(0);
    opacity: 1;
  }
  .booking-modal__header {
    border-radius: 12px 12px 0 0;
  }
  /* Bottom bar less prominent on desktop */
  .bottom-bar { height: 56px; }
  body { padding-bottom: 56px; }
}
