/* ========================================
   SHELL-BASED UI ARCHITECTURE
   Core Layout System
   ======================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #ffffff;
  color: #1a1a1a;
  line-height: 1.6;
  padding-top: 12px;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Layout Container --- */
.page-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px;
}

section {
  padding: 12px 0;
}

/* ========================================
   SHELL SYSTEM
   ======================================== */

/* --- Base Shell --- */
.shell {
  --shell-radius: 32px;
  --shell-padding: 32px;
  --shell-bg: #f8f8f8;

  background-color: var(--shell-bg);
  border-radius: var(--shell-radius);
  padding: var(--shell-padding);
  position: relative;
  overflow: hidden;
}

/* --- Shell Variants --- */

/* Hero Shell - Large rounded container with background image */
.shell--hero {
  --shell-padding: 0;

  min-height: 68vh;
  background-color: #e8e8e8;
  display: flex;
  flex-direction: column;
}

/* Hero background layer */
.shell--hero .shell-bg {
  position: absolute;
  inset: 0;
  background-color: #d4d4d4;
  border-radius: inherit;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

/* Subtle gradient overlay for text readability */
.shell--hero .shell-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.08) 40%,
    rgba(0, 0, 0, 0) 100%
  );
  border-radius: inherit;
}

.shell--hero .shell-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  border-radius: inherit;
}

/* Hero content area */
.shell--hero .shell-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 48px;
  max-width: 100%;
}

/* Hero headline */
.shell--hero .hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.shell--hero .hero-title strong {
  font-weight: 500;
}

/* Hero subtitle */
.shell--hero .hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  max-width: none;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.hero-actions .btn--ghost {
  background-color: rgba(255, 255, 255, 0.8);
  color: #1a1a1a;
  border-color: #cccccc;
}

.hero-actions .btn--ghost:hover {
  background-color: rgba(255, 255, 255, 0.9);
  border-color: #bdbdbd;
}

/* ========================================
   HERO SEARCH BOX
   ======================================== */

.search-box {
  position: absolute;
  z-index: 10;
  bottom: -40px;
  left: 48px;
  right: 48px;
  max-width: 900px;
}

.search-box__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.search-box__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-box__label {
  font-size: 12px;
  font-weight: 500;
  color: #666666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.search-box__input {
  padding: 14px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  font-size: 15px;
  color: #1a1a1a;
  background-color: #fafafa;
  transition: border-color 0.2s, background-color 0.2s;
}

.search-box__input:focus {
  outline: none;
  border-color: #1a1a1a;
  background-color: #ffffff;
}

.search-box__input::placeholder {
  color: #999999;
}

/* CTA button in search box */
.search-box__cta {
  padding: 14px 28px;
  background-color: #1a1a1a;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s, transform 0.1s;
}

.search-box__cta:hover {
  background-color: #333333;
}

.search-box__cta:active {
  transform: scale(0.98);
}

/* ========================================
   HERO PILL OVERLAYS
   ======================================== */

.shell--hero .pill--left {
  top: 32px;
  left: 32px;
}

.shell--hero .pill--right {
  top: 32px;
  right: 32px;
}

/* Media Shell - Image dominant, aspect ratio */
.shell--media {
  --shell-padding: 0;

  aspect-ratio: 16 / 10;
  background-color: #e0e0e0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Media shell background layer */
.shell--media .shell-bg {
  position: absolute;
  inset: 0;
  background-color: #d0d0d0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: inherit;
}

.shell--media-tall {
  aspect-ratio: 4 / 5;
}

.shell--media-square {
  aspect-ratio: 1 / 1;
}

/* Studio Mare Info Shell */
.shell--studiomare-info {
  --shell-bg: #ffffff;
  --shell-padding: 48px 0;

  background-image: none;
  border-radius: 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.studiomare-info__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 32px;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 64px;
}

.studiomare-info__copy h2 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.studiomare-info__copy .meta {
  font-size: 0.95rem;
  color: #5b5b5b;
  margin-bottom: 18px;
}

.studiomare-info__desc {
  font-size: 1rem;
  color: #3f3f3f;
  line-height: 1.6;
  margin-bottom: 24px;
}

.studiomare-info__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.studiomare-info__card {
  background-color: #ffffff;
  border-radius: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.studiomare-info__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background-color: #111111;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;
  flex: 0 0 auto;
}

.studiomare-info__icon--guests {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><circle cx='8' cy='8' r='3'/><circle cx='16' cy='8' r='3'/><path d='M2 20c1.5-3 4.5-5 8-5s6.5 2 8 5'/></svg>");
}

.studiomare-info__icon--distance {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M12 21s6-5 6-10a6 6 0 1 0-12 0c0 5 6 10 6 10z'/><circle cx='12' cy='11' r='2'/></svg>");
}

.studiomare-info__icon--wifi {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M2.5 9.5a13 13 0 0 1 19 0'/><path d='M5.5 12.5a9 9 0 0 1 13 0'/><path d='M8.5 15.5a5 5 0 0 1 7 0'/><circle cx='12' cy='19' r='1'/></svg>");
}

.studiomare-info__icon--ac {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M12 2v20'/><path d='M4.5 5.5l15 13'/><path d='M19.5 5.5l-15 13'/></svg>");
}

.studiomare-info__card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 6px;
}

