/* css/pages/apartment.css */
@layer pages;

@layer pages {
  /* ===========================
     APARTMENT HERO
     =========================== */
  .apt-hero{
    position: relative;
    isolation: isolate;
    color:#fff;

    min-height: clamp(520px, 78vh, 840px);
    display:flex;
    align-items:flex-end;
    padding: clamp(48px, 7vh, 88px) 0;

    background: transparent;
    overflow:hidden;
  }

  .apt-hero::before{
    content:"";
    position:absolute;
    inset:0;
    z-index:0;

    background-image: var(--hero-img);
    background-position: center 35%;
    background-size: cover;
    background-repeat: no-repeat;

    filter: brightness(1.16) contrast(1.04) saturate(1.10);
    transform: scale(1.02);
  }

  .apt-hero::after{
    content:"";
    position:absolute;
    inset:0;
    z-index:1;
    pointer-events:none;
    background:
      radial-gradient(1200px 600px at 18% 78%, rgba(2,8,23,.18), transparent 62%),
      linear-gradient(180deg,
        rgba(2,8,23,.06) 0%,
        rgba(2,8,23,.14) 55%,
        rgba(2,8,23,.34) 100%
      );
  }

  .apt-hero-inner,
  .apt-hero .container{
    position: relative;
    z-index: 2;
  }

  .apt-hero-copy{ max-width: 920px; }

  .apt-hero .hero-kicker{
    color: rgba(255,255,255,.92);
    font-weight: 900;
    letter-spacing: .02em;
    text-shadow: 0 10px 30px rgba(0,0,0,.45);
    margin: 0 0 10px 0;
    justify-content:flex-start;
  }

  .apt-hero h1{
    color: #fff;
    text-shadow: 0 14px 40px rgba(0,0,0,.55);
    margin: 0 0 10px 0;
    font-size: clamp(26px, 4.6vw, 46px);
    line-height: 1.12;
  }

  .apt-hero .hero-sub{
    color: rgba(255,255,255,.92);
    font-weight: 650;
    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.55;
    text-shadow: 0 10px 30px rgba(0,0,0,.55);
    margin: 0 0 16px 0;
  }

  .apt-hero .hero-badges{
    gap: 10px;
    margin: 0 0 16px 0;
    justify-content:flex-start;
  }
  .apt-hero .hero-badges span{
    font-size: 14px;
    padding: 10px 12px;
    background: rgba(0,0,0,.18);
    border: 1px solid rgba(255,255,255,.22);
    box-shadow: 0 14px 30px rgba(0,0,0,.14);
  }

  .apt-hero .hero-cta{ justify-content:flex-start; margin: 0 0 12px 0; }

  .apt-hero-contacts{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top: 10px;
  }

  .contact-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:44px;
    padding:0 14px;
    border-radius: var(--radius-md);
    text-decoration:none;
    font-weight:950;
    color:#fff;

    background: rgba(0,0,0,.16);
    border: 1px solid rgba(255,255,255,.24);
    box-shadow: 0 14px 30px rgba(0,0,0,.14);
    transition: transform .12s ease, background .12s ease;
  }
  @supports (backdrop-filter: blur(10px)){
    .contact-btn{ backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  }
  .contact-btn:hover{ transform: translateY(-1px); background: rgba(0,0,0,.24); }

  @media (max-width: 560px){
    .apt-hero{
      min-height: clamp(520px, 72vh, 720px);
      padding: 44px 0 56px;
    }
    .apt-hero-copy{ max-width: 100%; }
    .apt-hero .hero-badges span{ font-size: 13px; padding: 9px 11px; }
    .contact-btn{ width:100%; }
    .apt-hero::before{ filter:none; }
  }

  /* ===========================
     GALLERY
     =========================== */
  .gallery-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:14px;
  }
  .gallery-actions{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
  }
  .gallery-count{
    display:inline-flex;
    align-items:center;
    height:40px;
    padding:0 12px;
    border-radius: var(--pill);
    background:#fff;
    border:1px solid var(--border);
    color: var(--muted);
    font-weight:900;
  }

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

  .g-item{
    border-radius: var(--radius-lg);
    overflow:hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    cursor: zoom-in;
    position: relative;
    isolation: isolate;
  }
  .g-item img{
    width:100%;
    height:100%;
    object-fit: cover;
    transition: transform .35s ease;
  }
  .g-item:hover img{ transform: scale(1.03); }

  .g-item--big{ grid-row: span 2; min-height: 340px; }

  @media (max-width: 980px){
    .gallery-grid{ grid-template-columns: 1fr 1fr; }
    .g-item--big{ grid-column: 1 / -1; grid-row: auto; min-height: 260px; }
  }

  .gallery-subhead{
    margin: 22px 0 12px;
    font-size: 18px;
    letter-spacing: -.01em;
  }

  .gallery-strip{
    display:flex;
    gap:12px;
    overflow-x:auto;
    padding: 2px 2px 10px;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .gallery-strip::-webkit-scrollbar{ height:10px; }
  .gallery-strip::-webkit-scrollbar-thumb{
    background: rgba(6,33,53,.18);
    border-radius: var(--pill);
  }
  .gallery-strip::-webkit-scrollbar-track{
    background: rgba(6,33,53,.06);
    border-radius: var(--pill);
  }

  .g-item--strip{
    flex: 0 0 clamp(220px, 26vw, 360px);
    aspect-ratio: 4 / 3;
    scroll-snap-align: start;
  }
  .g-item--strip img{ width:100%; height:100%; object-fit: cover; }
  @media (max-width: 560px){
    .g-item--strip{ flex-basis: 76vw; }
  }

  .g-item::after{
    content:"";
    position:absolute;
    inset:0;
    background: linear-gradient(180deg, rgba(2,8,23,0), rgba(2,8,23,.18));
    opacity:0;
    transition: opacity .18s ease;
  }
  .g-item::before{
    content:"⤢";
    position:absolute;
    right:12px;
    bottom:12px;
    width:36px; height:36px;
    border-radius: var(--radius-sm);
    display:grid;
    place-items:center;
    color:#fff;
    font-weight:900;
    background: rgba(0,0,0,.22);
    border:1px solid rgba(255,255,255,.18);
    opacity:0;
    transform: translateY(2px);
    transition: opacity .18s ease, transform .18s ease;
    z-index:2;
  }
  .g-item:hover::before{ opacity:1; transform: translateY(0); }
  .g-item:hover::after{ opacity:1; }

  /* ===========================
     LIGHTBOX
     =========================== */
  .lightbox{
    position:fixed;
    inset:0;
    background: rgba(2,8,23,.92);
    display:none;
    z-index: 5000;
  }

  .lightbox.is-open{
    display:flex;
    align-items:center;
    justify-content:center;
    padding: 16px;
  }

  .lightbox-inner{
    width:min(1200px, 96vw);
    height:min(860px, 90vh);
    display:grid;
    grid-template-rows: auto 1fr;
    gap:10px;
  }

  .lightbox-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    color:#fff;
    padding: 4px 2px;
  }

  .lightbox-title{ font-weight:900; opacity:.95; }

  .lightbox-close{
    width:48px; height:48px;
    border-radius: var(--radius-md);
    border:1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.08);
    color:#fff;
    font-size:26px;
    cursor:pointer;
  }

  .lightbox-stage{
    position:relative;
    border-radius: var(--radius-lg);
    overflow:hidden;
    border:1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.04);
    touch-action: pan-y;
  }

  .lightbox-stage img{
    width:100%;
    height:100%;
    object-fit: contain;
  }

  .lb-nav{
    position:absolute;
    top:50%;
    transform: translateY(-50%);
    width:44px; height:44px;
    border-radius: var(--radius-md);
    border:1px solid rgba(255,255,255,.18);
    background: rgba(0,0,0,.25);
    color:#fff;
    font-size:24px;
    cursor:pointer;
    display:grid;
    place-items:center;
  }
  .lb-prev{ left:12px; }
  .lb-next{ right:12px; }

  @media (max-width: 560px){
    .lightbox.is-open{ padding:0; }
    .lightbox-inner{
      width:100vw;
      height:100dvh;
      gap:0;
    }
    .lightbox-top{ padding: 12px 12px 10px; }
    .lightbox-stage{
      border-radius:0;
      border-left:0;
      border-right:0;
      border-bottom:0;
    }
  }

  /* ===========================
     DETAILS / REVIEWS / NEARBY / PRICING / MAP
     =========================== */
  .details-grid{
    display:grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 14px;
  }
  .detail-card{
    background:#fff;
    border:1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 14px;
  }
  .detail-card h3{ margin:0 0 10px 0; font-size: 15px; }
  .checklist{
    list-style:none;
    display:grid;
    gap:8px;
    margin:0;
    padding:0;
    font-weight:800;
    color:#214a59;
  }
  .detail-card--cta p.muted{ margin:0 0 10px 0; color: var(--muted); font-weight:700; }

  @media (max-width: 980px){ .details-grid{ grid-template-columns: 1fr 1fr; } }
  @media (max-width: 560px){ .details-grid{ grid-template-columns: 1fr; } }
