/* SpotOwl Listing Plugin Styles */

/* Map Container Styles */
.map-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
}

#map {
    width: 100% !important;
    height: 100% !important;
    border-radius: 8px;
    min-height: 400px;
    background: #f8f9fa;
}

/* Ensure map container is visible */
#map:empty::before {
    content: 'Loading map...';
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
    font-style: italic;
}

/* Leaflet Map Customization */
.leaflet-container {
    font-family: inherit;
    z-index: 1;
}

.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.leaflet-popup-content {
    margin: 12px 16px;
    font-size: 14px;
    line-height: 1.4;
}

.leaflet-popup-tip {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Map Actions */
.map-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

#map_fullscreen_btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 2px solid #ff5a5f;
    background: transparent;
    color: #ff5a5f;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

#map_fullscreen_btn:hover {
    background: #ff5a5f;
    color: white;
}

/* Form Styles */
.step-container {
    display: none;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.step-container.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    /* width: 100%; */
    /* padding: 12px; */
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff5a5f;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    background: #e1e5e9;
    border-radius: 10px;
    height: 8px;
    margin-bottom: 30px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff5a5f, #ff8a8f);
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* Dashboard Styles */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-card h3 {
    margin: 0 0 10px 0;
    color: #ff5a5f;
    font-size: 24px;
}

.stat-card p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Listing Table */
.listing-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.listing-table th,
.listing-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e1e5e9;
}

.listing-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.listing-table tr:hover {
    background: #f8f9fa;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: #ff5a5f;
    color: white;
}

.btn-primary:hover {
    background: #e04a4f;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        height: 300px;
    }
    
    #map {
        min-height: 300px;
    }
    
    .step-container {
        padding: 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #ff5a5f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Debug Styles */
#debug-map {
    border: 2px solid #ccc !important;
    background: #f8f9fa;
}

#debug-logs {
    background: #f1f1f1;
    padding: 15px;
    border-radius: 5px;
    font-family: monospace;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
}

#debug-logs p {
    margin: 5px 0;
    padding: 2px 0;
}

/* SpotOwl Template Styles */
.spotowl-details-section {
    margin-bottom: 30px;
}

.studio-overview {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.studio-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.studio-info-item i {
    font-size: 24px;
    color: #ff5a5f;
    min-width: 30px;
}

.info-content {
    flex: 1;
}

.info-content .label {
    display: block;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.info-content strong {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

/* Facilities & Features */
.facilities-section,
.accessibility-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
    margin-bottom: 20px;
}

.facilities-section h4,
.accessibility-section h4 {
    color: #333;
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.facilities-section h4 i,
.accessibility-section h4 i {
    color: #ff5a5f;
}

.facilities-list,
.accessibility-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.facility-tag,
.accessibility-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* Parking Information */
.parking-section,
.truck-parking-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
    margin-bottom: 20px;
}

.parking-section h4,
.truck-parking-section h4 {
    color: #333;
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.parking-section h4 i,
.truck-parking-section h4 i {
    color: #ff5a5f;
}

.parking-details p,
.truck-parking-details p {
    margin: 8px 0;
    color: #666;
}

.parking-details strong,
.truck-parking-details strong {
    color: #333;
}

/* Productions */
.productions-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.productions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.production-tag {
    background: #f3e5f5;
    color: #7b1fa2;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* Rules & Guidelines */
.rules-section,
.custom-rules-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
    margin-bottom: 20px;
}

.rules-section h4,
.custom-rules-section h4 {
    color: #333;
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rules-section h4 i,
.custom-rules-section h4 i {
    color: #ff5a5f;
}

.rules-content ul {
    margin: 0;
    padding-left: 20px;
}

.rules-content li {
    margin-bottom: 8px;
    color: #666;
}

.custom-rules-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Host Information */
.host-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.host-photo img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 3px solid #ff5a5f;
}

.host-info h4 {
    color: #333;
    font-size: 20px;
    margin-bottom: 10px;
}

.host-info p {
    color: #666;
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.host-info i {
    color: #ff5a5f;
}

/* Gallery Styles */
#spotowl-gallery-section .featured-image-wrap {
    display: flex;
    flex-direction: row;
    flex-wrap:wrap
    /* grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); */
    /* gap: 15px; */
}

#spotowl-gallery-section .featured-image-wrap a {
    display: block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

#spotowl-gallery-section .featured-image-wrap a:hover {
    transform: translateY(-2px);
}

#spotowl-gallery-section .featured-image-wrap img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    padding: 5px;
    border-radius: 10px;
}

#spotowl-gallery-section .more-images {
    position: relative;
}

