/* spanel tabanlı panel stilleri — kaynak: /local/spanel */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    color: #1e293b;
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
}

.container {
    display: flex;
    min-height: 100vh;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

.sidebar {
    width: 220px;
    background: #e6f3ff;
    color: #1e293b;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-right: 1px solid #d1e7ff;
    overflow-y: auto;
}

.sidebar-header {
    padding: 20px 15px;
    border-bottom: 1px solid #d1e7ff;
    text-align: center;
}

.brand-title {
    font-size: 1rem;
    font-weight: 800;
    color: #1e40af;
    text-decoration: none;
    display: block;
}

.brand-sub {
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
}

.sidebar-nav {
    padding: 10px 0;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #475569;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #1e40af;
    border-left-color: #3b82f6;
    transform: translateX(5px);
}

.nav-item.active {
    background: rgba(59, 130, 246, 0.15);
    color: #1e40af;
    border-left-color: #3b82f6;
    box-shadow: inset 0 0 20px rgba(59, 130, 246, 0.1);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: #3b82f6;
    border-radius: 2px 0 0 2px;
}

.nav-icon {
    font-size: 14px;
    width: 18px;
    text-align: center;
    margin-right: 10px;
    color: #64748b;
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
    color: #1e40af;
}

.nav-text {
    font-size: 13px;
    font-weight: 500;
}

.main-content {
    flex: 1;
    margin-left: 220px;
    padding: 0;
    min-height: 100vh;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}

.top-bar {
    background: white;
    padding: 20px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    max-width: 100%;
}

.top-bar__start {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1 1 auto;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.2;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
    flex-shrink: 0;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 10px;
}

.top-bar-view-site {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.top-bar-view-site:hover {
    color: #1e40af;
    border-color: #93c5fd;
    background: #eff6ff;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 13px;
}

.user-name {
    font-weight: 600;
    color: #1e293b;
}

.content-area {
    padding: 30px;
    min-width: 0;
    max-width: 100%;
    padding-bottom: 90px;
}

.panel-fixed-footer {
    position: fixed;
    left: 220px;
    right: 0;
    bottom: 0;
    z-index: 120;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -6px 18px rgba(15, 23, 42, 0.06);
    padding: 8px 16px 10px;
    text-align: center;
}

.panel-fixed-footer__line1 {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}

.panel-fixed-footer__line2 {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 25px;
    margin-bottom: 40px;
    min-width: 0;
    width: 100%;
}

/* Anasayfa üst metrik kartları (5'li, kompakt) */
.dashboard-grid--metrics {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.dashboard-grid--metrics .dashboard-card {
    padding: 16px 16px 14px;
    border-radius: 14px;
}

.dashboard-grid--metrics .card-header {
    margin-bottom: 10px;
}

.dashboard-grid--metrics .card-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 16px;
}

.dashboard-grid--metrics .card-title {
    font-size: 14px;
    font-weight: 700;
}

.dashboard-grid--metrics .card-value {
    font-size: 26px;
    margin-bottom: 4px;
}

.dashboard-grid--metrics .card-subtitle {
    font-size: 12px;
}

.dashboard-grid > * {
    min-width: 0;
}

/* Anasayfa: iki sütunlu bloklar — min(100%,…) ile dar telefonda taşma yok */
.dashboard-grid--split {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.dashboard-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    min-width: 0;
    gap: 12px;
}

.card-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    min-width: 0;
    overflow-wrap: anywhere;
}

.card-value {
    font-size: 36px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.15;
}

.card-subtitle {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
    max-width: 100%;
}

.btn {
    min-height: 40px;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 100%;
    min-width: 0;
    text-align: center;
    box-sizing: border-box;
}

.btn i,
.btn svg {
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-sm {
    /* Global tek boyut standardı: btn-sm de aynı ölçüde */
    min-height: 40px;
    padding: 10px 16px;
    font-size: 13px;
    white-space: nowrap;
}

.action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.action-buttons .reservations-filter-form {
    margin-right: auto;
}

.pager {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 16px;
    justify-content: center;
}

.pager .btn {
    min-width: 40px;
}

.pager .btn.disabled,
.pager .btn[aria-disabled="true"] {
    opacity: 0.5;
    pointer-events: none;
}

/* Form içi buton grupları: her zaman sağda */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.reservations-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.reservations-filter-form input,
.reservations-filter-form select {
    min-height: 40px;
    padding: 9px 12px;
    border: 1px solid #d7e2ef;
    border-radius: 8px;
    background: #fff;
    color: #1e293b;
    font-size: 13px;
    line-height: 1.2;
}

.reservations-filter-form input:focus,
.reservations-filter-form select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.status-confirmed {
    background: #dbeafe;
    color: #1e40af;
}

.status-checked_in {
    background: #dcfce7;
    color: #166534;
}

.status-checked_out {
    background: #f1f5f9;
    color: #475569;
}

.status-cancelled {
    background: #fee2e2;
    color: #dc2626;
}

.status-dirty {
    background: #fee2e2;
    color: #b91c1c;
}

.status-active {
    background: #dcfce7;
    color: #166534;
}

.status-inactive {
    background: #fee2e2;
    color: #dc2626;
}

.status-payment-paid {
    background: #dcfce7;
    color: #166534;
}

.status-payment-unpaid {
    background: #ffedd5;
    color: #9a3412;
}

.status-occupied {
    background: #fef3c7;
    color: #92400e;
}

.status-vacant {
    background: #dcfce7;
    color: #166534;
}

.status-no_show {
    background: #ede9fe;
    color: #6d28d9;
}

.panel-card {
    background: white;
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    margin-bottom: 28px;
    min-width: 0;
    max-width: 100%;
}

.data-table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th,
.data-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.data-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
}

.data-table tr:hover td {
    background: #fafafa;
}

.room-row-dirty td {
    background: rgba(239, 68, 68, 0.08);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 18px;
    margin-bottom: 18px;
    min-width: 0;
}

.form-grid > * {
    min-width: 0;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 13px;
    color: #475569;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.form-checkboxes label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    cursor: pointer;
}

/* Oda düzenle — özellik seçimi */
.room-features-panel {
    margin-top: 24px;
    padding: 20px 20px 22px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.room-features-panel__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.room-features-panel__intro {
    flex: 1;
    min-width: min(100%, 280px);
}

.room-features-panel__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.room-features-panel__hint {
    font-size: 13px;
    line-height: 1.55;
    color: #64748b;
    max-width: 42rem;
}

.room-features-panel__hint a {
    color: #1d4ed8;
    font-weight: 600;
}

.room-features-panel__cta {
    flex-shrink: 0;
    white-space: nowrap;
}

.room-features-panel__empty {
    margin: 0;
    font-size: 14px;
}

.room-features-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    align-items: flex-end;
    margin-bottom: 14px;
}

.room-features-search-wrap {
    flex: 1;
    min-width: 200px;
    margin: 0;
}

.room-features-toolbar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.room-features-count {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    padding-left: 4px;
}

.room-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
    gap: 10px;
    min-width: 0;
}