/* ===========================
   DETAILS / REVIEWS / NEARBY / PRICING / MAP
   =========================== */
.details-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
}
.detail-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 14px;
}
.detail-card h3{ margin:0 0 10px 0; font-size: 15px; }
.checklist{
  list-style:none;
  display:grid;
  gap:8px;
  margin:0;
  padding:0;
  font-weight:800;
  color:#214a59;
}
.detail-card--cta p.muted{ margin:0 0 10px 0; color: var(--muted); font-weight:700; }

@media (max-width: 980px){ .details-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .details-grid{ grid-template-columns: 1fr; } }

/* ===========================
   REVIEWS HEAD + RATING PILLS
   =========================== */
.section-head.reviews-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  flex-wrap:wrap;
}

.section-head.reviews-head > div:first-child{
  flex: 1 1 420px;
  max-width: 560px; /* pusti mjesta pills-ovima desno na desktopu */
  min-width: 260px;
}

.section-head.reviews-head .rating-pills{
  flex: 0 1 auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  flex-wrap:wrap;
  margin-top: 6px;
  min-width: 260px;
}

/* ===== pill base ===== */
.rating-pill{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  box-shadow: var(--shadow-sm);
  color: var(--text);
  font-weight:900;
  max-width: 100%;
}

.rating-pill .rp-src{ font-weight:950; opacity:.92; }

