/**
 * HNDC Booth Booking - Public CSS
 */

.hndc-map-container {
    position: relative;
    margin: 20px 0;
}

.hndc-map-wrapper {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    background: #f9f9f9;
}

.hndc-map-controls {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hndc-zoom-controls {
    display: flex;
    gap: 5px;
}

.hndc-zoom-button {
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 16px;
}

.hndc-zoom-button:hover {
    background: #135e96;
}

.hndc-legend {
    display: flex;
    gap: 15px;
    margin-left: auto;
}

.hndc-legend-item {
    display: flex;
    align-items: center;
    font-size: 12px;
}

.hndc-legend-color {
    width: 15px;
    height: 15px;
    margin-right: 5px;
    border: 1px solid #ddd;
    border-radius: 2px;
}

.hndc-legend-available {
    background-color: rgba(76, 175, 80, 0.3);
    border-color: #4caf50;
}

.hndc-legend-reserved {
    background-color: rgba(244, 67, 54, 0.3);
    border-color: #f44336;
}

.hndc-legend-pending {
    background-color: rgba(255, 152, 0, 0.3);
    border-color: #ff9800;
}

.hndc-map-image-container {
    position: relative;
    width: 100%;
    overflow: auto;
    min-height: 400px;
}

.hndc-map-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.hndc-booth {
    position: absolute;
    border: 1px solid #aaa;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--booth-type-color, #e0e0e0);
    opacity: 1;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    /* border-radius: 8px; */
}

.hndc-booth:hover {
    border-color: #333;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    z-index: 10;
    transform: scale(1.05) rotate(var(--booth-rotation, 0deg));
}

.hndc-booth.reserved,
.hndc-booth.pending {
    cursor: not-allowed;
}

.hndc-booth.reserved:hover,
.hndc-booth.pending:hover {
}

.booth-number {
    color: #000;
    font-weight: bold;
    font-size: 12px;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.8);
    pointer-events: none;
    z-index: 2;
    position: relative;
}

.hndc-booth-tooltip {
    position: absolute;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    font-size: 12px;
    min-width: 200px;
    display: none;
}

.hndc-booth:hover .hndc-booth-tooltip {
    display: block;
}

.hndc-booking-form-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 23, 29, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hndc-booking-form {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px 60px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    width: 90%;
    max-width: 600px;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    animation: slideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hndc-booking-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid rgba(0, 123, 255, 0.1);
    position: relative;
}

.hndc-booking-form-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, #3a7bd5, #00d2ff);
}

.hndc-booking-form-header h3 {
    margin: 0;
    font-size: 32px;
    background: linear-gradient(135deg, #3a7bd5, #00d2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hndc-booking-form-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.hndc-booking-form-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #333;
    transform: rotate(90deg);
}

.hndc-booth-info {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: 1px solid rgba(0, 123, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 35px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.hndc-booth-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3a7bd5, #00d2ff);
}

.hndc-booth-info-item {
    display: flex;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 123, 255, 0.05);
}

.hndc-booth-info-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(5px);
    box-shadow: 0 4px 15px -3px rgba(0, 123, 255, 0.1);
}

.hndc-booth-info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.hndc-booth-info-label {
    font-weight: 700;
    color: #3a7bd5;
    width: 140px;
    flex-shrink: 0;
    font-size: 15px;
    letter-spacing: 0.3px;
}

.hndc-booth-info-value {
    color: #2d3748;
    flex-grow: 1;
    font-size: 15px;
    font-weight: 500;
}

.hndc-form-row {
    margin-bottom: 25px;
    position: relative;
}

.hndc-form-row label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2d3748;
    font-size: 15px;
    letter-spacing: 0.3px;
}

.hndc-form-row input[type="text"],
.hndc-form-row input[type="email"],
.hndc-form-row input[type="tel"],
.hndc-form-row textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid rgba(0, 123, 255, 0.1);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px -2px rgba(0, 0, 0, 0.05);
}

.hndc-form-row input[type="text"]:focus,
.hndc-form-row input[type="email"]:focus,
.hndc-form-row input[type="tel"]:focus,
.hndc-form-row textarea:focus {
    border-color: #3a7bd5;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(58, 123, 213, 0.1);
    outline: none;
    transform: translateY(-2px);
}

.hndc-form-row .required {
    color: #e53e3e;
    margin-left: 4px;
    font-weight: 700;
}

.hndc-form-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid rgba(0, 123, 255, 0.1);
}

.hndc-btn {
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.hndc-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
    pointer-events: none;
}

.hndc-btn-cancel {
    background: #f8f9fa;
    color: #2d3748;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.hndc-btn-cancel:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hndc-btn-primary {
    background: linear-gradient(135deg, #3a7bd5, #00d2ff);
    color: #fff;
    box-shadow: 0 4px 15px rgba(58, 123, 213, 0.3);
}

.hndc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(58, 123, 213, 0.4);
    background: linear-gradient(135deg, #2d62b5, #00b8e6);
}

.hndc-message {
    padding: 10px 15px;
    border-radius: 3px;
    margin: 15px 0;
    font-size: 16px;
}

.hndc-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.hndc-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.hndc-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.hndc-message.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.hndc-search-form {
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
}

.hndc-search-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}

.hndc-search-input {
    flex: 1;
}