.room-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.room-feature-item:hover {
    border-color: #cbd5e1;
}

.room-feature-item.is-selected {
    border-color: #93c5fd;
    background: #eff6ff;
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.18);
}

.room-feature-item--hidden {
    display: none !important;
}

.room-feature-item input.room-feature-cb {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
    margin: 0;
}

.room-feature-item__text {
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    line-height: 1.35;
}

.extra-guest-pick-list {
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 0;
    background: #fafbfc;
}

.extra-guest-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    color: #334155;
}

.extra-guest-row:hover {
    background: #f1f5f9;
}

.extra-guest-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
}

.extra-guest-row span {
    flex: 1;
}

.extra-guest-remove {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    flex-shrink: 0;
}

.extra-guest-remove:hover {
    color: #ef4444;
    text-decoration: underline;
}

/* Rezervasyon: yanında gelen bölümleri */
.reservation-section-card {
    margin-top: 28px;
    padding: 20px 20px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.reservation-section-card > .section-title:first-child {
    margin-top: 0;
}

.registered-extras-toggle {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0;
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
    cursor: pointer;
    user-select: none;
    line-height: 1.45;
}

.registered-extras-toggle input {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
}

.registered-extras-panel {
    margin-top: 14px;
    padding-top: 4px;
}

.registered-extras-panel[hidden] {
    display: none !important;
}

.companion-slot-card {
    margin: 0 0 18px 0;
    padding: 14px 16px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.companion-slot-card:last-of-type {
    margin-bottom: 14px;
}

.companion-slot-card legend {
    padding: 0 6px;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.companion-slot-card .companion-row {
    margin-top: 10px;
    margin-bottom: 0;
}

.reservation-extra-pick-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.reservation-extra-pick-row {
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
}

.reservation-extra-pick-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 10px;
    cursor: pointer;
    font-weight: 600;
    color: #0f172a;
}

.reservation-extra-pick-main input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
}

.reservation-extra-pick-title {
    flex: 1 1 160px;
}

.reservation-extra-pick-price {
    font-weight: 700;
    color: #0369a1;
    white-space: nowrap;
}

.reservation-totals-below-notes .form-group label {
    font-weight: 600;
    font-size: 13px;
    color: #334155;
}

.extra-service-edit-card {
    box-shadow: none;
    border: 1px solid #e2e8f0;
}

/* Rezervasyon: oda müsaitlik (Tom Select) */
.room-legend-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 2px;
    vertical-align: middle;
}