.studiomare-info__card p {
  font-size: 0.9rem;
  color: #5a5a5a;
  margin: 0;
}

.studiomare-info__video {
  aspect-ratio: 9 / 16;
  height: 68vh;
  width: auto;
  max-width: 100%;
  border-radius: 28px;
  background-color: #d7d1c9;
  background-image:
    linear-gradient(140deg, rgba(255, 255, 255, 0.7), transparent 50%),
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.55), transparent 45%);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  position: relative;
  justify-self: end;
  overflow: hidden;
}

.studiomare-info__video video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ========================================
   APARTMENT SECTION
   ======================================== */

#apartment .shell--media {
  aspect-ratio: 16 / 9;
  min-height: 560px;
}

#apartment .shell--media .shell-bg {
  background-image: url('../img/mare-entrance.webp');
}

#apartment .shell--media .shell-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.25);
  border-radius: inherit;
}

/* Apartment Card - Floating info overlay */
.apartment-card {
  position: absolute;
  z-index: 10;
  bottom: 32px;
  left: 32px;
  max-width: 420px;
  width: calc(100% - 64px);
}

.apartment-card__head {
  margin-bottom: 12px;
}

.apartment-card__head h2 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.apartment-card__head .meta {
  font-size: 0.875rem;
  color: #666666;
}

.apartment-card__desc {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #444444;
  margin-bottom: 16px;
}

/* Apartment Pills List */
.apartment-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-bottom: 20px;
}

.apartment-pills .pill {
  --pill-bg: #f5f5f5;
  --pill-padding: 6px 12px;

  font-size: 13px;
  font-weight: 400;
  backdrop-filter: none;
}

/* Apartment Card Bottom */
.apartment-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

/* Price Block */
.price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price__value {
  font-size: 1.75rem;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}

.price__unit {
  font-size: 0.875rem;
  color: #666666;
}

/* Apartment Card Actions */
.apartment-card__actions {
  display: flex;
  gap: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, transform 0.1s;
  white-space: nowrap;
  border: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background-color: #1a1a1a;
  color: #ffffff;
}

.btn--primary:hover {
  background-color: #333333;
}

.btn--ghost {
  background-color: transparent;
  color: #1a1a1a;
  border: 1px solid #e0e0e0;
}

.btn--ghost:hover {
  border-color: #1a1a1a;
  background-color: #fafafa;
}

/* ========================================
   GALLERY SECTION
   ======================================== */

.shell--gallery {
  --shell-bg: #f5f5f5;
  --shell-padding: 40px;
}

/* Section Header */
.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 32px;
}

.section-head h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.section-head p {
  font-size: 1rem;
  color: #666666;
  line-height: 1.5;
}

#how-it-works .how-it-works-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

#how-it-works .shell {
  --shell-padding: 48px;
}

#how-it-works .section-head {
  text-align: left;
  max-width: none;
  margin: 0 0 16px;
}

#how-it-works .section-head h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

#how-it-works .how-it-works-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

#how-it-works .how-it-works-copy {
  margin-top: 0;
}

#how-it-works .how-it-works-copy p {
  font-size: 1.0625rem;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

#how-it-works .how-it-works-copy p:last-child {
  margin-bottom: 0;
}

#how-it-works .how-it-works-colors {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
}

#how-it-works .how-it-works-color {
  padding: 12px 14px;
  border-left: 3px solid transparent;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

#how-it-works .how-it-works-color__title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.3;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

#how-it-works .how-it-works-color p {
  font-size: 0.95rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

#how-it-works .how-it-works-chip {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

#how-it-works .how-it-works-color--turquoise {
  border-left-color: #39d5d0;
  background: linear-gradient(90deg, rgba(57, 213, 208, 0.12) 0%, rgba(255, 255, 255, 0.04) 40%);
}

#how-it-works .how-it-works-color--green {
  border-left-color: #7fd96c;
  background: linear-gradient(90deg, rgba(127, 217, 108, 0.12) 0%, rgba(255, 255, 255, 0.04) 40%);
}

#how-it-works .how-it-works-color--yellow {
  border-left-color: #f3cd4f;
  background: linear-gradient(90deg, rgba(243, 205, 79, 0.12) 0%, rgba(255, 255, 255, 0.04) 40%);
}

@media (max-width: 1024px) {
  #how-it-works .shell {
    --shell-padding: 40px;
  }

  #how-it-works .how-it-works-layout {
    gap: 32px;
  }

  #how-it-works .section-head h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 768px) {
  #how-it-works .shell {
    --shell-padding: 32px;
  }

  #how-it-works .how-it-works-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  #how-it-works .how-it-works-color {
    padding: 10px 12px;
  }

  #how-it-works .how-it-works-color__title {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
  }

  #how-it-works .how-it-works-chip {
    align-self: flex-start;
  }
}

@media (max-width: 480px) {
  #how-it-works .shell {
    --shell-padding: 24px;
  }

  #how-it-works .section-head h2 {
    font-size: 1.35rem;
  }

  #how-it-works .how-it-works-copy p {
    font-size: 1rem;
  }

  #how-it-works .how-it-works-color__title,
  #how-it-works .how-it-works-color p {
    font-size: 0.9rem;
  }
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Gallery Tile */
.gallery-tile {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background-color: #e8e8e8;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.gallery-tile:focus-visible {
  outline: 3px solid #1a1a1a;
  outline-offset: 4px;
}