.hndc-search-input input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.hndc-search-button {
    padding: 8px 15px;
    background-color: #2271b1;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.hndc-search-results {
    margin-top: 20px;
}

@media (max-width: 768px) {
    .hndc-legend {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
    
    .hndc-booking-form {
        width: 90%;
    }
}

/* Định dạng cho bản đồ gian hàng */
.hndc-booth-map-container {
    position: relative;
    margin-bottom: 30px;
}

.hndc-booth-map-wrapper {
    position: relative;
    /* Border, margin, and other styles are now handled by .hndc-main-layout .hndc-booth-map-wrapper */
}

.hndc-booth-map {
    position: relative;
    transform-origin: top left;
}

.hndc-booth {
    position: absolute;
    border: 1px solid #333;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.hndc-booth:hover {
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.hndc-booth .booth-number {
    font-weight: bold;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);}

/* Tooltip cho gian hàng */
.booth-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 20;
    display: none;
}

.hndc-booth.has-tooltip:hover .booth-tooltip {
    display: block;
}

/* Các nút điều khiển zoom */
.hndc-map-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 5px;
    z-index: 30;
    display: flex;
    gap: 5px;
}

.hndc-map-controls button {
    width: 30px;
    height: 30px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hndc-map-controls button:hover {
    background-color: #e0e0e0;
}

.hndc-zoom-reset {
    min-width: 60px !important;
}

/* Modal thông tin gian hàng */
.hndc-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.hndc-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    position: relative;
    border-radius: 5px;
}

.hndc-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.hndc-booth-info-content h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.hndc-booth-info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.hndc-booth-info-table th {
    text-align: left;
    padding: 5px 10px 5px 0;
    width: 30%;
    vertical-align: top;
}

.hndc-booth-info-table td {
    padding: 5px 0;
}

/* Form đặt gian hàng */
#hndc-booth-booking-form {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px 20px;
}

.form-row {
    margin-bottom: 10px;
}

.form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-row input, 
.form-row textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.form-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.hndc-button {
    padding: 8px 15px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.hndc-button:hover {
    background-color: #005b87;
}

.cancel-booking {
    background-color: #ddd;
    color: #333;
}

.cancel-booking:hover {
    background-color: #ccc;
}

.success-message {
    padding: 15px;
    background-color: #d4edda;
    color: #155724;
    border-radius: 3px;
    margin-top: 15px;
}

/* START: CSS cho legend (bên phải) */
.hndc-booth-map-legend {
    background: #ffffff; /* Màu trắng */
    padding: 12px 20px; /* Giảm padding */
    border-radius: 1.6rem;
    border: 2px solid #e2e8f0;
    box-shadow: 0px 0px 16px 0px rgba(0, 0, 0, 0.08); /* Giảm shadow */
    flex: 0 1 auto;
    min-height: 48px; /* Giảm chiều cao */
    transition: all 0.3s ease;
}

.hndc-booth-map-legend:hover {
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
    border-color: #dc3545; /* Màu đỏ */
}

.hndc-booth-map-legend h3 {
    margin: 0 0 12px 0; /* Giảm margin bottom */
    font-size: 14px; /* Giảm font size */
    color: #1e293b;
    font-weight: 600;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hndc-booth-map-legend h3::before {
    content: "📍";
    font-size: 18px;
    filter: grayscale(0.3);
}

.hndc-booth-types-legend, 
.hndc-booth-status-legend {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hndc-booth-types-legend li,
.hndc-booth-status-legend li {
    display: flex;
    align-items: center;
    gap: 6px; /* Giảm gap */
    padding: 6px 10px; /* Giảm padding */
    background: rgba(248, 250, 252, 0.8);
    border-radius: 8px; /* Giảm border radius */
    font-size: 12px; /* Giảm font size */
    font-weight: 500;
    color: #475569;
    transition: all 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.hndc-booth-types-legend li:hover,
.hndc-booth-status-legend li:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.booth-color, 
.status-indicator {
    width: 14px; /* Giảm size */
    height: 14px; /* Giảm size */
    border-radius: 4px; /* Giảm border radius */
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); /* Giảm shadow */
    flex-shrink: 0;
}

.hndc-booth-status-legend .status-available .status-indicator {
    background-color: rgba(40, 167, 69, 0.9);
    border: 1px solid #28a745;
}

.hndc-booth-status-legend .status-reserved .status-indicator {
    background-color: rgba(220, 53, 69, 0.7);
    border: 1px solid #dc3545;
    position: relative;
    overflow: hidden;
}

.hndc-booth-status-legend .status-pending .status-indicator {
    background-color: rgba(255, 193, 7, 0.7);
    border: 1px solid #ffc107;
    position: relative;
    overflow: hidden;
}

.hndc-booth-status-legend .status-reserved .status-indicator::after,
.hndc-booth-status-legend .status-pending .status-indicator::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.2),
        rgba(0, 0, 0, 0.2) 2px,
        transparent 2px,
        transparent 4px
    );
    z-index: 1;
}

.booth-highlight {
    animation: highlightBooth 1s ease;
}

@keyframes highlightBooth {
    0%, 100% {
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    }
}