.rating-pill .rp-score{
  display:inline-flex;
  align-items:baseline;
  gap:3px;
  font-weight:950;
  font-size: 22px;
  letter-spacing:-.02em;
  white-space:nowrap;
}
.rating-pill .rp-den{
  font-size: 14px;
  font-weight:900;
  opacity:.7;
}

.rating-pill .rp-tag{
  font-weight:850;
  color: var(--muted);
  white-space:nowrap; /* desktop: 1 linija */
}

/* boje */
.rating-pill.is-booking{
  background: rgba(29,142,188,.10);
  border-color: rgba(29,142,188,.22);
}
.rating-pill.is-airbnb{
  background: rgba(255,56,92,.08);
  border-color: rgba(255,56,92,.20);
}

/* ===== award pill (klikabilan) ===== */
.award-pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  background: rgba(11, 87, 208, .10);
  border: 1px solid rgba(11, 87, 208, .20);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  text-decoration:none;
  font-weight:900;
  max-width: 100%;
  transition: transform .12s ease, box-shadow .12s ease;
}
@media (hover:hover){
  .award-pill:hover{
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
  }
}

.award-pill img{
  width:40px;
  height:40px;
  border-radius: 12px;
  object-fit: cover;
  display:block;
  background:#fff;
  border:1px solid rgba(6,33,53,.12);
}

.award-text{
  display:flex;
  flex-direction:column;
  line-height:1.1;
  min-width: 0;
}
.award-title{ font-weight:950; font-size:13px; white-space:nowrap; }
.award-sub{ font-weight:850; font-size:12px; color: var(--muted); white-space:nowrap; }

/* ===== mobile fix: pills idu u stupac i tag se lomi u 2. red ===== */
@media (max-width: 560px){
  .section-head.reviews-head .rating-pills{
    justify-content:flex-start;
    width:100%;
  }

  .rating-pill,
  .award-pill{
    width:100%;
    justify-content:flex-start;
  }

  .rating-pill{
    flex-wrap:wrap;          /* ključ za Airbnb */
    gap:10px 12px;
  }

  .rating-pill .rp-tag{
    flex-basis:100%;         /* tag u novi red */
    white-space:normal;      /* dopušta lom */
    line-height:1.25;
    margin-top: -2px;
  }

  .rating-pill .rp-score{ font-size: 20px; }
}


/* ===========================
   REVIEWS GRID
   =========================== */
.reviews-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
  margin-top: 14px;
}

/* osiguraj da nisu “nestali” zbog neke druge opacity rules */
.reviews-grid .review{
  opacity: 1;
  transform: none;
}

.review{
  position:relative;
  overflow:hidden;
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 16px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
@media (hover:hover){
  .review:hover{
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(29,142,188,.22);
  }
}
.review::before{
  content:"";
  position:absolute;
  left:0; top:0; right:0;
  height:3px;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  opacity:.55;
}
.review-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom: 12px;
}
.review-score{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 54px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(29,142,188,.12);
  border: 1px solid rgba(29,142,188,.22);
  font-weight:850;
  color: var(--text);
}
.review-text{
  margin:0 0 12px 0;
  color:#214a59;
  font-weight:650;
  line-height:1.55;
  position:relative;
}
.review-text::before{
  content:"“";
  position:absolute;
  left:-6px;
  top:-12px;
  font-size:44px;
  line-height:1;
  color: rgba(29,142,188,.18);
  font-weight:900;
  pointer-events:none;
}
.review-name{
  margin:0;
  color: var(--muted);
  font-weight:750;
}

