/* ================================================
   VWSHospitality - Modern Booking Portal CSS
   ================================================ */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-subtle: #f1f5f9;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.2s ease;
}

/* ---- Base ---- */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    color: var(--text-primary);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

/* ---- App Layout ---- */
.hospitality-app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.hospitality-main {
    flex: 1;
}

/* ---- Header ---- */
.hospitality-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.95);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.header-logo {
    text-decoration: none;
    color: var(--secondary);
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ---- Language Selector ---- */
.language-selector .form-select {
    width: auto;
    min-width: 70px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    background-color: var(--bg-light);
    padding: 4px 28px 4px 10px;
}

/* ---- Hero Section ---- */
.landing-hero {
    position: relative;
    height: 520px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 50%, #0f172a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 0 1rem;
    width: 100%;
    max-width: 900px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

/* ---- Search Box ---- */
.hero-search {
    display: flex;
    justify-content: center;
}

.search-box {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    background: var(--bg-white);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    flex-wrap: wrap;
    justify-content: center;
}

.search-field {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.search-field label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 4px;
    padding-left: 4px;
}

.btn-search {
    height: 40px;
    padding: 0 2rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    background: var(--primary);
    border: none;
    color: white;
    font-size: 0.95rem;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-search:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-search:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none;
}

/* Button spinner */
.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spin 0.6s linear infinite;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

/* ---- Sections ---- */
.section-featured {
    padding: 4rem 0;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* ---- Property Cards ---- */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.property-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-white);
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}

.property-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.property-image-placeholder {
    height: 200px;
    background: linear-gradient(135deg, var(--bg-subtle) 0%, var(--border) 100%);
}

.property-info {
    padding: 1.25rem;
}

.property-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--secondary);
}

.property-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.property-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-top: 0.75rem;
}

.property-price .price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary);
}

.property-price .per-night {
    font-size: 0.85rem;
    color: var(--text-light);
}

.property-rating {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.property-rating .stars {
    color: var(--accent);
    font-size: 0.9rem;
}

.property-rating .rating-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ---- Check-in Container ---- */
.checkin-container, .offer-container {
    max-width: 720px;
    margin: 0 auto;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.checkin-container h2, .offer-container h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1rem;
}

/* ---- Footer ---- */
.hospitality-footer {
    background: var(--secondary);
    color: rgba(255, 255, 255, 0.6);
    padding: 1.5rem 0;
    margin-top: auto;
}

.footer-obj-info {
    text-align: center;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-obj-name {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.footer-obj-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
}

.footer-detail {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-detail a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-detail a:hover {
    color: #fff;
}

.footer-icon {
    font-size: 0.85rem;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-copyright {
    font-size: 0.8rem;
}

/* ---- Object Picker ---- */
.obj-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.obj-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.obj-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.obj-card-image {
    height: 160px;
    background: linear-gradient(135deg, #e0e7ff, #dbeafe, #bfdbfe);
    display: flex;
    align-items: center;
    justify-content: center;
}

.obj-card-placeholder .obj-card-icon {
    font-size: 3rem;
    opacity: 0.5;
}

.obj-card-body {
    padding: 1.25rem;
    flex: 1;
}

.obj-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 0.4rem;
}

.obj-card-location {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0 0 0.25rem;
}

.obj-loc-icon {
    font-size: 0.8rem;
}

.obj-card-address {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0 0 0.75rem;
}

.obj-card-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.obj-contact {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.obj-card-action {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--border);
    text-align: right;
}

.obj-select-btn {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}

.obj-card:hover .obj-select-btn {
    color: var(--primary-dark);
}

/* ---- Object Info on Index ---- */
.section-obj-info {
    padding: 1.5rem 0;
}

.obj-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.obj-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.obj-info-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.obj-info-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
}

.obj-info-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.obj-info-value a {
    color: var(--primary);
    text-decoration: none;
}

.obj-info-value a:hover {
    text-decoration: underline;
}

/* ---- Header Object Switch ---- */
.header-obj-switch {
    margin-left: 0.75rem;
}

.obj-switch-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
}

.obj-switch-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

/* Hero compact (for object selection) */
.landing-hero.compact {
    min-height: 200px;
    padding: 3rem 1rem;
}

.landing-hero.compact .hero-title {
    font-size: 1.8rem;
}

.landing-hero.compact .hero-subtitle {
    font-size: 1rem;
}

/* ---- StartBook ---- */
.startbook-card {
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.startbook-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 1.5rem;
}

.startbook-summary {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.startbook-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.startbook-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
}

.startbook-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--secondary);
}

.startbook-info {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.startbook-loading {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-light);
}