/* Trạng thái Reserved và Pending */
.hndc-booth.booth-status-reserved,
.hndc-booth.booth-status-pending {
    background-color: #e74c3c ; /* Màu đỏ mờ làm nền */
    cursor: not-allowed;
}
.hndc-booth.booth-status-pending {
    background-color: #ffc107 ; /* Màu đỏ mờ làm nền */
    cursor: not-allowed;
}
/* Hiệu ứng sọc chéo - Làm đậm hơn */
.hndc-booth.booth-status-reserved::after,
.hndc-booth.booth-status-pending::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.2),
        rgba(0, 0, 0, 0.2) 4px,
        transparent 4px,
        transparent 8px
    );
    z-index: 1;
    pointer-events: none;
}

/* Hover cho Reserved và Pending */
.hndc-booth.booth-status-reserved:hover,
.hndc-booth.booth-status-pending:hover {
    border-color: #555;
}

/* START: Thêm CSS cho filter */
.hndc-booth.filtered-out {
    opacity: 0.3;
    background-color: #ccc !important; /* Ghi đè màu loại gian hàng */
    border-color: #aaa;
    cursor: not-allowed; /* Thay đổi con trỏ */
}
/* END: Thêm CSS cho filter */

/* START: Container cho filter và legend trên cùng 1 hàng */
.hndc-booth-map-info {
    display: flex;
    justify-content: flex-start;
    align-items: stretch; /* Đồng nhất chiều cao */
    margin-bottom: 20px;
    gap: 12px; /* Giảm khoảng cách */
    flex-wrap: wrap;
}

/* START: CSS làm đẹp bộ lọc (bên trái) */
.hndc-booth-type-filter {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #ffffff; /* Màu trắng */
    padding: 12px 20px; /* Giảm padding */
    border-radius: 1.6rem;
    border: 2px solid #e2e8f0;
    box-shadow: 0px 0px 16px 0px rgba(0, 0, 0, 0.08); /* Giảm shadow */
    flex: 0 1 auto;
    min-height: 48px; /* Giảm chiều cao */
    transition: all 0.3s ease;
    position: relative; /* Fix z-index cho select */
    z-index: 10; /* Đảm bảo select hiển thị đúng */
}

.hndc-booth-type-filter label {
    font-weight: 600;
    font-size: 15px;
    color: #1e293b;
    white-space: nowrap;
    margin: 0;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hndc-booth-type-filter label::before {
    content: "🏢";
    font-size: 18px;
    filter: grayscale(0.3);
}

.hndc-booth-type-filter select {
    padding: 10px 40px 10px 14px; /* Giảm padding */
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    min-width: 180px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    position: relative; /* Fix z-index */
    z-index: 20; /* Cao hơn container */
}

.hndc-booth-type-filter select:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

.hndc-booth-type-filter select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
    transform: translateY(-1px);
}

/* Custom dropdown arrow */
.hndc-booth-type-filter select {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23334155%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%2C9%2012%2C15%2018%2C9%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.hndc-booth-type-filter:hover {
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
    border-color: #dc3545; /* Màu đỏ */
}
/* END: CSS làm đẹp bộ lọc */

/* START: CSS cho ô chỉ thị màu */
.hndc-color-indicator {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hndc-color-indicator:not(:empty) {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
/* END: CSS cho ô chỉ thị màu */

/*--------------------------------------------------------------
# Redesigned Modal Styles
--------------------------------------------------------------*/
.redesigned-modal .hndc-modal-content {
    background-color: #f8f9fa; /* Màu nền modal tổng thể */
    border-radius: 12px;
    overflow: hidden; /* Ẩn phần thừa của header */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-width: 550px; /* Có thể điều chỉnh */
    padding: 0; /* Xóa padding cũ */
}

.redesigned-modal .hndc-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #fff; /* Màu nút X trên nền đỏ */
    opacity: 0.8;
    z-index: 10;
}

.redesigned-modal .hndc-modal-close:hover {
    opacity: 1;
}

/* Modal Header */
.redesigned-modal .hndc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    color: #fff;
    /* background-color: #dc3545; */ /* Đã đặt inline, có thể bỏ nếu muốn */
}

.redesigned-modal .header-text h2 {
    color: #fff;
    margin: 0 0 5px 0;
    font-size: 1.5em;
    font-weight: 600;
}

.redesigned-modal .header-text p {
    margin: 0;
    font-size: 0.9em;
    opacity: 0.9;
}

.redesigned-modal .header-booth-number {
    font-size: 2.8em;
    font-weight: 700;
    line-height: 1;
    border-left: 2px solid rgba(255, 255, 255, 0.5);
    padding-left: 25px;
    margin-right: 45px;
}

/* Modal Info Content */
.redesigned-modal .hndc-booth-info-content {
    padding: 25px 30px; /* Padding cho phần nội dung */
}

/* Khối thông tin cơ bản */
.redesigned-modal .hndc-basic-info-block {
    background: rgba(233, 125, 139, 0.06);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 25px;
}

.redesigned-modal .info-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px dashed #eee;
}

.redesigned-modal .info-item:last-child {
    border-bottom: none;
}

.redesigned-modal .info-label {
    color: #555;
    flex-shrink: 0; /* Không co lại */
    margin-right: 5px;
}

