/* Branch Cards Styling */
.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.branch-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(10, 74, 10, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(10, 74, 10, 0.1);
}

.branch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(10, 74, 10, 0.15);
}

.branch-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.branch-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.branch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 74, 10, 0.6), rgba(10, 74, 10, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.branch-card:hover .branch-overlay {
    opacity: 1;
}

.branch-status {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #10b981;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    z-index: 2;
}

.branch-status i {
    font-size: 0.5rem;
    margin-right: 5px;
    vertical-align: middle;
}

.branch-status.closed {
    background: #ef4444;
}

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

.branch-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.branch-icon {
    width: 50px;
    height: 50px;
    background: rgba(10, 74, 10, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.branch-icon i {
    color: #0a4a0a;
    font-size: 1.3rem;
}

.branch-title {
    color: #0f172a;
    font-size: 1.4rem;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.branch-info {
    margin-bottom: 25px;
    padding-left: 10px;
    flex-grow: 1;
}

.info-item {
    margin-bottom: 18px;
    position: relative;
    padding-left: 30px;
}

.info-item i {
    color: #0a4a0a;
    position: absolute;
    left: 0;
    top: 5px;
    font-size: 1.1rem;
    opacity: 0.8;
}

.info-label {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 3px;
    font-weight: 500;
}

.info-value {
    color: #334155;
    font-weight: 500;
    line-height: 1.5;
}

.branch-buttons {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    min-width: 140px;
    text-align: center;
}

.btn-primary {
    background: #0a4a0a;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(10, 74, 10, 0.1), 0 2px 4px -1px rgba(10, 74, 10, 0.06);
}

.btn-primary:hover {
    background: #0c5a0c;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(10, 74, 10, 0.1), 0 4px 6px -2px rgba(10, 74, 10, 0.1);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(37, 211, 102, 0.1), 0 2px 4px -1px rgba(37, 211, 102, 0.06);
}

.btn-whatsapp:hover {
    background: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 211, 102, 0.1), 0 4px 6px -2px rgba(37, 211, 102, 0.1);
}

.status-details {
    display: none;
    margin-left: 8px;
    font-weight: 500;
}

.branch-status:hover .status-details {
    display: inline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .branches-grid {
        grid-template-columns: 1fr;
    }
    
    .branch-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}
