/* ===================================
   Business Detail View Styles
   Full-screen detail overlay for Vetrina
   =================================== */

/* ===== Overlay Container ===== */
#business-detail-view {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--bg-dark-primary, #11201C);
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.3s;
    -webkit-overflow-scrolling: touch;
}

#business-detail-view.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

body.detail-open {
    overflow: hidden;
}

/* ===== Content Container ===== */
#business-detail-content {
    min-height: 100vh;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 32px);
}

/* ===== Hero / Gallery Section ===== */
.bd-hero {
    position: relative;
    width: 100%;
}

.bd-gallery {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--bg-dark-secondary, #1a2e28);
    position: relative;
}

.bd-gallery::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(0,0,0,0.4) 0%,
        transparent 30%,
        transparent 70%,
        rgba(17, 32, 28, 0.8) 100%);
    pointer-events: none;
}

/* ===== Close Button ===== */
.bd-close {
    position: absolute;
    top: calc(env(safe-area-inset-top, 0px) + 16px);
    left: 16px;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.bd-close:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.05);
}

.bd-close .material-symbols-outlined {
    font-size: 24px;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'opsz' 24;
}

/* ===== Featured Badge ===== */
.bd-featured-badge {
    position: absolute;
    top: calc(env(safe-area-inset-top, 0px) + 16px);
    right: 16px;
    z-index: 10;
    padding: 6px 12px;
    background: var(--brand-gold, #E8AB30);
    border-radius: 20px;
    font-family: var(--font-ui, 'Plus Jakarta Sans', sans-serif);
    font-size: 11px;
    font-weight: 600;
    color: #11201C;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== Gallery Navigation ===== */
.bd-gallery-prev,
.bd-gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.bd-gallery-prev {
    left: 12px;
}

.bd-gallery-next {
    right: 12px;
}

.bd-gallery-prev:hover,
.bd-gallery-next:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-50%) scale(1.05);
}

.bd-gallery-prev .material-symbols-outlined,
.bd-gallery-next .material-symbols-outlined {
    font-size: 28px;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'opsz' 28;
}

/* ===== Gallery Dots ===== */
.bd-gallery-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 12px 0;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
}

.bd-gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.bd-gallery-dot.active {
    background: var(--brand-green, #11D473);
    transform: scale(1.2);
}

.bd-gallery-dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.7);
}

/* ===== Content Section ===== */
.bd-content {
    padding: 24px 20px;
}

/* ===== Header ===== */
.bd-header {
    margin-bottom: 24px;
}

.bd-category {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(17, 212, 115, 0.12);
    border-radius: 4px;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 600;
    color: var(--brand-green, #11D473);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.bd-name {
    font-family: var(--font-ui);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark-primary, rgba(255, 255, 255, 0.95));
    line-height: 1.2;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.bd-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 12px;
}

.bd-location,
.bd-price,
.bd-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-ui);
    font-size: 14px;
    color: var(--text-dark-muted, rgba(255, 255, 255, 0.6));
}

.bd-location .material-symbols-outlined,
.bd-rating .material-symbols-outlined {
    font-size: 18px;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'opsz' 18;
}

.bd-location .material-symbols-outlined {
    color: var(--brand-green, #11D473);
}

.bd-rating .material-symbols-outlined {
    color: var(--brand-gold, #E8AB30);
}

.bd-price {
    color: var(--brand-green, #11D473);
    font-weight: 600;
}

.bd-tagline {
    font-family: var(--font-ui);
    font-size: 16px;
    font-weight: 400;
    color: var(--text-dark-secondary, rgba(255, 255, 255, 0.75));
    line-height: 1.5;
    margin: 0;
}

/* ===== CTA Buttons ===== */
.bd-ctas {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.bd-cta-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-dark-primary, rgba(255, 255, 255, 0.95));
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.bd-cta-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.bd-cta-btn .material-symbols-outlined {
    font-size: 24px;
    font-variation-settings: 'FILL' 0, 'wght' 300, 'opsz' 24;
}

.bd-cta-phone .material-symbols-outlined {
    color: var(--brand-green, #11D473);
}

.bd-cta-web .material-symbols-outlined {
    color: var(--brand-blue, #3B82F6);
}

.bd-cta-email .material-symbols-outlined {
    color: var(--brand-gold, #E8AB30);
}

.bd-cta-map .material-symbols-outlined {
    color: #F97316;
}

/* ===== Sections ===== */
.bd-section {
    margin-bottom: 28px;
}

.bd-section-title {
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark-muted, rgba(255, 255, 255, 0.5));
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 12px;
}

.bd-description p {
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 400;
    color: var(--text-dark-secondary, rgba(255, 255, 255, 0.75));
    line-height: 1.7;
    margin: 0;
}

.bd-address p,
.bd-hours-text {
    font-family: var(--font-ui);
    font-size: 15px;
    color: var(--text-dark-secondary, rgba(255, 255, 255, 0.75));
    line-height: 1.5;
    margin: 0;
}

/* ===== Tags / Amenities ===== */
.bd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bd-tag {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark-secondary, rgba(255, 255, 255, 0.75));
}

/* ===== Events Section ===== */
.bd-events-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bd-event-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: background 0.2s;
}

.bd-event-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

.bd-event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(17, 212, 115, 0.12);
    border-radius: 10px;
    flex-shrink: 0;
}

.bd-event-day {
    font-family: var(--font-ui);
    font-size: 22px;
    font-weight: 700;
    color: var(--brand-green, #11D473);
    line-height: 1;
}

.bd-event-month {
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 600;
    color: var(--brand-green, #11D473);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bd-event-info {
    flex: 1;
    min-width: 0;
}

.bd-event-title {
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark-primary, rgba(255, 255, 255, 0.95));
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bd-event-location {
    font-family: var(--font-ui);
    font-size: 13px;
    color: var(--text-dark-muted, rgba(255, 255, 255, 0.5));
    margin: 0;
}

/* ===== Social Links ===== */
.bd-social-links {
    display: flex;
    gap: 16px;
}

.bd-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: var(--text-dark-secondary, rgba(255, 255, 255, 0.75));
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.bd-social-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-dark-primary, rgba(255, 255, 255, 0.95));
    transform: scale(1.08);
}

.bd-social-link svg {
    width: 22px;
    height: 22px;
}

/* ===== Responsive Adjustments ===== */
@media (min-width: 480px) {
    .bd-ctas {
        grid-template-columns: repeat(4, 1fr);
    }

    .bd-name {
        font-size: 32px;
    }
}

@media (min-width: 768px) {
    #business-detail-view {
        background: rgba(0, 0, 0, 0.7);
    }

    #business-detail-content {
        max-width: 600px;
        margin: 40px auto;
        background: var(--bg-dark-primary, #11201C);
        border-radius: 20px;
        overflow: hidden;
        min-height: auto;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    }

    .bd-gallery {
        aspect-ratio: 16 / 9;
    }

    .bd-content {
        padding: 32px;
    }
}
