/* Homepage sections on top of main.css – same palette (navy + gold) and fonts.
   Hero with the real evening photo of the chalet, apartments, whole chalet, rating panel. */

/* ---------- Hero ---------- */
.hero.hero-photo {
    min-height: min(100vh, 1000px);
    align-items: flex-end;
    padding: 150px 0 56px;
    background: #031119;
}
.hero.hero-photo::before { display: none; }
.hero-photo-bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: 50% 45%; z-index: 0;
}
.hero.hero-photo::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(180deg, rgba(3, 17, 25, .78) 0%, rgba(3, 17, 25, .12) 26%, rgba(3, 17, 25, .18) 50%, rgba(3, 17, 25, .94) 100%);
}
.hero.hero-photo .hero-photo-inner { position: relative; z-index: 2; }
.hero.hero-photo .content { max-width: 760px; }
.hero.hero-photo .agency-name { margin-bottom: 14px; }
.hero.hero-photo .agency-name .h5 {
    color: var(--accent-color); letter-spacing: .18em; text-transform: uppercase;
    font-size: .95rem; text-shadow: 0 1px 10px rgba(0, 0, 0, .6);
}
.hero.hero-photo .main-heading { margin-bottom: 0; }
.hero.hero-photo .main-heading h1 {
    font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.05; color: #fff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .4);
}
.hero.hero-photo .divider { width: 80px; height: 2px; background: var(--accent-color); margin: 22px 0; }
.hero-lead {
    color: rgba(255, 255, 255, .9); font-size: 1.08rem; line-height: 1.65; max-width: 640px;
    margin: 0 0 22px; text-shadow: 0 1px 12px rgba(0, 0, 0, .55);
}
.hero-rating { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; margin-bottom: 30px; }
.hero-rating strong {
    background: var(--accent-color); color: #031119;
    font: 800 1.15rem/1 var(--heading-font); padding: 10px 12px; border-radius: 8px 8px 8px 0;
}
.hero-rating span { font-size: .98rem; color: rgba(255, 255, 255, .9); border-bottom: 1px solid rgba(255, 255, 255, .35); }
.hero-rating:hover span { color: var(--accent-color); border-color: var(--accent-color); }

.hero-search {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 14px; align-items: end; max-width: 820px;
    padding: 18px; background: rgba(27, 38, 44, .9);
    border: 1px solid rgba(227, 161, 39, .25); border-radius: 16px;
    box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .7);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hs-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.hs-field span { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-color); font-weight: 600; }