.room-legend-free {
    background: #16a34a;
}

.room-legend-busy {
    background: #dc2626;
}

.ts-option-room {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.35;
}

.ts-option-room .room-avail-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ts-option-room-free .room-avail-dot {
    background: #16a34a;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.25);
}

.ts-option-room-busy .room-avail-dot {
    background: #dc2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

.ts-option-room-unknown .room-avail-dot {
    background: #94a3b8;
}

.ts-dropdown .ts-option-room-busy span:last-child {
    color: #991b1b;
}

.ts-dropdown .ts-option-room-free span:last-child {
    color: #14532d;
}

.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

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

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.sidebar-toggle {
    display: none;
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    margin-right: 15px;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 100%;
        max-width: 100%;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .sidebar-toggle {
        display: block;
    }

    .top-bar-actions {
        margin-right: 0;
    }

    .top-bar-view-site {
        padding: 7px 10px;
        font-size: 12px;
    }

    .dashboard-grid,
    .dashboard-grid--split {
        grid-template-columns: 1fr;
    }

    .content-area {
        padding: 16px;
        padding-bottom: 96px;
    }

    .top-bar {
        padding: 14px 16px;
    }

    .panel-fixed-footer {
        left: 0;
        padding: 8px 12px 10px;
    }

    .page-title {
        font-size: 1.15rem;
    }

    .dashboard-card {
        padding: 20px 18px;
    }

    .panel-card {
        padding: 18px 16px;
    }
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e6f3ff 0%, #fff 50%, #f0f9ff 100%);
    padding: 24px;
}

.login-box {
    width: 100%;
    max-width: 400px;
    background: white;
    padding: 36px;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.login-box h1 {
    font-size: 22px;
    margin-bottom: 8px;
    color: #1e293b;
}

.login-box .muted {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 24px;
}

/* Doluluk takvimi */
.calendar-toolbar {
    margin-bottom: 20px;
}

.calendar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.calendar-range-hint {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.calendar-summary-grid {
    margin-bottom: 24px;
}

.calendar-free-codes {
    font-size: 15px;
    font-weight: 600;
    word-break: break-word;
}

/* Google-tarzı ay takvimi (doluluk) */
.gcal-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 12px;
    margin-bottom: 8px;
}

.gcal-card-title {
    flex: 1 1 160px;
    text-align: center;
    margin: 0;
    order: 0;
}

.gcal-nav-month {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    max-width: 100%;
}

.gcal-nav-month span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.gcal-card-nav-center {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.gcal-card-hint {
    margin-top: 0;
    margin-bottom: 14px;
}

.gcal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 20px;
    font-size: 13px;
    color: #5f6368;
    margin-bottom: 16px;
}

.gcal-swatch {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    margin-right: 8px;
    vertical-align: middle;
    border: 1px solid #dadce0;
}

.gcal-swatch-empty {
    background: #ebedf0;
}

.gcal-swatch-busy {
    background: #ceead6;
}

.gcal-swatch-room {
    background: #d2e3fc;
    border-color: #8ab4f8;
}

.gcal-swatch-today {
    background: #1a73e8;
    border-color: #1a73e8;
}

.gcal-wrap {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #dadce0;
    border-radius: 8px;
    background: #fff;
}

.gcal-month {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 12px;
    min-width: 520px;
}

.gcal-dow-head {
    background: #f8f9fa;
    border: 1px solid #dadce0;
    padding: 10px 6px;
    text-align: center;
    vertical-align: middle;
    font-weight: 600;
    color: #3c4043;
}

.gcal-dow-short {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.gcal-dow-long {
    display: block;
    font-size: 10px;
    font-weight: 500;
    color: #70757a;
    margin-top: 3px;
    line-height: 1.2;
}

.gcal-week-row .gcal-day {
    border: 1px solid #dadce0;
    vertical-align: top;
    padding: 0;
    width: 14.28%;
    min-height: 128px;
    height: 136px;
    background: #ebedf0;
    transition: background 0.12s ease;
}

.gcal-day.gcal-empty-day {
    background: #ebedf0;
}

.gcal-day.gcal-has-events {
    background: #ceead6;
}

.gcal-day.gcal-out-month {
    opacity: 0.72;
}

.gcal-day.gcal-out-month.gcal-empty-day {
    background: #f1f3f4;
}

.gcal-day.gcal-out-month.gcal-has-events {
    background: #b7dfb9;
}

.gcal-day-inner {
    padding: 6px 6px 8px;
    min-height: 118px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    height: 100%;
}

.gcal-day-num-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    margin-bottom: 6px;
}

.gcal-day-date-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 5px 8px;
}

.gcal-day-num {
    font-size: 14px;
    font-weight: 600;
    color: #3c4043;
    min-width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 50%;
}

.gcal-day-month-name {
    font-size: 11px;
    font-weight: 600;
    color: #5f6368;
    line-height: 1.2;
}

.gcal-day-occ {
    font-size: 9px;
    font-weight: 500;
    color: #5f6368;
    line-height: 1.3;
    text-align: right;
    max-width: 100%;
    word-break: break-word;
}

.gcal-day.gcal-today .gcal-day-month-name {
    color: #1967d2;
}

.gcal-day.gcal-today .gcal-day-occ {
    color: #3c4043;
}

.gcal-day.gcal-today .gcal-day-num {
    background: #1a73e8;
    color: #fff;
    font-weight: 600;
}

.gcal-events {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    max-height: 64px;
    padding-right: 2px;
}

.gcal-event {
    display: block;
    text-decoration: none;
    border-radius: 4px;
    padding: 5px 6px;
    background: rgba(255, 255, 255, 0.92);
    border-left: 3px solid #34a853;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.12);
    text-align: left;
}

.gcal-event:hover {
    background: #fff;
    box-shadow: 0 1px 4px rgba(60, 64, 67, 0.2);
}

.gcal-guest-name {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #137333;
    line-height: 1.3;
    word-break: break-word;
}

.gcal-room {
    display: inline-block;
    margin-top: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #1967d2;
    background: #d2e3fc;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .gcal-dow-long {
        display: none;
    }

    .gcal-week-row .gcal-day {
        min-height: 96px;
        height: 104px;
    }

    .gcal-events {
        max-height: 56px;
    }

    .gcal-guest-name {
        font-size: 10px;
    }
}