.redesigned-modal .info-dots {
    flex-grow: 1; /* Chiếm không gian trống */
    margin: 0 5px;
    position: relative;
    bottom: 3px; /* Điều chỉnh vị trí dấu chấm */
}

.redesigned-modal .info-value {
    font-weight: 600;
    color: #333;
    text-align: right;
    flex-shrink: 0; /* Không co lại */
    margin-left: 5px;
}

/* Tiêu đề form */
.redesigned-modal .hndc-booth-booking-form-container h4 {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Form Styles */
.redesigned-modal #hndc-booth-booking-form .form-row {
    margin-bottom: 15px;
}

.redesigned-modal #hndc-booth-booking-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    color: #444;
    font-weight: 500;
}

.redesigned-modal #hndc-booth-booking-form input[type="text"],
.redesigned-modal #hndc-booth-booking-form input[type="email"],
.redesigned-modal #hndc-booth-booking-form input[type="tel"],
.redesigned-modal #hndc-booth-booking-form textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    box-sizing: border-box;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.redesigned-modal #hndc-booth-booking-form input:focus,
.redesigned-modal #hndc-booth-booking-form textarea:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.15);
    outline: none;
}

.redesigned-modal #hndc-booth-booking-form textarea {
    min-height: 80px;
}

/* Form Actions */
.redesigned-modal #hndc-booth-booking-form .form-actions {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.redesigned-modal #hndc-booth-booking-form .hndc-button {
    border: none;
    border-radius: 6px;
    padding: 12px 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.redesigned-modal #hndc-booth-booking-form .submit-booking {
    background-color: #dc3545;
    color: #fff;
}

.redesigned-modal #hndc-booth-booking-form .submit-booking:hover {
    background-color: #c82333;
}

.redesigned-modal #hndc-booth-booking-form .submit-booking:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.redesigned-modal #hndc-booth-booking-form .cancel-booking {
    background-color: transparent;
    color: #6c757d;
    padding: 0; /* Nút text không cần padding */
}

.redesigned-modal #hndc-booth-booking-form .cancel-booking:hover {
    color: #343a40;
    text-decoration: underline;
}

/* Thông báo thành công trong modal */
.redesigned-modal .success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* === Styles for Occupant Details Block === */
.occupant-details-block {
    margin-top: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 1.6rem;
    padding: 15px 20px;
}
.occupant-details-block h4 {
    font-size: 16px;
    font-weight: 600;
    color: #334155;
}

.occupant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.occupant-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.edit-booth-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.2s;
}

.edit-booth-btn:hover {
    background: #005a87;
}

.edit-booth-btn .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Hide edit button for non-admin users */
body:not(.admin-user) .edit-booth-btn {
    display: none !important;
}
.occupant-info-row {
    display: flex;
    align-items: baseline; /* Căn theo baseline để chữ thẳng hàng */
    justify-content: space-between;
    margin-bottom: 8px; /* Khoảng cách giữa các dòng */
    line-height: 1.4;
    padding: 8px 0;
    font-size: 14px;
}

.occupant-info-label {
    flex-shrink: 0; /* Không co lại */
    margin-right: 10px; /* Khoảng cách với dấu chấm */
    color: #334155;
    font-weight: normal; /* Hoặc bold nếu muốn */
}

.occupant-info-dots {
    flex-grow: 1; /* Lấp đầy khoảng trống */
   /*  border-bottom: 1px dotted #ccc; Đường chấm chấm */
    margin-left: 5px; /* Khoảng cách với label */
    margin-right: 5px; /* Khoảng cách với value */
    height: 1em; /* Chiều cao để căn đường chấm */
    position: relative;
    top: -0.4em; /* Điều chỉnh vị trí dọc của đường chấm */
}

.occupant-info-value {
    flex-shrink: 0; /* Không co lại */
    margin-left: 10px; /* Khoảng cách với dấu chấm */
    text-align: right; /* Căn phải */
    font-weight: bold; /* Chữ đậm */
    color: #333;
}

/* Thêm style cho phần basic info giống occupant nếu muốn */
.hndc-basic-info-block .info-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 8px;
    line-height: 1.4;
}

.hndc-basic-info-block .info-label {
    flex-shrink: 0;
    margin-right: 10px;
    color: #555;
}

.hndc-basic-info-block .info-dots {
    flex-grow: 1;
    margin-left: 5px;
    margin-right: 5px;
    height: 1em;
    position: relative;
    top: -0.4em;
}

.hndc-basic-info-block .info-value {
    flex-shrink: 0;
    margin-left: 10px;
    text-align: right;
    font-weight: bold;
    color: #333;
}

/* Responsive adjustments if needed */
@media (max-width: 480px) {
    .occupant-info-label,
    .hndc-basic-info-block .info-label {
        /* Có thể giảm kích thước chữ hoặc thay đổi layout trên màn hình nhỏ */
    }
}

.hndc-main-content {
    /* display: grid; */ /* <<< Xóa */
    /* grid-template-columns: 2fr 1fr; */ /* <<< Xóa */
    /* gap: 30px; */ /* <<< Xóa */
}

/* Styles for status in public modal */
#booth-info-status {
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block; /* Để padding và background hoạt động */
    text-transform: uppercase;
    font-size: 0.9em;
    border: 1px solid transparent;
}

