/* --- DETAILS PAGE SPECIFIC CSS --- */
body { background-color: #f8fafc; }

/* Modern Gallery Styling */
.studio-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 300px 150px;
    gap: 10px;
    margin-bottom: 30px;
    border-radius: 20px;
    overflow: hidden;
}

.gallery-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    filter: brightness(0.9);
}

/* Large Main Image */
.gallery-main {
    grid-column: span 3;
    grid-row: span 2;
}

/* Small Sidebar Images */
.gallery-sub {
    grid-column: span 1;
}

/* Overlay for "View All" */
.view-all-overlay {
    position: relative;
    height: 150px;
}

.more-photos-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    pointer-events: none;
}

/* Hide images beyond the 4th preview image so they only show in lightbox */
.hidden-gallery-items { display: none; }

.details-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    border: 1px solid #f1f5f9;
}

.sticky-sidebar {
    position: sticky;
    top: 100px;
}

.amenity-pill {
    display: inline-block;
    background: #eff6ff;
    color: #4f46e5;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-right: 8px;
    margin-bottom: 8px;
}

.equip-pill {
    display: inline-block;
    background: #fdf2f8;
    color: #db2777;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-right: 8px;
    margin-bottom: 8px;
    border: 1px solid #fce7f3;
}

.price-display {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 20px;
}

.btn-book {
    background: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    width: 100%;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
    transition: all 0.3s;
}
.btn-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.4);
    color: white;
}

.form-input-modern {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    font-size: 0.95rem;
}
.form-input-modern:focus {
    background: #fff;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.input-shell {
    position: relative;
}

.input-shell .input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.95rem;
    pointer-events: none;
}

.form-input-modern.with-icon {
    padding-left: 36px;
}

.contact-info-list {
    padding-left: 0;
    list-style: none;
    margin-bottom: 0;
}
.contact-info-list li {
    margin-bottom: 15px;
    color: #64748b;
    font-size: 1rem;
    display: flex;
    align-items: center;
}
.contact-info-list li i {
    width: 35px;
    height: 35px;
    background: #f1f5f9;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
    font-size: 1.1rem;
}
.contact-info-list li a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
}
.contact-info-list li a:hover {
    text-decoration: underline;
}

.contact-box {
    background: #f8fafc;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    border: 1px dashed #cbd5e1;
    margin-bottom: 20px;
}

/* Logo Style */
.studio-logo-header {
    width: 120px;
    height: 80px;
    object-fit: contain;
    border-radius: 12px;
    padding: 6px;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-right: 20px;
    background: #fff;
}

.amenity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    transition: transform 0.2s;
}

.amenity-item:hover {
    transform: translateX(5px);
}

.amenity-icon-wrapper {
    width: 40px;
    height: 40px;
    background: #f0f0ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.amenity-icon-wrapper i {
    font-size: 1.4rem;
    color: #4f46e5;
}

.amenity-text {
    font-size: 0.95rem;
    color: #444;
    font-weight: 500;
}

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

.message-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.message-loading-overlay.show {
    display: flex;
}

.message-loading-card {
    width: min(420px, 100%);
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
}

.message-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid rgba(79, 70, 229, 0.2);
    border-top-color: #4f46e5;
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 0.9s linear infinite;
}

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

/* New utility classes for inline style removal */
.studio-details-container {
    padding-top: 100px;
    padding-bottom: 50px;
}

.studio-badge {
    background: #e0e7ff;
    color: #4338ca;
    border-radius: 8px;
}

.studio-title {
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 5px;
}

.share-btn-circle {
    width: 40px;
    height: 40px;
}

.studio-about-text {
    line-height: 1.8;
}

.studio-map {
    height: 300px;
    width: 100%;
    border-radius: 12px;
    background: #eee;
}

.booking-card-accent {
    background: #fff;
    border-top: 5px solid #4f46e5;
}

.contact-send-btn {
    border-radius: 10px;
    border-width: 2px;
}

#studioDetailsConfig {
    display: none;
}