/* Rezervasyon formu: yan misafir gizleme (birincil / arama) */
.extra-guest-row.extra-guest-primary-hide,
.extra-guest-row.extra-guest-filter-hide {
    display: none !important;
}

.extra-guest-filter-input {
    margin-bottom: 12px;
    max-width: 360px;
}

/* Tom Select — rezervasyon formu */
.panel-card .form-grid .ts-wrapper .ts-control {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 8px 10px;
    min-height: 42px;
}

.panel-card .form-grid .ts-wrapper.focus .ts-control {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.reservation-form-readonly-hint {
    background: #f8fafc;
    color: #475569;
    cursor: default;
}

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

.nav-badge {
    margin-left: auto;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-bar-icon-link {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.top-bar-icon-link:hover {
    background: #e2e8f0;
}

.top-bar-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
}

/* Bildirim zili */
button.top-bar-icon-link {
    padding: 0;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
}

.notif-wrap {
    position: relative;
}

.notif-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 120;
    width: min(340px, calc(100vw - 32px));
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    overflow: hidden;
}

.notif-panel[hidden] {
    display: none;
}

.notif-panel__head {
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.notif-empty {
    padding: 18px 14px;
    font-size: 13px;
    color: #64748b;
    text-align: center;
}

.notif-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
    border-left: 3px solid transparent;
    transition: background 0.15s ease;
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-item:hover {
    background: #f8fafc;
}

.notif-item__icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    background: #f1f5f9;
    color: #475569;
}

.notif-item__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.notif-item__title {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

.notif-item__meta {
    font-size: 12px;
    color: #64748b;
}

.notif-item--danger {
    border-left-color: #dc2626;
}

.notif-item--danger .notif-item__icon {
    background: #fee2e2;
    color: #b91c1c;
}

.notif-item--warn {
    border-left-color: #f59e0b;
}

.notif-item--warn .notif-item__icon {
    background: #fef3c7;
    color: #b45309;
}

.notif-item--info {
    border-left-color: #2563eb;
}

.notif-item--info .notif-item__icon {
    background: #dbeafe;
    color: #1d4ed8;
}

.message-row--new td {
    background: #fffbeb;
}

.message-detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
    gap: 16px 24px;
    min-width: 0;
}

.message-detail-body {
    white-space: pre-wrap;
    word-break: break-word;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin: 0;
}

.message-companion-list {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 14px;
}

.extra-services-card-title {
    font-size: 1.05rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.extra-services-add-grid {
    display: grid;
    grid-template-columns: 1fr 160px auto;
    gap: 16px;
    align-items: end;
}

@media (max-width: 768px) {
    .extra-services-add-grid {
        grid-template-columns: 1fr;
    }
}

.extra-services-spacer-label {
    visibility: hidden;
}

.extra-service-row-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px 16px;
    padding: 8px 0;
}

.extra-service-inline-form {
    flex: 1;
    min-width: min(100%, 520px);
}

.extra-service-inline-grid {
    display: grid;
    grid-template-columns: 64px minmax(140px, 1.2fr) 100px 48px 100px auto;
    gap: 10px;
    align-items: center;
}

@media (max-width: 1100px) {
    .extra-service-inline-grid {
        grid-template-columns: 64px 1fr 100px;
        grid-template-rows: auto auto;
    }

    .extra-service-use-count {
        grid-column: 1;
    }

    .extra-service-active-cell {
        grid-column: 2;
    }

    .extra-service-actions {
        grid-column: 3;
        grid-row: 1 / span 2;
    }
}

.extra-service-check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.extra-service-use-count {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}

/* ——— Site düzenleme (sekme + modern düzen) ——— */
.site-editor {
    max-width: 1120px;
    margin: 0 auto;
}

.site-editor__flash {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    border-radius: 12px;
    padding: 14px 18px;
    font-weight: 500;
}

.site-editor__flash i {
    font-size: 18px;
    opacity: 0.9;
}

.site-editor__hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px 32px;
    margin-bottom: 28px;
    padding: 28px 32px;
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.07) 0%, rgba(99, 102, 241, 0.05) 50%, rgba(14, 165, 233, 0.06) 100%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 12px 40px -18px rgba(15, 23, 42, 0.15);
}