/* Màu sắc tương ứng với backend */
#booth-info-status.status-available,
#booth-info-status[data-status="available"] /* Thêm selector dự phòng */
{
    color: #1e8a5c;
    background-color: #e9fbf5;
    border-color: #a9eedf;
}

#booth-info-status.status-pending,
#booth-info-status[data-status="pending"]
{
    color: #a36b0d;
    background-color: #fff8eb;
    border-color: #ffeebb;
}

#booth-info-status.status-booked,
#booth-info-status.status-reserved, /* Bao gồm cả reserved nếu có */
#booth-info-status[data-status="booked"],
#booth-info-status[data-status="reserved"]
{
    color: #6c757d;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

#booth-info-status.status-unavailable,
#booth-info-status[data-status="unavailable"]
{
    color: #dc3545;
    background-color: #fdf2f4;
    border-color: #fbd0d5;
}

/* Thêm các trạng thái khác nếu cần */
#booth-info-status.status-confirmed,
#booth-info-status[data-status="confirmed"]
{
    color: #0073aa;
    background-color: #f0f6fc;
    border-color: #bcdfff;
}

#booth-info-status.status-paid,
#booth-info-status[data-status="paid"]
{
    color: #1e8a5c; /* Giống available */
    background-color: #e9fbf5;
    border-color: #a9eedf;
}

#booth-info-status.status-cancelled,
#booth-info-status[data-status="cancelled"]
{
    color: #6c757d; /* Giống booked */
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

/* ========================================
   PANEL LAYOUT STYLES - New sidebar design
   ======================================== */

/* Main layout container */
.hndc-main-layout {
    display: flex;
    gap: 20px;
    min-height: 500px;
}

/* Map wrapper - takes remaining space */
.hndc-main-layout .hndc-booth-map-wrapper {
    flex: 1;
    min-width: 0; /* Allow shrinking */
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 1.6rem;
    box-shadow: 0px 0px 26px 0px rgba(0, 0, 0, 0.13);
    overflow: hidden; /* Ensure content stays within rounded corners */
}

/* Right panel styles */
.hndc-booth-info-panel {
    width: 400px;
    min-width: 400px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 1.6rem;
    box-shadow: 0px 0px 26px 0px rgba(0, 0, 0, 0.13);
    display: flex;
    flex-direction: column;
}

.hndc-booth-info-panel-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Default info styles */
.hndc-default-info {
    padding: 40px 30px 30px 30px;
    text-align: center;
    color: #666;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Ensure default info is shown initially */
.hndc-booth-info-panel-content .hndc-default-info {
    display: flex; /* Override any hide styles */
}

.hndc-booth-info-panel-content .hndc-booth-details-panel {
    display: none; /* Hide booth details initially */
}

.hndc-default-info h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.hndc-default-info p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Booth details panel */
.hndc-booth-details-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Panel header */
.hndc-panel-header {
    background-color: #dc3545;
    color: white;
    padding: 15px 20px;
    border-radius: 1.6rem 1.6rem 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
}

.hndc-panel-header .header-text h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.hndc-panel-header .header-text p {
    margin: 2px 0 0 0;
    font-size: 12px;
    opacity: 0.9;
}

.hndc-panel-header .header-booth-number {
    background: rgba(255,255,255,0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

/* Panel content */
.hndc-panel-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* Messages in panel */
.hndc-panel-content .hndc-message {
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}

.hndc-panel-content .hndc-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.hndc-panel-content .hndc-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading state */
.hndc-panel-content .hndc-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* Basic info block in panel */
.hndc-panel-content .hndc-basic-info-block {
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 1.6rem;
    padding: 16px;
}

.hndc-panel-content .hndc-basic-info-block .info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.hndc-panel-content .hndc-basic-info-block .info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hndc-panel-content .hndc-basic-info-block .info-item:first-child {
    padding-top: 0;
}

.hndc-panel-content .info-label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    min-width: 140px;
    text-align: left;
}

.hndc-panel-content .info-value {
    font-weight: 600;
    color: #212529;
    font-size: 14px;
    text-align: right;
    flex: 1;
}

/* Occupant details in panel */
.hndc-panel-content .occupant-details-block {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 1.6rem;
    padding: 16px;
    margin-bottom: 20px;
}

.hndc-panel-content .occupant-details-block h4 {
    margin: 0 0 12px 0;
    font-size: 15px;
    color: #334155;
    font-weight: 600;
}

.hndc-panel-content .occupant-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.hndc-panel-content .occupant-info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hndc-panel-content .occupant-info-row:first-child {
    padding-top: 0;
}

.hndc-panel-content .occupant-info-label {
    font-size: 14px;
    color: #334155;
    font-weight: 600;
    min-width: 100px;
    text-align: left;
}

.hndc-panel-content .occupant-info-value {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    text-align: right;
    flex: 1;
}

/* Special styling for notes row */
.hndc-panel-content #booth-info-notes-row {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hndc-panel-content #booth-info-notes-row .occupant-info-label {
    text-align: left;
    margin-bottom: 5px;
    min-width: auto;
}

.hndc-panel-content #booth-info-notes-row .occupant-info-value {
    text-align: left;
    flex: none;
    width: 100%;
    font-style: italic;
    background: rgba(255, 255, 255, 0.7);
    padding: 8px;
    border-radius: 1.6rem;
    border: 1px dashed #e2e8f0;
}

/* Booking form in panel */
.hndc-panel-content .hndc-booth-booking-form-container {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.hndc-panel-content .hndc-booth-booking-form-container h4 {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hndc-panel-content .form-row {
    margin-bottom: 12px;
}

.hndc-panel-content .form-row label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #555;
}

.hndc-panel-content .form-row input,
.hndc-panel-content .form-row textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    box-sizing: border-box;
}

.hndc-panel-content .form-row input:focus,
.hndc-panel-content .form-row textarea:focus {
    border-color: #dc3545;
    outline: none;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

/* File upload styling */
.hndc-panel-content .form-row input[type="file"] {
    padding: 8px;
    background: #f9f9f9;
    border: 2px dashed #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hndc-panel-content .form-row input[type="file"]:hover {
    border-color: #dc3545;
    background: #fff5f5;
}

.hndc-panel-content .form-row .form-text {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    color: #666;
    font-style: italic;
}

/* Multi Image preview */
.image-previews {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 16px;
    border: 1px solid #cbd5e1;
    min-height: 80px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.hndc-image-preview {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    border: 2px solid transparent;
    aspect-ratio: 4/3;
}

.hndc-image-preview:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    border-color: #3b82f6;
}

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

.hndc-image-preview:hover img {
    transform: scale(1.08);
}

.hndc-image-preview .remove-image {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 3px 12px rgba(248, 113, 113, 0.4);
    opacity: 0.95;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    line-height: 1;
}

.hndc-image-preview .remove-image:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    transform: scale(1.15);
    opacity: 1;
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.6);
}

.hndc-image-preview .remove-image:active {
    transform: scale(0.9);
}

/* Multi uploaded images display */
.hndc-uploaded-images {
    margin-top: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    min-height: 80px;
    align-items: start;
}

.hndc-uploaded-images img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    border: 2px solid transparent;
    background: #fff;
    position: relative;
}

