/* Общие стили для объектов */
.sb-object-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.sb-main-image {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.sb-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.sb-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 30px 0;
}

.sb-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.sb-detail-icon {
    font-size: 24px;
}

.sb-detail-label {
    color: #6c757d;
}

.sb-detail-value {
    font-weight: 600;
    color: #333;
}

.sb-amenities {
    margin: 30px 0;
}

.sb-amenities h3 {
    margin-bottom: 15px;
}

.sb-amenities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.sb-amenity-item {
    background: #e9ecef;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 14px;
    color: #495057;
}

.sb-gallery-section {
    margin: 40px 0;
}

.sb-gallery-section h3 {
    margin-bottom: 20px;
}

.sb-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.sb-gallery-item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s;
    cursor: pointer;
}

.sb-gallery-item:hover {
    border-color: #4CAF50;
    transform: scale(1.02);
}

.sb-gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.sb-booking-section {
    margin: 50px 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    padding: 30px;
}

.sb-booking-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

/* Календарь */
.ui-datepicker {
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 1000 !important;
}

.ui-datepicker .ui-datepicker-header {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 10px;
    margin: -15px -15px 10px -15px;
    border-radius: 10px 10px 0 0;
}

.ui-datepicker .ui-datepicker-title {
    font-weight: 600;
    color: #495057;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    cursor: pointer;
    padding: 5px;
}

.ui-datepicker .ui-state-default {
    border: none;
    background: white;
    text-align: center;
    padding: 8px;
}

.ui-datepicker .booked .ui-state-default {
    background: #ffebee;
    color: #c62828;
    border-radius: 4px;
    text-decoration: line-through;
}

.ui-datepicker .free .ui-state-default {
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 4px;
}

.ui-datepicker .ui-state-highlight {
    background: #fff3cd !important;
    color: #856404 !important;
}

.ui-datepicker .ui-state-active {
    background: #4CAF50 !important;
    color: white !important;
}

/* Lightbox кастомизация */
.lb-loader, .lightbox {
    z-index: 10000 !important;
}

.lb-data .lb-caption {
    font-size: 16px;
    font-weight: 600;
}

.lb-data .lb-number {
    font-size: 14px;
    color: #ccc;
}

/* Календарь в шорткоде */
.sb-calendar-shortcode {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.sb-calendar-legend {
    margin-top: 20px;
    display: flex;
    gap: 30px;
    justify-content: center;
}

.legend-free:before,
.legend-booked:before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border-radius: 4px;
    vertical-align: middle;
}

.legend-free:before {
    background: #e8f5e9;
    border: 1px solid #2e7d32;
}

.legend-booked:before {
    background: #ffebee;
    border: 1px solid #c62828;
}

/* Адаптивность */
@media (max-width: 768px) {
    .sb-object-container {
        padding: 10px;
    }
    
    .sb-details-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .sb-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .sb-gallery-item img {
        height: 120px;
    }
    
    .sb-booking-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .sb-gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .sb-amenities-list {
        gap: 10px;
    }
    
    .sb-amenity-item {
        width: 100%;
        text-align: center;
    }
}