/**
 * SwiftPac Locations Cards - Office card layout
 * Matches SwiftPac mobile app reference design
 */

.sp-locations-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.sp-location-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem 1.5rem;
    transition: box-shadow 0.2s ease;
}

@media (min-width: 768px) {
    .sp-location-card {
        flex-direction: row;
        align-items: stretch;
    }
}

.sp-location-content {
    flex: 1;
    min-width: 0;
}

.sp-location-map {
    flex-shrink: 0;
    width: 100%;
    height: 140px;
    border-radius: 6px;
    overflow: hidden;
    background: #e8e8e8;
    position: relative;
}

.sp-location-map::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.2s ease;
    pointer-events: none;
}

.sp-location-map:hover::after {
    background: rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
    .sp-location-map {
        width: 220px;
        height: 140px;
        margin-left: 1rem;
    }
}


.sp-location-map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    cursor: pointer;
}

.sp-location-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sp-location-info {
    flex: none;
}

.sp-location-name {
    margin: 0 0 0.4rem 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #333;
}

.sp-location-company {
    margin: 0 0 0.4rem 0;
    font-size: 0.95rem;
    color: #c00;
    font-weight: 600;
}

.sp-location-address {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.sp-location-address br {
    display: block;
    content: "";
    margin-top: 0.15em;
}

.sp-location-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.sp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.65rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.sp-btn:hover {
    opacity: 0.9;
    color: #fff;
    transform: translateY(-1px);
}

.sp-btn i {
    font-size: 1rem;
}

.sp-btn-whatsapp {
    background: #25D366;
}

.sp-btn-call {
    background: #c00;
}

.sp-btn-email {
    background: #666;
}

.sp-btn-map {
    background: #4a90e2;
}

.sp-btn-map-disabled {
    background: #999;
    cursor: default;
    pointer-events: none;
}

.sp-btn-map-disabled:hover {
    opacity: 1;
    transform: none;
}

.sp-locations-cards-loader,
.sp-locations-error {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.sp-locations-error {
    color: #c00;
}
