/* =========================================
   Office Grid Component
   ========================================= */

.dh-office-grid {
    padding: 40px 0px 60px 0px;
    background-color: #fff;
    /* Main background */
}

.dh-office-grid__header {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.dh-office-grid__overline {
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: 12px;
    line-height: normal;
    letter-spacing: 1.44px;
    text-transform: uppercase;
    color: #DF002F;
    margin-bottom: 16px;
    display: inline-block;
}

.dh-office-grid__title {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 1.16;
    color: #111B29;
    margin-bottom: 16px;
}

.dh-office-grid__description {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.32;
    color: #111B29;
}

/* Grid */
.dh-office-grid__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.dh-office-grid__card {
    display: flex;
    /* width: 280px;  Removed fixed width to allow grid responsiveness, using grid column width instead */
    padding: 10px 10px 15px 10px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    flex-shrink: 0;
    background-color: #FFF8F8;
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
}

.dh-office-grid__image-wrapper {
    width: 100%;
    /* Keep aspect ratio from design if possible, otherwise flexible */
    aspect-ratio: 16 / 9;
    /* background-color: #eee; Removed default bg to prevent flash */
    overflow: hidden;
    border-radius: 9px;
    /* Applied radius to wrapper for the image */
    margin-bottom: 14px;
    /* Default spacing from existing content */
}

.dh-office-grid__image-wrapper img,
.dh-office-grid__image-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 9px;
    /* Ensure image also has radius */
}

.dh-office-grid__content {
    padding: 0;
    /* Content padding is now handled by the card parent */
    width: 100%;
    /* Ensure content takes full width */
}

.dh-office-grid__city {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.2;
    color: #DF002F;
    margin-bottom: 24px;
    text-align: center;
}

.dh-office-grid__details {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.dh-office-grid__detail-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    line-height: normal;
    /* User requested line-height: normal */
    letter-spacing: 0.28px;
    /* User requested letter-spacing */
    font-weight: 400;
    font-style: normal;
    color: var(--primary-black-100, #111B29);
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--primary-red-20, #F9CCD5);
}

.dh-office-grid__detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.dh-office-grid__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 0px;
    /* Optical alignment */
}

.dh-office-grid__icon img {
    width: 100%;
    height: 100%;
}

.dh-office-grid__text strong {
    font-weight: 700;
    color: var(--primary-black-100, #111B29);
}

.dh-office-grid__text a {
    color: var(--primary-black-100, #111B29);
    text-decoration: none;
    transition: color 0.3s ease;
}

.dh-office-grid__text a:hover {
    color: #DF002F;
}

@media (min-width: 768px) {
    .dh-office-grid__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .dh-office-grid__grid {
        grid-template-columns: repeat(4, 280px);
        justify-content: center;
    }

    .dh-office-grid__card {
        /* max-width and margin are now handled by grid columns, but keeping for safety ensures fit */
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
}