.hippo-chalets {
  --hippo-bark: #2a1a08;
  --hippo-ivory: #f5f0e6;
  --hippo-sand: #c49a6c;
  --hippo-radius: 3px;
  background: #0c0806;
  box-sizing: border-box;
  color: var(--hippo-ivory);
  font-family: Montserrat, Arial, sans-serif;
  max-width: none;
  padding: clamp(3.5rem, 8vw, 8rem) clamp(1.25rem, 5vw, 5rem);
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* Elementor applies this to the widget and its nearest section/container at runtime. */
.hippo-chalets-widget--fullbleed,
.hippo-chalets-widget--fullbleed > .elementor-widget-container {
  margin-inline: 0 !important;
  max-width: none !important;
  width: 100% !important;
}
.hippo-chalets-container--fullbleed,
.hippo-chalets-container--fullbleed > .e-con-inner,
.hippo-chalets-container--fullbleed > .elementor-container {
  max-width: none !important;
  overflow: visible !important;
}

.hippo-chalets__head { align-items: end; display: flex; gap: 2rem; justify-content: space-between; margin-bottom: 3.5rem; }
.hippo-chalets__head span { color: var(--hippo-sand); display: block; font-size: .6rem; letter-spacing: .35em; text-transform: uppercase; }
.hippo-chalets h2 { font: 300 clamp(2rem, 4vw, 3.1rem) / 1.15 "Cormorant Garamond", Georgia, serif; margin: 1rem 0 0; }
.hippo-chalets h2 em { color: var(--hippo-sand); }
.hippo-chalets__cta { border: 1px solid rgba(245, 240, 230, .6); border-radius: var(--hippo-radius); color: var(--hippo-ivory); font-size: .62rem; letter-spacing: .2em; padding: 1.1rem 1.6rem; text-decoration: none; text-transform: uppercase; transition: .3s; }
.hippo-chalets__cta:hover, .hippo-chalets__cta:focus-visible { border-color: var(--hippo-sand); color: var(--hippo-sand); transform: translateY(-2px); }

.hippo-chalets__grid { background: rgba(196, 154, 108, .08); display: grid; gap: 2px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; overflow: hidden; width: 100%; }
.hippo-chalets__grid[data-layout="2x3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hippo-chalets__grid[data-layout="banner"] { grid-template-columns: 1fr; }

.hippo-chalet { background: #0c0806; isolation: isolate; min-height: var(--hippo-card-height); overflow: hidden; position: relative; width: min(100%, var(--hippo-card-width, 100%)); }
.hippo-chalet--featured, .hippo-chalet--auto-banner { grid-column: 1 / -1; min-height: max(420px, var(--hippo-card-height)); width: 100%; }
.hippo-chalet__media { inset: 0; overflow: hidden; position: absolute; z-index: 0; }
.hippo-chalet__image, .hippo-chalet__placeholder { display: block; height: 100%; object-fit: cover; opacity: .78; transition: transform .8s ease, opacity .4s ease; width: 100%; }
.hippo-chalet__placeholder { background: linear-gradient(135deg, rgba(196, 154, 108, .2), transparent 45%), var(--hippo-bark); }

/* All copy remains on the image. This is a legibility gradient, never a footer block. */
.hippo-chalet__overlay { background: linear-gradient(to top, rgba(14, 10, 4, .7) 0, rgba(14, 10, 4, .27) 25%, transparent 56%); box-sizing: border-box; color: var(--hippo-ivory); display: flex; flex-direction: column; height: 100%; inset: 0; justify-content: flex-end; padding: 1.4rem 1.6rem; position: absolute; text-decoration: none; transition: background .4s ease; z-index: 1; }
.hippo-chalet h3 { color: var(--hippo-ivory); font: 300 1.5rem / 1.1 "Cormorant Garamond", Georgia, serif; margin: 0; text-shadow: 0 2px 12px rgba(0, 0, 0, .72); }
.hippo-chalet p { color: rgba(245, 240, 230, .84); font-size: .95rem; line-height: 1.7; margin: 0; max-height: 0; max-width: 460px; opacity: 0; overflow: hidden; text-shadow: 0 1px 8px rgba(0, 0, 0, .78); transition: max-height .6s ease, opacity .5s ease; }
.hippo-chalet footer { align-items: center; background: transparent; display: flex; font-size: .62rem; gap: .5rem; justify-content: space-between; letter-spacing: .1em; margin-top: 0; max-height: 0; opacity: 0; overflow: hidden; transition: .4s ease; }
.hippo-chalet footer span, .hippo-chalet footer b { color: var(--hippo-sand); }
.hippo-chalet footer b { font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; }
.hippo-chalet:hover .hippo-chalet__image, .hippo-chalet:focus-within .hippo-chalet__image { opacity: .92; transform: scale(1.07); }
.hippo-chalet:hover .hippo-chalet__overlay, .hippo-chalet:focus-within .hippo-chalet__overlay { background: linear-gradient(to top, rgba(14, 10, 4, .94) 0, rgba(14, 10, 4, .68) 45%, transparent 100%); }
.hippo-chalet:hover p, .hippo-chalet:focus-within p { max-height: 20em; opacity: 1; }
.hippo-chalet:hover footer, .hippo-chalet:focus-within footer { margin-top: .7rem; max-height: 3em; opacity: 1; }

[data-hippo-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .8s ease; }
[data-hippo-reveal].is-visible { opacity: 1; transform: none; }
.hippo-chalets__empty { padding: 2rem; }

@media (max-width: 768px) {
  .hippo-chalets__head { align-items: start; flex-direction: column; }
  .hippo-chalets__grid, .hippo-chalets__grid[data-layout="2x3"] { grid-template-columns: 1fr; }
  .hippo-chalet--featured, .hippo-chalet--auto-banner { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) { .hippo-chalets * { scroll-behavior: auto !important; transition: none !important; } }