/* Gallery Image Placeholder */
.gallery-img {
  aspect-ratio: 4 / 3;
  background-color: #d8d8d8;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Tall tile variant */
.gallery-tile--tall {
  grid-row: span 2;
}

.gallery-tile--tall .gallery-img {
  aspect-ratio: auto;
  height: 100%;
  min-height: 100%;
}

/* Gallery Actions */
.gallery-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

/* Lightbox */
.is-lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 8, 0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 9999;
}

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

.lightbox__img {
  max-width: min(90vw, 1100px);
  max-height: 80vh;
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  background-color: #111111;
  object-fit: contain;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  color: #1a1a1a;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.5rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.lightbox__close {
  top: 24px;
  right: 24px;
  font-size: 1.75rem;
}

.lightbox__nav--prev {
  left: 32px;
}

.lightbox__nav--next {
  right: 32px;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  transform: scale(1.05);
  background: #ffffff;
}

.lightbox__close:focus-visible,
.lightbox__nav:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

/* ========================================
   LOCATION SECTION
   ======================================== */

.shell--location {
  --shell-bg: #f5f5f5;
  --shell-padding: 40px;
}

/* Location Stage - Contains map and floating card */
.location-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 24px;
  align-items: stretch;
}

/* Map Surface Placeholder */
.map-surface {
  width: 100%;
  height: 100%;
  min-height: 480px;
  border-radius: 24px;
  overflow: hidden;
}

.map-surface iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Location Card - Floating overlay */
.location-card {
  position: static;
  z-index: 10;
  max-width: none;
  width: 100%;
}

.location-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 16px;
}

/* Location List - Label/Value pairs */
.location-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.location-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.location-list li:last-child {
  border-bottom: none;
}

.location-list .label {
  font-size: 0.9375rem;
  color: #444444;
}

.location-list .value {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #1a1a1a;
}

/* Location Pills */
.location-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.location-pills .pill {
  --pill-bg: #f5f5f5;
  --pill-padding: 6px 12px;

  font-size: 13px;
  font-weight: 400;
  backdrop-filter: none;
}

/* Location Actions */
.location-actions {
  display: flex;
  gap: 8px;
}

.location-actions .btn {
  flex: 1;
}


/* ========================================
   STAY SECTION
   ======================================== */

.shell--stay {
  --shell-bg: #f5f5f5;
  --shell-padding: 40px;
}

/* Steps Grid - 2x2 on desktop */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

/* Step Card */
.step-card {
  background-color: #ffffff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* Step Card Top - Number and Pill */
.step-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

/* Step Number */
.step-no {
  font-size: 2rem;
  font-weight: 600;
  color: #d4d4d4;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* Step Card Pill */
.step-card__top .pill {
  --pill-bg: #f5f5f5;
  --pill-padding: 6px 12px;

  font-size: 12px;
  font-weight: 500;
  backdrop-filter: none;
}

/* Step Card Title */
.step-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
  line-height: 1.3;
}

/* Step Card Description */
.step-card p {
  font-size: 0.9375rem;
  color: #666666;
  line-height: 1.5;
  margin: 0;
}

/* Stay Actions */
.stay-actions {
  display: flex;
  gap: 12px;
}

/* ========================================
   BOOKING SECTION
   ======================================== */

.shell--booking {
  --shell-bg: #ffffff;
  --shell-padding: 40px;

  padding-bottom: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

#previo-booking-engine {
  border-radius: 0 0 24px 24px;
  overflow: hidden;
}

#previo-booking-engine iframe {
  display: block;
  max-width: 100%;
  max-height: 950px;
}

/* ========================================
   REVIEWS SECTION
   ======================================== */

.shell--reviews {
  --shell-bg: #f5f5f5;
  --shell-padding: 40px;
}

/* Reviews Grid */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

/* Review Card */
.review-card {
  background-color: #ffffff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* Featured Review Card */
.review-card--featured {
  grid-column: span 2;
  padding: 32px;
}

/* Review Top - Rating and Pill */
.review-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

/* Rating Stars */
.rating {
  font-size: 1rem;
  color: #1a1a1a;
  letter-spacing: 2px;
}

/* Review Card Pill */
.review-top .pill {
  --pill-bg: #f5f5f5;
  --pill-padding: 6px 12px;

  font-size: 12px;
  font-weight: 500;
  backdrop-filter: none;
}

/* Review Quote */
.review-quote {
  font-size: 1rem;
  line-height: 1.6;
  color: #444444;
  margin: 0 0 16px;
  padding: 0;
  border: none;
  flex: 1;
}

.review-card--featured .review-quote {
  font-size: 1.125rem;
  font-style: italic;
  color: #333333;
}

/* Review Meta */
.review-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.review-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1a1a1a;
}

.review-from {
  font-size: 0.875rem;
  color: #888888;
}

.review-from::before {
  content: '·';
  margin-right: 8px;
}

/* Reviews Actions */
.reviews-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.shell--contact {
  --shell-bg: #1c1e21;
  --shell-padding: 48px;
}