.hndc-uploaded-images img:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    border-color: #007cba;
}

.hndc-uploaded-images img:active {
    transform: translateY(-2px) scale(1.01);
}

/* Image loading skeleton */
.hndc-image-loading {
    width: 100%;
    height: 150px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 2s infinite;
    border-radius: 10px;
}

@keyframes loading-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Image fade-in animation */
.hndc-uploaded-images img,
.hndc-image-preview img {
    animation: image-fade-in 0.5s ease forwards;
    opacity: 0;
}

@keyframes image-fade-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Empty state styling */
.hndc-uploaded-images:empty {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px dashed #cbd5e1;
    border-radius: 15px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 14px;
    font-style: italic;
}



/* Booth images section styling (khu vực mới) */
.booth-images-section {
    margin: 25px 0;
    display: none; /* Ẩn mặc định */
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.booth-images-section.show {
    display: block; /* Hiển thị khi có class show */
    opacity: 1;
    transform: translateY(0);
}

.booth-images-section h4 {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    text-transform: none;
    letter-spacing: -0.3px;
    position: relative;
    padding-left: 35px;
}

.booth-images-section h4:before {
    content: '📸';
    position: absolute;
    left: 0;
    font-size: 20px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.booth-images-section .hndc-uploaded-images {
    margin-top: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.9) 100%);
    border-radius: 1.6rem;
    border: 1px solid rgba(0, 123, 186, 0.1);
    min-height: 80px;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Cố định 3 cột */
    grid-template-rows: repeat(3, auto); /* Tối đa 3 hàng */
    gap: 12px;
    padding: 15px;
    position: relative;
    overflow: hidden;
    max-height: 400px; /* Giới hạn chiều cao để chỉ hiển thị 3 hàng */
}

.booth-images-section .hndc-uploaded-images img {
    width: 100%;
    height: 100px; /* Chiều cao cố định nhỏ gọn hơn */
    object-fit: cover;
    border-radius: 1.6rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    border: 2px solid transparent;
    background: #fff;
}

.booth-images-section .hndc-uploaded-images img:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
    border-color: #007cba;
}

.booth-images-section .hndc-uploaded-images img:nth-child(n+10) {
    display: none; /* Ẩn hình ảnh từ thứ 10 trở đi (chỉ hiển thị 9 hình) */
}

/* Hiển thị số hình ảnh còn lại khi có > 9 hình */
.booth-images-section .hndc-uploaded-images:has(img:nth-child(10))::after {
    content: '+' attr(data-remaining-count) ' hình khác';
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    z-index: 5;
    pointer-events: none;
}

/* Overlay cho hình thứ 9 khi có nhiều hơn 9 hình */
.booth-images-section .hndc-uploaded-images:has(img:nth-child(10)) img:nth-child(9)::after {
    content: '+' attr(data-more-count);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
}

.booth-images-section .hndc-uploaded-images:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #007cba 0%, #00a0d2 100%);
}

.booth-images-section .hndc-uploaded-images:empty:before {
    content: '📂 Không có hình ảnh đính kèm';
    color: #8e8e93;
    font-style: italic;
    font-size: 14px;
    font-weight: 500;
    grid-column: 1 / -1;
    text-align: center;
    padding: 25px 15px;
    background: none;
    height: auto;
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #d1d5db;
    border-radius: 1.6rem;
    margin: 0;
}

