/* PHOBS Booking Plugin - CSS */
.phobs-booking-widget {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 350px;
    margin: 10px auto;
}

.phobs-container {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 24px;
}

.phobs-form-group {
    margin-bottom: 20px;
}

.phobs-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
}

/* Date Display */
.phobs-date-display {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    position: relative;
}

.phobs-date-display:hover {
    border-color: #667eea;
}

.phobs-date-display.phobs-active {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.phobs-date-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.phobs-date-item {
    flex: 1;
}

.phobs-date-label {
    font-size: 12px;
    color: #718096;
    margin-bottom: 4px;
}

.phobs-date-value {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
}

.phobs-date-separator {
    margin: 0 12px;
    color: #cbd5e0;
    font-size: 20px;
}

/* Calendar Popup */
.phobs-calendar-popup {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    padding: 20px;
    display: none;
    z-index: 1000;
}

.phobs-calendar-popup.phobs-active {
    display: block;
    animation: phobsFadeIn 0.2s ease;
}

@keyframes phobsFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.phobs-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.phobs-calendar-nav {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: #f7fafc;
    color: #4a5568;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.phobs-calendar-nav:hover {
    background: #667eea;
    color: #fff;
}

.phobs-calendar-month {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.phobs-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.phobs-calendar-day-header {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #718096;
    padding: 8px 0;
}

.phobs-calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.phobs-calendar-day:hover:not(.phobs-disabled) {
    background: #edf2f7;
}

.phobs-calendar-day.phobs-disabled {
    color: #cbd5e0;
    cursor: not-allowed;
}

.phobs-calendar-day.phobs-start-date {
    background: #667eea;
    color: #fff;
    border-radius: 8px 0 0 8px;
}

.phobs-calendar-day.phobs-end-date {
    background: #667eea;
    color: #fff;
    border-radius: 0 8px 8px 0;
}

.phobs-calendar-day.phobs-single-selected {
    background: #667eea;
    color: #fff;
    border-radius: 8px;
}

.phobs-calendar-day.phobs-in-range {
    background: #e6f0ff;
}

.phobs-calendar-day.phobs-other-month {
    color: #cbd5e0;
}

/* Guest Display */
.phobs-guest-display {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    position: relative;
}

.phobs-guest-display:hover {
    border-color: #667eea;
}

.phobs-guest-display.phobs-active {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.phobs-guest-summary {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
}

.phobs-guest-popup {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    padding: 20px;
    display: none;
    z-index: 1000;
}

.phobs-guest-popup.phobs-active {
    display: block;
    animation: phobsFadeIn 0.2s ease;
}

.phobs-guest-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.phobs-guest-row:not(:last-child) {
    border-bottom: 1px solid #f7fafc;
}

.phobs-guest-label {
    font-size: 15px;
    font-weight: 500;
    color: #4a5568;
}

.phobs-guest-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.phobs-guest-btn {
    width: 32px;
    height: 32px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #4a5568;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phobs-guest-btn:hover:not(:disabled) {
    border-color: #667eea;
    color: #667eea;
}

.phobs-guest-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.phobs-guest-count {
    font-size: 16px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

/* Input */
.phobs-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.phobs-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

/* Submit Button */
.phobs-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.phobs-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.phobs-submit-btn:active {
    transform: translateY(0);
}

/* Cancel Link */
.phobs-cancel-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
}

.phobs-cancel-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
    .phobs-container {
        padding: 20px 16px;
    }
    
    .phobs-calendar-popup,
    .phobs-guest-popup {
        left: -10px;
        right: -10px;
        width: calc(100% + 20px);
    }
}