/* City Palace Hotel website: shared components used on several pages.
   Status: draft. Structure inspired by The Peninsula Hong Kong (studied 27 Nov 2026); nothing copied.
   Only tokens.css variables are used. */

/* ===== Photo placeholder =====
   Marks where a photo from the planned shoot will go. The caption is the shot brief for Mario.
   Swap the whole .ph element for an <img> when the photo exists. */
.ph {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--cp-space-1);
  width: 100%; height: 100%; min-height: 160px; aspect-ratio: 3 / 2; padding: var(--cp-space-3);
  background: color-mix(in srgb, var(--cp-ink) 6%, var(--cp-white));
  color: var(--cp-ink-soft); text-align: center;
}
.ph svg { width: 28px; height: 28px; fill: none; stroke: var(--cp-bronze); stroke-width: 1.2; }
.ph__label { font-size: var(--cp-size-label); font-weight: var(--cp-weight-label); letter-spacing: var(--cp-tracking-label); text-transform: uppercase; }
.ph__brief { font-family: var(--cp-font-display); font-size: var(--cp-size-lead); color: var(--cp-ink); max-width: 28ch; line-height: 1.35; }
.ph--dark { background: var(--cp-green-deep); color: var(--cp-bronze-light); }
.ph--dark .ph__brief { color: var(--cp-cream); }

/* ===== Carousel: a scroll-snap track with arrows and a 01/04 counter ===== */
.carousel { position: relative; }
.carousel__track { display: flex; gap: var(--cp-space-3); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { flex: 0 0 100%; scroll-snap-align: start; }
.carousel__nav { display: flex; align-items: center; justify-content: flex-end; gap: var(--cp-space-2); margin-top: var(--cp-space-3); font-size: var(--cp-size-small); color: var(--cp-ink-soft); }
.carousel__btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; color: var(--cp-ink); font-size: 20px; }
.carousel__btn:hover { color: var(--cp-bronze); }
.carousel__count { min-width: 4.5em; text-align: center; letter-spacing: 0.08em; }
@media (prefers-reduced-motion: reduce) { .carousel__track { scroll-behavior: auto; } }

/* Peek variant: the active slide centred, neighbours showing at the sides (Ohrid). */
.carousel--peek .carousel__track { padding: 0 8%; scroll-padding: 0 8%; }
.carousel--peek .carousel__slide { flex-basis: 84%; }
@media (min-width: 900px) { .carousel--peek .carousel__track { padding: 0 12%; scroll-padding: 0 12%; } .carousel--peek .carousel__slide { flex-basis: 76%; } }
.peek-card { display: grid; background: var(--cp-white); box-shadow: var(--cp-shadow-card); height: 100%; }
@media (min-width: 900px) { .peek-card { grid-template-columns: 1fr 1fr; } }
.peek-card img, .peek-card .ph { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.peek-card__body { padding: var(--cp-space-4); display: flex; flex-direction: column; justify-content: center; }
.peek-card__body h3 { margin-bottom: var(--cp-space-2); }
.peek-card__body p { color: var(--cp-ink-soft); }
.peek-card__credit { font-size: var(--cp-size-label); color: var(--cp-ink-soft); margin-top: var(--cp-space-2); }
.peek-card__credit a { color: var(--cp-ink-soft); }

/* ===== Vertical cards (offers) ===== */
.cards { display: grid; gap: var(--cp-space-3); grid-template-columns: minmax(0, 1fr); }
.card { min-width: 0; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; background: var(--cp-white); box-shadow: var(--cp-shadow-card); }
.card img, .card .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: var(--cp-space-3); }
.card__body h3, .card__body .card__title { font-size: var(--cp-size-h3); margin-bottom: var(--cp-space-1); }
.card__body p { color: var(--cp-ink-soft); font-size: var(--cp-size-small); }
.card__body .placeholder-tag { align-self: flex-start; margin-bottom: var(--cp-space-2); }
.card__foot { margin-top: auto; padding-top: var(--cp-space-3); }
.card__more { background: none; border: 0; padding: 6px 0; cursor: pointer; }
.section-foot { margin-top: var(--cp-space-5); text-align: center; }