.startbook-error {
    text-align: center;
    padding: 2rem;
    color: #b91c1c;
}

/* ---- Buttons ---- */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* ---- Date Range Picker ---- */
.date-range-picker {
    position: relative;
}

.date-range-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 8px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    transition: var(--transition);
    min-width: 300px;
}

.date-range-display:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.date-range-picker.open .date-range-display {
    border-color: var(--primary);
    background: var(--primary-light);
}

.date-range-field {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.date-range-field .date-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
}

.date-range-field .date-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary);
    white-space: nowrap;
}

.date-range-separator {
    color: var(--text-light);
    font-size: 1rem;
    padding: 0 0.25rem;
}

.date-range-nights {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    padding: 2px 8px;
    border-radius: 12px;
    white-space: nowrap;
}

.date-range-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.08);
}

.date-range-dropdown {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-white);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 1.5rem;
    z-index: 9999;
    min-width: 600px;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.calendar-months {
    display: flex;
    gap: 4rem;
}

.cal-month-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary);
    text-align: center;
    min-width: 160px;
}

.cal-nav-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    width: 32px;
    height: 32px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cal-nav-btn:hover {
    background: var(--bg-light);
    border-color: var(--primary);
    color: var(--primary);
}

.calendar-grids {
    display: flex;
    gap: 2rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    flex: 1;
}

.cal-dow {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-light);
    padding: 4px 0 8px;
    letter-spacing: 0.05em;
}

.cal-day {
    text-align: center;
    padding: 8px 4px;
    font-size: 0.85rem;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.1s ease, color 0.1s ease;
    position: relative;
}

.cal-day:hover:not(.disabled):not(.empty) {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.cal-day.empty {
    cursor: default;
}

.cal-day.disabled {
    color: var(--border);
    cursor: not-allowed;
}

.cal-day.today {
    font-weight: 700;
    color: var(--primary);
}

.cal-day.range-start {
    background: var(--primary);
    color: white;
    border-radius: 50% 0 0 50%;
    font-weight: 600;
}

.cal-day.range-end {
    background: var(--primary);
    color: white;
    border-radius: 0 50% 50% 0;
    font-weight: 600;
}

.cal-day.range-start.range-end,
.cal-day.single {
    border-radius: 50%;
}

.cal-day.in-range {
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 0;
}

/* ---- Guest Selector ---- */
.guest-selector {
    display: contents;
}

.guest-row {
    display: contents;
}

.guest-field {
    display: flex;
    flex-direction: column;
    min-width: 75px;
}

.guest-field label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 4px;
    padding-left: 2px;
}

.guest-select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 28px 6px 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary);
    cursor: pointer;
    transition: var(--transition);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    min-width: 65px;
}

.guest-select:hover,
.guest-select:focus {
    border-color: var(--primary);
    outline: none;
}

.child-age-field {
    display: flex;
    flex-direction: column;
}

.child-age-field label {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
    margin-bottom: 2px;
    padding-left: 2px;
}

.child-age-select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 4px 22px 4px 8px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--secondary);
    cursor: pointer;
    transition: var(--transition);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    min-width: 60px;
}

.child-age-select:hover,
.child-age-select:focus {
    border-color: var(--primary);
    outline: none;
}

/* ---- Search Results Header ---- */
.search-results-header {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.search-box.compact {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
}

/* ---- Results ---- */
.results-summary {
    margin-bottom: 2rem;
}

.results-summary h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.25rem;
}

.results-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.results-section {
    margin-bottom: 3rem;
}

.results-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.25rem;
}

.section-hint {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.results-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ---- Result Card ---- */
.result-card {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-white);
    transition: var(--transition);
}

.result-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.result-card-image {
    position: relative;
    width: 280px;
    min-height: 200px;
    flex-shrink: 0;
}

.result-card-image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.combo-image > img.half {
    width: 50%;
    height: 100%;
    object-fit: cover;
}

.combo-image.triple > img.third {
    width: 33.33%;
    height: 100%;
    object-fit: cover;
}

.result-card-image .image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 50%, #a5b4fc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(67, 56, 202, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.combo-image {
    display: flex;
}

.combo-image .image-placeholder.half {
    width: 50%;
}

.combo-image.triple .image-placeholder.third {
    width: 33.33%;
}

.combo-image .image-placeholder:nth-child(2) {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 50%, #93c5fd 100%);
    color: rgba(37, 99, 235, 0.6);
}

.combo-image .image-placeholder:nth-child(3) {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 50%, #7dd3fc 100%);
    color: rgba(14, 165, 233, 0.6);
}

.result-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.result-badge.combo {
    background: #7c3aed;
}

