/* ==========================================================
   BNK GROUP — SAMPLE FLAT page styles (sample-flat.php)
   ========================================================== */

/* hero */
.flat-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.flat-hero__badge {
  flex-shrink: 0; width: clamp(130px, 14vw, 190px); aspect-ratio: 1; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px solid var(--gold); background: rgba(8,18,28,.6); backdrop-filter: blur(6px);
  box-shadow: 0 0 0 10px rgba(201,165,92,.12);
}
.flat-hero__badge strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem); line-height: 1; color: var(--gold-light); }
.flat-hero__badge span { font-size: .66rem; letter-spacing: .25em; text-transform: uppercase; }
.flat-hero__badge em { font-family: var(--font-serif); color: var(--gold); margin-top: 4px; }

/* plan */
.plan__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 5vw, 80px); align-items: center; }
.plan__drawing { position: relative; background: #fff; border: 1px solid rgba(156,122,55,.35); padding: 10px; height: min(66vh, 620px); }
.plan__drawing img { width: 100%; height: 100%; object-fit: contain; }
.hotspot { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 8px; }
.hotspot i {
  width: 18px; height: 18px; border-radius: 50%; background: var(--gold); position: relative; flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(201,165,92,.35);
}
.hotspot i::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid var(--gold); animation: ping 2s infinite; }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.hotspot span {
  background: var(--navy-800); color: var(--gold-light); font-size: .64rem; letter-spacing: .2em; text-transform: uppercase;
  padding: 5px 10px; opacity: 0; transform: translateX(-6px); transition: .35s var(--ease); white-space: nowrap;
}
.hotspot:hover span, .hotspot:focus span { opacity: 1; transform: none; }
.room-table { width: 100%; border-collapse: collapse; margin-top: clamp(14px, 3vh, 28px); }
.room-table th, .room-table td { padding: clamp(8px, 1.5vh, 13px) 4px; border-bottom: 1px solid rgba(156,122,55,.3); text-align: left; }
.room-table th { font-weight: 400; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(19,32,46,.7); }
.room-table td { font-family: var(--font-display); font-size: 1.15rem; color: var(--navy-900); text-align: right; }
.room-table .total th, .room-table .total td { color: var(--gold-deep); border-bottom: 2px solid var(--gold); }
.room-table .total td { font-size: 1.5rem; }

/* room sections */
.room__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(26px, 5vw, 80px); align-items: center; }
.room--reverse .room__media { order: 2; }
.room__media { position: relative; height: min(64vh, 600px); }
.room__main { position: absolute; inset: 0 18% 14% 0; overflow: hidden; border: 1px solid rgba(201,165,92,.4); }
.room__sub {
  position: absolute; right: 0; bottom: 0; width: 42%; height: 46%; overflow: hidden;
  border: 6px solid var(--navy-900); box-shadow: 0 20px 40px -18px rgba(0,0,0,.6);
}
.section--light .room__sub { border-color: var(--cream); }
.room--reverse .room__main { inset: 0 0 14% 18%; }
.room--reverse .room__sub { right: auto; left: 0; }
.room__main img, .room__sub img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.room__main:hover img, .room__sub:hover img { transform: scale(1.05); }
.room__text .h2 { margin-bottom: 14px; }
.room__points { list-style: none; padding: 0; margin: clamp(16px, 3vh, 28px) 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.room__points li {
  padding: 10px 12px; border: 1px solid rgba(201,165,92,.3); font-size: .85rem;
  display: flex; align-items: center; gap: 10px;
}
.room__points li::before { content: ""; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); flex-shrink: 0; }
.section--light .room__points li { border-color: rgba(156,122,55,.35); color: var(--navy-800); }

/* responsive */
@media (max-width: 860px) {
  .plan__grid { grid-template-columns: 1fr; gap: 14px; }
  .plan__drawing { height: 34vh; order: 0; }
  .plan .lead { display: none; }
  .room__grid { grid-template-columns: 1fr; gap: 18px; }
  .room--reverse .room__media { order: 0; }
  .room__media { height: 40vh; }
  .flat-hero { flex-direction: column; align-items: flex-start; }
  .flat-hero__badge { position: absolute; right: var(--gutter); top: calc(var(--header-h) + 20px); width: 110px; }
}
@media (max-width: 600px) {
  .room__media { height: 36vh; }
  .room__text .lead { font-size: .88rem; }
  .room__points { gap: 6px; margin-top: 12px; }
  .room__points li { padding: 7px 8px; font-size: .74rem; }
  .room-table th { font-size: .64rem; }
  .room-table td { font-size: 1rem; }
  .room-table th, .room-table td { padding: 7px 4px; }
  .hotspot span { display: none; }
}
@media (max-height: 700px) and (max-width: 600px) {
  .room__text .lead { display: none; }
}
@media (max-width: 600px) and (max-height: 700px) {
  .plan__drawing { height: 28vh; }
  .room-table { margin-top: 8px; }
  .room-table th, .room-table td { padding: 5px 4px; }
}