/* ===========================
   AWARD LIGHTBOX (FANCY)
   =========================== */
.award-pill{
  display:inline-flex;
  align-items:center;
  gap:12px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(29,142,188,.22);
  background: rgba(29,142,188,.08);
  box-shadow: var(--shadow-sm);
  text-decoration:none;
  color: var(--text);
  font-weight:900;
  white-space:nowrap;
  cursor:pointer;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
@media (hover:hover){
  .award-pill:hover{
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    border-color: rgba(29,142,188,.32);
  }
}
.award-pill img{
  width:42px;
  height:42px;
  border-radius: 12px;
  object-fit:cover;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
}
.award-text{ display:flex; flex-direction:column; line-height:1.1; }
.award-title{ font-weight:950; }
.award-sub{ font-weight:800; color: var(--muted); font-size: 13px; }

/* overlay */
.award-lightbox{
  position:fixed;
  inset:0;
  z-index:6500;
  display:none;
}
.award-lightbox.is-open{ display:grid; place-items:center; }

.award-lb-backdrop{
  position:absolute;
  inset:0;
  background: rgba(2,8,23,.82);
}
@supports (backdrop-filter: blur(8px)){
  .award-lb-backdrop{
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

.award-lb-card{
  position:relative;
  z-index:1;
  width: min(1280px, 96vw);
  margin: 18px;
  color:#fff;
  transform: translateY(10px) scale(.985);
  opacity: 0;
  animation: awardIn .18s ease-out forwards;
}
@keyframes awardIn{
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.award-lb-head{
  display:flex;
  flex-direction:column;
  gap: 4px;
  margin: 0 0 10px;
}
.award-lb-title{
  font-weight: 950;
  letter-spacing: -.01em;
  font-size: clamp(16px, 2.1vw, 20px);
}
.award-lb-sub{
  color: rgba(255,255,255,.78);
  font-weight: 800;
  font-size: 14px;
}

.award-lb-close{
  position:absolute;
  top: -6px;
  right: -6px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  color:#fff;
  font-size: 26px;
  cursor:pointer;
}

.award-lb-media{
  aspect-ratio: 1280 / 900;
  max-height: min(900px, 80vh);
  border-radius: var(--radius-lg);
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  box-shadow: 0 40px 120px rgba(0,0,0,.55);
}
.award-lb-media img{
  width:100%;
  height:100%;
  object-fit: contain;
  background: rgba(0,0,0,.12);
}

/* mobile polish: bolje slaganje */
@media (max-width: 560px){
  .award-pill{ width:100%; justify-content:flex-start; }
  .award-pill img{ width:46px; height:46px; }
  .award-lb-card{ width: min(1280px, 94vw); }
}

/* reduce motion */
@media (prefers-reduced-motion: reduce){
  .award-lb-card{ animation:none; transform:none; opacity:1; }
}

@media (max-width: 980px){ .reviews-grid{ grid-template-columns: 1fr; } }

.nearby-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 980px){ .nearby-grid{ grid-template-columns: 1fr; } }


  .nearby-card{
    display:flex;
    align-items:center;
    gap: 12px;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  }
  .nearby-ico{
    width:44px;
    height:44px;
    border-radius: var(--radius-md);
    display:grid;
    place-items:center;
    background: rgba(29,142,188,.12);
    border: 1px solid rgba(29,142,188,.18);
    color: var(--brand2);
    font-size: 20px;
    flex: 0 0 44px;
  }
  .nearby-main{
    display:flex;
    flex-direction:column;
    gap: 4px;
    min-width: 0;
  }
  .nearby-title{
    font-weight: 650;
    letter-spacing: -.01em;
    color: var(--text);
    line-height: 1.2;
  }
  .nearby-sub{
    font-size: 13px;
    font-weight: 650;
    color: var(--muted);
  }
  @media (hover:hover){
    .nearby-card:hover{
      transform: translateY(-3px);
      box-shadow: var(--shadow-lg);
      border-color: rgba(29,142,188,.22);
    }
  }

  .price-grid{
    display:grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 14px;
  }
  .price-card{
    background:#fff;
    border:1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 16px;
  }
  .rate-table{ display:grid; gap:10px; margin-top: 10px; }
  .rate-row{ display:flex; justify-content:space-between; font-weight:900; color:#214a59; }
  @media (max-width: 980px){ .price-grid{ grid-template-columns: 1fr; } }

  .map-card{
    background:#fff;
    border:1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow:hidden;
  }
  .map-card iframe{
    width:100%;
    height: 520px;
    border:0;
    display:block;
  }
  @media (max-width: 560px){
    .map-card iframe{ height: 420px; }
  }

  .map-toolbar{
    padding: 14px;
    border-top: 1px solid var(--border);
    background: #fff;
    display: grid;
    gap: 10px;
  }
  .map-form{
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 10px;
    align-items: end;
  }
  .map-form .input,
  .map-form .select{ width:100%; }
  .map-actions{
    grid-column: 1 / -1;
    display:flex;
    gap:10px;
    flex-wrap:wrap;
  }
  @media (max-width: 560px){
    .map-form{ grid-template-columns: 1fr; }
    .map-actions .btn{ width: 100%; }
  }
  .map-toolbar .input:focus,
  .map-toolbar .select:focus{
    border-color: rgba(29,142,188,.35);
    box-shadow: 0 0 0 4px rgba(29,142,188,.12);
  }

  /* ===========================
     AMENITIES
     =========================== */
  .amenities-grid{
    display:grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    perspective: 1200px;
  }
  @media (max-width: 980px){ .amenities-grid{ grid-template-columns: 1fr; } }

  .amenity-card{
    position: relative;
    overflow:hidden;

    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 16px;

    opacity: 0;
    transform: translateY(22px) scale(.985);
    transition:
      opacity .55s cubic-bezier(.2,.9,.2,1),
      transform .55s cubic-bezier(.2,.9,.2,1),
      box-shadow .22s ease,
      border-color .22s ease;
    transition-delay: var(--d, 0ms);
    will-change: transform, opacity;
  }
  .amenity-card.is-in{
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  @media (hover:hover){
    .amenity-card.is-in:hover{
      transform: translateY(-7px) scale(1.01);
      box-shadow: var(--shadow-xl);
      border-color: rgba(29,142,188,.26);
    }
  }

  .amenity-card::after{
    content:"";
    position:absolute;
    inset:-30% -60%;
    background: linear-gradient(120deg,
      rgba(255,255,255,0) 35%,
      rgba(255,255,255,.30) 50%,
      rgba(255,255,255,0) 65%);
    transform: translateX(-40%) rotate(8deg);
    opacity: 0;
    pointer-events:none;
  }
  @media (hover:hover){
    .amenity-card.is-in:hover::after{
      opacity: 1;
      transition: transform .7s ease, opacity .2s ease;
      transform: translateX(40%) rotate(8deg);
    }
  }

  .amenity-head{
    display:flex;
    align-items:center;
    gap: 10px;
    margin-bottom: 12px;
  }
  .amenity-head-ico{
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    display:grid;
    place-items:center;
    background: rgba(29,142,188,.12);
    color: var(--brand2);
    border: 1px solid rgba(29,142,188,.18);
  }
  .amenity-card h3{
    margin:0;
    font-size: 16px;
    letter-spacing: -.01em;
    font-weight: 750;
  }
  .amenity-list{
    list-style:none;
    margin:0;
    padding:0;
    display:grid;
    gap: 10px;
  }
  .amenity{
    display:flex;
    align-items:center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--pill);
    background: rgba(29,142,188,.06);
    border: 1px solid rgba(6,33,53,.10);
    transition: transform .14s ease, background .14s ease, border-color .14s ease;
  }
  @media (max-width: 560px){ .amenity{ border-radius: var(--radius-lg); } }
  @media (hover:hover){
    .amenity:hover{
      transform: translateX(3px);
      background: rgba(29,142,188,.09);
      border-color: rgba(29,142,188,.18);
    }
  }
  .amenity-ico{
    width: 34px;
    height: 34px;
    border-radius: var(--pill);
    display:grid;
    place-items:center;
    background: rgba(29,142,188,.14);
    color: var(--brand2);
    flex: 0 0 34px;
  }
  .amenity-txt{
    font-weight: 650;
    color: #214a59;
    line-height: 1.25;
  }
  .amenity--stack .amenity-txt{
    display:flex;
    flex-direction:column;
    gap: 4px;
  }
  .amenity-sub{
    font-size: 12px;
    font-weight: 650;
    color: var(--muted);
  }
  .i{ width: 18px; height: 18px; display:block; }

  @media (prefers-reduced-motion: reduce){
    .amenity-card{
      opacity: 1 !important;
      transform: none !important;
      transition: none !important;
    }
    .amenity-card::after,
    .amenity{ transition: none !important; }
  }
}