/* Responsive cho grid hình ảnh */
@media (max-width: 768px) {
    .booth-images-section .hndc-uploaded-images {
        grid-template-columns: repeat(2, 1fr); /* Mobile: 2 cột */
        grid-template-rows: repeat(4, auto); /* Tăng lên 4 hàng để fit 8 hình (2x4) */
        gap: 10px;
        padding: 12px;
        max-height: 350px;
    }
    
    .booth-images-section .hndc-uploaded-images img {
        height: 80px; /* Giảm chiều cao cho mobile */
    }
    
    .booth-images-section .hndc-uploaded-images img:nth-child(n+9) {
        display: none; /* Mobile chỉ hiển thị 8 hình (2x4) */
    }
    
    .booth-images-section h4 {
        font-size: 15px;
        padding-left: 30px;
        margin-bottom: 12px;
    }
    
    .booth-images-section h4:before {
        font-size: 18px;
    }
    
    .image-previews {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 15px;
    }
    
    .hndc-uploaded-images {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 12px;
    }
    
    .hndc-uploaded-images img {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .booth-images-section .hndc-uploaded-images {
        grid-template-columns: 1fr; /* Mobile nhỏ: 1 cột */
        grid-template-rows: repeat(6, auto); /* Tối đa 6 hình theo chiều dọc */
        gap: 8px;
        padding: 10px;
        max-height: 450px;
    }
    
    .booth-images-section .hndc-uploaded-images img {
        height: 70px; /* Chiều cao nhỏ hơn cho mobile nhỏ */
    }
    
    .booth-images-section .hndc-uploaded-images img:nth-child(n+7) {
        display: none; /* Mobile nhỏ chỉ hiển thị 6 hình */
    }
    
    .booth-images-section h4 {
        font-size: 14px;
        padding-left: 28px;
        margin-bottom: 10px;
    }
    
    .booth-images-section h4:before {
        font-size: 16px;
    }
    
    .image-previews {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
    }
    
    .hndc-uploaded-images {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }
    
    .hndc-uploaded-images img {
        height: 140px;
    }
}

/* Gallery popup styles */
.hndc-gallery-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hndc-gallery-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.hndc-gallery-container {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    max-width: 92vw;
    max-height: 92vh;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
}

.hndc-gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid rgba(222, 226, 230, 0.6);
    position: relative;
}

.hndc-gallery-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #007cba 0%, #00a0d2 100%);
}

.hndc-gallery-title {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.hndc-gallery-counter {
    font-size: 14px;
    color: #666;
}

.hndc-gallery-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.hndc-gallery-close:hover {
    background: #e9ecef;
    color: #000;
}

.hndc-gallery-main {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-height: 400px;
    overflow: hidden;
}

.hndc-gallery-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    background: #f8f9fa;
    height: 100%;
    position: relative;
}

