h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.02em;
    width: calc(100% - 40px);
    max-width: 1100px;
    margin: 3rem 0px;
}

.offices-list {
    width: calc(100% - 40px);
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 180px;
}

.office-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--primary-light-color);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .08);
}

.office-slider {
    position: relative;
    height: 420px;
    overflow: hidden;
    cursor: grab;
}

.office-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.office-content {
    width: calc(100% - 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    gap: 1rem;
    cursor: pointer;
}

.slider-dots {
    position: absolute;
    bottom: 18px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    cursor: pointer;
}

.dot.active {
    background: white;
}

.office-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    height: 100%;
}

.office-info h2 {
    margin: 0;
    font-size: 28px;
}

.office-properties {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}


.office-properties span {
    color: var(--accent-color);
    font-size: 13px;
}

.office-properties span:not(:last-child)::after {
    content: "•";
    margin-left: 8px;
    color: #999;
}

.office-info p {
    color: #888888;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    overflow: hidden;
    font-size: .9rem;
}

.office-capacity {
    color: var(--accent-color);
    font-weight: 500;
    margin-left: auto;
    letter-spacing: .05em;
    margin-top: auto;
}

.office-pricing {
    display: flex;
    flex-direction: row;
    width: 100%;
    margin-top: auto;
    justify-content: flex-start;
    gap: 1rem;
}

.office-pricing small {
    display: block;
    color: #888;
    font-size: 12px;
}

.office-pricing strong {
    display: block;
    margin-top: 4px;
    font-size: 16px;
}

.quote-btn {
    border: none;
    border-radius: 15px;
    width: calc(100% - 30px);
    background-color: var(--accent-color);
    color: white;
    font-size: 16px;
    font-weight: 600;
    padding: 15px;
    cursor: pointer;
    text-align: center;
}

.quote-btn:hover {
    background-color: #837358;
}

@media (max-width:1200px) {
    .offices-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .office-card {
        display: flex;
        flex-direction: column;
    }
    .office-content {
        height: calc(100% - 380px);
    }

    .office-slider {
        height: 340px;
    }
    .office-info p {
        -webkit-line-clamp: 4;
    }

    .office-pricing {
        border-left: none;
        border-top: 1px solid #454545;
        padding-top: 10px;
    }
}


@media (max-width:768px) {
    .offices-list {
        display: flex;
    }
    
    .office-slider {
        height: 240px;
    }

    .office-info p {
        -webkit-line-clamp: 3;
    }
}


/* ~~~~~~~ */

.office-slider {
    position: relative;
    overflow: hidden;
    user-select: none;
    touch-action: pan-y;
}

.slider-track {
    display: flex;
    height: 100%;
    will-change: transform;
    transition: transform .35s cubic-bezier(.22,.61,.36,1);
    cursor: grab;
}

.slider-track img {
    width: 100%;
    flex: 0 0 100%;
    object-fit: cover;
    pointer-events: none;
}

.slider-track {
    transition:
        transform 350ms cubic-bezier(.22,.61,.36,1);
}

.left {
    left: 0;
}

.right {
    right: 0;
}

.slider-arrow {
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
    width: 50px;
    height: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chevron {
    width: 22px;
    height: 22px;
    overflow: visible;
    filter: drop-shadow(0 0 8px black);
}

.chevron path {
    fill: none;
    stroke: white;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: d .25s ease, stroke .25s ease;
}

@media (min-width:768px) {
    /* Only use hover annimations on desktop */

    /* sharper 45 degree chevron */
    .slider-arrow.left:hover .chevron path {
        d: path("M22 4 L6 18 L22 32");
    }
    
    .slider-arrow.right:hover .chevron path {
        d: path("M2 4 L18 18 L2 32");
    }
}

.dot {
    transition: width .25s, background .25s;
}

.dot.active {
    width: 22px;
    border-radius: 999px;
}