/**
 * DetailPro Booking WordPress Plugin Styles
 */

/* Container */
.detailpro-booking-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

/* iFrame */
.detailpro-booking-iframe {
    border: none;
    border-radius: 8px;
    width: 100%;
    background: #f9fafb;
}

/* Button Styles */
.detailpro-booking-button-container,
.detailpro-booking-popup-container {
    text-align: center;
    margin: 20px 0;
}

.detailpro-booking-button {
    display: inline-block;
    padding: 14px 32px;
    background-color: #1e40af;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.detailpro-booking-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0.9;
}

.detailpro-booking-button:active {
    transform: translateY(0);
}

/* Modal Styles */
.detailpro-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.detailpro-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.detailpro-modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    z-index: 1;
}

.detailpro-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.detailpro-modal-close:hover {
    background: #e5e7eb;
}

.detailpro-modal-content .detailpro-booking-iframe {
    border-radius: 0;
}

/* Error Message */
.detailpro-error {
    padding: 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    text-align: center;
}

.detailpro-error a {
    color: #dc2626;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .detailpro-modal {
        padding: 10px;
    }
    
    .detailpro-modal-content {
        max-height: 95vh;
    }
    
    .detailpro-booking-button {
        padding: 12px 24px;
        font-size: 14px;
    }
}