#spotowl-gallery-section .more-images span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

/* Responsive adjustments for SpotOwl templates */
@media (max-width: 768px) {
    .studio-info-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .facilities-list,
    .accessibility-list,
    .productions-list {
        justify-content: center;
    }
    
    .studio-overview {
        padding: 15px;
    }
    
    .facilities-section,
    .accessibility-section,
    .parking-section,
    .truck-parking-section,
    .rules-section,
    .custom-rules-section,
    .host-section {
        padding: 15px;
    }
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

/* Image Upload Styles */
.image-preview-container {
    margin-top: 15px;
    display: grid;
   grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.image-preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.image-preview-item:hover {
    transform: scale(1.05);
}

.image-preview-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.image-preview-item button {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.image-preview-item button:hover {
    background: #c82333;
}

/* File Input Styling */
input[type="file"] {
    border: 2px dashed #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
    transition: border-color 0.3s ease;
    cursor: pointer;
}

input[type="file"]:hover {
    border-color: #ff5a5f;
    background: #fff5f5;
}

input[type="file"]:focus {
    outline: none;
    border-color: #ff5a5f;
    box-shadow: 0 0 0 3px rgba(255, 90, 95, 0.1);
}

/* Upload Progress */
.upload-progress {
    margin-top: 10px;
    background: #e1e5e9;
    border-radius: 4px;
    overflow: hidden;
}

.upload-progress-bar {
    height: 4px;
    background: linear-gradient(90deg, #ff5a5f, #ff8a8f);
    transition: width 0.3s ease;
}

/* Image Upload Container */
.image-upload-container {
    background: white;
    border: 2px dashed #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.image-upload-container:hover {
    border-color: #ff5a5f;
    background: #fff5f5;
}

.image-upload-container.dragover {
    border-color: #ff5a5f;
    background: #fff5f5;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 15px;
}

.upload-text {
    color: #666;
    margin-bottom: 15px;
}

.upload-hint {
    font-size: 12px;
    color: #999;
}

/* Drag and Drop Styles */
.drag-drop-zone {
    border: 2px dashed #e1e5e9;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.drag-drop-zone.dragover {
    border-color: #ff5a5f;
    background: #fff5f5;
    transform: scale(1.02);
}

.drag-drop-zone .upload-icon {
    font-size: 64px;
    color: #ccc;
    margin-bottom: 20px;
}

.drag-drop-zone .upload-text {
    font-size: 18px;
    color: #666;
    margin-bottom: 10px;
}

.drag-drop-zone .upload-hint {
    font-size: 14px;
    color: #999;
}

/* Image Grid Layout */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.image-grid-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.image-grid-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.image-grid-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.image-grid-item .image-actions {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-grid-item:hover .image-actions {
    opacity: 1;
}

.image-actions button {
    background: white;
    color: #333;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s ease;
}

.image-actions button:hover {
    background: #f8f9fa;
}

.image-actions button.delete {
    background: #dc3545;
    color: white;
}

.image-actions button.delete:hover {
    background: #c82333;
}

/* Responsive adjustments for image upload */
@media (max-width: 768px) {
    .image-preview-container {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .image-preview-item img {
        height: 100px;
    }
    
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .image-grid-item img {
        height: 120px;
    }
    
    .drag-drop-zone {
        padding: 30px 15px;
    }
    
    .drag-drop-zone .upload-icon {
        font-size: 48px;
    }
    
    .drag-drop-zone .upload-text {
        font-size: 16px;
    }
}