/* ============================================
   AHP Paquetes - Calendario de Reservas
   ============================================ */

.ahp-calendar-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ============================================
   Filtros y Controles
   ============================================ */

.ahp-calendar-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.ahp-calendar-filters-left,
.ahp-calendar-filters-right {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.ahp-calendar-filter-select {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ahp-calendar-filter-select:hover {
    border-color: #9ca3af;
}

.ahp-calendar-filter-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.ahp-calendar-view-toggle {
    display: flex;
    gap: 5px;
    background: #f3f4f6;
    padding: 4px;
    border-radius: 8px;
}

.ahp-view-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
}

.ahp-view-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.ahp-view-btn.active {
    background: #fff;
    color: #111827;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ahp-view-btn .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

/* ============================================
   Header del Calendario
   ============================================ */

.ahp-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.ahp-calendar-title {
    flex: 1;
    text-align: center;
}

.ahp-calendar-title-text {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #111827;
}

.ahp-calendar-subtitle {
    margin: 5px 0 0;
    font-size: 14px;
    color: #6b7280;
}

.ahp-calendar-nav,
.ahp-calendar-today {
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.ahp-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
}

.ahp-calendar-nav:hover,
.ahp-calendar-today:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.ahp-calendar-nav:active,
.ahp-calendar-today:active {
    transform: scale(0.95);
}

.ahp-calendar-nav .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

/* ============================================
   Contenedor del Calendario
   ============================================ */

.ahp-calendar-container {
    position: relative;
    min-height: 400px;
}

.ahp-calendar-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #6b7280;
}

.ahp-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: ahp-spin 0.8s linear infinite;
}

@keyframes ahp-spin {
    to { transform: rotate(360deg); }
}

