/* ==========================================================================
   Stránka Apartmány (/sk/izby): karta Celý chalet, jemné štítky, kompaktné
   vyhľadávanie. Načítava sa po main.css a mobile.css.
   ========================================================================== */

.rooms-page {
  --ap-hair: rgba(224, 233, 242, 0.12);
  --ap-soft: rgba(224, 233, 242, 0.72);
  --ap-text: rgba(224, 233, 242, 0.9);
  --ap-gold: #e3a127;
}

/* ---------- Vyhľadávanie termínu: nižšie ---------- */
.rooms-page .row.mb-5:has(.search-form-wrapper) {
  margin-bottom: 28px !important;
}

.rooms-page .search-form-wrapper {
  border-radius: 18px;
  padding: 0;
  box-shadow: 0 10px 28px -22px rgba(0, 0, 0, 0.9);
}

.rooms-page #roomSearchForm {
  padding: 10px 12px !important;
  gap: 10px !important;
  align-items: flex-end !important;
}

.rooms-page #roomSearchForm .form-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ap-soft);
  margin: 0 0 4px 4px !important;
}

.rooms-page .search-form-wrapper .form-control {
  min-height: 46px;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.rooms-page .search-form-wrapper .btn-primary,
.rooms-page .search-form-wrapper .btn-outline-secondary {
  min-height: 46px;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

/* ---------- Karta Celý chalet ---------- */
.whole-card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  margin: 3rem 0 1rem;
  border-radius: 1.5rem;
  overflow: hidden;
  background: linear-gradient(145deg, #16262f 0%, #1b2b34 100%);
  border: 1px solid rgba(227, 161, 39, 0.28);
  box-shadow: 0 24px 48px -36px rgba(0, 0, 0, 0.95);
}

.whole-card__photo {
  position: relative;
  min-height: 300px;
}

.whole-card__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.whole-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 2.25rem 2.5rem;
}

.whole-card__title {
  margin: 0;
  font-family: var(--heading-font);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--heading-color, #fff);
}

.whole-card__facts {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ap-gold);
}

.whole-card__lead {
  margin: 0;
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ap-soft);
}

.whole-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 8px;
}

.rooms-page .whole-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1.5rem;
  border-radius: 1rem;
  border: 1.5px solid var(--ap-gold);
  background: transparent;
  color: var(--ap-gold);
  font-weight: 700;
  font-size: 0.9rem;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.rooms-page .whole-card__cta:hover,
.rooms-page .whole-card__cta:focus-visible {
  background: var(--ap-gold);
  color: #031119;
}

.whole-card__more {
  font-size: 14px;
  font-weight: 600;
  color: var(--ap-text);
  text-decoration: none;
  border-bottom: 1px solid var(--ap-hair);
  padding-bottom: 2px;
}

.whole-card__more:hover {
  color: var(--ap-gold);
  border-bottom-color: var(--ap-gold);
}

.whole-card__more i {
  font-size: 12px;
  margin-left: 2px;
}

/* ---------- Karta apartmánu ---------- */
.rooms-list .room-header-horizontal {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 12px;
}

/* Kapacita a plocha: tenký text, zlatá len ikona */
.room-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ap-soft);
}

.room-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.room-meta i {
  color: var(--ap-gold);
  font-size: 15px;
}

.room-summary {
  margin: 0 0 16px;
  max-width: 60ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ap-text);
}

/* Štítky: jemný rámik, svetlý text */
.room-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.room-chips li {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 12px;
  border: 1px solid var(--ap-hair);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ap-text);
  background: rgba(224, 233, 242, 0.03);
  white-space: nowrap;
}

/* Cena: svetlá, zlatá ostáva len na tlačidle Rezervovať */
.rooms-list .price-amount-horizontal {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.rooms-list .price-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  opacity: 1;
  color: var(--ap-soft);
}

.rooms-list .room-footer-horizontal {
  padding-top: 1.5rem;
}

.rooms-list .room-actions-horizontal .btn {
  white-space: nowrap;
}

/* Tablet / menší počítač */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .rooms-list .room-content-horizontal {
    padding: 1.75rem 1.75rem 1.5rem;
  }

  .rooms-list .room-actions-horizontal .btn {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
}

@media (max-width: 991.98px) {
  .whole-card {
    grid-template-columns: 1fr;
    margin-bottom: 20px;
    border-radius: 20px;
  }

  .whole-card__photo {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .whole-card__body {
    padding: 18px 20px 22px;
    gap: 10px;
  }

  .whole-card__title {
    font-size: 22px;
  }

  .whole-card__facts,
  .whole-card__lead {
    font-size: 15px;
  }

  .rooms-page .whole-card__cta {
    min-height: 48px;
    flex: 1 1 auto;
  }

  .whole-card__more {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    border-bottom: 0;
    text-decoration: underline;
    text-decoration-color: var(--ap-hair);
    text-underline-offset: 4px;
  }

  /* Štítky na mobile ukázať (pôvodné ikony boli skryté) */
  .rooms-list .room-chips {
    margin-bottom: 4px;
  }

  .rooms-list .room-header-horizontal {
    margin-bottom: 8px;
  }

  .rooms-list .room-title-horizontal {
    margin-bottom: 0 !important;
  }

  .room-summary {
    font-size: 15px;
    margin-bottom: 12px;
  }

  .rooms-list .price-amount-horizontal {
    font-size: 26px !important;
  }

  .rooms-list .room-actions-horizontal {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }

  .rooms-list .room-actions-horizontal .btn {
    white-space: normal;
    text-align: center;
    line-height: 1.2;
    font-size: 14.5px;
    padding: 6px 10px;
  }

  /* Vyhľadávanie: jeden riadok – pole + malé tlačidlo s lupou */
  .rooms-page .row.mb-5:has(.search-form-wrapper) {
    margin-bottom: 16px !important;
  }

  .rooms-page #roomSearchForm {
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px !important;
  }

  .rooms-page #roomSearchForm .form-group {
    grid-column: 1 !important;
  }

  .rooms-page #roomSearchForm .form-label {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .rooms-page #roomSearchForm .form-control {
    min-height: 48px;
    font-size: 16px;
    padding-left: 2.6rem;
    padding-right: 0.5rem;
    text-overflow: ellipsis;
  }

  .rooms-page .search-form-wrapper .input-with-icon i {
    left: 0.85rem;
  }

  .rooms-page #searchButton,
  .rooms-page #searchButton:has(~ #clearButton:not([style*="display: none"])) {
    grid-column: 2 !important;
    width: 48px !important;
    min-width: 48px;
    min-height: 48px;
    padding: 0 !important;
    border-radius: 14px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .rooms-page #searchButton i {
    margin: 0 !important;
    font-size: 18px;
  }

  .rooms-page #searchButton .button-text,
  .rooms-page #clearButton span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .rooms-page #clearButton:not([style*="display: none"]) {
    grid-column: 3 !important;
    width: 48px !important;
    min-width: 48px;
    min-height: 48px;
    padding: 0 !important;
    border-radius: 14px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  .rooms-page #clearButton i {
    margin: 0 !important;
  }
}

.rooms-list .room-unavailable-note {
  margin: 0 0 14px;
}

/* Bed line on apartment cards (partials/beds/line) */
.beds-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 6px 0 0;
  font-size: 13.5px;
  color: rgba(224, 233, 242, 0.72);
}

.beds-line__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.beds-line .bed-ic {
  flex: none;
  width: 19px;
  height: 15px;
  color: var(--accent-color, #e3a127);
}