.result-badge.combo-3 {
    background: #0891b2;
}

.result-card-body {
    flex: 1;
    display: flex;
    padding: 1.25rem;
    gap: 1rem;
}

.result-card-info {
    flex: 1;
}

.result-card-info h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--secondary);
    margin: 0 0 0.35rem;
}

.unit-type {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary);
    background: var(--primary-light);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.unit-description {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0.5rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.combo-units {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.unit-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-subtle);
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.unit-tag small {
    color: var(--text-light);
}

.capacity-info {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.capacity-icon {
    font-size: 1rem;
}

.capacity-detail {
    color: var(--text-light);
    font-size: 0.8rem;
}

.result-card-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    min-width: 160px;
    text-align: right;
}

.total-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.2;
}

.price-per-night {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.btn-book {
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

/* ---- Loading & No Results ---- */
.loading-state {
    text-align: center;
    padding: 4rem 0;
    color: var(--text-secondary);
}

.loading-state p {
    margin-top: 1rem;
}

.no-results {
    text-align: center;
    padding: 4rem 0;
}

.no-results h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.no-results p {
    color: var(--text-secondary);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .landing-hero {
        height: auto;
        min-height: 400px;
        padding: 3rem 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .search-box {
        flex-direction: column;
        border-radius: var(--radius-lg);
        width: 100%;
        max-width: 360px;
    }

    .search-field {
        width: 100%;
    }

    .btn-search {
        width: 100%;
    }

    .date-range-display {
        min-width: auto;
        width: 100%;
    }

    .date-range-dropdown {
        min-width: auto;
        width: 95vw;
        padding: 1rem;
    }

    .calendar-grids {
        flex-direction: column;
        gap: 1.5rem;
    }

    .calendar-months {
        gap: 1rem;
    }

    .cal-month-title {
        min-width: auto;
        font-size: 0.9rem;
    }

    .property-grid {
        grid-template-columns: 1fr;
    }

    .section-featured {
        padding: 2rem 0;
    }

    .result-card {
        flex-direction: column;
    }

    .result-card-image {
        width: 100%;
        min-height: 160px;
        max-height: 200px;
    }

    .result-card-body {
        flex-direction: column;
    }

    .result-card-price {
        align-items: flex-start;
        flex-direction: row;
        justify-content: space-between;
        min-width: auto;
        padding-top: 0.75rem;
        border-top: 1px solid var(--border);
        width: 100%;
    }

    .guest-selector {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header-content {
        height: 56px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .checkin-container, .offer-container {
        padding: 1.25rem;
        border-radius: var(--radius-md);
    }
}

/* ---- Utility ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---- Result card clickable ---- */
.result-card {
    cursor: pointer;
}

.btn-details {
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: 6px;
    margin-top: 0.5rem;
}

.price-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ---- Detail Overlay ---- */
.detail-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow-y: auto;
}

.detail-panel {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.detail-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.detail-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* ---- Gallery ---- */
.detail-gallery {
    position: relative;
}

.gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: #f1f5f9;
}

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

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background 0.2s;
    color: var(--secondary);
}

.gallery-nav:hover {
    background: white;
}

.gallery-prev {
    left: 12px;
}

.gallery-next {
    right: 12px;
}

.gallery-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.gallery-thumbs {
    display: flex;
    gap: 4px;
    padding: 8px 12px;
    overflow-x: auto;
    background: #f8fafc;
}

.gallery-thumb {
    width: 72px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.gallery-thumb:hover {
    opacity: 0.8;
}

.gallery-thumb.active {
    opacity: 1;
    outline: 2px solid var(--primary);
    outline-offset: 1px;
}

/* ---- Detail Info & Units ---- */
.detail-info {
    padding: 1.5rem 1.5rem 0;
}

.detail-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 0.75rem;
}

.detail-description {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
    margin: 0;
}

.detail-combo-section {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.detail-combo-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-combo-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary);
    margin: 0 0 0.5rem;
}

.detail-units {
    padding: 1.5rem;
}

.detail-units h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary);
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.detail-unit-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.detail-unit-row:last-child {
    border-bottom: none;
}

.detail-unit-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.detail-unit-name {
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.95rem;
}

.detail-unit-capacity {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.detail-unit-price {
    text-align: right;
    flex-shrink: 0;
}

.detail-unit-total {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
}

.detail-unit-pernight {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.detail-unit-row .btn-book {
    flex-shrink: 0;
}

/* Detail overlay responsive */
@media (max-width: 768px) {
    .detail-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .detail-panel {
        max-height: 95vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }

    .detail-unit-row {
        flex-wrap: wrap;
    }

    .detail-unit-price {
        text-align: left;
    }

    .detail-unit-row .btn-book {
        width: 100%;
    }
}

/* ---- Booking Page ---- */
.booking-page {
    background: var(--bg-light);
    min-height: calc(100vh - 64px);
}

.booking-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 2rem;
    align-items: start;
}

/* Left side - gallery & info */
.booking-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.booking-unit-section {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.booking-gallery {
    position: relative;
}

.booking-gallery .gallery-main {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.booking-unit-info {
    padding: 1.5rem;
}

.booking-unit-info h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 0.75rem;
}

.booking-description {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
    margin: 0;
}

.booking-terms-section {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.booking-terms-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary);
    margin: 0 0 0.75rem;
}

.booking-terms-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Right side - sidebar */
.booking-sidebar {
    position: sticky;
    top: 80px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.booking-sidebar > div,
.booking-sidebar > .booking-submit-section {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.booking-sidebar > *:last-child {
    border-bottom: none;
}

/* Dates */
.booking-dates {
    background: var(--primary-light);
}

.booking-date-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.booking-date-item {
    display: flex;
    flex-direction: column;
}

.booking-date-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
}

.booking-date-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--secondary);
}

.booking-date-arrow {
    color: var(--primary);
    font-size: 1rem;
}

.booking-nights-badge {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
}

/* Guests section */
.booking-capacity-info {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding: 0.35rem 0.6rem;
    background: var(--bg-subtle);
    border-radius: 4px;
}

.booking-capacity-warning {
    font-size: 0.82rem;
    color: #d32f2f;
    background: #ffeaea;
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.booking-guests-section h4,
.booking-price-section h4,
.booking-form-section h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--secondary);
    margin: 0 0 0.75rem;
}