.site-editor__hero-text {
    flex: 1 1 320px;
    min-width: 0;
}

.site-editor__eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6366f1;
    margin-bottom: 8px;
}

.site-editor__title {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 12px;
}

.site-editor__lede {
    font-size: 14px;
    color: #475569;
    line-height: 1.65;
    max-width: 52ch;
}

.site-editor__lede a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.site-editor__lede a:hover {
    text-decoration: underline;
}

.site-editor__hero-aside {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}

.site-editor__pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.site-editor__pill i {
    color: #6366f1;
    font-size: 13px;
}

.site-editor__chrome {
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow:
        0 4px 6px -1px rgba(15, 23, 42, 0.05),
        0 18px 48px -12px rgba(15, 23, 42, 0.1);
    overflow: hidden;
    margin-bottom: 100px;
}

.site-editor__tablist {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 12px 12px 10px;
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
    border-bottom: 1px solid #cbd5e1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.site-editor__tablist::-webkit-scrollbar {
    height: 6px;
}

.site-editor__tablist::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

.site-editor__tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.site-editor__tab:hover {
    color: #1e40af;
    background: rgba(255, 255, 255, 0.65);
}

.site-editor__tab.is-active {
    color: #1e3a8a;
    background: #fff;
    box-shadow:
        0 2px 8px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(148, 163, 184, 0.25);
}