/* ===== Icon rows (dining info panel, room cards) ===== */
.icon-rows { margin: 0; }
.icon-rows li { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: var(--cp-border); font-size: var(--cp-size-small); }
.icon-rows svg, .icon-inline svg { flex: 0 0 20px; width: 20px; height: 20px; fill: none; stroke: var(--cp-bronze); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.icon-inline { display: flex; flex-wrap: wrap; gap: var(--cp-space-1) var(--cp-space-4); color: var(--cp-ink-soft); font-size: var(--cp-size-small); margin: var(--cp-space-2) 0; }
.icon-inline span { display: inline-flex; align-items: center; gap: 8px; }
.icon-inline svg { flex-basis: 18px; width: 18px; height: 18px; }

/* ===== Feature band: full-width photo, text bottom left (seasonal feature, promise) ===== */
.band { position: relative; min-height: 520px; display: flex; align-items: flex-end; color: var(--cp-cream); overflow: hidden; }
@media (min-width: 1024px) { .band { min-height: 620px; } }
.band__media { position: absolute; inset: 0; }
.band__media img, .band__media .ph { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.band__media .ph { justify-content: flex-start; padding-top: var(--cp-space-6); }
.band__media .ph--dark { align-items: flex-end; text-align: right; padding-right: var(--cp-space-5); }
@media (max-width: 899px) {
  .band { min-height: 700px; }
  .band__media .ph { padding-top: var(--cp-space-5); }
  .band__media .ph--dark { align-items: center; text-align: center; padding-right: var(--cp-space-3); }
  .band__media .ph__brief { font-size: var(--cp-size-body); }
}
.band__shade { position: absolute; inset: 0; background: linear-gradient(to right, color-mix(in srgb, var(--cp-shade) 62%, transparent), color-mix(in srgb, var(--cp-shade) 20%, transparent) 75%); pointer-events: none; } /* black, never green */
.band .wrap { position: relative; z-index: 1; padding-top: var(--cp-space-6); padding-bottom: var(--cp-space-6); }
.band__text { max-width: 34rem; }
.band .label { color: var(--cp-cream); }
.band h2 { color: var(--cp-cream); margin-bottom: var(--cp-space-2); }
.band p { font-size: var(--cp-size-lead); margin-bottom: var(--cp-space-4); }

/* ===== Gallery (one large photo, arrows, counter) ===== */
.gallery-carousel .carousel__slide img, .gallery-carousel .carousel__slide .ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 599px) { .gallery-carousel .carousel__slide img, .gallery-carousel .carousel__slide .ph { aspect-ratio: 4 / 3; } }
.gallery-carousel figcaption { font-size: var(--cp-size-small); color: var(--cp-ink-soft); margin-top: var(--cp-space-1); }

/* Example photos in bands (Unsplash, a brief for the shoot): credit sits top right, clear of the text. */
.band__example { width: 100%; height: 100%; object-fit: cover; }
.band__credit { position: absolute; top: calc(96px + var(--cp-space-2)); right: var(--cp-space-3); z-index: 2; margin: 0; max-width: 80%;
  font-size: var(--cp-size-label); color: var(--cp-cream); text-align: right; line-height: 1.8;
  background: color-mix(in srgb, var(--cp-ink) 70%, transparent); padding: 6px 10px; }
.band__credit a { color: var(--cp-cream); }
.band__tag { color: var(--cp-cream); border-color: var(--cp-cream); margin-right: 6px; }

/* Example photos inside a placeholder slot (Unsplash, a brief for the shoot). The slot keeps its size;
   the credit sits bottom left. Replace with the hotel's own photo before launch. */
.ph.ph-example, .ph.ph-photo { display: block; padding: 0; margin: 0; background: var(--cp-stone); overflow: hidden; }
.ph.ph-example, .ph.ph-photo { height: auto; min-height: 0; }
.ph.ph-example > img, .ph.ph-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; display: block; margin: 0; } /* the slot's aspect ratio sets the size */
.ph-example__credit { position: absolute; left: 8px; bottom: 8px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center;
  max-width: calc(100% - 16px); padding: 4px 8px; font-size: var(--cp-size-label); line-height: 1.5; color: var(--cp-cream);
  background: color-mix(in srgb, var(--cp-ink) 72%, transparent); }
.ph-example__credit span { text-transform: uppercase; letter-spacing: 0.12em; }
.ph-example__credit a { color: var(--cp-cream); }

/* ===== Place tiles (Ohrid): tall photos, name and one line set on a light black fade ===== */
.tiles { display: flex; gap: var(--cp-space-2); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-top: var(--cp-space-2); }
.tiles::-webkit-scrollbar { display: none; }
.tile { position: relative; flex: 0 0 78%; aspect-ratio: 3 / 4; overflow: hidden; scroll-snap-align: start; background: var(--cp-stone); }
@media (min-width: 600px) { .tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; } .tile { flex: none; } }
@media (min-width: 1024px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--cp-space-3); } }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--cp-ease); }
.tile:hover img { transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, color-mix(in srgb, var(--cp-shade) 55%, transparent), transparent 50%); }
.tile__text { position: absolute; left: var(--cp-space-3); right: var(--cp-space-3); bottom: var(--cp-space-3); z-index: 1; }
.tile h3 { color: var(--cp-white); font-size: var(--cp-size-h3); margin: 0 0 4px; }
.tile p { color: var(--cp-white); font-size: var(--cp-size-small); margin: 0; opacity: 0.9; }
@media (prefers-reduced-motion: reduce) { .tile img { transition: none; } .tile:hover img { transform: none; } }

/* ===== Whole card clickable (Emilija, 29 Nov 2026): the card's one link or button stretches over the card.
   Add class "card--link" to any card whose foot holds a single "View the offer" link or button. ===== */
.card--link { position: relative; cursor: pointer; transition: box-shadow 300ms var(--cp-ease), transform 300ms var(--cp-ease); }
.card--link .card__foot a::before, .card--link .card__foot button::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.card--link:hover { transform: translateY(-3px); box-shadow: 0 24px 56px color-mix(in srgb, var(--cp-ink) 18%, transparent); }
.card--link:focus-within { outline: 2px solid var(--cp-bronze); outline-offset: 4px; }
.card--link .card__foot a:focus-visible, .card--link .card__foot button:focus-visible { outline: none; }
@media (prefers-reduced-motion: reduce) { .card--link, .card--link:hover { transition: none; transform: none; } }
