/* Eco Del Mar 5.2: six-room home catalogue and responsive, accessible storytelling.
   This stylesheet intentionally loads after historical experience/v3 styles. */
.edm-home .rooms.edm-room-showcase{height:auto!important;min-height:0;isolation:auto;background:#f3ede2}
.edm-home .rooms.edm-room-showcase>.pin{
  position:relative!important;top:auto!important;height:auto!important;min-height:0!important;
  overflow:visible!important;padding:clamp(74px,7vw,118px) clamp(18px,5.5vw,94px) clamp(74px,7vw,114px);
  transform-style:flat!important;perspective:none!important;
}
.edm-home .rooms.edm-room-showcase .ambient{right:0;top:0;pointer-events:none}
.edm-home .rooms.edm-room-showcase .title{
  position:relative!important;top:auto!important;left:auto!important;right:auto!important;
  width:100%!important;max-width:780px!important;margin-bottom:34px;z-index:2;
}
.edm-home .rooms.edm-room-showcase .title h2{
  max-width:700px;font-size:clamp(38px,5.2vw,72px);line-height:1.04;overflow-wrap:normal;hyphens:auto;
}
.edm-home .rooms.edm-room-showcase .title .bodycopy{max-width:570px;font-size:15px}
.edm-home .rooms.edm-room-showcase .deck.edm-home-room-grid{
  position:relative!important;inset:auto!important;left:auto!important;right:auto!important;
  top:auto!important;bottom:auto!important;display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:clamp(12px,2vw,24px)!important;
  width:100%!important;height:auto!important;max-width:100%;min-width:0;
  overflow:visible!important;padding:0!important;perspective:1100px!important;transform-style:preserve-3d;
}
.edm-home .rooms.edm-room-showcase .room-card{
  position:relative!important;inset:auto!important;top:auto!important;left:auto!important;right:auto!important;
  width:100%!important;height:auto!important;min-width:0!important;min-height:0!important;
  display:flex;flex-direction:column;flex:none!important;scroll-snap-align:none!important;
  padding:0!important;margin:0!important;border:5px solid #fffdf7;border-radius:20px;
  overflow:hidden!important;background:#fffdf9;box-shadow:0 20px 40px rgba(23,67,69,.17);
  color:#163e42;transform-origin:center 55%;backface-visibility:hidden;isolation:isolate;
  transition:box-shadow .35s ease;
}
.edm-home .rooms.edm-room-showcase .room-card:hover,.edm-home .rooms.edm-room-showcase .room-card:focus-visible{box-shadow:0 26px 52px rgba(23,67,69,.27)}
.edm-home .rooms.edm-room-showcase .room-card__media{display:block;width:100%;aspect-ratio:1.42;overflow:hidden;background:#d5dad3}
.edm-home .rooms.edm-room-showcase .room-card__media img{
  display:block;width:100%!important;height:100%!important;max-height:none!important;object-fit:cover;
  transition:transform .5s ease;
}
.edm-home .rooms.edm-room-showcase .room-card:hover .room-card__media img{transform:scale(1.045)}
.edm-home .rooms.edm-room-showcase .room-card .caption{
  display:flex;flex-direction:column;gap:7px;flex:1;min-height:150px;padding:17px 18px 16px!important;
}
.edm-home .rooms.edm-room-showcase .room-card__category{font:700 10px/1.2 Arial,sans-serif;letter-spacing:.13em;text-transform:uppercase;color:#b47a51}
.edm-home .rooms.edm-room-showcase .room-card h3{
  font:normal clamp(21px,2vw,29px)/1.12 Georgia,serif!important;margin:0!important;
  color:#163e42;overflow-wrap:anywhere;
}
.edm-home .rooms.edm-room-showcase .room-card small{font-size:12px!important;line-height:1.45;color:#627979!important}
.edm-home .rooms.edm-room-showcase .room-card__action{
  display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:auto;padding-top:14px;
  font:700 11px/1.3 Arial,sans-serif;letter-spacing:.03em;color:#245c60;
}
.edm-home .rooms.edm-room-showcase .room-card__action span{font-size:20px}
.edm-home-room-empty{position:relative;z-index:3;padding:25px;background:white;border-radius:18px}
.edm-home .rooms .note{display:none!important}

/* Regular document flow below desktop widths and on short landscape displays: no fixed-height clipping. */
@media (max-width:900px), (max-height:690px), (prefers-reduced-motion: reduce){
  .edm-home .chapter:not(.edm-room-showcase){height:auto!important;min-height:0!important;isolation:auto!important}
  .edm-home .chapter>.pin{
    position:relative!important;top:auto!important;height:auto!important;min-height:0!important;
    overflow:visible!important;perspective:none!important;transform-style:flat!important;
  }
  .edm-home .float{will-change:auto!important}
  .edm-home .hero>.pin{
    display:grid;grid-template-columns:minmax(0,1fr);gap:22px;
    padding:clamp(104px,13vw,135px) 5% 50px;
  }
  .edm-home .hero .hero-copy{
    position:relative!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;
    max-width:640px!important;width:100%!important;z-index:7;
  }
  .edm-home .hero .hero-copy h1{font-size:clamp(45px,8.1vw,72px);line-height:1.02;margin:12px 0}
  .edm-home .hero .hero-copy .bodycopy{font-size:clamp(14px,1.7vw,16px);max-width:450px}
  .edm-home .hero .hero-deck{
    position:relative!important;inset:auto!important;top:auto!important;right:auto!important;
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;
    gap:12px;height:auto;perspective:none;transform-style:flat;z-index:3;pointer-events:none;
  }
  .edm-home .hero .photo-float{
    display:block!important;position:relative!important;top:auto!important;left:auto!important;right:auto!important;
    width:100%!important;max-width:none!important;height:auto!important;aspect-ratio:1.32;
    border:4px solid #fffdf8;border-radius:16px;box-shadow:0 16px 25px rgba(23,67,69,.25);
  }
  .edm-home .hero .photo-float img{width:100%;height:100%;object-fit:cover}
  .edm-home .hero .photo-float .label{font-size:clamp(11px,1.4vw,15px);padding:18px 7px 8px}
  .edm-home .hero .photo-float .label small{display:none}
  .edm-home .hero .glass-orb{display:none!important}
  .edm-home .hero .booking{
    position:relative!important;inset:auto!important;left:auto!important;right:auto!important;bottom:auto!important;
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:2px 0 0;
    width:100%;z-index:8;padding:13px;
  }
  .edm-home .hero .booking .field{min-width:0;border:0!important;padding:8px 11px!important;background:#f5f5f0;border-radius:11px}
  .edm-home .hero .booking input,.edm-home .hero .booking select{display:block;min-width:0;width:100%;font-size:14px}
  .edm-home .hero .booking .action{font-size:11px;letter-spacing:.035em;padding:13px;white-space:normal;min-height:48px}
  .edm-home .hero .hero-noise{display:none}
  .edm-home .manifesto>.pin{
    display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.8fr);gap:22px;
    align-items:center;padding:80px 5%;
  }
  .edm-home .manifesto .text{position:relative!important;top:auto!important;left:auto!important;right:auto!important;width:100%!important;max-width:none!important}
  .edm-home .manifesto h2{font-size:clamp(42px,5.9vw,68px)}
  .edm-home .manifesto .frame{
    position:relative!important;top:auto!important;left:auto!important;right:auto!important;
    width:100%!important;height:auto!important;aspect-ratio:4/5;border-width:6px;border-radius:20px;margin:0;
  }
  .edm-home .manifesto .mini,.edm-home .manifesto .emblem{display:none!important}
  .edm-home .rooms.edm-room-showcase>.pin{padding:76px 5% 82px}
  .edm-home .rooms.edm-room-showcase .deck.edm-home-room-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}
  .edm-home .services>.pin{padding:86px 5%;display:block}
  .edm-home .services .intro{
    position:relative!important;top:auto!important;bottom:auto!important;left:auto!important;right:auto!important;
    max-width:700px!important;margin-bottom:30px;
  }
  .edm-home .services h2{font-size:clamp(42px,6vw,70px)}
  .edm-home .services .service-list{
    position:relative!important;top:auto!important;bottom:auto!important;left:auto!important;right:auto!important;
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;perspective:none;
  }
  .edm-home .services .service{min-width:0;min-height:0;padding:22px 16px;flex:none;transform-style:flat}
  .edm-home .gallery>.pin{padding:85px 5%;display:block}
  .edm-home .gallery .heading{
    position:relative!important;inset:auto!important;top:auto!important;left:auto!important;right:auto!important;
    max-width:680px!important;width:100%!important;margin-bottom:30px;
  }
  .edm-home .gallery h2{font-size:clamp(40px,6.7vw,75px)}
  .edm-home .gallery .gallery-deck{
    position:relative!important;inset:auto!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));
    gap:13px!important;overflow:visible!important;width:100%;padding:0;perspective:none!important;
  }
  .edm-home .gallery .gallery-shot{
    position:relative!important;inset:auto!important;top:auto!important;left:auto!important;right:auto!important;
    width:100%!important;height:auto!important;aspect-ratio:4/5;border:5px solid #fffdf6;border-radius:18px;
  }
  .edm-home .gallery .gallery-shot img{width:100%;height:100%;object-fit:cover}
  .edm-home .final>.pin{
    position:relative!important;min-height:470px!important;display:flex;align-items:center;
    padding:110px 5% 76px;overflow:hidden!important;
  }
  .edm-home .final .copy{position:relative!important;inset:auto!important;left:auto!important;top:auto!important;max-width:650px!important;z-index:3}
  .edm-home .final h2{font-size:clamp(48px,7.6vw,77px)}
  .edm-home .final .sign{bottom:17px;font-size:9px;letter-spacing:.08em}
  .edm-home .rooms.edm-room-showcase .room-card{transform:none!important;opacity:1!important;will-change:auto}
}
@media (max-width:600px){
  .top,.top.solid{height:72px!important;padding:8px 12px!important;gap:8px!important}
  .top .brand-wrap{flex:0 1 min(43vw,155px)!important;width:min(43vw,155px)!important;min-width:0}
  .top .brand-wrap img.edm-official-mark{width:100%!important;max-height:51px!important;object-fit:contain!important}
  .top .edm-mobile-menu{min-width:40px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;margin-left:auto;padding:5px}
  .top .book-cta{font-size:10px!important;letter-spacing:0!important;padding:11px!important;white-space:nowrap}
  .top nav{top:72px!important;max-height:calc(100dvh - 72px);overflow:auto;overscroll-behavior:contain}
  .edm-home .hero>.pin{padding:100px 17px 40px;gap:18px}
  .edm-home .hero .hero-copy h1{font-size:clamp(40px,10.7vw,57px)}
  .edm-home .hero .hero-copy .action{padding:13px 18px;min-height:44px;letter-spacing:.05em}
  .edm-home .hero .hero-deck{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .edm-home .hero .hero-deck .hero-c3{display:none!important}
  .edm-home .hero .booking{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;padding:10px}
  .edm-home .hero .booking .action{grid-column:1/-1}
  .edm-home .manifesto>.pin{grid-template-columns:1fr;gap:28px;padding:74px 18px}
  .edm-home .manifesto .frame{width:100%!important;max-height:410px;aspect-ratio:5/4}
  .edm-home .rooms.edm-room-showcase>.pin{padding:72px 17px 76px}
  .edm-home .rooms.edm-room-showcase .title{margin-bottom:27px}
  .edm-home .rooms.edm-room-showcase .title h2{font-size:clamp(40px,10.2vw,54px)}
  .edm-home .rooms.edm-room-showcase .deck.edm-home-room-grid{grid-template-columns:1fr!important;gap:16px!important}
  .edm-home .rooms.edm-room-showcase .room-card__media{aspect-ratio:1.6}
  .edm-home .rooms.edm-room-showcase .room-card .caption{min-height:0;padding:16px!important}
  .edm-home .services>.pin{padding:74px 17px}
  .edm-home .services h2{font-size:clamp(40px,10vw,58px)}
  .edm-home .services .service-list{gap:9px}
  .edm-home .services .service{padding:18px 9px;border-radius:15px}
  .edm-home .services .service .icon{font-size:25px;margin:0 0 9px}
  .edm-home .services .service h3{font-size:18px}
  .edm-home .services .service p{font-size:12px;line-height:1.45}
  .edm-home .gallery>.pin{padding:78px 17px}
  .edm-home .gallery .gallery-deck{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .edm-home .gallery .gallery-shot:last-child{grid-column:1/-1;aspect-ratio:1.7}
  .edm-home .gallery .gallery-shot span{font-size:10px}
  .edm-home .final>.pin{padding:110px 17px 75px;min-height:480px!important}
  .edm-home .final h2{font-size:clamp(45px,11.3vw,61px)}
}
@media(max-width:380px){
  .top .book-cta{display:none!important}
  .edm-home .hero .hero-copy h1{font-size:42px}
  .edm-home .hero .booking label{letter-spacing:0;font-size:9px}
  .edm-home .hero .booking input{font-size:12px}
  .edm-home .rooms.edm-room-showcase .title h2{font-size:40px}
}
@media(prefers-reduced-motion:reduce){
  .edm-home *{scroll-behavior:auto!important;animation:none!important;transition:none!important}
  .edm-home .chapter,.edm-home .chapter .pin{height:auto!important;min-height:0!important}
  .edm-home .rooms.edm-room-showcase .room-card{transform:none!important}
}
/* Final containment: historical absolute backgrounds and default figure margins must not widen the mobile viewport. */
@media (max-width:900px), (max-height:690px), (prefers-reduced-motion: reduce){
  .edm-home .hero,.edm-home .gallery,.edm-home .final{overflow:clip!important}
  .edm-home .hero .hero-image{left:0!important;right:0!important;inset:0!important}
  .edm-home .gallery .gallery-shot{margin:0!important}
  .edm-home .final .sign{left:17px!important;right:17px!important;width:auto!important;text-align:center}
}
