/* nikiapart.com — apartment page in the B/C style, laid out like a Booking.com property page (2026-10-28).
   Loads after site-b.css. */

/* Top: breadcrumbs, title row, photo grid */
.ap-top { padding-top: 10px; }
.crumbs { font-size: 14px; line-height: 20px; color: #767676; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: clamp(20px, 2.4vw, 32px); }
.crumbs a { color: #767676; text-decoration: none; }
.crumbs a:hover, .crumbs a:focus-visible { color: var(--ink); text-decoration: underline; }
.crumbs .sep { margin-inline: 6px; }
.crumbs .cur { color: var(--ink); }
.crumbs .back { display: none; }
@media (max-width: 767px) {
  .crumbs .full { display: none; }
  .crumbs .back { display: inline; }
}

.ap-head { display: grid; gap: 18px; margin-bottom: 24px; }
.ap-head h1 { font-size: var(--fs-h2); line-height: 1.1; }
.ap-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; font-size: var(--fs-small); }
.ap-meta a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500; }
.ap-meta a:hover { color: var(--gold); text-decoration: underline; }
.ap-meta svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
@media (min-width: 900px) {
  .ap-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; }
}

/* Booking-style photo grid: 1 large + 2 stacked, then a row of 5; the last one shows how many more */
.ap-photos { display: grid; gap: 8px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ap-photos a { position: relative; display: block; overflow: hidden; border-radius: var(--radius-img); }
.ap-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.ap-photos a:hover img { transform: scale(1.03); }
.ap-photos .p-big { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.ap-photos .p-side { display: none; }
.ap-photos .p-thumb { aspect-ratio: 1 / 1; }
.ap-photos .p-thumb:nth-of-type(7) { display: none; } /* phones: 4 thumbnails, the last one with the count */
.ap-photos .more .n-d { display: none; }
.ap-photos .more {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; white-space: nowrap;
  background: rgba(18, 20, 26, .55); color: #FFFFFF; font-weight: 600; font-size: var(--fs-small); text-decoration: underline; text-underline-offset: 3px;
}
@media (min-width: 900px) {
  .ap-photos { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(2, clamp(160px, 15vw, 230px)) clamp(110px, 9vw, 150px); }
  .ap-photos .p-big { grid-column: 1 / 4; grid-row: 1 / 3; aspect-ratio: auto; }
  .ap-photos .p-side { display: block; grid-column: 4 / 6; }
  .ap-photos .p-thumb, .ap-photos .p-thumb:nth-of-type(7) { display: block; aspect-ratio: auto; }
  .ap-photos .more .n-m { display: none; }
  .ap-photos .more .n-d { display: inline; }
}

/* Section tabs (sticky under the header, like Booking's overview tabs) */
.ap-tabs { position: sticky; top: var(--header-h); z-index: 40; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); margin-top: clamp(28px, 3vw, 44px); }
.ap-tabs ul { display: flex; gap: clamp(18px, 3vw, 40px); overflow-x: auto; scrollbar-width: none; }
.ap-tabs ul::-webkit-scrollbar { display: none; }
.ap-tabs a { display: block; padding: 16px 0 14px; border-bottom: 2px solid transparent; text-decoration: none; font-weight: 600; font-size: var(--fs-small); white-space: nowrap; color: var(--muted); transition: color .2s ease, border-color .2s ease; }
.ap-tabs a:hover { color: var(--ink); border-color: var(--gold); }

/* Main: content on the left, booking card on the right */
.ap-main { padding-block: clamp(40px, 5vw, 72px) var(--section); }
.ap-main__grid { display: grid; gap: 48px; }
.ap-block + .ap-block { margin-top: clamp(48px, 5vw, 72px); padding-top: clamp(48px, 5vw, 72px); border-top: 1px solid var(--line); }
.ap-block h2 { margin-bottom: 20px; }
.ap-block p.text { color: var(--muted); max-width: 68ch; }
.ap-block p.text + p.text { margin-top: 1em; }
.ap-amen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ap-amen li { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-card); font-weight: 500; font-size: var(--fs-small); line-height: 1.3; }
.ap-amen img { width: 40px; height: 40px; flex: none; } /* the client's own icons from the old site */
@media (min-width: 600px) { .ap-amen { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* 7 amenities (24/7 рецепция removed, 2026-11-02): phones 2+2+2+1 wide, wider screens 4 on top + 3 wider below, no hole */
.ap-amen:has(> li:nth-child(7):last-child) > li:last-child { grid-column: 1 / -1; }
@media (min-width: 600px) {
  .ap-amen:has(> li:nth-child(7):last-child) { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .ap-amen:has(> li:nth-child(7):last-child) > li { grid-column: span 3; }
  .ap-amen:has(> li:nth-child(7):last-child) > li:nth-child(n+5) { grid-column: span 4; }
}
.ap-contacts { display: grid; gap: 8px; }
.ap-contacts a { display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; background: var(--sand); border-radius: var(--radius-card); text-decoration: none; font-weight: 500; }
.ap-contacts a:hover { color: var(--gold); }
.ap-contacts .pin { width: 40px; height: 40px; border-radius: 50%; background: var(--bg); color: var(--gold); display: grid; place-items: center; flex: none; }
.ap-contacts .pin svg { width: 18px; height: 18px; }
.ap-contacts .city { display: block; font-size: var(--fs-label); color: var(--muted); font-weight: 500; }

/* Call card: no forms on the apartment pages, booking is by phone (Velko, 2026-10-28) */
.ap-call { background: var(--sand); border-radius: var(--radius-card); padding: clamp(24px, 3vw, 32px); }
.ap-call h2 { margin-bottom: 22px; }
.btn--call { width: 100%; min-height: 60px; font-size: var(--fs-lead); gap: 12px; }
.btn--call svg { width: 22px; height: 22px; }
@media (min-width: 900px) {
  .ap-main__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: clamp(40px, 5vw, 72px); align-items: start; }
  .ap-side { position: sticky; top: calc(var(--header-h) + 72px); }
}

/* Other apartments */
.ap-others { padding-bottom: var(--section); }
.ap-others__grid { display: grid; gap: 12px; padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.ap-others a { display: flex; align-items: center; gap: 18px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-card); text-decoration: none; font-weight: 600; transition: border-color .2s ease; }
.ap-others a:hover { border-color: var(--gold); }
.ap-others img { width: 96px; height: 72px; object-fit: cover; border-radius: 4px; flex: none; }
.ap-others a > span:not(.circle) { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.ap-others .eyebrow { margin-bottom: 6px; }
.ap-others .circle { margin-left: auto; margin-right: 10px; }
@media (max-width: 420px) { .ap-others .circle { display: none; } }
@media (min-width: 600px) { .ap-others img { width: 132px; height: 96px; } }
@media (min-width: 900px) { .ap-others__grid { grid-template-columns: 1fr 1fr; } }

/* All photos: full-screen overlay opened with #snimki (CSS :target, no JS) */
.lightbox { display: none; }
.lightbox:target { display: block; position: fixed; inset: 0; z-index: 100; background: rgba(18, 20, 26, .96); overflow-y: auto; overscroll-behavior: contain; padding: 72px var(--gutter) 48px; }
.lightbox__close {
  position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: #FFFFFF; color: var(--ink); text-decoration: none; font-size: 26px; line-height: 1;
}
.lightbox__grid { max-width: 1100px; margin-inline: auto; display: grid; gap: 10px; }
.lightbox__grid img { width: 100%; height: auto; border-radius: var(--radius-img); }
@media (min-width: 900px) { .lightbox__grid { grid-template-columns: 1fr 1fr; } .lightbox__grid img:nth-child(3n + 1) { grid-column: 1 / -1; } }

/* Top right column, like Booking: reviews card above a map, next to the photo grid */
.ap-gallery { display: grid; gap: 8px; }
.ap-aside { display: grid; gap: 8px; }
.ap-rv { border: 1px solid var(--line); border-radius: var(--radius-card); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.ap-rv__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ap-rv__num { font-size: 2.25rem; font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.ap-rv__count { font-size: var(--fs-label); color: var(--muted); text-align: right; }
.ap-rv__count a { color: var(--ink); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.ap-rv__count a:hover { color: var(--gold); text-decoration: underline; }
.ap-rv blockquote { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--muted); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.ap-rv__who { display: flex; align-items: center; gap: 10px; font-size: var(--fs-label); font-weight: 600; }
.ap-rv__who img, .ap-rv__who .ini { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }
.ap-rv__who .ini { display: grid; place-items: center; background: var(--dark); color: #FFFFFF; font-size: 12px; }
.ap-map { position: relative; border-radius: var(--radius-card); overflow: hidden; min-height: 200px; background: var(--sand); }
.ap-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (min-width: 600px) and (max-width: 1199px) { .ap-aside { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) {
  .ap-gallery { grid-template-columns: minmax(0, 1fr) 300px; align-items: stretch; }
  .ap-aside { grid-template-rows: auto 1fr; }
}
