/* Scoped Styles for Barbería Hernández Branches Plugin */
.bh-branches-plugin {
    --bh-bg-color: #0a0a0a;
    --bh-surface-color: #141414;
    --bh-surface-hover: #1f1f1f;
    --bh-primary-color: #D4AF37;
    /* Gold */
    --bh-primary-hover: #F4CF57;
    --bh-text-color: #ffffff;
    --bh-text-muted: #a1a1a1;
    --bh-border-color: rgba(255, 255, 255, 0.1);
    --bh-radius-lg: 24px;
    --bh-radius-md: 16px;
    --bh-shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --bh-font-heading: 'Outfit', sans-serif;
    --bh-font-body: 'Inter', sans-serif;
    --bh-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    font-family: var(--bh-font-body);
    color: var(--bh-text-color);
}

/* Import Fonts if not present - Note: In a real plugin, enqueue these in PHP */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;700;800&display=swap');

.bh-branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
    width: 100%;
}

.bh-branch-card {
    background: var(--bh-surface-color);
    border: 1px solid var(--bh-border-color);
    border-radius: var(--bh-radius-lg);
    overflow: hidden;
    transition: var(--bh-transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    box-sizing: border-box;
}

.bh-branch-card * {
    box-sizing: border-box;
}

.bh-branch-card:hover {
    transform: translateY(-8px);
    border-color: var(--bh-primary-color);
    box-shadow: var(--bh-shadow-soft);
}

.bh-branch-image-wrapper {
    position: relative;
    padding-top: 60%;
    /* Aspect ratio */
    overflow: hidden;
    background-color: #222;
}

.bh-branch-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bh-branch-card:hover .bh-branch-image {
    transform: scale(1.05);
}

.bh-status-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
}

.bh-branch-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.bh-branch-name {
    font-family: var(--bh-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--bh-text-color);
    line-height: 1.2;
}

.bh-branch-address {
    color: var(--bh-text-muted);
    font-size: 0.95rem;
    margin: 0 0 16px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.bh-branch-phone {
    color: var(--bh-text-color);
    font-weight: 500;
    margin: 0 0 24px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bh-branch-actions {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.bh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--bh-radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--bh-transition);
    border: none;
    text-decoration: none;
    line-height: 1;
}

.bh-btn-primary {
    background: var(--bh-primary-color);
    color: #000;
}

.bh-btn-primary:hover {
    background: var(--bh-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    color: #000;
}

.bh-btn-outline {
    background: transparent;
    border: 1px solid var(--bh-border-color);
    color: var(--bh-text-color);
}

.bh-btn-outline:hover {
    border-color: var(--bh-primary-color);
    color: var(--bh-primary-color);
}

.bh-btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Icon styles */
.bh-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .bh-branches-grid {
        grid-template-columns: 1fr;
    }
}