/* Contact Layout - 2 columns */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Contact Copy - Left side */
.contact-copy {
  color: #ffffff;
}

.contact-copy h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.contact-copy > p {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Contact Pills - Light on dark */
.contact-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.contact-pills .pill {
  --pill-bg: rgba(255, 255, 255, 0.1);
  --pill-color: rgba(255, 255, 255, 0.9);
  --pill-padding: 8px 14px;

  font-size: 13px;
  backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Contact Meta */
.contact-meta {
  margin-top: auto;
}

.contact-meta p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 8px;
}

.contact-meta p:last-child {
  margin-bottom: 0;
}

.contact-meta strong {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* Contact Form Card */
.contact-form {
  --card-bg: #ffffff;
  --card-padding: 32px;
}

/* Form Field */
.field {
  margin-bottom: 20px;
}

.field:last-of-type {
  margin-bottom: 24px;
}

.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  color: #1a1a1a;
  background-color: #fafafa;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: #7fafcb;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(127, 175, 203, 0.15);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #999999;
}

.field textarea {
  resize: vertical;
  min-height: 100px;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.form-actions .btn {
  flex: 1;
}

/* Form Note */
.form-note {
  font-size: 0.8125rem;
  color: #888888;
  text-align: center;
  margin: 0;
}

/* ========================================
   FOOTER SECTION
   ======================================== */

.shell--footer {
  --shell-bg: #f7f8f9;
  --shell-padding: 48px;

  overflow: visible;
}

/* Footer Top - 3 columns */
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

/* Footer Brand */
.footer-brand .MARE {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.footer-brand > p {
  font-size: 0.9375rem;
  color: #666666;
  line-height: 1.5;
  max-width: 280px;
}

/* Footer Nav & Contact */
.footer-nav h3,
.footer-contact h3 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-nav ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li,
.footer-contact li {
  margin-bottom: 10px;
}

.footer-nav li:last-child,
.footer-contact li:last-child {
  margin-bottom: 0;
}

.footer-nav a {
  font-size: 0.9375rem;
  color: #444444;
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}

.footer-nav a:hover {
  color: #1a1a1a;
}

.footer-contact li {
  font-size: 0.9375rem;
  color: #666666;
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-bottom p {
  font-size: 0.875rem;
  color: #888888;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 0.875rem;
  color: #888888;
}

.footer-links a {
  font-size: 0.875rem;
  color: #666666;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #1a1a1a;
}

/* Footer Watermark */
.footer-watermark {
  position: absolute;
  bottom: 24px;
  right: 32px;
  font-size: 8rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.025);
  letter-spacing: -0.02em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* Dark Shell - CTA blocks */
.shell--dark {
  --shell-bg: #1a1a1a;

  color: #ffffff;
}

/* Light variant */
.shell--light {
  --shell-bg: #ffffff;

  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Transparent shell for grid layouts */
.shell--transparent {
  --shell-bg: transparent;
  --shell-padding: 0;
}

/* ========================================
   FLOATING ELEMENTS
   ======================================== */

/* --- Floating Card --- */
.floating-card {
  --card-radius: 24px;
  --card-padding: 24px;
  --card-bg: #ffffff;

  background-color: var(--card-bg);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  position: relative;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.floating-card.apartment-card {
  position: absolute;
  bottom: 32px;
  left: 32px;
}

.floating-card--overlay {
  position: absolute;
  z-index: 10;
}

.floating-card--bottom-left {
  bottom: 32px;
  left: 32px;
}

.floating-card--bottom-right {
  bottom: 32px;
  right: 32px;
}

.floating-card--top-right {
  top: 32px;
  right: 32px;
}

.floating-card--center-bottom {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}

/* Compact card variant */
.floating-card--compact {
  --card-padding: 16px;
  --card-radius: 16px;
}

/* ========================================
   PILL / BADGE
   ======================================== */

.pill {
  --pill-bg: rgba(255, 255, 255, 0.95);
  --pill-color: #1a1a1a;
  --pill-radius: 100px;
  --pill-padding: 8px 16px;

  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--pill-bg);
  color: var(--pill-color);
  border-radius: var(--pill-radius);
  padding: var(--pill-padding);
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(8px);
}

.pill--dark {
  --pill-bg: rgba(0, 0, 0, 0.75);
  --pill-color: #ffffff;
}

.pill--accent {
  --pill-bg: #1a1a1a;
  --pill-color: #ffffff;
}

.pill--overlay {
  position: absolute;
  z-index: 10;
}

.pill--top-left {
  top: 24px;
  left: 24px;
}

.pill--top-right {
  top: 24px;
  right: 24px;
}

/* ========================================
   PROPERTY CARD
   ======================================== */

.property-card {
  --card-radius: 24px;

  background-color: #ffffff;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.property-card__media {
  aspect-ratio: 4 / 3;
  background-color: #e0e0e0;
  background-size: cover;
  background-position: center;
  position: relative;
}

.property-card__content {
  padding: 20px;
}

/* ========================================
   GRID LAYOUTS
   ======================================== */

.shell-grid {
  display: grid;
  gap: 16px;
}

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

.shell-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.shell-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Asymmetric grid */
.shell-grid--asymmetric {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
}

.shell-grid--asymmetric > *:first-child {
  grid-row: span 2;
}

/* ========================================
   INNER LAYOUT HELPERS
   ======================================== */

.shell__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.shell__header {
  margin-bottom: 24px;
}

.shell__body {
  flex: 1;
}

.shell__footer {
  margin-top: auto;
  padding-top: 24px;
}

/* Content positioning inside media shells */
.shell--media .shell__inner {
  padding: 32px;
  justify-content: flex-end;
}

/* ========================================
   HEADER SPECIFIC
   ======================================== */

/* ========================================
   HERO HEADER (inside hero section)
   ======================================== */

.hero-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 24px 32px;
}

.hero-header .MARE {
  grid-column: 1;
  justify-self: start;
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}

.hero-header nav {
  grid-column: 2;
  justify-self: center;
}

.hero-email {
  grid-column: 3;
  justify-self: end;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 6px 12px;
  white-space: nowrap;
}

.hero-email.btn--ghost {
  background-color: rgba(255, 255, 255, 0.8);
  color: #1a1a1a;
  border-color: #cccccc;
}

.hero-email.btn--ghost:hover {
  background-color: rgba(255, 255, 255, 0.9);
  border-color: #bdbdbd;
}

.hero-email__icon {
  width: 18px;
  height: 18px;
}

.hero-header nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-header nav a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s;
}

.hero-header nav a:hover {
  color: #ffffff;
}

.hero-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  z-index: 30;
  position: relative;
}

.hero-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background-color: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero-header.is-menu-open .hero-menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hero-header.is-menu-open .hero-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.hero-header.is-menu-open .hero-menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ========================================
   TERMS SECTION
   ======================================== */

#terms .shell {
  --shell-padding: 40px;
}

#terms h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 16px;
}

