/* WP Booking Pro - Public Styles */

.wbp-booking-widget {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333;
}

/* Property info */
.wbp-property-selector {
    margin-bottom: 20px;
}

.wbp-property-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.wbp-property-selector select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
}

.wbp-property-image {
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
}

.wbp-property-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.wbp-property-info {
    margin-bottom: 20px;
}

.wbp-property-info h3 {
    font-size: 24px;
    margin: 0 0 8px;
    color: #1a1a1a;
}

.wbp-property-info p {
    color: #666;
    margin: 0 0 12px;
    line-height: 1.5;
}

.wbp-price-display {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.wbp-price-tag {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 15px;
}

.wbp-price-tag strong {
    font-size: 20px;
}

.wbp-price-week {
    background: #fff3e0;
    color: #e65100;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 15px;
}

.wbp-price-week strong {
    font-size: 20px;
}

/* Booking Info Banner */
.wbp-booking-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border: 2px solid #2271b1;
    border-radius: 10px;
    padding: 14px 20px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 15px;
    color: #1a1a1a;
}

.wbp-booking-info strong {
    color: #2271b1;
}

/* Calendar Nav */
.wbp-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.wbp-nav-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #333;
}

.wbp-nav-btn:hover {
    border-color: #2271b1;
    color: #2271b1;
    background: #f0f6fc;
}

.wbp-month-display {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    min-width: 200px;
    text-align: center;
}

/* Calendar Grid */
.wbp-pub-calendar {
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.wbp-pub-cal-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #2271b1;
}

.wbp-pub-cal-header-cell {
    padding: 12px 4px;
    text-align: center;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wbp-pub-cal-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.wbp-pub-day {
    border: 1px solid #f0f0f0;
    min-height: 72px;
    padding: 6px;
    text-align: center;
    position: relative;
    transition: all 0.15s;
    cursor: default;
}

.wbp-pub-day.wbp-day-empty {
    background: #fafafa;
}

.wbp-pub-day.wbp-day-available {
    cursor: pointer;
    background: #fff;
}

.wbp-pub-day.wbp-day-available:hover {
    background: #e3f2fd;
}

.wbp-pub-day.wbp-day-promo {
    cursor: pointer;
    background: #fffde7;
}

.wbp-pub-day.wbp-day-promo:hover {
    background: #fff9c4;
}

.wbp-pub-day.wbp-day-unavailable {
    background: #f5f5f5;
    color: #bbb;
}

.wbp-pub-day.wbp-day-unavailable .wbp-pub-day-num {
    text-decoration: line-through;
    color: #ccc;
}

.wbp-pub-day.wbp-day-past {
    background: #fafafa;
    color: #ccc;
}

.wbp-pub-day.wbp-day-selected {
    background: #2271b1 !important;
    color: #fff !important;
}

.wbp-pub-day.wbp-day-selected .wbp-pub-day-num {
    color: #fff;
}

.wbp-pub-day.wbp-day-selected .wbp-pub-day-price {
    color: rgba(255,255,255,0.9);
}

.wbp-pub-day.wbp-day-range {
    background: #bbdefb !important;
}

.wbp-pub-day.wbp-day-range .wbp-pub-day-num {
    color: #1565c0;
}

.wbp-pub-day.wbp-day-week-hover {
    background: #e3f2fd;
    outline: 2px solid #2271b1;
    outline-offset: -2px;
}

/* Saturday cells — arrival days */
.wbp-pub-day.wbp-day-saturday {
    background: #e8f5e9;
    border-color: #81c784;
    cursor: pointer;
}

.wbp-pub-day.wbp-day-saturday:hover {
    background: #c8e6c9;
    box-shadow: inset 0 0 0 2px #4caf50;
}

.wbp-pub-day .wbp-saturday-tag {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8px;
    background: #4caf50;
    color: #fff;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* Check-in day marker */
.wbp-pub-day.wbp-day-checkin {
    background: #2271b1 !important;
    color: #fff !important;
    border-radius: 8px 0 0 8px;
}

.wbp-pub-day.wbp-day-checkin .wbp-pub-day-num,
.wbp-pub-day.wbp-day-checkin .wbp-pub-day-price {
    color: #fff !important;
}

.wbp-pub-day.wbp-day-checkin .wbp-saturday-tag {
    background: rgba(255,255,255,0.3);
}

/* Check-out day marker */
.wbp-pub-day.wbp-day-checkout-marker {
    background: #e3f2fd;
    border-left: 3px solid #2271b1;
}

/* Extend hint */
.wbp-extend-hint {
    margin-top: 12px;
    padding: 10px 14px;
    background: #fff8e1;
    border-radius: 8px;
    font-size: 13px;
    color: #795548;
    text-align: center;
}

/* Saturday legend dot */
.wbp-leg-saturday {
    background: #e8f5e9;
    border: 2px solid #4caf50;
}

.wbp-pub-day-num {
    font-weight: 700;
    font-size: 16px;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.wbp-pub-day-price {
    font-size: 12px;
    font-weight: 600;
    color: #2e7d32;
}

.wbp-pub-day.wbp-day-promo .wbp-pub-day-price {
    color: #e65100;
}

.wbp-pub-day .wbp-promo-tag {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 9px;
    background: #ff9800;
    color: #fff;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 700;
}

/* Legend */
.wbp-pub-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #666;
}

.wbp-leg-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 4px;
    vertical-align: middle;
}

.wbp-leg-available { background: #fff; border: 2px solid #28a745; }
.wbp-leg-selected { background: #2271b1; }
.wbp-leg-unavailable { background: #f5f5f5; border: 2px solid #ccc; }
.wbp-leg-promo { background: #fffde7; border: 2px solid #ff9800; }

/* Summary */
.wbp-summary {
    background: #f0f6fc;
    border: 2px solid #2271b1;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.wbp-summary h4 {
    margin: 0 0 12px;
    color: #2271b1;
    font-size: 17px;
}

.wbp-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 15px;
}

.wbp-summary-total {
    border-top: 2px solid #2271b1;
    margin-top: 8px;
    padding-top: 10px;
    font-size: 18px;
    color: #2271b1;
}

/* Form */
.wbp-form {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
}

.wbp-form h4 {
    margin: 0 0 16px;
    font-size: 17px;
    color: #1a1a1a;
}

.wbp-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.wbp-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
    color: #333;
}

.wbp-field input,
.wbp-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.wbp-field input:focus,
.wbp-field textarea:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(34,113,177,0.12);
}

.wbp-field {
    margin-bottom: 12px;
}

.wbp-submit-btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 8px;
}

.wbp-submit-btn:hover {
    background: #135e96;
    transform: translateY(-1px);
}

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

.wbp-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Messages */
.wbp-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}

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

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

