/* Apartment, villa and whole-house sites (src/apartment-blocks.ts, Shibin 2026-10-24), on the free looks: it takes its colours from the
   look's variables, so Monsoon, Sunset, Kasavu, Lotus and Night recolour it. The shapes follow hostel.css, with ap- names. Nothing here
   hides content until an animation runs. */

/* the top of the page */
.hero .ap-kind { margin: 0 0 .5em; font: 700 .8rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #fff; opacity: .92; }
.ap-facts { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.ap-facts li { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.5); color: #fff; padding: 6px 13px; border-radius: 999px; font-size: .92rem; font-weight: 600; backdrop-filter: blur(4px); }
.hero .ap-from { margin: 0 0 16px; font-size: 1.15rem; }
.hero .ap-from strong { font-size: 1.4rem; }

/* the numbers, and who it is good for */
section.ap-glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; padding-top: 36px; padding-bottom: 8px; }
.ap-glance > div { background: var(--sand); border-radius: var(--radius); padding: 18px 12px; text-align: center; }
.ap-glance b { display: block; font: 700 clamp(1.6rem, 4.4vw, 2.3rem)/1.05 var(--serif); color: var(--deep); font-variant-numeric: lining-nums; }
.ap-glance span { display: block; margin-top: 6px; font-size: .86rem; color: var(--muted); }
section.ap-who { padding-top: 8px; padding-bottom: 8px; }
section.ap-who h2 { font-size: 1.15rem; margin-bottom: .3em; }

/* pills, tiles (the kitchen and the facilities) */
.ap-pills { list-style: none; padding: 0; margin: 10px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ap-pills li { background: var(--sand); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .95rem; }
.ap-pills.big { gap: 10px; }
.ap-pills.big li { display: flex; flex-direction: column; gap: 1px; border-radius: 14px; padding: 10px 16px; }
.ap-pills.big li span { font-weight: 400; color: var(--muted); font-size: .88rem; }
.ap-place { margin: 0 0 22px; }
.ap-place li { flex-direction: row; align-items: center; gap: 8px; }
.ap-tiles { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.ap-tiles li { display: flex; align-items: center; gap: 12px; background: var(--card, #fff); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; font-weight: 600; line-height: 1.3; }
.ap-tiles li > span:first-child { font-size: 1.45rem; flex: none; }
.ap-access { margin: 0 0 4px; padding: 14px 16px; background: var(--sand); border-radius: var(--radius); font-weight: 600; max-width: 820px; }
.ap-cook { margin-top: 16px; }
.ap-safe { margin-top: 26px; background: var(--sand); border-radius: var(--radius); padding: 20px 18px 22px; }
.ap-safe h3 { margin-bottom: .3em; }
.ap-care { margin: 0 0 6px; font-weight: 600; }
.ap-fac > .small { margin-top: 14px; }

/* rent by group size: a table that becomes a stack of cards on a phone */
.ap-table { width: 100%; max-width: 860px; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card, #fff); margin: 10px 0 18px; }
.ap-table th, .ap-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ap-table thead th { background: var(--sand); color: var(--deep); font: 700 .8rem var(--sans); text-transform: uppercase; letter-spacing: .07em; }
.ap-table tbody tr:last-child > * { border-bottom: 0; }
.ap-table tbody th { font: 700 1.1rem var(--serif); color: var(--deep); }
.ap-table td strong { font: 700 1.35rem var(--serif); color: var(--deep); }
.ap-notes { max-width: 860px; }
@media (max-width: 560px) {
  .ap-table thead { display: none; }
  .ap-table, .ap-table tbody, .ap-table tr, .ap-table th, .ap-table td { display: block; width: 100%; }
  .ap-table tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .ap-table tbody tr:last-child { border-bottom: 0; }
  .ap-table th, .ap-table td { padding: 2px 0; border: 0; }
  .ap-table td::before { content: attr(data-label) ": "; color: var(--muted); font-size: .88rem; }
}

/* questions */
.ap-qa details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card, #fff); padding: 0 16px; margin: 10px 0; max-width: 820px; }
.ap-qa summary { cursor: pointer; padding: 14px 0; font-weight: 700; color: var(--deep); }
.ap-qa p { margin: 0 0 14px; }

/* the booking results: a card for each way to take the rooms (public/stay.js) */
.result .ap-cap { margin: .1em 0 .3em; color: var(--muted); font-size: .92rem; }

@media (max-width: 720px) {
  .ap-facts li { font-size: .85rem; padding: 5px 11px; }
}
@media (max-width: 520px) {
  .ap-glance > div:last-child:nth-child(odd) { grid-column: 1 / -1; }   /* three numbers on a phone: the last one takes the whole row */
}
