/* Simple Booking Services Styles */

/* General Reset */
.sbp-wrap, .sbp-service-catalog, .sbp-booking-list {
    font-family: 'Arial', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Typography */
.sbp-heading {
    font-size: 2em;
    margin-bottom: 20px;
    color: #33434C;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sbp-subheading {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Containers */
.sbp-container {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.sbp-shadow {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Flexbox and Grid */
.sbp-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.sbp-center {
    justify-content: center;
}

.sbp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.sbp-grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.sbp-grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.sbp-grid-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sbp-full-width {
    grid-column: 1 / -1;
}

/* Form Elements */
.sbp-label-service{
	width: fit-content;
	display: flex;
	align-items: center;
	padding: 0.25rem 0.45rem;
	margin-bottom: 0.5rem;
	background-color: #f0f1f7;
	color: #ccc;
	border-radius: 0.75rem;
}
.sbp-label-green{
	background-color: rgba(1, 151, 25, 0.2);
	color: #019719;
	font-size: 0.8rem;
	font-weight: bold;
}

.sbp-label-blue{
	background-color: rgba(1, 36, 151, 0.2);
	color: #265CF2;
	font-size: 0.8rem;
	font-weight: bold;
}

.sbp-label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

.sbp-input, .sbp-select, .sbp-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
    width: 100%;
}
input[type=text].sbp-input,input[type=email].sbp-input{
	padding: .75rem .85rem;
}

[type='search'].sbp-input-search{
	border-radius: 0.5rem;
	padding: .85rem .95rem;
}
.sbp-input:focus, .sbp-select:focus, .sbp-textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
}

.sbp-textarea {
    resize: vertical;
    min-height: 100px;
}

.sbp-form-group {
    margin-bottom: 15px;
}

.sbp-required {
    color: #d54e21;
}

.sbp-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* Search and Filter Containers */
.sbp-filter-container, .sbp-search-container {
    flex: 1;
    min-width: 200px;
    max-width: 100%;
}

/* Buttons */
.sbp-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

.sbp-button-primary {
    background: #0073aa;
    color: #fff;
}

.sbp-button-primary:hover {
    background: #005177;
}

.sbp-button-danger {
    background: #d63638;
    color: #fff;
}

.sbp-button-danger:hover {
    background: #a12b2d;
}

.sbp-button-success {
    background: #46b450;
    color: #fff;
}

.sbp-button-success:hover {
    background: #38903f;
}

/* Tables */
.sbp-table-container {
    overflow-x: auto;
}

.sbp-table {
    width: 100%;
    border-collapse: collapse;
}

.sbp-table-header {
    background: #f9f9f9;
    padding: 0.5rem;
    text-align: left;
    font-weight: bold;
    color: #333;
}

.sbp-table td {
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
}

.sbp-actions {
    display: flex;
    gap: 10px;
}

/* Messages */
.sbp-success {
    background: #e6ffed;
    color: #2e7d32;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sbp-error {
    background: #ffebee;
    color: #d32f2f;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sbp-booking-message {
    min-height: 24px;
    margin-bottom: 10px;
}

/* Service Catalog */
.sbp-service-grid {
    display: grid; /* Activar CSS Grid */
    grid-template-columns: repeat(3, 1fr); /* Tres columnas de igual ancho */
    gap: 20px; /* Espacio entre los elementos */
    transition: opacity 0.3s ease; /* Mantener la transición */
}

.sbp-service-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.sbp-service-clickable {
    cursor: pointer;
}

.sbp-service-card.sbp-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
	transition: transform .25s ease-in-out;
}

.sbp-service-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.sbp-padding {
    padding: 15px;
}

.sbp-service-title {
    font-size: 1.25em;
    margin: 0 0 10px;
    color: #7C1829;
}

.sbp-service-category, .sbp-service-price, .sbp-service-duration, .sbp-service-description {
    /*margin: 0 0 10px;*/
    color: #555;
}

/* Modal */
/* Bloquear el scroll de la página cuando el modal está abierto */
body.sbp-no-scroll {
    overflow: hidden;
}

.sbp-service-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
	z-index: 9999;
	overflow-y: auto;
}

.sbp-service-modal.active {
    display: flex;
}

.sbp-modal-content {
    background: #fff;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    padding: 20px;
	z-index: 999;
}

.sbp-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 1.5em;
    color: #333;
}

.sbp-modal-close:hover {
    color: #d63638;
}

/* Tabs */
.sbp-tabs {
    margin-bottom: 20px;
}

.sbp-nav {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid #ddd;
}

.sbp-tab-link {
    padding: 10px 15px;
    text-decoration: none;
    color: #555;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sbp-tab-link:hover, .sbp-tab-link.sbp-tab-active {
    color: #0073aa;
    border-bottom: 2px solid #0073aa;
}

/* Shortcode */
.sbp-shortcode {
    background: #f5f5f5;
    padding: 5px 10px;
    border-radius: 4px;
    font-family: monospace;
}

/* Margin Utilities */
.sbp-margin-top {
    margin-top: 20px;
}

.sbp-margin-bottom {
    margin-bottom: 20px;
}

.sbp-text-center {
    text-align: center;
}

.sbp-text-muted {
    color: #777;
}

/* Loading Animation */
.sbp-loading::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #0073aa;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

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

/* Responsive */
@media (max-width: 768px) {
    .sbp-grid-cols-2, .sbp-grid-cols-3 {
        grid-template-columns: 1fr;
    }
    .sbp-service-image {
        height: 120px;
    }
    .sbp-form-grid {
        grid-template-columns: 1fr;
    }
    .sbp-filter-container, .sbp-search-container {
        flex: 1 1 100%;
    }
}