#regus-grid.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.334em;
    margin: 2em 0;
}
.card {
    cursor: pointer;
    display: flex;
    flex-direction: column;

    box-shadow: 0 0 4px rgba(0, 0, 0, 0.15), 0 0 8px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}
.card--inner {
    padding: 0.667em;
}
.card--inner-provider {
    font-size: 11px;
    font-weight: 500;
    color: #e52500;
    text-transform: uppercase;
}

.card--status {
    background-color: #e52500;
    color: #fff;
    padding: 0.667em 1em;
    line-height: 1;
    border-radius: 48px;
    font-size: 12px;
    text-transform: uppercase;
    width: fit-content;
}

.card-price {
    color: gray;
}
.card img.regus-image {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1em;
    cursor: pointer;

    display: block;
    background-color: blanchedalmond;
}
.card h3 {
    margin: 0.5em 0 0 0;
    font-size: 1.1em;
}
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
}
.modal.hidden {
    display: none;
}
.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
}
.card--modal-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    padding: 0.667em;
    max-width: 860px;
    width: 98vw;
    max-height: 90vh;
    height: 80%;
    overflow-y: auto;
    z-index: 2;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    z-index: 3;
}
.modal-carousel {
    grid-column: 1 / -1;
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
    margin-bottom: 1rem;
    min-height: 60px;
    align-items: center;
}
.modal-carousel img {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.2s;
    display: block;
}
.modal-carousel img.active {
    border: 2px solid #0073aa;
}
.modal-main-image {
    grid-column: 1 / -1;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.modal-description {
    margin-bottom: 1rem;
}
.modal-fields {
    margin-bottom: 1rem;
}
.modal-features-list {
    margin-bottom: 1rem;
    padding-left: 1.2em;
}
.modal-floorplan {
    margin-bottom: 1rem;
    grid-column: 1 / -1;
    text-align: center;
}
.modal-contact-form {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.modal-contact-form input,
.modal-contact-form textarea {
    width: 100%;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #ccc;
}
.modal-contact-form button {
    background: #e52500;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 0.75rem;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 0.5rem;
}
body.modal-open {
    overflow: hidden !important;
}
@media (max-width: 900px) {
    .card--modal-content {
        grid-template-columns: 1fr;
        max-width: 98vw;
        padding: 1rem;
    }
}
@media (max-width: 600px) {
    .card--modal-content {
        padding: 0.5rem;
    }
    #regus-grid.grid {
        grid-template-columns: 1fr;
    }
    .modal-main-image {
        max-height: 180px;
    }
    .modal-carousel img {
        width: 90px;
        height: 60px;
    }
}
.modal-swiper .swiper-slide img {
    width: 90px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.2s;
    display: block;
}
@media (max-width: 600px) {
    .modal-swiper .swiper-slide img {
        width: 60px;
        height: 40px;
    }
}
.modal-swiper {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin-bottom: 1rem;
}
.modal-swiper .swiper-wrapper {
    align-items: center;
}
.modal-swiper .swiper-slide {
    width: auto !important;
    display: flex;
    justify-content: center;
    align-items: center;
}
.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
    margin-bottom: 1.5rem;
}
@media (max-width: 900px) {
    .modal-grid {
        grid-template-columns: 1fr;
    }
}
.card--modal-content-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
    margin-bottom: 1.5rem;
}
.card--modal-content-inner > .modal-swiper {
    grid-column: 1 / -1;
}
.card--modal-content-inner > .modal-contact-form {
    grid-column: 1 / -1;
}
@media (max-width: 900px) {
    .card--modal-content-inner {
        grid-template-columns: 1fr;
    }
}

#modal-carousel {
    position: relative;
}

#slide-container {
    overflow: hidden;
    position: relative;
}

.slide {
    width: 100%;
    border-radius: 8px;
}

.slides {
    display: block;
}

/* Style of arrows */
.arrow {
    color: white;
    font-size: 26px;
    position: absolute;
    top: 50%;
    transform: translate(0%, -50%);
    padding: 16px;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.arrow:hover {
    cursor: pointer;
    background-color: var(--transparent-grey);
}

#next {
    left: 100%;
    transform: translate(-100%, -50%);
    border-radius: 4px 0px 0px 4px;
}

#previous {
    border-radius: 0px 4px 4px 0px;
}

#dotsContainer {
    width: 100%;
    height: 20px;
    text-align: center;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 100%;
    display: inline-block;
    margin: 8px 2px;
}

.dot:hover {
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.4);
}

.dot.active {
    background-color: rgba(0, 0, 0, 0.6);
}