.site-editor__tab i {
    font-size: 14px;
    opacity: 0.85;
}

.site-editor__body {
    padding: 28px 32px 36px;
    min-height: 320px;
}

@media (max-width: 640px) {
    .site-editor__body {
        padding: 20px 16px 28px;
    }
}

.site-editor__panel[hidden] {
    display: none !important;
}

.site-editor__panel-head {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.site-editor__panel-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.site-editor__panel-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.55;
    max-width: 65ch;
}

.site-editor__subsection {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.site-editor__subsection--last {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.site-editor__h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #475569;
    margin-bottom: 16px;
}

.site-editor__h4 i {
    color: #6366f1;
    font-size: 13px;
}

.site-editor__field-hint {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin: -4px 0 8px;
    font-weight: 500;
}

.site-editor__field-hint--block {
    margin: 0 0 14px;
}

.site-editor__color-field {
    display: grid;
    grid-template-columns: 54px 30px minmax(92px, 1fr);
    gap: 8px;
    align-items: center;
}

.site-editor__color-input {
    width: 54px;
    height: 38px;
    border: 1px solid #d7e2ef;
    border-radius: 8px;
    padding: 2px;
    background: #fff;
    cursor: pointer;
}

.site-editor__color-swatch {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid #d7e2ef;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.site-editor__color-hex {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: #fff;
}

.site-editor__panel .form-group {
    margin-bottom: 18px;
}

.site-editor__panel .form-group:last-child {
    margin-bottom: 0;
}

.site-editor__textarea--code {
    font-family: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
    line-height: 1.5;
}

.form-grid--nav {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
}

.form-grid--triple {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}

.form-grid--quad {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}

.form-grid--trust {
    grid-template-columns: 1fr 2fr;
    align-items: end;
}

@media (max-width: 700px) {
    .form-grid--trust {
        grid-template-columns: 1fr;
    }
}

.site-editor__trust-card {
    display: flex;
    gap: 16px;
    align-items: stretch;
    margin-bottom: 16px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.site-editor__trust-card:last-child {
    margin-bottom: 0;
}

.site-editor__trust-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.site-editor__trust-card .form-grid {
    flex: 1;
    margin-bottom: 0;
}

.site-editor__media-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.site-editor__media-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    align-items: start;
    padding: 20px 22px;
    background: #fafbfc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-editor__media-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 24px -12px rgba(15, 23, 42, 0.12);
}

@media (max-width: 560px) {
    .site-editor__media-card {
        grid-template-columns: 1fr;
    }
}

.site-editor__media-preview {
    width: 140px;
    height: 88px;
    border-radius: 12px;
    overflow: hidden;
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
}

.site-editor__media-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.site-editor__media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
}

.site-editor__media-placeholder i {
    font-size: 22px;
    opacity: 0.7;
}

