/* Grid Layout (Default) */
.adl-container.adl-view-grid {
    display: grid;
    gap: 20px;
    /* Columns handled by inline style from widget control */
}

/* List Layout */
.adl-container.adl-view-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.adl-container.adl-view-list .adl-card {
    flex-direction: row;
    align-items: center;
    /* Center vertically in list view */
}

.adl-container.adl-view-list .adl-image {
    width: 200px;
    /* Default width, overridable by control */
    height: 150px;
    /* Default height */
}

/* Common Card Styles */
.adl-card {
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
    display: flex;
    flex-direction: column;
    /* Default stack */
}

.adl-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.adl-image {
    overflow: hidden;
    position: relative;
    background: #f4f4f4;
}

.adl-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.adl-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.adl-area {
    font-size: 0.85em;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.adl-service {
    margin: 0;
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.3;
}

.adl-service a {
    text-decoration: none;
    color: inherit;
}

.adl-service a:hover {
    color: #0073aa;
}

/* Responsive */
@media (max-width: 768px) {
    .adl-container.adl-view-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .adl-container.adl-view-grid {
        grid-template-columns: 1fr !important;
    }

    /* Removed forced list stacking to respect user controls */
}