﻿/* Настаняване — публичен каталог */

.page-stays-main,
.page-stay-detail-main {
    padding-top: calc(var(--nav-h) + 28px);
    padding-bottom: 48px;
}

.stays-page,
.page-stay-detail-inner {
    max-width: 1320px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Hero */
.stays-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px 20px;
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stays-hero__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, rgba(26, 140, 255, 0.95), rgba(20, 90, 180, 0.88));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.stays-hero__icon .icon,
.stays-hero__icon svg {
    width: 26px;
    height: 26px;
}

.stays-hero__main {
    flex: 1 1 260px;
    min-width: 0;
}

.stays-hero__title {
    margin: 0 0 8px;
    font-family: var(--font-primary);
    font-size: clamp(1.55rem, 2.8vw, 2rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.1;
}

.stays-hero__lead {
    margin: 0;
    max-width: 52ch;
    font-size: 15px;
    line-height: 1.55;
    color: rgba(240, 244, 250, 0.72);
}

/* Toolbar + filters */
.stays-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
}

.stays-toolbar__search {
    flex: 1 1 220px;
    min-width: 0;
}

.stays-toolbar__search input {
    width: 100%;
    min-height: 40px;
    padding: 0.55rem 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 14, 26, 0.9);
    color: #f0f4fa;
    font-size: 0.95rem;
}

.stays-toolbar__search input:focus {
    outline: none;
    border-color: rgba(26, 140, 255, 0.55);
    box-shadow: 0 0 0 3px rgba(26, 140, 255, 0.15);
}

.stays-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
}

.stays-filter {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 16, 28, 0.7);
    color: rgba(240, 244, 250, 0.78);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.stays-filter:hover {
    border-color: rgba(26, 140, 255, 0.45);
    color: #fff;
}

.stays-filter.is-active {
    border-color: rgba(26, 140, 255, 0.65);
    background: rgba(26, 140, 255, 0.16);
    color: #fff;
}


/* Grid + cards */
.stay-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.stay-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(165deg, rgba(14, 22, 36, 0.55) 0%, transparent 42%),
        linear-gradient(180deg, #0d1420 0%, #0a1018 100%);
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.25s, border-color 0.25s;
}

.stay-card-link {
    position: absolute;
    inset: 0;
    z-index: 4;
    border-radius: inherit;
    text-decoration: none;
    color: transparent;
}

.stay-card-link:focus {
    outline: none;
}

.stay-card:has(.stay-card-link:focus-visible) {
    outline: 2px solid rgba(26, 140, 255, 0.75);
    outline-offset: 2px;
}

.stay-card:hover {
    transform: translateY(-3px);
}

.stay-card--green {
    border-color: rgba(26, 140, 255, 0.45);
}

.stay-card--orange {
    border-color: rgba(245, 158, 11, 0.5);
}

.stay-card--blue {
    border-color: rgba(26, 140, 255, 0.5);
}

.stay-card--red {
    border-color: rgba(227, 24, 24, 0.5);
}

.stay-card__visual {
    position: relative;
    z-index: 1;
    height: 160px;
    background: #070c14;
    overflow: hidden;
}

.stay-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.stay-card__visual--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(26, 140, 255, 0.18), transparent 55%),
        linear-gradient(160deg, #0c1624 0%, #080e16 100%);
}

.stay-card__visual-icon {
    color: rgba(26, 140, 255, 0.55);
}

.stay-card__visual-icon .icon,
.stay-card__visual-icon svg {
    width: 40px;
    height: 40px;
}

.stay-card__body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 1rem 1.1rem 1.15rem;
    flex: 1;
}

.stay-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.stay-tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0.15rem 0.55rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(186, 230, 253, 0.95);
    background: rgba(26, 140, 255, 0.14);
    border: 1px solid rgba(26, 140, 255, 0.28);
}

.stay-badge-capacity {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0.15rem 0.55rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #e0f2fe;
    background: rgba(56, 189, 248, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.4);
}