.hndc-gallery-image-container img {
    max-width: calc(100% - 60px);
    max-height: calc(100% - 60px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    display: block;
}

/* .hndc-gallery-image-container img:hover {
    transform: scale(1.02);
} */

.hndc-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 50px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hndc-gallery-nav:hover {
    background: rgba(0, 0, 0, 0.7);
}

.hndc-gallery-prev {
    left: 10px;
}

.hndc-gallery-next {
    right: 10px;
}

.hndc-gallery-nav span {
    font-size: 24px;
    font-weight: bold;
}

.hndc-gallery-thumbnails {
    display: flex;
    gap: 8px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    overflow-x: auto;
    max-width: 100%;
    flex-shrink: 0;
    min-height: 75px;
    align-items: center;
}

.hndc-gallery-thumb {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hndc-gallery-thumb:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.hndc-gallery-thumb.active {
    opacity: 1;
    border-color: #007cba;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 123, 186, 0.3);
}

/* Gallery responsive */
@media (max-width: 768px) {
    .hndc-gallery-container {
        max-width: 95vw;
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .hndc-gallery-header {
        padding: 10px 15px;
    }
    
    .hndc-gallery-title {
        font-size: 14px;
    }
    
    .hndc-gallery-counter {
        font-size: 12px;
    }
    
    .hndc-gallery-main {
        min-height: 300px;
    }
    
    .hndc-gallery-image-container {
        padding: 15px;
    }
    
    .hndc-gallery-image-container img {
        max-width: calc(100% - 30px);
        max-height: calc(100% - 30px);
        border-radius: 8px;
    }
    
    .hndc-gallery-nav {
        width: 40px;
        height: 40px;
    }
    
    .hndc-gallery-nav span {
        font-size: 18px;
    }
    
    .hndc-gallery-prev {
        left: 5px;
    }
    
    .hndc-gallery-next {
        right: 5px;
    }
    
    .hndc-gallery-thumbnails {
        padding: 10px 15px;
        min-height: 65px;
    }
    
    .hndc-gallery-thumb {
        width: 50px;
        height: 38px;
        border-radius: 4px;
    }
}

@media (max-width: 480px) {
    .hndc-gallery-container {
        max-width: 98vw;
        max-height: 98vh;
        border-radius: 8px;
    }
    
    .hndc-gallery-header {
        padding: 8px 12px;
    }
    
    .hndc-gallery-title {
        font-size: 13px;
    }
    
    .hndc-gallery-counter {
        font-size: 11px;
    }
    
    .hndc-gallery-main {
        min-height: 250px;
    }
    
    .hndc-gallery-image-container {
        padding: 10px;
    }
    
    .hndc-gallery-image-container img {
        max-width: calc(100% - 20px);
        max-height: calc(100% - 20px);
        border-radius: 6px;
    }
    
    .hndc-gallery-nav {
        width: 35px;
        height: 35px;
    }
    
    .hndc-gallery-nav span {
        font-size: 16px;
    }
    
    .hndc-gallery-prev {
        left: 3px;
    }
    
    .hndc-gallery-next {
        right: 3px;
    }
    
    .hndc-gallery-thumbnails {
        padding: 8px 12px;
        min-height: 55px;
        gap: 6px;
    }
    
    .hndc-gallery-thumb {
        width: 45px;
        height: 34px;
        border-radius: 3px;
    }
}

.hndc-panel-content .form-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.hndc-panel-content .hndc-button {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hndc-panel-content .submit-booking {
    background: #dc3545;
    color: white;
}

.hndc-panel-content .submit-booking:hover {
    background: #c82333;
}

.hndc-panel-content .cancel-booking {
    background: #6c757d;
    color: white;
}

.hndc-panel-content .cancel-booking:hover {
    background: #5a6268;
}

/* Responsive design */
@media (max-width: 1024px) {
    .hndc-booth-info-panel {
        width: 350px;
        min-width: 350px;
    }
}

@media (max-width: 768px) {
    /* Responsive cho filter và legend */
    .hndc-booth-map-info {
        flex-direction: column;
        gap: 10px; /* Giảm gap cho mobile */
        margin-bottom: 16px;
    }
    
    .hndc-booth-type-filter,
    .hndc-booth-map-legend {
        width: 100%;
        min-height: auto;
        padding: 10px 16px; /* Giảm padding */
    }
    
    .hndc-booth-type-filter {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .hndc-booth-type-filter label {
        font-size: 13px;
    }
    
    .hndc-booth-type-filter select {
        width: 100%;
        min-width: auto;
        padding: 8px 32px 8px 12px; /* Giảm padding */
        z-index: 15; /* Đảm bảo hiển thị đúng */
    }
    
    .hndc-booth-map-legend h3 {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .hndc-booth-status-legend {
        gap: 8px;
    }
    
    .hndc-booth-status-legend li {
        padding: 5px 8px; /* Giảm padding */
        font-size: 11px; /* Giảm font size */
    }
    
    .booth-color, 
    .status-indicator {
        width: 12px; /* Giảm size cho mobile */
        height: 12px;
    }
    
    .hndc-main-layout {
        flex-direction: column;
    }
    
    .hndc-booth-info-panel {
        width: 100%;
        min-width: auto;
        order: -1; /* Move panel above map on mobile */
    }
    
    .hndc-default-info {
        padding: 20px 15px 15px 15px;
        justify-content: flex-start;
    }
    
    .hndc-panel-content {
        padding: 15px;
    }
}

/* Edit booth form styles */
.hndc-edit-booth-form-container {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007cba;
}

.hndc-edit-booth-form-container h4 {
    margin-top: 0;
    color: #007cba;
    display: flex;
    align-items: center;
    gap: 8px;
}

.current-images-container {
    margin: 15px 0;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.current-images-container h5 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #495057;
}

.current-images-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.current-image-item {
    position: relative;
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.current-image-item .remove-current-image {
    position: absolute;
    top: 4px;
    right: 4px;
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 3px 12px rgba(248, 113, 113, 0.4);
    opacity: 0.95;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    line-height: 1;
}

.current-image-item .remove-current-image:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    transform: scale(1.15);
    opacity: 1;
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.6);
}

.current-image-item .remove-current-image:active {
    transform: scale(0.9);
}

.save-edit-booth {
    background: #28a745 !important;
    color: white !important;
}

.save-edit-booth:hover {
    background: #218838 !important;
}

.cancel-edit-booth {
    background: #6c757d !important;
    color: white !important;
}

.cancel-edit-booth:hover {
    background: #5a6268 !important;
}

/* Responsive cho nút xóa tròn */
@media (max-width: 768px) {
    .current-image-item .remove-current-image {
        width: 20px;
        height: 20px;
        font-size: 11px;
        top: 3px;
        right: 3px;
        box-shadow: 0 2px 8px rgba(248, 113, 113, 0.4);
    }
    
    .hndc-image-preview .remove-image {
        width: 22px;
        height: 22px;
        font-size: 12px;
        top: 6px;
        right: 6px;
        box-shadow: 0 2px 10px rgba(248, 113, 113, 0.4);
    }
}

@media (max-width: 480px) {
    .current-image-item .remove-current-image {
        width: 18px;
        height: 18px;
        font-size: 10px;
        top: 2px;
        right: 2px;
        box-shadow: 0 2px 6px rgba(248, 113, 113, 0.4);
    }
    
    .hndc-image-preview .remove-image {
        width: 20px;
        height: 20px;
        font-size: 11px;
        top: 5px;
        right: 5px;
        box-shadow: 0 2px 8px rgba(248, 113, 113, 0.4);
    }
}

