:root {
    --primary-color: #bf5276;
    --primary-light: #e5a0b7;
    --primary-lighter: #f8dfe8;
    --primary-dark: #81314d;
    --secondary-color: #7767c7;
    --accent-color: #5f9f95;
    --bg-color: #fff8fb;
    --bg-light: #ffffff;
    --bg-dark: #fae7ee;
    --text-primary: #2f2930;
    --text-secondary: #655a61;
    --text-light: #9b8d96;
    --border-color: #efd2dc;
    --success: #5f9f95;
    --shadow: 0 8px 24px rgba(129, 49, 77, .09);
    --shadow-hover: 0 14px 34px rgba(129, 49, 77, .16);
    --radius: 12px;
    --motion-fast: .14s;
    --motion-medium: .18s;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg-color);
    color: var(--text-primary);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #fff, var(--primary-lighter), #f1eefc);
    transform: scaleX(0);
    transform-origin: left;
    opacity: 0;
    transition: transform var(--motion-medium) ease, opacity var(--motion-fast) ease;
}

body.is-navigating::before {
    transform: scaleX(.82);
    opacity: 1;
}

main {
    transition: opacity var(--motion-fast) ease, transform var(--motion-fast) ease;
}

body.is-navigating main {
    opacity: .94;
    transform: translateY(2px);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, #8a3554 0%, #c46b8b 54%, #8c7ad0 100%);
    color: #fff;
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 68px;
}

.brand, .main-nav, .language-switcher, .hero-actions, .section-heading, .quick-filters, .style-footer, .badges, .meta-info {
    display: flex;
    align-items: center;
}

.brand {
    gap: 10px;
    font-size: 23px;
    font-weight: 800;
    white-space: nowrap;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    border: 1px solid rgba(255, 255, 255, .42);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
}

.main-nav { gap: 24px; font-size: 15px; }
.main-nav a, .language-switcher a {
    color: #fff;
    transition: opacity var(--motion-fast) ease, transform var(--motion-fast) ease;
}
.main-nav a:hover, .language-switcher a:hover { opacity: .85; transform: scale(1.04); }
.main-nav a.is-clicked, .language-switcher a.is-clicked, .gallery-card a.is-clicked, .category-item.is-clicked, .button.is-clicked, .footer-cta.is-clicked {
    transform: scale(.985);
}

.language-switcher { gap: 8px; font-size: 12px; }
.language-switcher a {
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
}
.language-switcher a.active {
    background: #fff;
    color: var(--primary-color);
    font-weight: 800;
}

.hero-section {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: linear-gradient(135deg, #fff8fb 0%, #f7e8f0 54%, #f0edf9 100%);
}

.hero-media.full-bleed {
    position: absolute;
    inset: 0;
}

.hero-media.full-bleed::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 248, 251, .96) 0%, rgba(255, 248, 251, .78) 42%, rgba(255, 248, 251, .16) 100%);
}

.hero-media.full-bleed img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-copy {
    position: relative;
    z-index: 1;
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(90px, 12vw, 150px) 0 110px;
}

.hero-copy h1, .page-intro h1 {
    margin: 0;
    max-width: 700px;
    color: var(--primary-dark);
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: 0;
}

.hero-copy p, .page-intro p {
    max-width: 620px;
    color: var(--text-secondary);
    font-size: 18px;
}

.hero-actions { gap: 12px; margin-top: 30px; flex-wrap: wrap; }

.button, .btn-pink, .footer-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 24px;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: transform var(--motion-fast) ease, box-shadow var(--motion-fast) ease, border-color var(--motion-fast) ease, color var(--motion-fast) ease;
}

.button.primary, .btn-pink, .footer-cta {
    background: linear-gradient(135deg, #9c3f60 0%, #d7839f 100%);
    color: #fff;
    box-shadow: var(--shadow);
}

.button.primary:hover, .btn-pink:hover, .footer-cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.button.ghost {
    background: #fff;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}
.button.ghost:hover { border-color: var(--primary-color); transform: translateY(-2px); }
.button.wide { width: 100%; }
.text-link { color: var(--primary-color); font-weight: 800; }

.section-band {
    padding: 56px 0;
}

.section-title, .section-heading h2, .booking-preview h2 {
    margin: 0 0 30px;
    color: var(--primary-color);
    text-align: center;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.2;
    font-weight: 900;
}

.section-heading.centered {
    justify-content: center;
    gap: 22px;
    margin-bottom: 24px;
}

.section-heading.centered h2 { margin: 0; }

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.category-item {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 28px 18px;
    background: var(--bg-light);
    border: 1px solid transparent;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform var(--motion-medium) ease, box-shadow var(--motion-medium) ease, border-color var(--motion-medium) ease;
}

.category-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-lighter);
    box-shadow: var(--shadow-hover);
}

.category-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8dfe8, #f1eefc);
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 900;
}