.booking-guest-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.booking-guest-row label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.booking-guest-row .guest-select {
    min-width: 70px;
}

.booking-child-ages {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--bg-subtle);
}

.booking-child-age-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.booking-child-age-row label {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Price section */
.booking-price-unit-detail {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--bg-subtle);
}

.booking-price-unit-detail:last-of-type {
    border-bottom: none;
}

.booking-price-unit-amount {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary);
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.booking-price-unit-name {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.unit-type-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
}

.unit-type-label::before {
    content: "• ";
    color: var(--primary);
}

.unit-instance-label {
    font-size: 0.78rem;
    color: var(--text-light);
    padding-left: 0.85rem;
}

.booking-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--bg-subtle);
}

.booking-price-row span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.booking-price-row.total span {
    font-weight: 600;
    color: var(--secondary);
}

.booking-price-amount {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: var(--secondary) !important;
}

.booking-price-row.pernight span {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Tax section */
.booking-tax-section {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--bg-subtle);
}

.booking-tax-header {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.booking-tax-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 2px 0;
}

.booking-price-row.tax-total {
    border-top: 1px dashed var(--border);
    margin-top: 0.35rem;
    padding-top: 0.35rem;
}

.booking-price-row.tax-total span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.booking-price-row.grand-total {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 2px solid var(--secondary);
}

.booking-price-row.grand-total span {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
}

.booking-grand-total-amount {
    font-size: 1.3rem !important;
}

.booking-tax-notice {
    margin-top: 0.75rem;
    font-size: 0.72rem;
    color: var(--text-light);
    line-height: 1.4;
    font-style: italic;
}

/* Form section */
.booking-form-section {
    padding: 1.25rem;
}

.booking-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.booking-form-field {
    margin-bottom: 0.75rem;
}

.booking-form-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.booking-form-field .required {
    color: #dc2626;
}

.booking-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--bg-white);
    transition: var(--transition);
}

.booking-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.booking-input.invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.field-error {
    display: block;
    font-size: 0.75rem;
    color: #dc2626;
    margin-top: 2px;
}

select.booking-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
    cursor: pointer;
}

/* Submit */
.booking-submit-section {
    padding: 1.25rem;
}

.btn-book-submit {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.booking-error {
    background: #fef2f2;
    color: #b91c1c;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    border: 1px solid #fecaca;
}

.booking-success {
    background: #f0fdf4;
    color: #166534;
    padding: 1rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    border: 1px solid #bbf7d0;
}

/* Booking responsive */
@media (max-width: 900px) {
    .booking-layout {
        grid-template-columns: 1fr;
    }

    .booking-sidebar {
        position: static;
    }
}

@media (max-width: 480px) {
    .booking-form-row {
        grid-template-columns: 1fr;
    }

    .booking-date-value {
        font-size: 0.85rem;
    }
}

/* ---- Blazor error UI ---- */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