#terms ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#terms li {
  font-size: 0.9375rem;
  color: #444444;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

#terms li:last-child {
  border-bottom: none;
}

#terms p {
  font-size: 0.9375rem;
  color: #666666;
  line-height: 1.6;
}


/* ========================================
   SECTION SPACING
   ======================================== */

#hero {
  padding-top: 0;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .shell {
    --shell-radius: 24px;
    --shell-padding: 24px;
  }

  .shell--hero {
    min-height: 60vh;
  }

  .shell--hero .shell-content {
    padding: 32px;
  }

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

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

  /* Apartment 1024px */
  #apartment .shell--media {
    min-height: 480px;
  }

  .apartment-card {
    max-width: 380px;
    bottom: 24px;
    left: 24px;
  }

  .shell--studiomare-info {
    --shell-padding: 40px 0;
  }

  .studiomare-info__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
    padding: 0 48px;
  }

  .studiomare-info__video {
    height: 60vh;
  }

  .studiomare-info__copy h2 {
    font-size: 1.75rem;
  }

  /* Gallery 1024px */
  .shell--gallery {
    --shell-padding: 32px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .gallery-tile--tall {
    grid-row: span 2;
  }

  /* Location 1024px */
  .shell--location {
    --shell-padding: 32px;
  }

  .map-surface {
    height: 420px;
  }

  .location-card {
    max-width: none;
  }

  /* Booking 1024px */
  .shell--booking {
    --shell-padding: 32px;
  }

  /* Stay 1024px */
  .shell--stay {
    --shell-padding: 32px;
  }

  .steps-grid {
    gap: 16px;
  }

  .step-card {
    padding: 24px;
  }

  /* Reviews 1024px */
  .shell--reviews {
    --shell-padding: 32px;
  }

  .reviews-grid {
    gap: 16px;
  }

  .review-card--featured {
    padding: 28px;
  }

  /* Contact 1024px */
  .shell--contact {
    --shell-padding: 40px;
  }

  .contact-layout {
    gap: 32px;
  }

  .contact-copy h2 {
    font-size: 1.75rem;
  }

  .contact-form {
    --card-padding: 28px;
  }

  /* Footer 1024px */
  .shell--footer {
    --shell-padding: 40px;
  }

  .footer-top {
    gap: 32px;
  }

  .footer-watermark {
    font-size: 6rem;
    right: 24px;
  }
}

