/* ── Map View Toggle ─────────────────────────────────────── */
.view-toggle {
    display: inline-flex;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
}

.view-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    background: #fff;
    color: #555;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s, color 0.2s;
}

.view-toggle-btn:hover {
    background-color: #e8f0fe;
    color: #1a2233;
}

.view-toggle-btn.active {
    background-color: #1a2233;
    color: #fff;
}

/* ── Map Container ────────────────────────────────────────── */
#mapContainer {
    display: none;
    width: 100%;
    height: 540px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1.5px solid #e5e7eb;
}

/* General Body and Typography */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #333;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

h1, h2, h3, h4, h5, h6 {
    color: #1a2233;
    margin-bottom: 15px;
}

p {
    margin-bottom: 10px;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Navbar */
.navbar {
    background-color: #ffffff !important;
    box-shadow: 0 1px 0 rgba(0,0,0,0.07);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.2rem;
    color: #1a2233 !important;
    letter-spacing: -0.3px;
}

.navbar-brand .fas.fa-camera {
    margin-right: 8px;
    color: #e91e8c;
}

.navbar-nav .nav-link {
    color: #555 !important;
    padding: 0.5rem 1rem;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
    border-radius: 5px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #1a2233 !important;
    background-color: transparent;
}

.navbar-toggler {
    border-color: rgba(0,0,0,0.15);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280,0,0,0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Main Wrapper for content below fixed navbar */
.main-wrapper {
    padding-top: 70px; /* Adjust based on navbar height */
}

/* ── Page Load Keyframes ── */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes scalePop {
    0%   { opacity: 0; transform: scale(0.88) translateY(16px); }
    70%  { transform: scale(1.03) translateY(-2px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Navbar fade in ── */
.navbar {
    animation: fadeIn 0.5s ease both;
}

/* Hero Section */
.hero-section {
    background: transparent;
    padding: 0;
    text-align: center;
    color: #333;
    min-height: auto;
    display: block;
    position: relative;
    overflow: visible;
    transition: opacity 0.3s ease;
}

.hero-section.hidden {
    display: none !important;
}

/* ── New Hero Banner ── */
.hero-banner {
    background: linear-gradient(135deg, #dcd3f5 0%, #c8dff5 60%, #d4eaf7 100%);
    border-radius: 28px;
    max-width: 1160px;
    margin: 30px auto 0;
    min-height: 480px;
    animation: fadeSlideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 40px 80px;
    position: relative;
    overflow: hidden;
}

.hero-eyebrow {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b5b8e;
    letter-spacing: 0.3px;
    margin-bottom: 18px;
    opacity: 0.85;
    animation: fadeSlideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

.hero-main-title {
    font-size: 3.8rem;
    font-weight: 800;
    color: #1a2233;
    line-height: 1.15;
    margin-bottom: 30px;
    letter-spacing: -1px;
    animation: fadeSlideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

.hero-pill-btn {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 50px;
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a2233;
    cursor: default;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    animation: fadeSlideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

/* ── Overlapping Search Card ── */
.hero-search-card {
    background: #fff;
    border-radius: 60px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    max-width: 860px;
    margin: -40px auto 0;
    padding: 10px 12px 10px 24px;
    position: relative;
    z-index: 10;
    animation: scalePop 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}

.hero-search-field {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex: 1;
    padding: 6px 20px 6px 4px;
}

.hero-search-field + .hero-search-field {
    border-left: 1.5px solid #eee;
    padding-left: 20px;
}

.hero-search-label {
    font-size: 13px;
    font-weight: 700;
    color: #1a2233;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-search-label i {
    color: #9e9e9e;
    font-size: 12px;
}

.hero-search-input {
    border: none;
    outline: none;
    font-size: 13px;
    color: #888;
    background: transparent;
    width: 100%;
    padding: 0;
}

.hero-search-input::placeholder {
    color: #bbb;
}

.hero-search-select {
    border: none;
    outline: none;
    font-size: 13px;
    color: #888;
    background: transparent;
    width: 100%;
    padding: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.hero-search-btn-circle {
    background-color: #1a2233;
    border: none;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    min-width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    margin-left: 8px;
}

.hero-search-btn-circle:hover {
    background-color: #2d3f60;
    transform: scale(1.05);
}

.hero-search-btn-circle i {
    color: #fff;
    font-size: 16px;
}

/* ── Near Me button inside Location field ── */
.hero-search-input-row {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.hero-nearme-btn {
    background: none;
    border: 1.5px solid #ddd;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #888;
    font-size: 12px;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.hero-nearme-btn:hover {
    background-color: #e8f0fe;
    border-color: #1a2233;
    color: #1a2233;
}

.hero-nearme-btn.active {
    background-color: #1a2233;
    border-color: #1a2233;
    color: #fff;
}

.hero-nearme-btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── Rating field narrow sizing ── */
.hero-search-field--rating {
    flex: 0 0 auto;
    min-width: 120px;
}

/* ── Near Me button in results filter bar ── */
.filter-nearme-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    background: #fff;
    color: #555;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.filter-nearme-btn:hover {
    background-color: #e8f0fe;
    border-color: #1a2233;
    color: #1a2233;
}

.filter-nearme-btn.active {
    background-color: #1a2233;
    border-color: #1a2233;
    color: #fff;
}

.filter-nearme-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Near Me result info banner */
.near-me-info {
    background: #e8f0fe;
    border: 1.5px solid #c5d8fb;
    border-radius: 10px;
    padding: 10px 16px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #1a2233;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Popular Search pills ── */
.popular-search-section {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 50px;
    animation: fadeSlideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.7s both;
}

.popular-search-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a2233;
    margin-bottom: 16px;
}

.popular-search-title span {
    color: #e91e63;
}

.popular-pill {
    display: inline-block;
    border: 1.5px solid #ddd;
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 13px;
    color: #555;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    margin: 4px;
}

.popular-pill:hover {
    border-color: #1a2233;
    color: #1a2233;
}

/* ── Categories section ── */
.categories-section {
    max-width: 1160px;
    margin: 10px auto 60px;
    padding: 0 20px;
    animation: fadeSlideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.85s both;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    min-width: 140px;
    flex: 1;
}

.category-icon-wrap {
    width: 140px;
    height: 170px;
    border-radius: 80px 80px 14px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

.category-card:hover .category-icon-wrap {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.1);
}

.category-label {
    font-size: 15px;
    font-weight: 700;
    color: #1a2233;
    margin-top: 14px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #1a2233;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #555;
    margin-bottom: 40px;
}

/* Search Bar */
.search-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 2;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 30px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.search-bar:focus-within {
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-color: #007bff;
}

.search-icon {
    color: #888;
    margin-right: 15px;
    font-size: 1.2rem;
}

.search-input {
    flex-grow: 1;
    border: none;
    outline: none;
    font-size: 1.1rem;
    padding: 8px 0;
    color: #333;
}

.search-input::placeholder {
    color: #aaa;
}

.search-button {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.search-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Suggested Queries */
.suggested-queries {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    z-index: 1;
}

.query-button {
    background-color: #fff;
    color: #555;
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.query-button:hover {
    background-color: #e9ecef;
    border-color: #cce5ff;
    color: #007bff;
    transform: translateY(-2px);
}

.query-button .fas {
    color: #007bff;
}

/* CTA Section */
.cta-section {
    margin-top: 30px;
    z-index: 1;
}

.cta-text {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 15px;
}

.cta-button {
    background-color: #ff6b6b; /* A vibrant red/orange */
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.cta-button:hover {
    background-color: #e65a5a;
    transform: translateY(-3px);
}

/* Stats Section */
.stats-section {
    background-color: transparent;
    color: #1a2233;
    padding: 40px 20px;
    text-align: center;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.stats-section.hidden {
    display: none !important;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.stat-item {
    flex: 1;
    min-width: 150px;
    margin: 15px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #1a2233;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1.1rem;
    color: #1a2233;
}

/* Search Focused Layout */
.search-focused-layout {
    display: none; /* Hidden by default */
    flex-direction: column;
    min-height: calc(100vh - 70px); /* Full height minus navbar */
    padding-top: 20px;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.search-focused-layout.active {
    display: flex !important;
    animation: fadeIn 0.3s ease both;
}

.hero-section.hidden,
.stats-section.hidden {
    display: none !important; /* Ensure these are hidden when the search layout is active */
}

/* Hide main content when search layout is active */
.search-focused-layout.active + #mainContainer {
    display: none !important;
}

.top-search-container {
    width: 100%;
    padding: 15px 20px;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-search-bar {
    display: flex;
    align-items: center;
    background-color: #f1f3f4;
    border-radius: 24px;
    padding: 8px 16px;
    max-width: 800px;
    margin: 0 auto;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.top-search-bar:focus-within {
    background-color: #fff;
    box-shadow: 0 1px 6px rgba(32,33,36,0.28);
}

.top-search-input {
    flex-grow: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
    padding: 5px 10px;
    color: #333;
}

.search-icon {
    color: #5f6368;
    margin-left: 8px;
    font-size: 1.1rem;
}

.back-to-home {
    background: none;
    border: none;
    color: #5f6368;
    font-size: 1.2rem;
    cursor: pointer;
    margin-right: 8px;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.back-to-home:hover {
    background-color: rgba(60,64,67,0.08);
    color: #202124;
}

.back-to-home:hover {
    color: #333;
}

.search-results-container {
    flex-grow: 1;
    padding: 20px;
    background-color: #f4f7f6;
}

.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-label {
    font-weight: bold;
    color: #555;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 0.95rem;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.filter-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

.refresh-button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: #6c757d;
}

.refresh-button:hover {
    color: #007bff;
    background-color: rgba(0, 123, 255, 0.1);
}

.stats {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: #666;
}

/* Studios Grid */
.studios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

@media (min-width: 992px) {
    .studios-grid {
        grid-template-columns: repeat(3, 1fr); /* Max 3 records in a row for larger screens */
    }
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.studio-card {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative; /* For photo count badge */
    border: 1px solid rgba(0,0,0,0.03);
}

.studio-card.animate-in {
    animation: cardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.studio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.studio-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background-color: #f9f9f9;
}

.studio-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
    border: 1px solid #ddd;
}

.studio-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a2233;
    margin: 0;
}

/* Studio Photos Section */
.studio-photos {
    position: relative;
    width: 100%;
    /* padding-bottom: 60%; */
    background-color: #e0e0e0; /* Placeholder background */
    overflow: hidden;
    border-bottom: 1px solid #eee; /* Subtle separator */
}

.studio-main-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 12px 12px 0 0; /* Match card border-radius */
}

.studio-card:hover .studio-main-photo {
    transform: scale(1.05);
}

/* Animation for studio cards on load */
.studio-card.animate-in {
    animation: fadeInSlideUp 0.5s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.photo-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 1;
}

.photo-count .fas.fa-camera {
    color: #fff;
}

.studio-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.studio-address,
.studio-distance {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 12px;
    line-height: 1.4;
}

.studio-address strong,
.studio-distance strong {
    color: #1a2233;
    margin-right: 5px;
    font-weight: 600;
}

.studio-rating {
    display: flex;
    align-items: center;
    margin-bottom: auto;
    margin-top: 10px;
}

.rating-stars-container {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.rating-stars .fas.fa-star,
.rating-stars .fas.fa-star-half-alt {
    color: #ffc107; /* Gold for filled stars */
    font-size: 0.9rem;
}

.rating-stars .far.fa-star {
    color: #e0e0e0; /* Light grey for empty stars */
    font-size: 0.9rem;
}

.rating-number {
    font-weight: 600;
    color: #1a2233;
    margin-left: 5px;
    font-size: 0.9rem;
}

.reviews-info {
    font-size: 0.85rem;
    color: #888;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-open {
    background-color: #e6f7ed; /* Light green */
    color: #28a745; /* Darker green */
}

.status-closed {
    background-color: #fde8e8; /* Light red */
    color: #dc3545; /* Darker red */
}

.status-unknown {
    background-color: #f0f0f0; /* Light grey */
    color: #6c757d; /* Darker grey */
}

.status-contribute-hours {
    background-color: #007bff; /* A nice blue color */
    color: #fff; /* White text for contrast */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.status-contribute-hours:hover {
    background-color: #0056b3; /* Darker blue on hover */
    transform: translateY(-2px);
}

.status-badge .fas {
    margin-right: 5px;
}

.map-link {
    padding: 15px 24px;
    border-top: 1px solid rgba(0,0,0,0.05);
    background-color: #fff;
    display: flex;
    justify-content: center;
}

.maps-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #1a2233;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    width: 100%;
    transition: background-color 0.3s ease;
}

.maps-link:hover {
    color: #fff;
    background-color: #333;
    text-decoration: none;
}

/* No results message */
.no-results {
    text-align: center;
    font-size: 1.2rem;
    color: #777;
    padding: 50px;
    grid-column: 1 / -1; /* Span across all columns */
}

.loading {
    text-align: center;
    font-size: 1.2rem;
    color: #777;
    padding: 50px;
    grid-column: 1 / -1; /* Span across all columns */
}

.near-me-info {
    grid-column: 1 / -1; /* Span across all columns */
    background-color: #e0f7fa;
    color: #007bff;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.near-me-info .fas {
    color: #007bff;
}

/* Footer */
.footer {
    background-color: #1a2233;
    color: #f8f9fa;
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9rem;
    border-top: 5px solid #007bff; /* Accent border */
}

.footer p {
    margin: 0 0 8px;
}

.footer a {
    color: #ffc107;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.browser-compatibility {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 15px;
}

/* Photo zoom button overlay */
.photo-zoom-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: rgba(0,0,0,0.55);
    border: none;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s;
}

.studio-card:hover .photo-zoom-btn {
    opacity: 1;
}

.photo-zoom-btn:hover {
    background: #e91e8c;
}

/* Studio Photo Lightbox */
#studio-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(8,10,16,0.94);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

#studio-lightbox.open {
    display: flex;
}

.slb-inner {
    position: relative;
    max-width: 920px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#slb-img {
    max-height: 82vh;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 8px 48px rgba(0,0,0,0.65);
    object-fit: contain;
    background: #111;
    display: block;
}

.slb-caption {
    color: rgba(255,255,255,0.78);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.75rem;
    text-align: center;
}

.slb-counter {
    color: rgba(255,255,255,0.42);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.slb-close {
    position: absolute;
    top: -46px;
    right: 0;
    background: rgba(255,255,255,0.13);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s;
}

.slb-close:hover { background: #e91e8c; }

.slb-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.13);
    border: none;
    color: #fff;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s, opacity 0.2s;
}

.slb-btn:hover { background: #e91e8c; }
.slb-prev { left: -62px; }
.slb-next { right: -62px; }

/* ── Mobile: tablets and large phones (≤ 768px) ───────────── */
@media (max-width: 768px) {
    /* Hero banner */
    .hero-banner {
        margin: 16px 12px 0;
        min-height: 320px;
        padding: 40px 20px 64px;
        border-radius: 20px;
    }
    .hero-main-title {
        font-size: 2.4rem;
        letter-spacing: -0.5px;
        margin-bottom: 20px;
    }
    .hero-search-card {
        margin: -34px 12px 0;
    }

    /* Popular search section */
    .popular-search-section {
        margin-top: 20px;
        margin-bottom: 32px;
        padding: 0 12px;
    }

    /* Categories */
    .categories-section {
        padding: 0 12px;
        margin-bottom: 36px;
    }
    .category-icon-wrap {
        width: 100px;
        height: 124px;
    }
    .category-card {
        min-width: 100px;
    }
    .category-label {
        font-size: 13px;
        margin-top: 10px;
    }

    /* Filters bar */
    .filters-container {
        gap: 10px 14px;
    }
    .filter-select {
        font-size: 0.85rem;
        padding: 7px 10px;
    }
    .filter-nearme-btn {
        padding: 7px 12px;
        font-size: 0.85rem;
    }
    .view-toggle-btn {
        padding: 7px 12px;
        font-size: 0.85rem;
    }

    /* Map */
    #mapContainer {
        height: 420px;
    }

    /* Search results padding */
    .search-results-container {
        padding: 12px;
    }
}

/* ── Mobile: small phones (≤ 480px) ──────────────────────── */
@media (max-width: 480px) {
    .hero-main-title {
        font-size: 2rem;
    }
    .hero-banner {
        min-height: 280px;
        padding: 36px 16px 58px;
    }
    /* Filter labels hidden to save space — selects stay visible */
    .filter-label {
        display: none;
    }
    .filter-group {
        gap: 0;
    }
    #mapContainer {
        height: 360px;
    }
}

/* ── Mobile: 640px (hero search card stacking) ────────────── */
@media (max-width: 640px) {
    .slb-prev { left: 4px; top: auto; bottom: -56px; transform: none; }
    .slb-next { right: 4px; top: auto; bottom: -56px; transform: none; }
    .slb-close { top: -44px; }
    .photo-zoom-btn { opacity: 1; }

    /* Collapse hero search card to a stacked layout on mobile */
    .hero-search-card {
        flex-wrap: wrap;
        border-radius: 20px;
        padding: 14px 16px;
        gap: 8px;
    }
    .hero-search-field {
        flex: 1 1 100%;
        padding: 6px 0;
        border-left: none !important;
        border-top: 1.5px solid #eee;
    }
    .hero-search-field:first-child {
        border-top: none;
    }
    .hero-search-field--rating {
        min-width: unset;
    }
    .hero-search-btn-circle {
        margin-left: auto;
        margin-top: 4px;
    }
}

/* Carousel Styles */
.carousel-item {
    height: 300px; /* Match .studio-photos padding-bottom for consistent height */
}

.carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 30px;
    height: 30px;
}

/* Disclaimer Modal */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; /* 5% from the top and centered */
    padding: 30px;
    border: 1px solid #888;
    border-radius: 10px;
    width: 90%; /* Could be more responsive */
    max-width: 800px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation-name: animatetop;
    animation-duration: 0.4s;
    position: relative;
}

/* Add Animation */
@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.modal-title {
    margin: 0;
    font-size: 1.8rem;
    color: #1a2233;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-title .fas {
    color: #007bff;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #333;
    text-decoration: none;
}

.modal-body {
    font-size: 1rem;
    color: #444;
}

.modal-section {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.modal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.modal-section h3 {
    font-size: 1.3rem;
    color: #007bff;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-section h3 .fas {
    color: #1a2233;
}

.modal-section ul {
    list-style-type: disc;
    margin-left: 20px;
    padding: 0;
}

.modal-section ul li {
    margin-bottom: 5px;
}

.modal-section strong {
    color: #1a2233;
}