.stay-card__body h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}

.stay-card__amenities {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: rgba(240, 244, 250, 0.68);
}

.stay-card__address {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: auto 0 0;
    padding-top: 6px;
    font-size: 0.84rem;
    line-height: 1.4;
    color: rgba(125, 211, 252, 0.85);
}

.stay-card__address .icon,
.stay-card__address svg {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    margin-top: 2px;
    opacity: 0.85;
}

/* Empty + pagination */
.stays-empty {
    text-align: center;
    padding: 48px 28px 52px;
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(8, 16, 28, 0.65) 0%, rgba(4, 10, 22, 0.4) 100%);
}

.stays-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    border-radius: 18px;
    color: rgba(26, 140, 255, 0.92);
    background: rgba(26, 140, 255, 0.1);
    border: 1px solid rgba(26, 140, 255, 0.22);
}

.stays-empty__icon .icon,
.stays-empty__icon svg {
    width: 30px;
    height: 30px;
}

.stays-empty__title {
    margin: 0 0 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.stays-empty__text {
    margin: 0 auto 1rem;
    max-width: 46ch;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(240, 244, 250, 0.62);
}

.stays-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 16px;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stays-pagination__info {
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(240, 244, 250, 0.55);
}

/* Detail */
.page-stay-back {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
}

.page-stay-back a {
    color: #6eb5ff;
    text-decoration: none;
    font-weight: 600;
}

.page-stay-back a:hover {
    color: #fff;
    text-decoration: underline;
}

.stay-detail {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: start;
    padding: 1.5rem 1.75rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 16, 30, 0.88);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.38);
}

.stay-detail.stay-card--green {
    border-color: rgba(26, 140, 255, 0.35);
}

.stay-detail__photo {
    border-radius: 14px;
    overflow: hidden;
    background: #070c14;
    aspect-ratio: 1;
}

.stay-detail__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.stay-detail__photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(26, 140, 255, 0.5);
    background:
        radial-gradient(ellipse at 40% 30%, rgba(26, 140, 255, 0.2), transparent 60%),
        #0a1420;
}

.stay-detail__photo--placeholder .icon,
.stay-detail__photo--placeholder svg {
    width: 56px;
    height: 56px;
}

.stay-detail__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.stay-detail__body h1 {
    margin: 0 0 10px;
    font-size: clamp(1.45rem, 2.4vw, 1.85rem);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
}

.stay-detail__summary {
    margin: 0 0 14px;
    font-size: 1.02rem;
    line-height: 1.55;
    color: rgba(240, 244, 250, 0.78);
}

.stay-detail__address {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 1.25rem;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    background: rgba(26, 140, 255, 0.08);
    border: 1px solid rgba(26, 140, 255, 0.2);
    font-size: 0.95rem;
    line-height: 1.45;
    color: rgba(186, 230, 253, 0.95);
}

.stay-detail__address-icon .icon,
.stay-detail__address-icon svg {
    width: 16px;
    height: 16px;
    margin-top: 2px;
}

.stay-detail__amenities {
    margin: 0 0 1.15rem;
}

.stay-detail__amenities h2 {
    margin: 0 0 6px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(240, 244, 250, 0.5);
}

.stay-detail__amenities p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(240, 244, 250, 0.88);
}

.stay-detail__desc {
    margin: 0 0 1.35rem;
    font-size: 0.98rem;
    line-height: 1.65;
    color: rgba(240, 244, 250, 0.72);
}

.stay-detail__contacts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stay-detail__contacts a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6eb5ff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.stay-detail__contacts a:hover {
    color: #fff;
    text-decoration: underline;
}

.stay-detail__contacts .icon,
.stay-detail__contacts svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 820px) {
    .stay-detail {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1.15rem;
    }

    .stay-detail__photo {
        max-width: 280px;
        margin: 0 auto;
    }
}

@media (max-width: 560px) {
    .stay-card__visual {
        height: 140px;
    }
}