@media (max-width: 768px) {
  .page-wrapper {
    padding: 0 12px;
  }

  section {
    padding: 8px 0;
  }

  .shell {
    --shell-radius: 20px;
    --shell-padding: 20px;
  }

  .shell--hero {
    min-height: 56vh;
  }

  .shell--hero .shell-content {
    padding: 24px;
    max-width: 100%;
  }

  .shell--hero .hero-title {
    font-size: 2rem;
    margin-top: -80px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .floating-card {
    --card-radius: 20px;
    --card-padding: 20px;
  }

  .floating-card--bottom-left,
  .floating-card--bottom-right {
    bottom: 20px;
    left: 20px;
    right: 20px;
  }

  .shell-grid--2,
  .shell-grid--3,
  .shell-grid--4 {
    grid-template-columns: 1fr;
  }

  .shell-grid--asymmetric {
    grid-template-columns: 1fr;
  }

  .shell-grid--asymmetric > *:first-child {
    grid-row: auto;
  }

  /* Hero header 768px */
  .hero-header {
    padding: 16px 18px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
  }

  .hero-header .MARE {
    grid-column: 1;
  }

  .hero-menu-toggle {
    display: inline-flex;
    position: absolute;
    top: 16px;
    right: 18px;
  }

  .hero-email {
    display: none;
  }

  .hero-header nav {
    grid-column: 1 / -1;
    width: 100%;
    display: none;
    background: rgba(10, 12, 15, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    padding: 10px 12px;
    margin-top: 44px;
    z-index: 20;
  }

  .hero-header.is-menu-open nav {
    display: block;
  }

  .hero-header nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .hero-header nav a {
    display: block;
    width: 100%;
    font-size: 0.95rem;
    padding: 8px 6px;
    color: #ffffff;
  }

  /* Terms 768px */
  #terms .shell {
    --shell-padding: 24px;
  }

  /* Apartment 768px - Component layout (image + content card) */
  #apartment .shell--media {
    aspect-ratio: auto;
    min-height: auto;
    --shell-padding: 24px;
    overflow: visible;
    background-color: #f8f8f8;
  }

  #apartment .shell--media .shell-bg {
    position: static;
    inset: auto;
    background: none;
    border-radius: inherit;
  }

  #apartment .shell--media .shell-bg::before {
    content: none;
  }

  #apartment .shell--media .shell-bg::after {
    display: none;
  }

  .apartment-card {
    position: relative;
    bottom: auto;
    left: auto;
    max-width: 100%;
    width: 100%;
    margin: 0;
  }

  #apartment .floating-card.apartment-card {
    position: static;
    bottom: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .apartment-card__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .apartment-card__actions {
    width: 100%;
  }

  .apartment-card__actions .btn {
    flex: 1;
  }

  .shell--studiomare-info {
    --shell-padding: 32px 0;
  }

  .studiomare-info__layout {
    grid-template-columns: 1fr;
    padding: 0 32px;
  }

  .studiomare-info__cards {
    grid-template-columns: 1fr;
  }

  .studiomare-info__copy {
    text-align: left;
  }

  .studiomare-info__video {
    height: 56vh;
    max-width: 360px;
    justify-self: center;
  }

  /* Gallery 768px */
  .shell--gallery {
    --shell-padding: 24px;
  }

  .section-head {
    margin-bottom: 24px;
  }

  .section-head h2 {
    font-size: 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .gallery-tile {
    border-radius: 20px;
  }

  .gallery-tile--tall {
    grid-row: auto;
  }

  .gallery-actions {
    margin-top: 24px;
    flex-direction: column;
  }

  .gallery-actions .btn {
    width: 100%;
  }

  /* Location 768px - Card becomes static below map */
  .shell--location {
    --shell-padding: 24px;
  }

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

  .map-surface {
    height: 280px;
    border-radius: 20px;
  }

  .location-card {
    position: static;
    max-width: 100%;
    width: 100%;
  }

  .location-actions {
    flex-direction: column;
  }

  /* Booking 768px */
  .shell--booking {
    --shell-padding: 24px;
  }

  /* Stay 768px */
  .shell--stay {
    --shell-padding: 24px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
  }

  .step-card {
    padding: 20px;
    border-radius: 20px;
  }

  .step-no {
    font-size: 1.75rem;
  }

  .stay-actions {
    flex-direction: column;
  }

  .stay-actions .btn {
    width: 100%;
  }

  /* Reviews 768px */
  .shell--reviews {
    --shell-padding: 24px;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
  }

  .review-card {
    padding: 20px;
    border-radius: 20px;
  }

  .review-card--featured {
    grid-column: auto;
    padding: 24px;
  }

  .review-card--featured .review-quote {
    font-size: 1rem;
  }

  .reviews-actions {
    flex-direction: column;
  }

  .reviews-actions .btn {
    width: 100%;
  }

  /* Contact 768px */
  .shell--contact {
    --shell-padding: 32px;
  }

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

  .contact-copy {
    text-align: center;
  }

  .contact-copy h2 {
    font-size: 1.5rem;
  }

  .contact-pills {
    justify-content: center;
  }

  .contact-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .contact-meta p {
    margin-bottom: 0;
  }

  .contact-form {
    --card-padding: 24px;
    --card-radius: 20px;
  }

  .form-actions {
    flex-direction: column;
  }

  /* Footer 768px */
  .shell--footer {
    --shell-padding: 32px;
  }

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

  .footer-brand {
    grid-column: span 2;
  }

  .footer-brand > p {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-watermark {
    font-size: 5rem;
    bottom: 16px;
    right: 16px;
  }
}

@media (max-width: 480px) {
  .shell {
    --shell-radius: 16px;
    --shell-padding: 16px;
  }

  .shell--hero {
    min-height: 52vh;
  }

  .shell--hero .shell-content {
    padding: 20px;
  }

  .shell--hero .hero-title {
    font-size: 1.6rem;
    margin-top: -48px;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .shell--hero .hero-subtitle {
    font-size: 0.95rem;
  }

  .floating-card {
    --card-radius: 16px;
    --card-padding: 16px;
  }

  .pill {
    --pill-padding: 6px 12px;
    font-size: 13px;
  }

  /* Apartment 480px */
  .apartment-card {
    margin-top: 0;
  }

  .apartment-card__head h2 {
    font-size: 1.25rem;
  }

  .price__value {
    font-size: 1.5rem;
  }

  .apartment-card__actions {
    flex-direction: column;
  }

  .apartment-card__actions .btn {
    width: 100%;
  }

  .apartment-pills .pill {
    font-size: 12px;
  }

  .shell--studiomare-info {
    --shell-padding: 24px 0;
  }

  .studiomare-info__copy h2 {
    font-size: 1.5rem;
  }

  .studiomare-info__desc {
    font-size: 0.95rem;
  }

  .studiomare-info__video {
    height: 52vh;
    max-width: 280px;
    border-radius: 20px;
  }

  .studiomare-info__layout {
    padding: 0 24px;
  }

  /* Gallery 480px */
  .shell--gallery {
    --shell-padding: 20px;
  }

  .section-head h2 {
    font-size: 1.35rem;
  }

  .section-head p {
    font-size: 0.9375rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gallery-tile {
    border-radius: 16px;
  }

  .gallery-img {
    aspect-ratio: 16 / 10;
  }

  /* Location 480px */
  .shell--location {
    --shell-padding: 20px;
  }

  .map-surface {
    height: 220px;
    border-radius: 16px;
  }

  .location-card h3 {
    font-size: 1rem;
  }

  .location-list .label,
  .location-list .value {
    font-size: 0.875rem;
  }

  .location-pills .pill {
    font-size: 12px;
  }

  /* Booking 480px */
  .shell--booking {
    --shell-padding: 20px;
  }

  /* Stay 480px */
  .shell--stay {
    --shell-padding: 20px;
  }

  .step-card {
    padding: 16px;
    border-radius: 16px;
  }

  .step-card__top {
    margin-bottom: 12px;
  }

  .step-no {
    font-size: 1.5rem;
  }

  .step-card h3 {
    font-size: 1rem;
  }

  .step-card p {
    font-size: 0.875rem;
  }

  .step-card__top .pill {
    font-size: 11px;
  }

  /* Reviews 480px */
  .shell--reviews {
    --shell-padding: 20px;
  }

  .review-card {
    padding: 16px;
    border-radius: 16px;
  }

  .review-card--featured {
    padding: 20px;
  }

  .review-top {
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .rating {
    font-size: 0.875rem;
  }

  .review-quote {
    font-size: 0.9375rem;
    margin-bottom: 12px;
  }

  .review-name {
    font-size: 0.875rem;
  }

  .review-from {
    font-size: 0.8125rem;
  }

  .review-top .pill {
    font-size: 11px;
  }

  /* Contact 480px */
  .shell--contact {
    --shell-padding: 24px;
  }

  .contact-layout {
    gap: 24px;
  }

  .contact-copy h2 {
    font-size: 1.35rem;
  }

  .contact-copy > p {
    font-size: 1rem;
  }

  .contact-pills .pill {
    font-size: 12px;
  }

  .contact-form {
    --card-padding: 20px;
    --card-radius: 16px;
  }

  .field {
    margin-bottom: 16px;
  }

  .field input,
  .field textarea {
    padding: 12px 14px;
    font-size: 16px;
    border-radius: 10px;
  }

  .form-note {
    font-size: 0.75rem;
  }

  /* Footer 480px */
  .shell--footer {
    --shell-padding: 24px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: auto;
    text-align: center;
  }

  .footer-brand > p {
    margin: 0 auto;
  }

  .footer-nav,
  .footer-contact {
    text-align: center;
  }

  .footer-nav h3,
  .footer-contact h3 {
    font-size: 0.75rem;
  }

  .footer-nav a,
  .footer-contact li {
    font-size: 0.875rem;
  }

  .footer-links {
    gap: 16px;
  }

  .footer-watermark {
    font-size: 3.5rem;
    bottom: 12px;
    right: 12px;
    opacity: 0.02;
  }

  /* Hero header 480px */
  .hero-header {
    padding: 14px 14px;
    gap: 8px;
  }

  .hero-menu-toggle {
    top: 14px;
    right: 14px;
  }

  .hero-header .MARE {
    font-size: 1rem;
  }

  /* Terms 480px */
  #terms .shell {
    --shell-padding: 20px;
  }

  #terms h3 {
    font-size: 0.9375rem;
  }

  #terms li,
  #terms p {
    font-size: 0.875rem;
  }
}

/* ========================================
   COOKIE CONSENT – Banner & Modal
   ======================================== */

/* ---- Banner ---- */
.cc-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background-color: #1a1a1a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 24px;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.3s ease;
  pointer-events: none;
}