.ahp-calendar-content {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ahp-calendar-content.loaded {
    opacity: 1;
}

/* ============================================
   Vista Semanal
   ============================================ */

.ahp-week-view {
    display: grid;
    grid-template-columns: 80px repeat(7, 1fr);
    gap: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.ahp-week-time-column {
    background: #f9fafb;
    border-right: 1px solid #e5e7eb;
}

.ahp-week-time-header {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
}

.ahp-week-time-slot {
    height: 120px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8px;
    font-size: 12px;
    color: #9ca3af;
    border-bottom: 1px solid #f3f4f6;
}

.ahp-week-day-column {
    border-right: 1px solid #e5e7eb;
    position: relative;
}

.ahp-week-day-column:last-child {
    border-right: none;
}

.ahp-week-day-header {
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.ahp-week-day-name {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ahp-week-day-number {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin-top: 4px;
}

.ahp-week-day-header.is-today {
    background: #eff6ff;
}

.ahp-week-day-header.is-today .ahp-week-day-number {
    color: #3b82f6;
}

.ahp-week-day-slots {
    position: relative;
}

.ahp-week-time-slot-bg {
    height: 120px;
    border-bottom: 1px solid #f3f4f6;
}

.ahp-week-time-slot-bg:hover {
    background: #f9fafb;
}

.ahp-week-time-slot-bg.ahp-slot-occupied {
    background: #fef2f2;
    cursor: not-allowed;
}

.ahp-week-time-slot-bg.ahp-slot-occupied:hover {
    background: #fee2e2;
}

/* ============================================
   Eventos en la Vista Semanal
   ============================================ */

.ahp-booking-event {
    position: absolute;
    padding: 6px 8px;
    border-radius: 6px;
    border-left: 4px solid;
    cursor: pointer;
    font-size: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    z-index: 1;
}

.ahp-booking-event:hover {
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.ahp-booking-event-time {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 2px;
    opacity: 0.9;
}

.ahp-booking-event-title {
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ahp-booking-event-package {
    font-size: 11px;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Estados de las reservas */
.ahp-booking-event.status-pending {
    background: #fef3c7;
    border-left-color: #f59e0b;
    color: #92400e;
}

.ahp-booking-event.status-confirmed {
    background: #dbeafe;
    border-left-color: #3b82f6;
    color: #1e40af;
}

.ahp-booking-event.status-attended {
    background: #dcfce7;
    border-left-color: #22c55e;
    color: #166534;
}

.ahp-booking-event.status-cancelled {
    background: #fee2e2;
    border-left-color: #ef4444;
    color: #991b1b;
}

/* ============================================
   Vista Mensual
   ============================================ */

.ahp-month-view {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.ahp-month-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.ahp-month-day-name {
    padding: 12px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-right: 1px solid #e5e7eb;
}

.ahp-month-day-name:last-child {
    border-right: none;
}

.ahp-month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.ahp-month-day {
    min-height: 100px;
    padding: 8px;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ahp-month-day:hover {
    background: #f9fafb;
}

.ahp-month-day:nth-child(7n) {
    border-right: none;
}

.ahp-month-day.other-month {
    background: #fafafa;
    color: #9ca3af;
}

.ahp-month-day.is-today {
    background: #eff6ff;
}

.ahp-month-day-number {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
}

.ahp-month-day.is-today .ahp-month-day-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #3b82f6;
    color: #fff;
    border-radius: 50%;
}

.ahp-month-day.other-month .ahp-month-day-number {
    color: #9ca3af;
}

.ahp-month-bookings {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ahp-month-booking-item {
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    border-left: 3px solid;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: transform 0.2s ease;
}

.ahp-month-booking-item:hover {
    transform: translateX(2px);
}

.ahp-month-booking-item.status-pending {
    background: #fef3c7;
    border-left-color: #f59e0b;
    color: #92400e;
}

.ahp-month-booking-item.status-confirmed {
    background: #dbeafe;
    border-left-color: #3b82f6;
    color: #1e40af;
}

.ahp-month-booking-item.status-attended {
    background: #dcfce7;
    border-left-color: #22c55e;
    color: #166534;
}

.ahp-month-booking-item.status-cancelled {
    background: #fee2e2;
    border-left-color: #ef4444;
    color: #991b1b;
}

.ahp-month-booking-more {
    padding: 4px 6px;
    font-size: 11px;
    color: #6b7280;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.ahp-month-booking-more:hover {
    background: #e5e7eb;
}

/* ============================================
   Leyenda
   ============================================ */

.ahp-calendar-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.ahp-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
}

.ahp-legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 2px solid;
}

.ahp-legend-color.ahp-status-pending {
    background: #fef3c7;
    border-color: #f59e0b;
}

.ahp-legend-color.ahp-status-confirmed {
    background: #dbeafe;
    border-color: #3b82f6;
}

.ahp-legend-color.ahp-status-attended {
    background: #dcfce7;
    border-color: #22c55e;
}

.ahp-legend-color.ahp-status-cancelled {
    background: #fee2e2;
    border-color: #ef4444;
}

/* ============================================
   Modal de Detalles
   ============================================ */

.ahp-booking-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ahp-booking-modal[hidden] {
    display: none;
}

.ahp-booking-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.ahp-booking-modal-dialog {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: ahp-modal-slide-up 0.3s ease;
}

@keyframes ahp-modal-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ahp-booking-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #f3f4f6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 100;
}

.ahp-booking-modal-close:hover {
    background: #e5e7eb;
}

.ahp-booking-modal-close .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
    color: #6b7280;
}

.ahp-booking-modal-content {
    padding: 30px;
}

.ahp-booking-detail-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.ahp-booking-detail-folio {
    display: inline-block;
    padding: 6px 12px;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 12px;
}

.ahp-booking-detail-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
}

.ahp-booking-detail-package {
    font-size: 16px;
    color: #6b7280;
}

.ahp-booking-detail-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 12px;
}

.ahp-booking-detail-status.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.ahp-booking-detail-status.status-confirmed {
    background: #dbeafe;
    color: #1e40af;
}

.ahp-booking-detail-status.status-attended {
    background: #dcfce7;
    color: #166534;
}

.ahp-booking-detail-status.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.ahp-booking-detail-section {
    margin-bottom: 20px;
}

.ahp-booking-detail-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.ahp-booking-detail-value {
    font-size: 15px;
    color: #111827;
}

.ahp-booking-detail-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.ahp-booking-detail-tag {
    padding: 4px 10px;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 13px;
    color: #374151;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1200px) {
    .ahp-week-view {
        grid-template-columns: 60px repeat(7, 1fr);
    }
    
    .ahp-week-time-slot {
        font-size: 10px;
    }
}

@media (max-width: 768px) {
    .ahp-calendar-wrapper {
        padding: 15px;
    }
    
    .ahp-calendar-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ahp-calendar-filters-left,
    .ahp-calendar-filters-right {
        width: 100%;
        justify-content: center;
    }
    
    .ahp-calendar-filter-select {
        flex: 1;
    }
    
    .ahp-calendar-title-text {
        font-size: 18px;
    }
    
    .ahp-week-view {
        grid-template-columns: 50px repeat(5, 1fr);
    }
    
    .ahp-week-day-column:nth-child(7),
    .ahp-week-day-column:nth-child(8) {
        display: none;
    }
    
    .ahp-booking-event-package {
        display: none;
    }
    
    .ahp-month-day {
        min-height: 80px;
        padding: 4px;
    }
    
    .ahp-booking-modal-dialog {
        max-width: 100%;
    }
    
    .ahp-booking-modal-content {
        padding: 20px;
    }
}

/* ============================================
   Mensaje de vacío
   ============================================ */

.ahp-calendar-empty {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.ahp-calendar-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.ahp-calendar-empty-text {
    font-size: 16px;
    font-weight: 500;
}

/* ============================================
   Slots Clickeables para Crear Reserva
   ============================================ */

.ahp-slot-clickable {
    cursor: pointer !important;
    transition: background 0.2s ease;
}

.ahp-week-time-slot-bg.ahp-slot-clickable:hover {
    background: #eff6ff !important;
    position: relative;
}

.ahp-week-time-slot-bg.ahp-slot-clickable:hover::after {
    content: '+';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    color: #3b82f6;
    font-weight: 700;
    pointer-events: none;
}

.ahp-month-day.ahp-slot-clickable {
    cursor: pointer !important;
    transition: background 0.15s ease;
}

.ahp-month-day.ahp-slot-clickable:hover {
    background: #eff6ff !important;
}

/* Prevent event bubbling issues */
.ahp-booking-event,
.ahp-month-booking-item {
    pointer-events: auto;
    z-index: 10;
}

/* Old styles kept for compatibility */
.ahp-week-time-slot-bg[data-date] {
    cursor: pointer;
    transition: background 0.2s ease;
}

.ahp-week-time-slot-bg[data-date]:hover {
    background: #eff6ff;
    position: relative;
}

.ahp-week-time-slot-bg[data-date]:hover::after {
    content: '+';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    color: #3b82f6;
    font-weight: 700;
}

.ahp-month-day[data-date] {
    cursor: pointer;
    transition: background 0.15s ease;
}

.ahp-month-day[data-date]:hover {
    background: #eff6ff !important;
}

/* ============================================
   Modal de Creación de Reserva
   ============================================ */

.ahp-create-booking-modal .ahp-booking-modal-dialog {
    max-width: 700px;
    max-height: 90vh;
}

.ahp-create-booking-title {
    margin: 0 0 24px;
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

.ahp-create-booking-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ahp-create-booking-section {
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
}

.ahp-create-booking-section h3 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.ahp-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ahp-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ahp-form-field label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.ahp-form-field input,
.ahp-form-field select,
.ahp-form-field textarea {
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.ahp-form-field input:focus,
.ahp-form-field select:focus,
.ahp-form-field textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.ahp-form-field input[readonly] {
    background: #f3f4f6;
    cursor: not-allowed;
}

/* ============================================
   Builder Drag & Drop en Modal
   ============================================ */

.ahp-builder {
    margin-bottom: 20px;
}

.ahp-builder h4 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

.ahp-builder-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ahp-builder-column {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    min-height: 150px;
}

.ahp-builder-title {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ahp-builder-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 80px;
}

.ahp-builder-list.drag-over {
    background: #eff6ff;
    border-color: #3b82f6;
}

.ahp-builder-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: move;
    transition: all 0.2s ease;
}

.ahp-builder-item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.ahp-builder-item.dragging {
    opacity: 0.5;
}

.ahp-builder-item-name {
    font-size: 14px;
    color: #374151;
    flex: 1;
}

.ahp-builder-action {
    padding: 4px 12px;
    border: none;
    background: #3b82f6;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ahp-builder-action:hover {
    background: #2563eb;
}

.ahp-remove-btn {
    background: #ef4444;
}

.ahp-remove-btn:hover {
    background: #dc2626;
}

.ahp-builder-empty {
    margin: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
}

/* ============================================
   Mensajes de Estado en el Modal
   ============================================ */

.ahp-create-booking-message {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    display: none;
}

.ahp-create-booking-message.is-loading,
.ahp-create-booking-message.is-success,
.ahp-create-booking-message.is-error {
    display: block;
}

.ahp-create-booking-message.is-loading {
    background: #dbeafe;
    color: #1e40af;
}

.ahp-create-booking-message.is-success {
    background: #dcfce7;
    color: #166534;
}

.ahp-create-booking-message.is-error {
    background: #fee2e2;
    color: #991b1b;
}

/* ============================================
   Botones de Acción del Modal
   ============================================ */

.ahp-create-booking-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 8px;
}

.ahp-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.ahp-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ahp-btn-primary {
    background: #3b82f6;
    color: #fff;
}

.ahp-btn-primary:hover:not(:disabled) {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.ahp-btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.ahp-btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.ahp-btn-secondary:hover:not(:disabled) {
    background: #e5e7eb;
}

/* ============================================
   Responsive para Modal de Creación
   ============================================ */

@media (max-width: 768px) {
    .ahp-create-booking-modal .ahp-booking-modal-dialog {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
    }

    .ahp-booking-modal-content {
        padding: 20px;
    }

    .ahp-create-booking-title {
        font-size: 20px;
    }

    .ahp-form-row {
        grid-template-columns: 1fr;
    }

    .ahp-builder-layout {
        grid-template-columns: 1fr;
    }

    .ahp-create-booking-actions {
        flex-direction: column-reverse;
    }

    .ahp-btn {
        width: 100%;
    }
}
/* ============================================
   Customer Type Badge
   ============================================ */

.ahp-booking-type-badge {
    display: inline-block;
    padding: 2px 6px;
    margin-left: 6px;
    border-radius: 4px;
    font-size: 11px;
    line-height: 1;
    vertical-align: middle;
    background-color: #3b82f6;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Catering & Experience sections in admin modal
   ============================================ */

.ahp-cal-extra-section {
    margin-top: 20px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.ahp-cal-extra-title {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.ahp-cal-field-group {
    margin-bottom: 14px;
}

.ahp-cal-field-label {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ahp-cal-radio-group,
.ahp-cal-check-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ahp-cal-radio-option,
.ahp-cal-check-option {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: border-color 0.15s, background 0.15s;
    flex: 1 0 auto;
    min-width: 140px;
}

.ahp-cal-radio-option:has(input:checked),
.ahp-cal-check-option:has(input:checked) {
    border-color: #6d28d9;
    background: #f5f3ff;
}

.ahp-cal-radio-option input,
.ahp-cal-check-option input {
    margin: 2px 0 0;
    flex-shrink: 0;
}

.ahp-cal-radio-name,
.ahp-cal-check-name {
    font-weight: 500;
}

.ahp-cal-radio-desc {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}

.ahp-cal-yn-group {
    display: flex;
    gap: 8px;
}

.ahp-cal-yn-option {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: border-color 0.15s, background 0.15s;
}

.ahp-cal-yn-option:has(input:checked) {
    border-color: #6d28d9;
    background: #f5f3ff;
}

.ahp-cal-disclaimer {
    margin: 10px 0 0;
    font-size: 12px;
    color: #64748b;
    font-style: italic;
}

.ahp-booking-event-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}