.site-editor__media-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.site-editor__path {
    display: block;
    font-size: 11px;
    padding: 6px 10px;
    margin: 8px 0 6px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    word-break: break-all;
}

.site-editor__check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    margin-bottom: 10px;
}

.site-editor__file-zone {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-top: 10px;
}

.site-editor__file-native {
    max-width: 100%;
    font-size: 13px;
    color: #475569;
}

.site-editor__file-native::file-selector-button {
    margin-right: 14px;
    padding: 10px 18px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #1e40af;
    background: #fff;
    border: 1px solid #93c5fd;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.08);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-editor__file-native:hover::file-selector-button {
    background: #eff6ff;
    border-color: #3b82f6;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}

.site-editor__file-name {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-editor__dock {
    position: fixed;
    bottom: 52px;
    left: 220px;
    right: 0;
    z-index: 90;
    padding: 14px 24px calc(14px + env(safe-area-inset-bottom, 0));
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.08);
}

.site-editor__dock-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 20px;
}

.site-editor__dock-hint {
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    max-width: 48ch;
}

.site-editor__dock-hint i {
    color: #94a3b8;
}

.site-editor__dock-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.site-editor__save {
    padding-left: 22px;
    padding-right: 22px;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.site-editor__save i {
    margin-right: 6px;
}

@media (max-width: 768px) {
    .site-editor__dock {
        left: 0;
        bottom: 56px;
    }

    .site-editor__hero {
        padding: 22px 20px;
    }
}

/* Rezervasyon formu — önce tarih, sonra müsait odalar */
.reservation-form-step {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e8eef5;
}

.reservation-form-step--room {
    border-bottom: none;
    margin-bottom: 20px;
    padding-bottom: 0;
}

.reservation-form-block {
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fafcff;
}

.reservation-form-block:last-child {
    margin-bottom: 0;
}

.reservation-form-block__title {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.reservation-form-grid {
    margin-bottom: 0;
}

.reservation-form-grid--identity {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.reservation-form-grid--pricing {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

.reservation-form-grid--status {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.room-edit-block {
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fafcff;
}

.room-edit-block__title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.room-edit-block__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.room-edit-block__head .room-edit-block__title {
    margin: 0;
}

.room-edit-publish-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #dbe7f5;
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
}

.room-edit-grid {
    margin-bottom: 0;
    gap: 10px;
}

.room-edit-grid + .room-edit-grid {
    margin-top: 12px;
}

.room-edit-grid .form-group {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 10px 10px;
    margin-bottom: 0;
}

.room-edit-grid .form-group label {
    margin-bottom: 6px;
    font-size: 12px;
    color: #334155;
}

.room-edit-grid .form-group .muted {
    margin-bottom: 0;
}

.room-edit-grid--identity-top {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.room-edit-grid--identity-middle {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.room-edit-grid--identity-bottom {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1200px) {
    .room-edit-grid--identity-top {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .room-edit-grid--identity-middle {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .room-edit-grid--identity-bottom {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .room-edit-grid--identity-top,
    .room-edit-grid--identity-middle,
    .room-edit-grid--identity-bottom {
        grid-template-columns: 1fr;
    }
}

.settings-page {
    max-width: 1420px;
}

.settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.settings-tab {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    padding: 9px 13px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.settings-tab:hover,
.settings-tab:focus,
.settings-tab:active {
    text-decoration: none;
}

.settings-tab.is-active {
    background: #eef2ff;
    border-color: #818cf8;
    color: #312e81;
    text-decoration: none;
}

.settings-panel[hidden] {
    display: none !important;
}

.settings-h3 {
    margin: 0 0 14px;
    font-size: 17px;
}

.settings-test-mail {
    margin-top: 10px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 14px;
    background: #f8fafc;
}

.settings-test-mail h4,
.settings-template-block h4 {
    margin: 0 0 10px;
    font-size: 14px;
    color: #0f172a;
}

.settings-template-block {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 14px;
    background: #fff;
}

.mail-templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
    gap: 12px;
}

.mail-template-card {
    margin-bottom: 0;
}

.mail-template-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 12px;
    margin-bottom: 10px;
}

.maintenance-toggle {
    display: inline-flex;
    gap: 8px;
    padding: 6px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.maintenance-toggle__btn {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.maintenance-toggle__btn:hover {
    border-color: #93c5fd;
    color: #1e3a8a;
}

.maintenance-toggle__btn.is-active {
    background: #dbeafe;
    border-color: #60a5fa;
    color: #1e40af;
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.14);
}

.panel-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.panel-gallery-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    padding: 8px;
}

.panel-gallery-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin-bottom: 8px;
}

.reservation-form-step__title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.reservation-form-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 9px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.reservation-form-step__lead {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.55;
    max-width: 56ch;
}

.form-grid--dates {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    max-width: 720px;
    margin-bottom: 0;
}

.ts-option-room-plain {
    padding: 2px 0;
    line-height: 1.35;
}

.reservation-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 18px;
    align-items: start;
}

.reservation-side-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    position: sticky;
    top: 84px;
}

.reservation-side-card h3 {
    font-size: 15px;
    margin-bottom: 10px;
}

.reservation-side-card p {
    margin: 0 0 8px;
    font-size: 13px;
    color: #334155;
}

.reservation-side-card hr {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 10px 0;
}

.reservation-tablist {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.reservation-tab {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    padding: 9px 13px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

.reservation-tab.is-active {
    background: #eef2ff;
    border-color: #818cf8;
    color: #312e81;
}

.reservation-tab-panel {
    display: none;
}

.reservation-tab-panel.is-active {
    display: block;
}

@media (max-width: 1000px) {
    .reservation-layout {
        grid-template-columns: 1fr;
    }

    .reservation-side-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .reservation-form-block {
        padding: 14px;
    }
}

/* ---------------------------------------------------------------------------
   Destek oturumu bandı (impersonation)
   Doküman: pansiyonmaster/docs/09-login-as.md

   Sayfa kaydırılsa da görünür kalır: destek personeli hangi otelde olduğunu
   unutmamalı, otel yöneticisi de birinin girdiğini görebilmeli.
   Kehribar tonu panelin başka hiçbir yerinde kullanılmaz.
--------------------------------------------------------------------------- */
.impersonation-bar {
    position: sticky;
    top: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    background: #f59e0b;
    color: #fff;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(180, 83, 9, .28);
}

.impersonation-bar__text {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.impersonation-bar__tag {
    background: rgba(255, 255, 255, .22);
    border-radius: 999px;
    padding: 2px 9px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .3px;
}

.impersonation-bar__tag--danger {
    background: #b91c1c;
}

.impersonation-bar__time {
    opacity: .85;
    font-weight: 500;
}

.impersonation-bar__exit {
    background: #fff;
    color: #b45309;
    padding: 5px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}

.impersonation-bar__exit:hover {
    background: #fffbeb;
}

@media (max-width: 640px) {
    .impersonation-bar {
        font-size: 12px;
        padding: 8px 12px;
    }
    .impersonation-bar__time {
        display: none;
    }
}

/* ---------------------------------------------------------------------------
   Lisans uyarı bantları — pansiyonmaster/docs/11-limit-uygulama.md
   Kilit ekranından farklıdır: panel AÇIKKEN gösterilen uyarılardır.
--------------------------------------------------------------------------- */
.license-bar {
    position: sticky;
    top: 0;
    z-index: 2900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
}

.license-bar--info {
    background: #dbeafe;
    color: #1e40af;
    border-bottom: 1px solid #bfdbfe;
}

.license-bar--warn {
    background: #fef3c7;
    color: #92400e;
    border-bottom: 1px solid #fde68a;
}

.license-bar--danger {
    background: #fee2e2;
    color: #991b1b;
    border-bottom: 1px solid #fecaca;
}

.license-bar__contact {
    opacity: .85;
    font-weight: 500;
    margin-left: 8px;
}

/* Limit uyarısı — oda/kullanıcı sınırına ulaşıldığında sayfa üstünde */
.limit-notice {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    color: #78350f;
    padding: 13px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 18px;
}

.limit-notice strong {
    color: #92400e;
}