.cc-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cc-banner__inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cc-banner__text p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  line-height: 1.5;
}

.cc-banner__text strong {
  color: #ffffff;
  font-weight: 600;
}

.cc-banner__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cc-banner .btn--primary {
  background-color: #ffffff;
  color: #1a1a1a;
}

.cc-banner .btn--primary:hover {
  background-color: #e8e8e8;
}

.cc-banner .btn--ghost {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.2);
}

.cc-banner .btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background-color: rgba(255, 255, 255, 0.06);
}

/* ---- Modal overlay ---- */
.cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 24px;
}

.cc-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.is-modal-open {
  overflow: hidden;
}

/* ---- Modal card ---- */
.cc-modal {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}

.cc-overlay.is-visible .cc-modal {
  transform: translateY(0) scale(1);
}

.cc-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cc-modal__header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.cc-modal__close {
  width: 36px;
  height: 36px;
  border: none;
  background: #f5f5f5;
  border-radius: 10px;
  font-size: 1.25rem;
  color: #666666;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color 0.2s, color 0.2s;
}

.cc-modal__close:hover {
  background-color: #e8e8e8;
  color: #1a1a1a;
}

.cc-modal__desc {
  font-size: 0.9375rem;
  color: #666666;
  line-height: 1.5;
  margin: 0 0 20px;
}