.wbp-notice {
    padding: 16px 20px;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 600px) {
    .wbp-form-row {
        grid-template-columns: 1fr;
    }
    .wbp-pub-day {
        min-height: 56px;
        padding: 4px 2px;
    }
    .wbp-pub-day-num {
        font-size: 13px;
    }
    .wbp-pub-day-price {
        font-size: 10px;
    }
    .wbp-price-display {
        flex-direction: column;
        gap: 8px;
    }
    .wbp-mode-toggle {
        flex-direction: column;
    }
}

/* ==========================================
   Contact Form Widget
   ========================================== */
.wbp-contact-widget {
    max-width: 700px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333;
}

.wbp-contact-header {
    text-align: center;
    margin-bottom: 24px;
}

.wbp-contact-header h3 {
    font-size: 24px;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.wbp-contact-header p {
    color: #666;
    font-size: 15px;
    margin: 0;
    line-height: 1.5;
}

.wbp-contact-form {
    background: #fff;
    border: 2px solid #e8e8e8;
    border-radius: 16px;
    padding: 28px;
    position: relative;
}

.wbp-contact-form .wbp-field select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.wbp-contact-form .wbp-field select:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(34,113,177,0.12);
}

.wbp-contact-form .wbp-submit-btn {
    margin-top: 12px;
}

.wbp-contact-form .wbp-submit-btn:disabled {
    background: #aaa;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 600px) {
    .wbp-contact-form {
        padding: 20px 16px;
    }
    .wbp-contact-form .wbp-form-row {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   Thank You Overlay
   ========================================== */
.wbp-thankyou-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.4s ease, background 0.4s ease;
    pointer-events: none;
}

.wbp-thankyou-overlay.wbp-thankyou-visible {
    opacity: 1;
    background: rgba(0, 0, 0, 0.55);
    pointer-events: auto;
}

.wbp-thankyou-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 48px 40px;
    max-width: 520px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wbp-thankyou-visible .wbp-thankyou-card {
    transform: translateY(0) scale(1);
}

.wbp-thankyou-icon {
    font-size: 64px;
    line-height: 1;
    margin-bottom: 16px;
    animation: wbp-bounce 0.6s ease 0.3s both;
}

@keyframes wbp-bounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.wbp-thankyou-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 16px;
    line-height: 1.3;
}

.wbp-thankyou-text {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    margin: 0 0 10px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border-left: 4px solid #4caf50;
    border-radius: 8px;
    text-align: left;
}

.wbp-thankyou-text strong {
    color: #2e7d32;
    font-weight: 700;
}

.wbp-thankyou-sub {
    font-size: 14px;
    color: #888;
    margin: 14px 0 24px;
    font-style: italic;
}

.wbp-thankyou-close {
    display: inline-block;
    padding: 14px 48px;
    background: linear-gradient(135deg, #2271b1, #1a5a8e);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(34, 113, 177, 0.3);
}

.wbp-thankyou-close:hover {
    background: linear-gradient(135deg, #1a5a8e, #134a75);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 113, 177, 0.4);
}

.wbp-thankyou-close:active {
    transform: translateY(0);
}

@media (max-width: 600px) {
    .wbp-thankyou-card {
        padding: 36px 24px;
    }
    .wbp-thankyou-icon {
        font-size: 48px;
    }
    .wbp-thankyou-title {
        font-size: 22px;
    }
    .wbp-thankyou-text {
        font-size: 14px;
        padding: 12px 14px;
    }
    .wbp-thankyou-close {
        width: 100%;
        padding: 14px 24px;
    }
}
