/* Bsimple Booking Widget Styles */
.bsimple-widget-container {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    max-width: 100%;
    color: #1f2937;
    line-height: 1.5;
}

.bsimple-widget-container * { box-sizing: border-box; }

.bsimple-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    color: #9ca3af;
    font-size: 14px;
    gap: 12px;
}

.bsimple-spinner {
    width: 32px; height: 32px;
    border: 3px solid #e5e7eb;
    border-top-color: #00bcd4;
    border-radius: 50%;
    animation: bsimple-spin 0.8s linear infinite;
}

@keyframes bsimple-spin { to { transform: rotate(360deg); } }

.bsimple-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.bsimple-header img {
    height: 36px;
    width: auto;
}

.bsimple-header h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #111827;
}

.bsimple-header p {
    font-size: 13px;
    color: #9ca3af;
    margin: 2px 0 0;
}

.bsimple-form {
    padding: 20px;
}

.bsimple-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.bsimple-field {
    flex: 1;
}

.bsimple-field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    margin-bottom: 4px;
}

.bsimple-field input,
.bsimple-field select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    color: #111827;
    background: #f9fafb;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

.bsimple-field input:focus,
.bsimple-field select:focus {
    border-color: #00bcd4;
    box-shadow: 0 0 0 3px rgba(0,188,212,0.1);
}

.bsimple-guests-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.bsimple-guests-row .bsimple-field {
    min-width: 0;
}

.bsimple-search-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #00bcd4, #0097a7);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 4px;
    font-family: inherit;
}

.bsimple-search-btn:hover {
    box-shadow: 0 4px 14px rgba(0,188,212,0.35);
    transform: translateY(-1px);
}

.bsimple-search-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.bsimple-results {
    padding: 0 20px 20px;
}


.bsimple-room-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    margin: -16px -16px 12px -16px;
    width: calc(100% + 32px);
}
.bsimple-room-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.bsimple-room-card:hover {
    border-color: #00bcd4;
    box-shadow: 0 2px 12px rgba(0,188,212,0.1);
}

.bsimple-room-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #111827;
}

.bsimple-room-card .bsimple-room-info {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 12px;
}

.bsimple-room-card .bsimple-room-price {
    font-size: 22px;
    font-weight: 800;
    color: #00bcd4;
}

.bsimple-room-card .bsimple-room-price small {
    font-size: 13px;
    font-weight: 400;
    color: #9ca3af;
}

.bsimple-book-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #00bcd4, #0097a7);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
    font-family: inherit;
}

.bsimple-book-btn:hover { box-shadow: 0 2px 10px rgba(0,188,212,0.3); }

.bsimple-book-form {
    margin-top: 12px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
}

.bsimple-book-form .bsimple-field { margin-bottom: 8px; }

.bsimple-book-form input {
    background: #fff !important;
}

.bsimple-confirm-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: #10b981;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
    font-family: inherit;
}

.bsimple-confirm-btn:hover { background: #059669; }

.bsimple-msg {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 12px;
    font-weight: 500;
}

.bsimple-msg.success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.bsimple-msg.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.bsimple-msg.info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

.bsimple-no-rooms {
    text-align: center;
    padding: 32px 20px;
    color: #9ca3af;
    font-size: 14px;
}

/* Float mode */
.bsimple-float-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00bcd4, #0097a7);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,188,212,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: transform 0.2s;
}

.bsimple-float-btn:hover { transform: scale(1.1); }

.bsimple-float-panel {
    position: fixed;
    bottom: 92px;
    right: 24px;
    width: 380px;
    max-height: 70vh;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    z-index: 99999;
    overflow-y: auto;
    display: none;
}

.bsimple-float-panel.bsimple-open { display: block; }

.bsimple-float-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 16px;
    font-weight: 700;
}

.bsimple-float-container {
    display: none;
}

@media (max-width: 480px) {
    .bsimple-float-panel { width: calc(100vw - 32px); right: 16px; bottom: 84px; }
    .bsimple-row { flex-direction: column; }
}