/* ---- Category rows ---- */
.cc-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid #f0f0f0;
}

.cc-category:last-of-type {
  border-bottom: 1px solid #f0f0f0;
}

.cc-category__info h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 4px;
}

.cc-category__info p {
  font-size: 0.8125rem;
  color: #888888;
  line-height: 1.4;
  margin: 0;
}

/* ---- Always-on label ---- */
.cc-always-on {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #888888;
  white-space: nowrap;
  background: #f5f5f5;
  padding: 6px 12px;
  border-radius: 100px;
}

/* ---- Toggle switch ---- */
.cc-switch {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 28px;
  cursor: pointer;
}

.cc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.cc-switch__slider {
  position: absolute;
  inset: 0;
  background-color: #d4d4d4;
  border-radius: 100px;
  transition: background-color 0.2s ease;
}

.cc-switch__slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.cc-switch input:checked + .cc-switch__slider {
  background-color: #1a1a1a;
}

.cc-switch input:checked + .cc-switch__slider::after {
  transform: translateX(20px);
}

.cc-switch input:focus-visible + .cc-switch__slider {
  outline: 3px solid #1a1a1a;
  outline-offset: 2px;
}

/* ---- Modal note ---- */
.cc-modal__note {
  font-size: 0.8125rem;
  color: #888888;
  line-height: 1.5;
  margin: 16px 0 0;
}

.cc-modal__note a {
  color: #1a1a1a;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cc-modal__note a:hover {
  color: #444444;
}

/* ---- Modal footer ---- */
.cc-modal__footer {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.cc-modal__footer .btn {
  flex: 1;
}

/* ---- Footer cookie link ---- */
.footer-cookie-link {
  font-size: 0.875rem;
  color: #666666;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-cookie-link:hover {
  color: #1a1a1a;
}

/* ---- Cookie consent responsive ---- */
@media (max-width: 768px) {
  .cc-banner {
    padding: 16px;
  }

  .cc-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .cc-banner__actions {
    flex-direction: column;
  }

  .cc-banner__actions .btn {
    width: 100%;
  }

  .cc-overlay {
    padding: 16px;
    align-items: flex-end;
  }

  .cc-modal {
    max-height: 85vh;
  }

  .cc-modal__footer {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .cc-banner__text p {
    font-size: 0.875rem;
  }

  .cc-modal__header h3 {
    font-size: 1.125rem;
  }
}

/* ========================================
   PRIVACY MODAL
   ======================================== */

/* ---- Overlay ---- */
.pm-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 24px;
}

.pm-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.is-pm-open {
  overflow: hidden;
}

/* ---- Modal card ---- */
.pm-modal {
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}

.pm-overlay.is-visible .pm-modal {
  transform: translateY(0) scale(1);
}

/* ---- Header ---- */
.pm-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  position: sticky;
  top: -24px;
  background: #ffffff;
  padding: 24px 0 16px;
  margin-top: -24px;
  z-index: 1;
  border-bottom: 1px solid #f0f0f0;
}

.pm-modal__header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.pm-modal__close {
  width: 36px;
  height: 36px;
  border: none;
  background: #f5f5f5;
  border-radius: 10px;
  font-size: 1.25rem;
  color: #666666;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background-color 0.2s, color 0.2s;
}

.pm-modal__close:hover {
  background-color: #e8e8e8;
  color: #1a1a1a;
}

/* ---- Body ---- */
.pm-modal__body p {
  font-size: 0.9375rem;
  color: #444444;
  line-height: 1.6;
  margin: 0 0 16px;
}

.pm-modal__body h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 24px 0 8px;
}

.pm-modal__body h4:first-of-type {
  margin-top: 0;
}

.pm-modal__body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.pm-modal__body li {
  font-size: 0.9375rem;
  color: #444444;
  line-height: 1.6;
  padding: 4px 0 4px 16px;
  position: relative;
}

.pm-modal__body li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: #999999;
}

.pm-link {
  color: #1a1a1a;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.pm-link:hover {
  color: #444444;
}

/* ---- Footer ---- */
.pm-modal__footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.pm-modal__footer .btn {
  width: 100%;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .pm-overlay {
    padding: 16px;
    align-items: flex-end;
  }

  .pm-modal {
    max-height: 85vh;
  }

  .pm-modal__header h3 {
    font-size: 1.125rem;
  }

  .pm-modal__body p,
  .pm-modal__body li {
    font-size: 0.875rem;
  }

  .pm-modal__body h4 {
    font-size: 0.875rem;
  }
}
