/* ══ Live availability & prices (HyperGuest) ══════════════════════════════
   Used by the villa pages' price widget (Pages/Shared/_VillaRatesWidget.cshtml)
   and by the villa search page, which shares the search bar and the state blocks. */
.vr-section,
.vs-page,
.vs-scope {
    --vr-gold: #BD945A;
    --vr-gold-dark: #a07a44;
    --vr-gold-soft: rgba(189, 148, 90, .10);
    --vr-gold-border: rgba(189, 148, 90, .28);
    --vr-ink: #141414;
    --vr-ink-soft: #4c4740;
    --vr-muted: #8a8478;
    --vr-cream: #f5f2ec;
    --vr-line: #ece7df;
    --vr-green: #2e7d32;
    --vr-red: #b23a2b;
}
.vr-section {
    background: var(--vr-cream);
    scroll-margin-top: 90px;
}
.vr-head { text-align: center; margin-bottom: 34px; }
.vr-lead { color: var(--vr-muted); font-size: 16px; line-height: 1.6; max-width: 560px; margin: 0 auto; }

/* Search bar */
.vr-search {
    display: grid; grid-template-columns: 1.1fr 1.1fr .8fr 1.3fr auto; align-items: stretch;
    background: #fff; border: 1px solid var(--vr-line); border-radius: 18px; padding: 8px;
    box-shadow: 0 18px 50px rgba(20, 16, 10, .10);
}
.vr-field {
    position: relative; min-width: 0; padding: 10px 18px; border-radius: 12px;
    display: flex; flex-direction: column; justify-content: center;
    transition: background .2s;
}
.vr-field + .vr-field:not(.vr-field-submit)::before {
    content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px; background: var(--vr-line);
}
.vr-field:focus-within { background: #fbf8f3; }
.vr-field label {
    display: flex; align-items: center; gap: 6px; margin: 0 0 2px;
    font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--vr-muted); line-height: 1.4; cursor: pointer;
}
.vr-field label i { color: var(--vr-gold); font-size: 12px; }
.vr-search input,
.vr-search select {
    width: 100%; margin: 0; padding: 2px 0; border: none; border-radius: 0; background: transparent;
    font-family: "Urbanist", sans-serif; font-size: 16px; font-weight: 600; line-height: 1.5;
    color: var(--vr-ink); box-shadow: none; outline: none; cursor: pointer;
    -webkit-appearance: none; appearance: none;
}
.vr-search select {
    padding-right: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23BD945A' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right center;
}
.vr-search input[type="date"]::-webkit-calendar-picker-indicator { opacity: .5; cursor: pointer; }
.vr-field-submit { padding: 0; }
.vr-btn-search, .vr-btn-reserve {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background: linear-gradient(135deg, #c79c60, var(--vr-gold-dark)); color: #fff; border: none;
    border-radius: 12px; font-weight: 700; letter-spacing: .03em; line-height: 1.2; white-space: nowrap;
    cursor: pointer; box-shadow: 0 8px 22px rgba(189, 148, 90, .36);
    transition: transform .2s, box-shadow .2s, filter .2s;
}
.vr-btn-search { width: 100%; min-height: 62px; padding: 0 30px; font-size: 15px; }
.vr-btn-search:hover, .vr-btn-reserve:hover {
    transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 12px 28px rgba(189, 148, 90, .48);
}
.vr-btn-search[disabled], .vr-btn-reserve[disabled] { cursor: progress; transform: none; filter: saturate(.75); }
.vr-spinner {
    display: none; width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: vr-spin .8s linear infinite;
}
.is-loading .vr-spinner { display: inline-block; }
.is-loading .vr-btn-icon { display: none; }
@keyframes vr-spin { to { transform: rotate(360deg); } }

.vr-meta {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 24px;
    margin-top: 16px; font-size: 14px; line-height: 1.5; color: var(--vr-muted);
}
.vr-meta i { color: var(--vr-gold); margin-right: 4px; }
.vr-meta a { color: var(--vr-gold-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.vr-nights-pill {
    display: inline-flex; align-items: center; background: #fff; border: 1px solid var(--vr-gold-border);
    border-radius: 30px; padding: 4px 14px; font-size: 13px; font-weight: 700; color: var(--vr-ink);
}

/* Results */
.vr-results { margin-top: 30px; }
.vr-results:empty { display: none; }
@keyframes vr-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.vr-summary {
    display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-bottom: 22px;
    padding: 18px 26px; border-radius: 16px; color: #fff;
    background: linear-gradient(120deg, #1b1712, var(--vr-ink)); box-shadow: 0 12px 42px rgba(20, 16, 10, .12);
    animation: vr-in .35s ease both;
}
.vr-summary-item { display: flex; align-items: center; gap: 12px; }
.vr-summary-item > i { color: var(--vr-gold); font-size: 20px; }
.vr-summary-item > div, .vr-summary-from { display: flex; flex-direction: column; line-height: 1.35; }
.vr-summary-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.vr-summary-value { font-size: 15px; font-weight: 600; color: #fff; }
.vr-summary-from { margin-left: auto; text-align: right; }
.vr-summary-price { font-family: "Gilda Display", serif; font-size: 30px; line-height: 1.1; color: var(--vr-gold); }

.vr-rates { display: grid; gap: 16px; }
.vr-rate {
    position: relative; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 28px;
    background: #fff; border: 1px solid var(--vr-line); border-radius: 16px; padding: 26px 28px;
    transition: box-shadow .25s, border-color .25s; animation: vr-in .35s ease both;
}
.vr-rate:nth-child(2) { animation-delay: .06s; }
.vr-rate:nth-child(3) { animation-delay: .12s; }
.vr-rate:hover { border-color: var(--vr-gold-border); box-shadow: 0 14px 40px rgba(20, 16, 10, .09); }
.vr-rate.is-best {
    border-color: var(--vr-gold); box-shadow: 0 10px 34px rgba(189, 148, 90, .18);
    background: linear-gradient(180deg, #fffdf9, #fff 60%);
}
.vr-ribbon {
    position: absolute; top: -12px; left: 24px; display: inline-flex; align-items: center; gap: 6px;
    background: var(--vr-gold); color: #fff; border-radius: 30px; padding: 3px 13px;
    font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1.6;
    box-shadow: 0 4px 12px rgba(189, 148, 90, .4);
}
.vr-ribbon i { font-size: 9px; }
.vr-rate-title { margin: 0 0 8px; font-family: "Gilda Display", serif; font-size: 23px; line-height: 1.25; color: var(--vr-ink); }
.vr-rate-room { display: flex; align-items: center; gap: 7px; margin: -4px 0 10px; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--vr-ink-soft); }
.vr-rate-room i { color: var(--vr-gold); }
.vr-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.vr-tag {
    display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 30px;
    background: var(--vr-gold-soft); border: 1px solid var(--vr-gold-border); color: #8a5e1a;
    font-size: 13px; font-weight: 600; line-height: 1.6;
}
.vr-tag-save { background: rgba(46, 125, 50, .08); border-color: rgba(46, 125, 50, .25); color: var(--vr-green); }
.vr-perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.vr-perks li { display: flex; align-items: baseline; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--vr-ink-soft); }
.vr-perks li i { width: 16px; flex-shrink: 0; color: var(--vr-muted); }
.vr-perks li.is-pos { color: var(--vr-green); font-weight: 600; }
.vr-perks li.is-neg { color: var(--vr-red); font-weight: 600; }
.vr-perks li.is-pos i, .vr-perks li.is-neg i { color: inherit; }
.vr-perks li.is-note { font-size: 13px; font-style: italic; color: var(--vr-muted); }

.vr-taxes { margin-top: 10px; }
.vr-taxes summary, .vr-remarks summary {
    display: inline-flex; align-items: center; gap: 6px; list-style: none; cursor: pointer; user-select: none;
    font-size: 13px; font-weight: 600; line-height: 1.6; color: var(--vr-gold-dark);
}
.vr-taxes summary::-webkit-details-marker, .vr-remarks summary::-webkit-details-marker { display: none; }
.vr-caret { font-size: 10px; transition: transform .2s; }
details[open] > summary .vr-caret { transform: rotate(180deg); }
.vr-taxes-body {
    max-width: 440px; margin-top: 8px; padding: 8px 14px; border-radius: 10px;
    background: var(--vr-cream); border: 1px solid var(--vr-line);
}
.vr-tax-line { display: flex; justify-content: space-between; gap: 14px; font-size: 13px; line-height: 1.7; }
.vr-tax-line span:last-child { font-weight: 700; color: var(--vr-ink); white-space: nowrap; }
.vr-tax-note { margin-top: 8px; font-size: 13px; color: var(--vr-gold-dark); }

.vr-rate-price { display: flex; flex-direction: column; min-width: 170px; text-align: right; line-height: 1.35; }
.vr-price-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--vr-muted); }
.vr-price-total { margin: 2px 0; font-family: "Gilda Display", serif; font-size: 31px; line-height: 1.2; color: var(--vr-ink); white-space: nowrap; }
.vr-price-night { font-size: 14px; font-weight: 600; color: var(--vr-ink-soft); }
.vr-price-sub { font-size: 12px; color: var(--vr-muted); }
.vr-btn-reserve { padding: 15px 28px; font-size: 15px; }
.vr-btn-reserve i { transition: transform .2s; }
.vr-btn-reserve:hover i { transform: translateX(3px); }

.vr-foot { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.vr-times { display: flex; flex-wrap: wrap; gap: 10px; }
.vr-time {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 10px;
    background: #fff; border: 1px solid var(--vr-line); font-size: 14px; line-height: 1.5; color: var(--vr-ink-soft);
}
.vr-time i { color: var(--vr-gold); }
.vr-remarks ul {
    margin: 8px 0 0; padding: 12px 18px 12px 34px; list-style: disc;
    background: #fffbf2; border: 1px solid var(--vr-gold-border); border-left: 3px solid var(--vr-gold);
    border-radius: 0 10px 10px 0; font-size: 14px; line-height: 1.6; color: #6b4d24;
}
.vr-live-note { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; line-height: 1.5; color: var(--vr-muted); }
.vr-live-note i { color: var(--vr-green); }

/* Empty / error / validation states */
.vr-empty {
    padding: 40px 24px; text-align: center; border-radius: 18px;
    background: #fff; border: 1px dashed var(--vr-gold-border); animation: vr-in .35s ease both;
}
.vr-empty-icon {
    display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin: 0 auto 14px;
    border-radius: 50%; background: var(--vr-gold-soft); color: var(--vr-gold); font-size: 26px;
}
.vr-empty h4 { margin: 0 0 6px; font-family: "Gilda Display", serif; font-size: 24px; color: var(--vr-ink); }
.vr-empty p { max-width: 540px; margin: 0 auto 10px; font-size: 15px; line-height: 1.6; color: var(--vr-ink-soft); }
.vr-empty p.vr-empty-dates { font-size: 14px; color: var(--vr-muted); }
.vr-alt-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 16px 0 6px; }
.vr-alt {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 30px; cursor: pointer;
    background: #fff; border: 1px solid var(--vr-gold-border); color: var(--vr-ink);
    font-size: 14px; font-weight: 600; line-height: 1.4; transition: background .2s, color .2s, border-color .2s;
}
.vr-alt i { color: var(--vr-gold); }
.vr-alt:hover { background: var(--vr-gold); border-color: var(--vr-gold); color: #fff; }
.vr-alt:hover i { color: #fff; }
.vr-empty-actions { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 14px; }
.vr-btn-ghost {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 20px; border-radius: 30px; cursor: pointer;
    background: transparent; border: 1px solid var(--vr-gold); color: var(--vr-gold-dark);
    font-size: 14px; font-weight: 700; line-height: 1.4; text-decoration: none; transition: background .2s, color .2s;
}
.vr-btn-ghost:hover { background: var(--vr-gold); color: #fff; }
.vr-btn-link { display: inline-block; font-size: 14px; font-weight: 600; color: var(--vr-gold-dark); text-decoration: underline; text-underline-offset: 3px; }
.vr-alert { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 12px; font-size: 15px; line-height: 1.5; }
.vr-alert-warn { background: #fff7e6; border: 1px solid #f1d29a; color: #7a5313; }

/* Loading skeleton */
.vr-loading-text { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 14px; font-size: 14px; color: var(--vr-muted); }
.vr-loading-text i { color: var(--vr-gold); }
.vr-skel {
    display: grid; grid-template-columns: 1fr 170px 150px; align-items: center; gap: 28px;
    padding: 26px 28px; border-radius: 16px; background: #fff; border: 1px solid var(--vr-line);
}
.vr-skel + .vr-skel { margin-top: 16px; }
.vr-skel-col { display: flex; flex-direction: column; gap: 10px; }
.vr-skel-line {
    height: 13px; border-radius: 7px; background: linear-gradient(90deg, #f1ece4 25%, #f9f6f1 50%, #f1ece4 75%);
    background-size: 200% 100%; animation: vr-shimmer 1.2s ease-in-out infinite;
}
.vr-skel-line.is-lg { height: 26px; }
.vr-skel-line.is-btn { height: 48px; border-radius: 12px; }
@keyframes vr-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Hero call-to-action */
.vr-hero-cta {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 11px 26px; border-radius: 40px;
    background: linear-gradient(135deg, #c79c60, #a07a44); color: #fff; text-decoration: none;
    font-size: 15px; font-weight: 700; letter-spacing: .03em; line-height: 1.4;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .35); transition: transform .2s, filter .2s;
}
.vr-hero-cta:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.06); }

/* Mobile sticky bar */
.vr-sticky {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 999; display: none;
    align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: #141414; color: #fff; box-shadow: 0 -10px 30px rgba(0, 0, 0, .25);
    transform: translateY(110%); transition: transform .3s ease;
}
.vr-sticky.is-visible { transform: none; }
.vr-sticky-info { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.vr-sticky-name { font-family: "Gilda Display", serif; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vr-sticky-from { font-size: 13px; color: #BD945A; }
.vr-sticky-btn {
    flex-shrink: 0; padding: 10px 20px; border-radius: 30px; background: linear-gradient(135deg, #c79c60, #a07a44);
    color: #fff; font-size: 14px; font-weight: 700; line-height: 1.4; text-decoration: none; white-space: nowrap;
}
.vr-sticky-btn:hover { color: #fff; }

@media (max-width: 991.98px) {
    .vr-search { grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; }
    .vr-field { border: 1px solid var(--vr-line); }
    .vr-field + .vr-field:not(.vr-field-submit)::before { display: none; }
    .vr-field-submit { grid-column: 1 / -1; border: none; }
    .vr-btn-search { min-height: 54px; }
    .vr-rate { grid-template-columns: 1fr auto; }
    .vr-rate-cta { grid-column: 1 / -1; }
    .vr-rate-cta form, .vr-btn-reserve { width: 100%; }
    .vr-sticky { display: flex; }
    body.vr-sticky-on .progress-wrap { bottom: calc(92px + env(safe-area-inset-bottom)); }
}
@media (max-width: 575.98px) {
    .vr-summary { padding: 18px 20px; gap: 14px 22px; }
    .vr-summary-from { margin-left: 0; text-align: left; }
    .vr-rate { grid-template-columns: 1fr; gap: 16px; padding: 26px 20px 20px; }
    .vr-rate-price { text-align: left; min-width: 0; }
    .vr-skel { grid-template-columns: 1fr; gap: 14px; }
}
