/* ═══════════════════════════════════════════════
   Velocity Widgets - Google Business Styles
   ═══════════════════════════════════════════════ */

/* ─── Business Card ─── */
.vw-business-card {
    background: var(--vw-card-bg);
    border-radius: var(--vw-radius);
    padding: 24px;
    box-shadow: var(--vw-shadow);
    border: 1px solid var(--vw-border);
    max-width: 480px;
}

.vw-business-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.vw-business-name {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: var(--vw-text);
}

.vw-business-status {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.vw-status-operational { background: #e6f4ea; color: #137333; }
.vw-theme-dark .vw-status-operational { background: #1b3a26; color: #81c995; }

.vw-business-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.vw-business-score {
    font-size: 20px;
    font-weight: 700;
    color: var(--vw-text);
}

.vw-business-count {
    font-size: 13px;
    color: var(--vw-text-secondary);
}

.vw-business-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.vw-business-detail {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
}

.vw-detail-icon {
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.vw-business-detail a {
    color: var(--vw-primary);
    text-decoration: none;
}

.vw-business-detail a:hover { text-decoration: underline; }

/* ─── Hours ─── */
.vw-hours {
    background: var(--vw-card-bg);
    border-radius: var(--vw-radius);
    padding: 24px;
    box-shadow: var(--vw-shadow);
    border: 1px solid var(--vw-border);
    max-width: 400px;
}

.vw-hours-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.vw-hours-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--vw-text);
}

.vw-hours-status {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
}

.vw-open { background: #e6f4ea; color: #137333; }
.vw-closed { background: #fce8e6; color: #c5221f; }
.vw-theme-dark .vw-open { background: #1b3a26; color: #81c995; }
.vw-theme-dark .vw-closed { background: #3a1b1b; color: #f28b82; }

.vw-hours-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vw-hours-row {
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--vw-text);
}

.vw-hours-row.vw-today {
    background: rgba(66, 133, 244, 0.08);
    font-weight: 600;
}

.vw-today-badge {
    font-size: 10px;
    font-weight: 600;
    background: var(--vw-primary);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hours Inline (within info card) */
.vw-hours-inline {
    border-top: 1px solid var(--vw-border);
    margin-top: 12px;
    padding-top: 12px;
}

.vw-hours-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    padding: 6px 0;
    user-select: none;
}

.vw-toggle-arrow {
    margin-left: auto;
    font-size: 10px;
    transition: transform 0.3s ease;
}

.vw-hours-inline.open .vw-toggle-arrow { transform: rotate(180deg); }

.vw-hours-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.vw-hours-inline.open .vw-hours-dropdown {
    max-height: 400px;
}

.vw-hours-dropdown .vw-hours-row {
    padding: 6px 12px;
    font-size: 13px;
}

/* ─── Map ─── */
.vw-map {
    border-radius: var(--vw-radius);
    overflow: hidden;
}

.vw-map iframe {
    display: block;
}

/* ─── Place Photos ─── */
.vw-place-photos {
    max-width: 800px;
}

.vw-place-photos h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px;
    color: var(--vw-text);
}

.vw-place-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
}

.vw-place-photo {
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
}

.vw-place-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vw-place-photo:hover img { transform: scale(1.05); }

/* ─── Combined ─── */
.vw-combined {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vw-combined .vw-business-card {
    max-width: none;
}

@media (max-width: 640px) {
    .vw-business-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .vw-business-rating { flex-wrap: wrap; }
    .vw-hours-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .vw-place-photos-grid { grid-template-columns: repeat(2, 1fr); }
}
