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

/* ---- Gumb: rezervacija stola u restoranu (samo kad objekt ima restoran) ---- */
.hero-rest {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.btn-rest {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-height: 62px;
    padding: 9px 28px 9px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition);
}

.btn-rest:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-1px);
    box-shadow: var(--shadow-xl);
}

.btn-rest:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.45);
}

.btn-rest-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--secondary);
}

.btn-rest-arrow {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.btn-rest:hover .btn-rest-arrow {
    transform: translateX(3px);
}

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

/* ---- Naši sadržaji (amenities) ---- */
.amenity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

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

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

.amenity-image {
    position: relative;
    height: 190px;
    background: var(--bg-subtle);
    overflow: hidden;
}

.amenity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.amenity-card:hover .amenity-image img {
    transform: scale(1.05);
}

.amenity-img-empty {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    opacity: 0.35;
    background: linear-gradient(135deg, var(--bg-subtle) 0%, var(--border) 100%);
}

.amenity-img-count {
    position: absolute;
    bottom: 8px;
    right: 10px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.72rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
}

.amenity-body {
    padding: 1.1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.amenity-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
    color: var(--secondary);
}

.amenity-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0 0 0.75rem;
    flex: 1;
}

.amenity-more {
    color: #667eea;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Skeleton dok se učitava */
.amenity-skeleton { pointer-events: none; }
.amenity-img-skeleton {
    height: 190px;
    background: linear-gradient(90deg, var(--bg-subtle) 25%, var(--border) 50%, var(--bg-subtle) 75%);
    background-size: 200% 100%;
    animation: amenity-shimmer 1.4s ease-in-out infinite;
}
@keyframes amenity-shimmer {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}

/* Modal: detalj sadržaja */
.amenity-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.amenity-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.amenity-modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.amenity-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--secondary);
}

.amenity-modal-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.amenity-modal-close:hover {
    background: var(--bg-subtle);
    color: var(--secondary);
}

.amenity-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.amenity-gallery { margin-bottom: 1.25rem; }

.amenity-gmain {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
}

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

.amenity-gnav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    color: #111827;
    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.25);
    transition: background 0.15s ease;
}

.amenity-gnav:hover { background: #fff; }
.amenity-gprev { left: 10px; }
.amenity-gnext { right: 10px; }

.amenity-gcount {
    position: absolute;
    bottom: 10px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}

.amenity-gthumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.amenity-gthumb {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.55;
    border: 2px solid transparent;
    transition: opacity 0.15s ease, border-color 0.15s ease;
    flex-shrink: 0;
}

.amenity-gthumb:hover { opacity: 0.85; }
.amenity-gthumb.active { opacity: 1; border-color: #667eea; }

.amenity-opis {
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-line;
}

.amenity-weblink {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1.25rem;
    padding: 0.6rem 1.1rem;
    background: #f5f3ff;
    color: #5b21b6;
    border: 1px solid #e9d5ff;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.amenity-weblink:hover {
    background: #ede9fe;
    border-color: #c4b5fd;
    transform: translateY(-1px);
}

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

    .btn-rest {
        width: 100%;
        max-width: 360px;
        border-radius: var(--radius-lg);
        padding-right: 18px;
        font-size: 1rem;
        text-align: left;
    }

    .btn-rest-text {
        flex: 1;
    }

    .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;
    /* Eksplicitna boja da ne ovisi o bootstrap/DevExpress temi (inace tekst zna ostati crn) */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #fff !important;
    border: none !important;
}
.btn-book-submit:hover:not(:disabled) { filter: brightness(1.05); color: #fff !important; }
.btn-book-submit:disabled { opacity: 0.55; }
.btn-continue {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #fff !important;
    margin-top: 0.75rem;
}

.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;
}

/* ================================================
   TableRes - Rezervacija stola (tlocrt restorana)
   ================================================ */

.tr-hero,
.tr-shell,
.tr-page {
    --tr-grad: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    --tr-ring: 0 0 0 4px rgba(37, 99, 235, 0.18);
    --tr-card-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 18px 40px -18px rgba(15, 23, 42, 0.18);
    --tr-green: #16a34a;
}

.tr-ico {
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

/* ---- hero + traka koraka ---- */
.tr-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    text-align: center;
    padding: 56px 20px 92px;
    background:
        radial-gradient(900px 380px at 50% -20%, rgba(96, 165, 250, 0.55), transparent 65%),
        radial-gradient(600px 300px at 90% 120%, rgba(129, 140, 248, 0.35), transparent 60%),
        linear-gradient(135deg, #0b1224 0%, #172554 55%, #1e40af 100%);
}

.tr-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 85%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 85%);
    pointer-events: none;
}

