.invitation-preview {
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    background-color: #f8f9fa;
    overflow: hidden;
}

.hotel-call-summary-row td {
    border-bottom: 0;
}

.hotel-call-last-note-row td {
    padding-top: 0;
}

.hotel-call-last-note {
    padding: 0.5rem 0.75rem;
    border-left: 3px solid #84acec;
    background-color: #f3f7fd;
}

.hotel-call-last-note__text {
    white-space: pre-wrap;
}

.discover-osm-map {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #eef2f6;
}

.discover-osm-map .leaflet-container {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.discover-icon-picker {
    margin-bottom: 1rem;
    border: 0;
    padding: 0;
}

.discover-icon-picker__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
    gap: 0.75rem;
}

.discover-icon-picker__option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 0.75rem;
    background: #fff;
    color: #212529;
    text-align: center;
    cursor: pointer;
}

.discover-icon-picker__option:hover {
    border-color: #84acec;
    background: #f8fbff;
}

.discover-icon-picker__option--selected {
    border-color: #4f77b8;
    box-shadow: inset 0 0 0 1px #4f77b8;
    background: #f3f7fd;
}

.discover-icon-picker__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: #eef2f6;
    color: #1f2937;
}

.discover-icon-picker__icon img {
    width: 1.5rem;
    height: 1.5rem;
}

.discover-icon-picker__label {
    font-size: 0.8125rem;
    line-height: 1.3;
}

tr.table-negotiation-website-content > td,
tr.table-negotiation-website-content > th {
    background-color: #e9ecef;
    color: var(--bs-body-color, #212529);
}

tr.table-negotiation-website-content .btn-link {
    color: var(--bs-link-color, #0d6efd);
}

.badge-negotiation-bookings-connected {
    background-color: #0f766e;
    color: #ffffff;
}

.table-negotiation-bookings-connected {
    --bs-table-color: #134e4a;
    --bs-table-bg: #5eead4;
    --bs-table-border-color: #2dd4bf;
    --bs-table-striped-bg: #2dd4bf;
    --bs-table-striped-color: #134e4a;
    --bs-table-hover-bg: #14b8a6;
    --bs-table-hover-color: #042f2e;
    color: var(--bs-table-color);
    border-color: var(--bs-table-border-color);
}

tr.table-negotiation-bookings-connected > td,
tr.table-negotiation-bookings-connected > th {
    background-color: var(--bs-table-bg);
    color: var(--bs-table-color);
}

tr.table-negotiation-bookings-connected .btn-link {
    color: #0f766e;
}

/* Список отелей (List.razor) — глобально, не scoped */
.housing-group {
    border: 1px solid #dee2e6;
    border-radius: 0.3125rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: #e9ecef;
    cursor: pointer;
}

.group-header:hover {
    background-color: #dee2e6;
}

.group-content {
    padding: 1rem;
    background-color: #fff;
}

.housing-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem;
    border-bottom: 1px solid #eee;
}

.housing-description-preview {
    max-height: 12rem;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

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

.expand-icon {
    transition: transform 0.2s;
    margin-left: 0.5rem;
}

.expanded .expand-icon {
    transform: rotate(180deg);
}

.housing-delete-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.housing-delete-spinner {
    background: #fff;
    padding: 2rem 3rem;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.housing-delete-spinner p {
    margin-bottom: 0;
    color: #333;
}

.admin-hotels-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-hotels-table {
    width: 100%;
    min-width: 56rem;
    margin-bottom: 0;
    border-collapse: collapse;
}

.admin-hotels-table thead th {
    white-space: nowrap;
    vertical-align: bottom;
    font-weight: 600;
}

.admin-hotels-table tbody td {
    vertical-align: top;
}

.admin-hotels-table .admin-hotels-col-name {
    width: 38%;
    min-width: 18rem;
}

.admin-hotels-table .admin-hotels-col-status {
    width: 9%;
    min-width: 5.5rem;
}

.admin-hotels-table .admin-hotels-col-promo {
    width: 14%;
    min-width: 7rem;
}

.admin-hotels-table .admin-hotels-col-date {
    width: 13%;
    min-width: 8rem;
}

.admin-hotels-table td:first-child {
    overflow-wrap: anywhere;
}

.admin-hotels-table tr.admin-hotels-actions-row > td {
    background-color: var(--bs-light, #f8f9fa);
    border-top: none;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.admin-hotels-table tr.admin-hotels-actions-row .btn {
    margin-bottom: 0.25rem;
}

/* Каркас Admin (дублирует MainLayout.razor.css на случай сбоя scoped-бандла) */
@media (min-width: 641px) {
    .page {
        display: flex;
        flex-direction: row;
    }

    main {
        flex: 1 1 auto;
        min-width: 0;
    }

    article.content {
        min-width: 0;
    }
}