.hs-field input {
    background: #0b1a22; color: #fff; color-scheme: dark;
    border: 1px solid rgba(224, 233, 242, .18); border-radius: 10px;
    padding: 12px 14px; font-size: 1rem; min-height: 50px; width: 100%; min-width: 0; box-sizing: border-box;
}
.hs-field input:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(227, 161, 39, .2); }
.hero-search .hs-btn {
    min-height: 50px; padding: 0 26px; border-radius: 50px; border: 0;
    background: var(--accent-color); color: #fff; font-weight: 700; white-space: nowrap;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    transition: transform .2s, background-color .2s;
}
.hero-search .hs-btn:hover { background: #c98a17; color: #fff; transform: translateY(-1px); }
.hs-note { grid-column: 1 / -1; margin: -2px 0 0; font-size: .85rem; color: rgba(224, 233, 242, .7); }
/* Custom calendar fields (no native date picker) */
.hs-field input.hs-date {
    cursor: pointer; caret-color: transparent;
    padding-right: 42px;
    background: #0b1a22 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='%23e3a127' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5M1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4z'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.hs-field input.hs-date::placeholder { color: rgba(224, 233, 242, .55); }
.hero-search.has-error .hs-field input.hs-date { border-color: rgba(240, 128, 128, .75); }
/* Own validation message in the page language (no browser bubbles) */
.hs-error {
    grid-column: 1 / -1; margin: 0; display: flex; gap: 8px; align-items: center;
    padding: 10px 14px; border-radius: 10px; font-size: .92rem; line-height: 1.4;
    background: rgba(220, 53, 69, .14); border: 1px solid rgba(240, 128, 128, .5); color: #f6d3d6;
}
.hs-error::before { content: "!"; flex: 0 0 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(240, 128, 128, .85); color: #031119; font-weight: 800; font-size: .8rem; }
.hs-error[hidden] { display: none; }

@media (max-width: 991px) {
    .hero.hero-photo { min-height: 0; padding: 160px 0 28px; }
    .hero.hero-photo::after { background: linear-gradient(180deg, rgba(3, 17, 25, .8) 0%, rgba(3, 17, 25, .25) 22%, rgba(3, 17, 25, .55) 50%, rgba(3, 17, 25, .96) 100%); }
    .hero.hero-photo .content { min-height: 48vh; display: flex; flex-direction: column; justify-content: flex-end; }
    .hero-search { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 16px; gap: 12px; }
    .hero-search .hs-btn { grid-column: 1 / -1; }
}
@media (max-width: 575px) {
    .hero-lead { font-size: 1rem; }
    .hero.hero-photo .content { min-height: 36vh; }
}

/* ---------- Apartments ---------- */
.home-units .hu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.hu-card {
    display: flex; flex-direction: column; text-decoration: none;
    background: var(--surface-color); border-radius: 18px; overflow: hidden;
    border: 1px solid rgba(224, 233, 242, .08);
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.hu-card:hover { transform: translateY(-4px); border-color: rgba(227, 161, 39, .45); box-shadow: 0 22px 40px -24px rgba(0, 0, 0, .8); }
.hu-img { aspect-ratio: 4 / 3; overflow: hidden; }
.hu-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.hu-card:hover .hu-img img { transform: scale(1.05); }
.hu-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.hu-body h3 { font-size: 1.35rem; margin: 0; color: var(--heading-color); }
.hu-facts { margin: 0; color: rgba(224, 233, 242, .75); font-size: .95rem; }
.hu-facts span { margin: 0 6px; }
.hu-facts i { color: var(--accent-color); margin-right: 4px; }
.hu-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(224, 233, 242, .1); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hu-price { margin: 0; color: var(--accent-color); font: 800 1.5rem/1 var(--heading-font); }
.hu-price small { font: 500 .8rem/1 var(--default-font); color: rgba(224, 233, 242, .72); }
.hu-more { color: var(--heading-color); font-weight: 600; font-size: .95rem; white-space: nowrap; }
.hu-card:hover .hu-more { color: var(--accent-color); }
.hu-wide { grid-column: span 2; flex-direction: row; }
.hu-wide .hu-img { aspect-ratio: auto; flex: 1.3; min-height: 300px; }
.hu-wide .hu-body { flex: 1; justify-content: center; }
.hu-wide h3 { font-size: 1.8rem; }
.hu-lead { margin: 8px 0 4px; color: rgba(224, 233, 242, .8); line-height: 1.65; }
.hu-wide .hu-foot { margin-top: 12px; }
.hu-all { text-align: center; margin: 32px 0 0; }
.hu-all a { color: var(--accent-color); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(227, 161, 39, .4); padding-bottom: 2px; }
.hu-all a:hover { border-color: var(--accent-color); }

@media (max-width: 991px) {
    .home-units .hu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
    .home-units .hu-grid { grid-template-columns: 1fr; gap: 18px; }
    .hu-wide { grid-column: auto; flex-direction: column; }
    .hu-wide .hu-img { aspect-ratio: 4 / 3; min-height: 0; }
}

/* ---------- Whole chalet ---------- */
.home-whole { padding-top: 0; }
.hw-wrap {
    display: grid; grid-template-columns: 1.15fr 1fr;
    background: var(--surface-color); border-radius: 24px; overflow: hidden;
    border: 1px solid rgba(227, 161, 39, .22);
}
.hw-photo img { width: 100%; height: 100%; min-height: 440px; object-fit: cover; object-position: 50% 55%; display: block; }
.hw-text { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 14px; }
.hw-eyebrow { margin: 0; color: var(--accent-color); letter-spacing: .18em; text-transform: uppercase; font-size: .85rem; font-weight: 600; }
.hw-text h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0; color: #fff; }
.hw-size { color: var(--accent-color); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 0; }
.hw-text p { margin: 0; color: rgba(224, 233, 242, .82); }
.hw-text ul { list-style: none; padding: 0; margin: 6px 0 0; }
.hw-text li { padding: 9px 0; border-bottom: 1px solid rgba(224, 233, 242, .1); color: var(--heading-color); }
.hw-text li i { color: var(--accent-color); margin-right: 8px; }
.hw-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.hw-actions .btn { border-radius: 50px; padding: 12px 24px; font-weight: 600; }
.hw-actions .btn-primary { background: var(--accent-color); border-color: var(--accent-color); color: #fff; }
.hw-actions .btn-primary:hover { background: #c98a17; border-color: #c98a17; color: #fff; }
.hw-actions .btn-outline { border: 1px solid rgba(224, 233, 242, .4); color: #fff; }
.hw-actions .btn-outline:hover { border-color: var(--accent-color); color: var(--accent-color); }
@media (max-width: 991px) {
    .hw-wrap { grid-template-columns: 1fr; }
    .hw-photo img { min-height: 260px; max-height: 360px; }
}

/* ---------- Rating panel ---------- */
.rv-panel {
    display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 28px 48px; align-items: center;
    background: var(--surface-color); border: 1px solid rgba(227, 161, 39, .22); border-radius: 24px;
    padding: clamp(24px, 4vw, 48px);
}
.rv-score { display: flex; align-items: center; gap: 20px; }
.rv-big {
    background: var(--accent-color); color: #031119; font: 800 2.6rem/1 var(--heading-font);
    padding: 18px 20px; border-radius: 16px 16px 16px 0;
}
.rv-word { margin: 0 0 4px; color: #fff; font: 700 1.5rem/1.2 var(--heading-font); }
.rv-count { margin: 0; color: rgba(224, 233, 242, .75); }
.rv-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.rv-bars li { display: grid; grid-template-columns: 110px minmax(0, 1fr) 40px; align-items: center; gap: 14px; }
.rv-label { color: var(--heading-color); font-weight: 600; }
.rv-bar { height: 8px; border-radius: 8px; background: rgba(224, 233, 242, .12); overflow: hidden; }
.rv-bar span { display: block; height: 100%; background: var(--accent-color); border-radius: 8px; }
.rv-val { color: var(--accent-color); font-weight: 800; text-align: right; }
.rv-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; border-top: 1px solid rgba(224, 233, 242, .1); }
.rv-foot p { margin: 0; color: rgba(224, 233, 242, .75); max-width: 640px; }
@media (max-width: 767px) {
    .rv-panel { grid-template-columns: 1fr; }
    .rv-bars li { grid-template-columns: 96px minmax(0, 1fr) 36px; }
}
.rv-foot .btn-primary { background: var(--accent-color); border-color: var(--accent-color); color: #fff; border-radius: 50px; padding: 10px 24px; font-weight: 600; }
.rv-foot .btn-primary:hover { background: #c98a17; border-color: #c98a17; color: #fff; }

/* 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);
}