.tr-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
}

.tr-hero-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 5px 14px;
    margin-bottom: 14px;
    backdrop-filter: blur(6px);
}

.tr-hero-title {
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}

.tr-hero-sub {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.02rem;
    margin: 0;
}

.tr-steps {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 26px 0 0;
    padding: 0;
}

.tr-step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.25s ease, color 0.25s ease;
}

.tr-step-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.14);
}

.tr-step.active {
    background: #fff;
    color: var(--primary-dark);
    border-color: #fff;
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.45);
}

.tr-step.active .tr-step-dot {
    background: var(--tr-grad);
    color: #fff;
}

.tr-step.done {
    color: #fff;
}

.tr-step.done .tr-step-dot {
    background: #22c55e;
    color: #fff;
}

/* ---- raspored ---- */
.tr-shell {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: -56px auto 0;
    padding: 0 20px 72px;
}

.tr-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

@media (min-width: 1024px) {
    .tr-layout-aside {
        grid-template-columns: minmax(0, 1fr) 320px;
    }
}

.tr-main {
    min-width: 0;
}

/* ---- kartica koraka ---- */
.tr-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 22px;
    box-shadow: var(--tr-card-shadow);
    padding: 28px;
    margin-bottom: 20px;
    scroll-margin-top: 92px;
    animation: trFadeUp 0.35s ease both;
}

.tr-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.tr-card-head h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--secondary);
}

.tr-num {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-weight: 800;
    font-size: 0.95rem;
    background: var(--bg-subtle);
    color: var(--text-secondary);
    transition: background 0.25s ease, color 0.25s ease;
}

.tr-num.active {
    background: var(--tr-grad);
    color: #fff;
    box-shadow: 0 8px 18px -8px rgba(37, 99, 235, 0.7);
}

.tr-num.done {
    background: #dcfce7;
    color: var(--tr-green);
}

.tr-card-hint {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin: -12px 0 18px 48px;
}

.tr-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
    margin: 26px 0 12px;
}

.tr-label:first-of-type {
    margin-top: 0;
}

/* ---- prostori ---- */
.tr-halls {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
}