.category-name { font-weight: 700; }

.style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.gallery-card {
    overflow: hidden;
    background: var(--bg-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform var(--motion-medium) ease, box-shadow var(--motion-medium) ease;
}

.gallery-card a {
    display: block;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.style-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: var(--bg-dark);
}

.style-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--motion-medium) ease;
}

.gallery-card:hover .style-image img { transform: scale(1.08); }

.style-badge, .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.style-badge {
    position: absolute;
    top: 12px;
    right: 12px;
}

.style-badge.hot, .badge.hot { background: linear-gradient(135deg, #9c3f60, #d7839f); }
.style-badge.new, .badge.new { background: linear-gradient(135deg, var(--accent-color), #86beb6); }

.style-info { padding: 16px; }
.style-info h3 { margin: 0 0 10px; font-size: 18px; line-height: 1.35; }
.style-info p { margin: 0 0 10px; color: var(--text-secondary); }

.style-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    min-height: 28px;
    margin-bottom: 12px;
}
.style-tags.spacious { margin: 10px 0 22px; }

.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(191, 82, 118, .12);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
}

.style-footer { justify-content: space-between; gap: 12px; }
.price, .current-price {
    color: var(--primary-color);
    font-weight: 900;
}
.price { font-size: 20px; }
.current-price { font-size: 36px; }
.view-count { color: var(--text-light); font-size: 13px; }

.booking-preview {
    padding: 58px 0;
    background: var(--bg-dark);
}

.address-layout {
    display: grid;
    grid-template-columns: minmax(0, .7fr) minmax(320px, 1fr);
    gap: 28px;
    align-items: center;
}

.booking-preview h2 { text-align: left; margin-bottom: 12px; }
.booking-preview p { color: var(--text-secondary); font-size: 17px; }

.map-frame {
    min-height: 360px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.map-frame iframe { width: 100%; height: 360px; border: 0; }
.map-placeholder {
    display: grid;
    place-items: center;
    min-height: 360px;
    color: var(--text-light);
    font-weight: 700;
}

.page-intro { padding: 54px 0 28px; }
.page-intro.compact { padding-bottom: 12px; }

.gallery-shell {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 18px 0 60px;
}

.filter-sidebar {
    width: 260px;
    flex-shrink: 0;
}

.filter-section, .toolbar, .detail-panel, .form-section, .status-form, .status-card {
    background: var(--bg-light);
    border: 1px solid transparent;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.filter-section {
    padding: 20px;
    margin-bottom: 20px;
}

.filter-title {
    margin: 0 0 14px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 800;
}

.filter-copy {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-option {
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--text-secondary);
    transition: background var(--motion-fast) ease, color var(--motion-fast) ease;
}

.filter-option:hover {
    background: var(--primary-lighter);
    color: var(--primary-color);
}

.filter-option.active {
    background: var(--primary-color);
    color: #fff;
    font-weight: 800;
}

.style-list-main { flex: 1; min-width: 0; }

.toolbar {
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 16px 20px;
}

.quick-filters { gap: 12px; flex-wrap: wrap; }
.quick-filter {
    padding: 6px 16px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: #fff;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 700;
}
.quick-filter.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}
.result-count { color: var(--text-light); font-size: 14px; }

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
    gap: 40px;
    padding: 42px 0 56px;
    align-items: start;
}

.image-section {
    position: sticky;
    top: 92px;
}

.main-image {
    width: 100%;
    height: min(58vw, 600px);
    min-height: 420px;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 16px 2px 4px;
}

.thumbnail {
    flex: 0 0 92px;
    height: 92px;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 10px;
}
.thumbnail.active { border-color: var(--primary-color); }
.thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.detail-panel {
    padding: 30px;
}

.badges { gap: 8px; margin-bottom: 16px; }
.detail-panel h1 {
    margin: 0 0 10px;
    color: var(--text-primary);
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.12;
    font-weight: 900;
}

.price-section { margin: 8px 0 18px; }
.meta-info {
    gap: 18px;
    flex-wrap: wrap;
    padding: 16px 0;
    margin-bottom: 22px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.meta-item { color: var(--text-secondary); font-size: 14px; }
.description h3 { margin: 0 0 10px; font-size: 18px; }
.description p { color: var(--text-secondary); }

.booking-form {
    display: grid;
    gap: 22px;
    width: min(1000px, calc(100% - 40px));
    margin: 0 auto 60px;
}

.form-section { padding: 24px; }
.form-section h2 {
    margin: 0 0 18px;
    color: var(--primary-color);
    font-size: 24px;
}
.form-section.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .75fr);
    gap: 24px;
}

.date-picker-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.date-choice {
    display: grid;
    gap: 3px;
    min-height: 94px;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: #fff;
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(129, 49, 77, .06);
    transition: transform var(--motion-fast) ease, border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;
}

.date-choice span {
    color: var(--text-secondary);
    font-size: 14px;
}

.date-choice strong {
    font-size: 22px;
    line-height: 1.1;
}

.date-choice em {
    color: var(--accent-color);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.date-choice:hover {
    transform: translateY(-2px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}

.date-choice.active {
    background: linear-gradient(135deg, #8a3554 0%, #c46b8b 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--shadow-hover);
}

.date-choice.active span,
.date-choice.active em {
    color: rgba(255, 255, 255, .86);
}

.time-panel-stack {
    padding: 18px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: linear-gradient(135deg, #fff, #fff8fb);
}

.time-panel {
    display: none;
}

.time-panel.active {
    display: block;
    animation: panelIn var(--motion-medium) ease;
}

.time-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.time-panel-heading span {
    color: var(--text-light);
    font-size: 13px;
    font-weight: 800;
}

.time-panel-heading strong {
    color: var(--primary-dark);
    font-size: 16px;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
    gap: 12px;
}

.time-option {
    position: relative;
    display: grid;
    gap: 4px;
    min-height: 76px;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: transform var(--motion-fast) ease, border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;
}

.time-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.time-option span {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 900;
}

.time-option small {
    color: var(--text-light);
    font-size: 12px;
    font-weight: 800;
}

.time-option:hover {
    transform: translateY(-2px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}

.time-option.selected,
.time-option:has(input:checked) {
    background: linear-gradient(135deg, #f8dfe8, #f1eefc);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

.time-option.selected small,
.time-option:has(input:checked) small {
    color: var(--primary-dark);
}

.time-option.disabled {
    cursor: not-allowed;
    opacity: .45;
    background: #f8f3f6;
    box-shadow: none;
}

.time-option.disabled:hover {
    transform: none;
    border-color: var(--border-color);
}

.empty-time {
    margin: 14px 0 0;
    color: var(--text-light);
    font-weight: 700;
}

@keyframes panelIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

label {
    display: grid;
    gap: 8px;
    margin: 0 0 16px;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 14px;
}

input, select, textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px;
    background: #fff;
    color: var(--text-primary);
    font: inherit;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(191, 82, 118, .14);
}

.deposit-panel {
    padding: 20px;
    background: var(--bg-color);
    border-radius: var(--radius);
}

.qr-placeholder, .qr-image {
    display: grid;
    place-items: center;
    width: 180px;
    height: 180px;
    margin: 18px 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: #fff;
    color: var(--primary-color);
    font-weight: 900;
}

.status-layout {
    display: grid;
    grid-template-columns: minmax(280px, .7fr) minmax(280px, 1fr);
    gap: 24px;
    width: min(1000px, calc(100% - 40px));
    margin: 0 auto 60px;
}
.status-form, .status-card { padding: 24px; }

.error, .error-list { color: #c92a42; }
.error-list {
    padding: 12px 16px;
    background: #fff0f4;
    border: 1px solid #ffc9d8;
    border-radius: var(--radius);
}
.flash {
    width: min(1200px, calc(100% - 40px));
    margin: 18px auto 0;
    padding: 12px 16px;
    border: 1px solid #b7efc5;
    background: #ebfff0;
    color: #2b8a3e;
    border-radius: var(--radius);
}

.pagination-wrap {
    margin-top: 36px;
}
.pagination-wrap nav > div:first-child { display: none; }
.pagination-wrap nav > div:last-child {
    display: flex;
    justify-content: center;
}
.pagination-wrap a, .pagination-wrap span {
    border-color: var(--border-color) !important;
}

.site-footer {
    margin-top: 60px;
    padding: 38px 0;
    background: linear-gradient(135deg, #8a3554 0%, #c46b8b 54%, #8c7ad0 100%);
    color: #fff;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.footer-inner p { margin: 8px 0 0; opacity: .9; }
.footer-cta {
    background: #fff;
    color: var(--primary-color);
    box-shadow: none;
}

@media (max-width: 900px) {
    .header-inner, .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 0;
    }
    .main-nav, .language-switcher { flex-wrap: wrap; }
    .hero-section { min-height: 500px; }
    .gallery-shell, .address-layout, .detail-layout, .form-section.split, .status-layout {
        grid-template-columns: 1fr;
        display: grid;
    }
    .filter-sidebar { width: 100%; }
    .image-section { position: static; }
    .main-image { height: 520px; min-height: 360px; }
}

@media (max-width: 560px) {
    .container, .hero-copy, .booking-form, .status-layout, .flash {
        width: min(100% - 28px, 1200px);
    }
    .hero-copy { padding-top: 72px; }
    .hero-copy h1, .page-intro h1 { font-size: 36px; }
    .section-band { padding: 42px 0; }
    .style-grid, .category-grid { grid-template-columns: 1fr; }
    .toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
    .main-image { height: 420px; min-height: 320px; }
}