.tr-hall {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    padding: 18px 44px 18px 18px;
    text-align: left;
    font: inherit;
    color: inherit;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 18px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.tr-hall:hover {
    border-color: #93c5fd;
    box-shadow: 0 12px 28px -16px rgba(37, 99, 235, 0.45);
    transform: translateY(-2px);
}

.tr-hall.selected {
    border-color: var(--primary);
    background: linear-gradient(180deg, #eff6ff 0%, #fff 100%);
    box-shadow: var(--tr-ring);
}

.tr-hall-ico {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: var(--primary-light);
    color: var(--primary);
}

.tr-hall.selected .tr-hall-ico {
    background: var(--tr-grad);
    color: #fff;
}

.tr-hall-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tr-hall-name {
    font-weight: 700;
    font-size: 1.03rem;
    color: var(--secondary);
}

.tr-hall-descr {
    font-size: 0.87rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.tr-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.tr-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-subtle);
    border-radius: 999px;
    padding: 3px 10px;
}

.tr-chip-lg {
    font-size: 0.86rem;
    padding: 7px 14px;
    background: #f8fafc;
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.tr-hall-check {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--primary);
    color: #fff;
    transform: scale(0);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tr-hall.selected .tr-hall-check {
    transform: scale(1);
}

/* ---- dani ---- */
.tr-dates {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 4px 12px;
    margin: 0 -4px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}

.tr-date {
    flex: 0 0 auto;
    width: 88px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 12px 6px 10px;
    font: inherit;
    color: var(--text-primary);
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 18px;
    cursor: pointer;
    scroll-snap-align: start;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tr-date:hover {
    border-color: #93c5fd;
    transform: translateY(-2px);
}

.tr-date-dow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
}

.tr-date-day {
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.tr-date-mon {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.tr-date-avail {
    margin-top: 7px;
    font-size: 0.66rem;
    font-weight: 700;
    color: var(--tr-green);
    background: #dcfce7;
    border-radius: 999px;
    padding: 2px 8px;
    white-space: nowrap;
}

.tr-date.selected {
    background: var(--tr-grad);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 14px 28px -12px rgba(37, 99, 235, 0.75);
}

.tr-date.selected .tr-date-dow,
.tr-date.selected .tr-date-mon {
    color: rgba(255, 255, 255, 0.82);
}

.tr-date.selected .tr-date-avail {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* ---- gosti ---- */
.tr-guests {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
}

.tr-guest {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 12px 12px 18px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 18px;
}

.tr-guest-name {
    font-weight: 700;
    color: var(--secondary);
}

.tr-guest-sub {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.tr-counter {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tr-round {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    padding: 0;
    background: #fff;
    color: var(--text-primary);
    border: 1.5px solid var(--border);
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.tr-round:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
    background: #eff6ff;
}

.tr-round:disabled {
    opacity: 0.35;
    cursor: default;
}

.tr-count {
    min-width: 32px;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

/* ---- termini ---- */
.tr-slot-group + .tr-slot-group {
    margin-top: 16px;
}

.tr-slot-group-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 9px;
}

.tr-times {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
    gap: 8px;
}

.tr-time {
    height: 44px;
    font: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
    color: var(--text-primary);
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 13px;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.tr-time:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #eff6ff;
}

.tr-time.selected {
    background: var(--tr-grad);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 22px -10px rgba(37, 99, 235, 0.75);
}

.tr-time.selected:hover {
    background: var(--tr-grad);
    color: #fff;
}

.tr-picked {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    padding: 9px 16px;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.92rem;
}

.tr-picked-sep {
    opacity: 0.5;
}

.tr-picked-dur {
    font-weight: 500;
}

/* ---- tlocrt ---- */
.tr-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.tr-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-subtle);
    border-radius: 999px;
    padding: 5px 12px;
}

.tr-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.tr-dot-free { background: #22c55e; }
.tr-dot-occupied { background: #cbd5e1; }
.tr-dot-selected { background: var(--accent); }

.tr-floorplan-wrap {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--bg-white);
    padding: 12px;
    overflow-x: auto;
}

.tr-floorplan {
    width: 100%;
    height: auto;
    display: block;
    max-height: 70vh;
    min-width: 520px;
}

.tr-floor-bg {
    fill: var(--bg-subtle);
}

.tr-table {
    cursor: pointer;
}

.tr-table rect,
.tr-table ellipse {
    stroke-width: 2.5;
    transition: fill 0.15s ease, stroke 0.15s ease;
}

.tr-table-free rect,
.tr-table-free ellipse {
    fill: #dcfce7;
    stroke: #22c55e;
}

.tr-table-free:hover rect,
.tr-table-free:hover ellipse {
    fill: #bbf7d0;
    stroke: #16a34a;
}

.tr-table-occupied {
    cursor: not-allowed;
}

.tr-table-occupied rect,
.tr-table-occupied ellipse {
    fill: #e2e8f0;
    stroke: #94a3b8;
}

.tr-table-occupied text {
    fill: #94a3b8;
}

.tr-table-selected rect,
.tr-table-selected ellipse {
    fill: #fef3c7;
    stroke: var(--accent);
    stroke-width: 3.5;
}

.tr-table-code {
    text-anchor: middle;
    font-weight: 700;
    font-size: 17px;
    fill: var(--text-primary);
    pointer-events: none;
}

.tr-table-seats {
    text-anchor: middle;
    font-size: 14px;
    fill: var(--text-secondary);
    pointer-events: none;
}

.tr-seat-icon {
    font-size: 12px;
}

.tr-chair {
    stroke-width: 2;
    transition: fill 0.15s ease;
}

.tr-table-free .tr-chair { fill: #bbf7d0; stroke: #16a34a; }
.tr-table-free:hover .tr-chair { fill: #86efac; }
.tr-table-occupied .tr-chair { fill: #e8edf3; stroke: #a8b3c2; }
.tr-table-selected .tr-chair { fill: #fde68a; stroke: #d97706; }

/* ---- podaci gosta ---- */
.tr-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
}

.tr-field-wide {
    grid-column: 1 / -1;
}

.tr-field label {
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 7px;
}

.tr-req {
    color: #ef4444;
}

.tr-input-wrap {
    position: relative;
}

.tr-input-ico {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    color: var(--text-light);
    pointer-events: none;
    transition: color 0.15s ease;
}

.tr-input-wrap-area .tr-input-ico {
    top: 15px;
    transform: none;
}

.tr-input {
    width: 100%;
    height: 52px;
    padding: 0 16px 0 46px;
    font: inherit;
    font-size: 0.98rem;
    color: var(--text-primary);
    background: #f8fafc;
    border: 1.5px solid var(--border);
    border-radius: 15px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

textarea.tr-input {
    height: auto;
    min-height: 104px;
    padding-top: 14px;
    padding-bottom: 14px;
    line-height: 1.5;
    resize: vertical;
}

.tr-input::placeholder {
    color: #a3b1c6;
}

.tr-input:hover {
    border-color: #cbd5e1;
}

.tr-input:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: var(--tr-ring);
}

.tr-input-wrap:focus-within .tr-input-ico {
    color: var(--primary);
}

.tr-form-hint {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
    font-size: 0.84rem;
    color: var(--text-secondary);
}

/* ---- gumbi ---- */
.tr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 50px;
    padding: 0 24px;
    font: inherit;
    font-size: 0.98rem;
    font-weight: 700;
    text-decoration: none;
    border: 1.5px solid transparent;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tr-btn-primary {
    background: var(--tr-grad);
    color: #fff;
    box-shadow: 0 14px 28px -14px rgba(37, 99, 235, 0.85);
}

.tr-btn-primary:hover:not(:disabled) {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 18px 34px -14px rgba(37, 99, 235, 0.95);
}

.tr-btn-primary:disabled {
    opacity: 0.7;
    cursor: progress;
}

.tr-btn-ghost {
    background: #fff;
    color: var(--text-primary);
    border-color: var(--border);
}

.tr-btn-ghost:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.tr-btn-danger {
    background: #fff;
    color: #dc2626;
    border-color: #fecaca;
}

.tr-btn-danger:hover:not(:disabled) {
    background: #fef2f2;
    border-color: #f87171;
}

.tr-btn-block {
    width: 100%;
    height: 58px;
    margin-top: 24px;
    font-size: 1.05rem;
}

.tr-spin {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    animation: btn-spin 0.7s linear infinite;
}

.tr-btn-danger .tr-spin {
    border-color: rgba(220, 38, 38, 0.25);
    border-top-color: #dc2626;
}

.tr-hall:focus-visible,
.tr-date:focus-visible,
.tr-time:focus-visible,
.tr-round:focus-visible,
.tr-btn:focus-visible {
    outline: none;
    box-shadow: var(--tr-ring);
}

/* ---- sažetak ---- */
.tr-aside {
    display: none;
}

@media (min-width: 1024px) {
    .tr-aside {
        display: block;
        position: sticky;
        top: 92px;
    }
}

.tr-summary {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 22px;
    box-shadow: var(--tr-card-shadow);
    padding: 22px 22px 12px;
    animation: trFadeUp 0.35s ease both;
}

.tr-summary-title {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 8px;
}

.tr-sum-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.tr-sum-row + .tr-sum-row {
    border-top: 1px dashed var(--border);
}

.tr-sum-ico {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: var(--bg-subtle);
    color: var(--text-light);
    transition: background 0.2s ease, color 0.2s ease;
}

.tr-sum-row.done .tr-sum-ico {
    background: var(--primary-light);
    color: var(--primary);
}

.tr-sum-text {
    min-width: 0;
}

.tr-sum-label {
    font-size: 0.74rem;
    color: var(--text-light);
}

.tr-sum-value {
    font-weight: 700;
    color: var(--secondary);
    overflow-wrap: anywhere;
}

.tr-sum-value.empty {
    color: #cbd5e1;
    font-weight: 600;
}

/* ---- obavijesti ---- */
.tr-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    padding: 13px 16px;
    border-radius: 15px;
    font-size: 0.92rem;
    line-height: 1.45;
}

.tr-alert .tr-ico {
    margin-top: 1px;
}

.tr-alert-top {
    margin: -6px 0 20px;
}

.tr-alert-warn {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.tr-alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.tr-alert-info {
    background: #eff6ff;
    color: var(--primary-dark);
    border: 1px solid #bfdbfe;
}

.tr-empty {
    text-align: center;
    padding: 26px 12px 18px;
    color: var(--text-secondary);
}

.tr-empty-ico {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    margin: 0 auto 12px;
    background: var(--bg-subtle);
    color: var(--text-light);
}

/* ---- skeleton ---- */
.tr-skel {
    border-radius: 15px;
    background: linear-gradient(90deg, #eef2f7 25%, #f8fafc 37%, #eef2f7 63%);
    background-size: 400% 100%;
    animation: trShimmer 1.3s ease infinite;
}

.tr-skel-date {
    flex: 0 0 auto;
    width: 88px;
    height: 112px;
    border-radius: 18px;
}

.tr-skel-time {
    height: 44px;
    border-radius: 13px;
}

/* ---- potvrda / pregled rezervacije ---- */
.tr-page {
    min-height: 60vh;
    padding: 56px 20px 72px;
    background:
        radial-gradient(800px 320px at 50% -60px, rgba(59, 130, 246, 0.14), transparent 70%),
        linear-gradient(180deg, #f5f8ff 0%, #fff 60%);
}

.tr-narrow {
    max-width: 640px;
    margin: 0 auto;
}

.tr-state {
    text-align: center;
    padding: 44px 32px 36px;
}

.tr-state-icon {
    width: 80px;
    height: 80px;
    border-radius: 26px;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    background: var(--primary-light);
    color: var(--primary);
    animation: trPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.tr-state-ok {
    background: #dcfce7;
    color: var(--tr-green);
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0.08);
}

.tr-state-title {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--secondary);
    margin: 0 0 8px;
}

.tr-state-text {
    color: var(--text-secondary);
    max-width: 440px;
    margin: 0 auto;
}

.tr-state > .tr-btn {
    margin-top: 18px;
}

.tr-mailsent {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    margin: 4px auto 16px;
    padding: 8px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    color: #166534;
    font-size: 0.9rem;
}

.tr-mailsent svg {
    flex-shrink: 0;
}

.tr-mailsent strong {
    font-weight: 700;
    overflow-wrap: anywhere;
}

.tr-success-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 24px 0 28px;
}

.tr-linkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 520px;
    margin: 18px auto 0;
    padding: 6px 6px 6px 16px;
    background: #f8fbff;
    border: 1.5px dashed #bfdbfe;
    border-radius: 15px;
}

.tr-linkbox-url {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-dark);
    text-decoration: none;
}

.tr-btn-sm {
    height: 38px;
    padding: 0 14px;
    font-size: 0.88rem;
    border-radius: 11px;
    flex-shrink: 0;
}

.tr-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.tr-actions-center {
    justify-content: center;
}

.tr-view-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
}

.tr-eyebrow {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
}

.tr-view-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--secondary);
    margin: 4px 0 0;
}

.tr-badge {
    flex-shrink: 0;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.tr-badge-ok { background: #dcfce7; color: #166534; }
.tr-badge-wait { background: #fef3c7; color: #92400e; }
.tr-badge-bad { background: #fee2e2; color: #991b1b; }

.tr-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tr-fact {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid var(--border);
}

.tr-fact-wide {
    grid-column: 1 / -1;
}

.tr-fact-ico {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: #fff;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.tr-fact-label {
    font-size: 0.74rem;
    color: var(--text-light);
}

.tr-fact-value {
    font-weight: 700;
    color: var(--secondary);
}

.tr-fact-note {
    font-weight: 500;
    white-space: pre-line;
}

/* ---- animacije ---- */
@keyframes trFadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

@keyframes trShimmer {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}

@keyframes trPop {
    0% { opacity: 0; transform: scale(0.6); }
    60% { opacity: 1; transform: scale(1.08); }
    100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .tr-card,
    .tr-summary,
    .tr-state-icon,
    .tr-skel {
        animation: none;
    }

    .tr-hall,
    .tr-date,
    .tr-time,
    .tr-btn {
        transition: none;
    }
}

/* ---- mobitel ---- */
@media (max-width: 640px) {
    .tr-hero {
        padding: 38px 16px 80px;
    }

    .tr-hero-sub {
        font-size: 0.95rem;
    }

    .tr-step {
        padding: 5px;
    }

    .tr-step .tr-step-label {
        display: none;
    }

    .tr-step.active {
        padding-right: 12px;
    }

    .tr-step.active .tr-step-label {
        display: inline;
    }

    .tr-shell {
        padding: 0 12px 48px;
        margin-top: -50px;
    }

    .tr-card {
        padding: 20px 16px;
        border-radius: 20px;
    }

    .tr-card-hint {
        margin-left: 0;
    }

    .tr-date {
        width: 76px;
    }

    .tr-times {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .tr-time {
        height: 42px;
        font-size: 0.9rem;
    }

    .tr-form {
        grid-template-columns: 1fr;
    }

    .tr-page {
        padding: 32px 12px 48px;
    }

    .tr-state {
        padding: 34px 18px 28px;
    }

    .tr-facts {
        grid-template-columns: 1fr;
    }

    .tr-actions .tr-btn {
        flex: 1 1 100%;
    }
}

/* ============================================================
   Digitalni meni (/menu) â€” mn-* klase
   ============================================================ */

.mn-hero {
    background: linear-gradient(135deg, var(--secondary) 0%, #1e3a5f 100%);
    color: #fff;
    text-align: center;
    padding: 48px 16px 40px;
}

.mn-hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 6px;
}

.mn-hero-sub {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-size: 1.05rem;
}

.mn-hero-time {
    color: var(--accent);
    margin: 10px 0 0;
    font-weight: 600;
}

.mn-container {
    max-width: 1100px;
}

/* --- pills (meniji / sekcije) --- */
.mn-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.mn-pill {
    border: 1px solid var(--border);
    background: var(--bg-white);
    color: var(--text-primary);
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.mn-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.mn-pill.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* --- sekcije --- */
.mn-section {
    margin-bottom: 36px;
}

.mn-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    padding-bottom: 4px;
    margin-bottom: 6px;
}

.mn-section-descr {
    color: var(--text-secondary);
    margin: 0 0 14px;
}

/* --- kartice jela --- */
.mn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 18px;
    margin-top: 14px;
}

.mn-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s, box-shadow 0.15s;
    display: flex;
    flex-direction: column;
}

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

.mn-card-img {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--bg-subtle);
    overflow: hidden;
}

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

.mn-card-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    opacity: 0.35;
}

.mn-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    border-radius: 999px;
    padding: 3px 12px;
    font-size: 0.78rem;
    font-weight: 700;
}

.mn-badge-combo {
    background: var(--accent);
    color: #fff;
}

.mn-card-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.mn-card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

.mn-card-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.mn-card-price {
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.mn-card-ingr {
    color: var(--text-secondary);
    font-size: 0.88rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mn-card-foot {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.mn-config-hint {
    color: var(--text-light);
}

.mn-details-link {
    color: var(--primary);
    font-weight: 600;
}

/* --- modal --- */
.mn-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.mn-modal {
    position: relative;
    background: var(--bg-white);
    border-radius: 16px;
    width: 100%;
    max-width: 640px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.mn-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.mn-gallery-main {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.mn-gallery-thumbs {
    display: flex;
    gap: 6px;
    padding: 8px 12px 0;
    flex-wrap: wrap;
}

.mn-gallery-thumb {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.75;
}

.mn-gallery-thumb.selected {
    border-color: var(--primary);
    opacity: 1;
}

.mn-modal-body {
    padding: 16px 20px 20px;
}

.mn-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.mn-modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

.mn-modal-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.mn-descr {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.mn-descr p {
    margin: 0 0 8px;
}

/* --- konfigurator --- */
.mn-cfg-block {
    border-top: 1px solid var(--border);
    padding: 12px 0;
}

.mn-cfg-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.mn-cfg-req {
    font-weight: 400;
    color: var(--text-light);
    font-size: 0.85rem;
}

.mn-fixed-part {
    color: var(--text-secondary);
    padding: 2px 0;
}

.mn-comp {
    padding: 6px 0;
}

.mn-comp.removed .mn-comp-name {
    text-decoration: line-through;
    color: var(--text-light);
}

.mn-comp-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.mn-comp-name {
    color: var(--text-primary);
}

.mn-btn-toggle {
    border: 1px solid var(--border);
    background: var(--bg-white);
    color: var(--text-secondary);
    border-radius: 999px;
    padding: 4px 14px;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
}

.mn-btn-toggle:hover {
    border-color: #dc2626;
    color: #dc2626;
}

.mn-btn-toggle.on {
    background: #fee2e2;
    border-color: #dc2626;
    color: #b91c1c;
    font-weight: 600;
}

.mn-opt-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 0 2px;
}

.mn-opt-pill {
    border: 1px solid var(--border);
    background: var(--bg-white);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 7px 14px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.12s;
}

.mn-opt-pill:hover {
    border-color: var(--primary);
}

.mn-opt-pill.selected {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary-dark);
    font-weight: 600;
}

.mn-delta {
    font-size: 0.82rem;
    font-weight: 600;
    margin-left: 6px;
    color: var(--accent);
}

/* --- ukupno --- */
.mn-total-bar {
    border-top: 2px solid var(--border);
    margin-top: 10px;
    padding-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.mn-total {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.mn-total-label {
    color: var(--text-secondary);
}

.mn-total-val {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--primary);
}

.mn-total-err {
    color: #b91c1c;
    font-size: 0.9rem;
}

@media (max-width: 575.98px) {
    .mn-hero-title { font-size: 1.6rem; }
    .mn-grid { grid-template-columns: 1fr; }
    .mn-modal { max-height: 96vh; border-radius: 12px; }
}

