.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    position: relative;
    margin: 0 auto;
}

.close-btn {
    position: absolute;
    top: 0px;
    right: 5px;
    font-size: 20px;
    cursor: pointer;
}

.company-info-modal.is-open {
    display: flex;
    z-index: 20001;
}

.company-info-modal *,
.company-info-modal *::before,
.company-info-modal *::after {
    box-sizing: border-box;
}

.company-info-modal__dialog {
    width: min(680px, calc(100vw - 32px));
    max-width: 680px;
    max-height: min(760px, calc(100vh - 40px));
    overflow-y: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
    color: #111;
}

.company-info-modal__header {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 24px 64px 16px 26px;
    border-bottom: 1.2px solid #ececec;
    background: #fff;
}

.company-info-modal__heading {
    min-width: 0;
    flex: 1;
}

.company-info-modal__heading h2 {
    margin: 0;
    color: #111;
    font-size: 28px;
    line-height: 1.15;
}

.company-info-modal__heading p {
    margin: 6px 0 0;
    color: #555;
    font-size: 14px;
    line-height: 1.35;
}

.company-google-rating--modal {
    margin-top: 5px;
}

.company-google-rating-service-attribution-host--modal:not(:empty) {
    margin-top: 5px;
}

.company-info-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #444;
    cursor: pointer;
    font-size: 22px;
}

.company-info-modal__close:hover,
.company-info-modal__close:focus-visible {
    background: #f2f2f2;
    color: #111;
    outline: none;
}

.company-info-modal__body {
    padding: 10px 26px 18px;
}

.company-info-modal__scroll-zone {
    position: sticky;
    left: 0;
    z-index: 2;
    height: 0;
    pointer-events: none;
    display: none;
}

.company-info-modal__dialog.has-overflow-y .company-info-modal__scroll-zone {
    display: block;
}

.company-info-modal__scroll-zone--up {
    top: var(--company-modal-header-h, 70px);
}

.company-info-modal__scroll-zone--down {
    bottom: 0;
}

.company-info-modal__scroll-arrow {
    position: absolute;
    left: 50%;
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.95);
    color: #222;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
    transition:
        opacity 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.18s ease;
}

.company-info-modal__scroll-arrow--up {
    top: 10px;
    transform: translateX(-50%);
}

.company-info-modal__scroll-arrow--down {
    bottom: 10px;
    transform: translateX(-50%);
}

.company-info-modal__scroll-arrow:hover {
    background-color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
    opacity: 1;
}

.company-info-modal__scroll-arrow--down:hover {
    transform: translateX(-50%) scale(1.07);
}

.company-info-modal__scroll-arrow--up:hover {
    transform: translateX(-50%) scale(1.07);
}

.company-info-modal__scroll-arrow.is-disabled {
    display: none !important;
    cursor: not-allowed;
    pointer-events: none;
}

.company-info-modal__section {
    padding: 18px 0;
    border-bottom: 1px solid #e9e9e9;
}

.company-info-modal__section:last-child {
    padding-bottom: 10px;
    border-bottom: 0;
}

.company-info-modal__section h3 {
    margin: 0 0 4px;
    color: #222;
    font-size: 21px;
    line-height: 1.2;
}

.company-info-modal__specs,
.company-info-modal__amenities,
.company-info-modal__links {
    margin: 0;
    padding: 0;
}

.company-detail-specs__blocks {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.company-detail-spec {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
    padding: 14px 0;
}

.company-detail-specs__blocks > .company-detail-spec:nth-child(2n+1) {
    padding-right: 24px;
}

.company-detail-specs__blocks > .company-detail-spec:nth-child(2n) {
    padding-left: 24px;
}

.company-detail-specs__blocks > .company-detail-spec:nth-child(n+3) {
    border-top: 1px solid #e9e9e9;
}

.company-detail-spec--full {
    grid-column: 1 / -1;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.company-info-modal .detail-spec-icon {
    flex: 0 0 26px;
    width: 26px;
    color: #444;
    font-size: 22px;
    line-height: 1.4;
    text-align: center;
}

.company-detail-spec__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.company-detail-spec__label {
    color: #666;
    font-size: 13px;
    line-height: 1.3;
}

.company-detail-spec__value {
    color: #222;
    font-size: 15px;
    line-height: 1.4;
    overflow-wrap: anywhere;
    word-wrap: break-word;
}

.company-info-modal .leasing-now {
    color: green;
    font-weight: 700;
}

.company-info-modal .fully-rented {
    color: red;
    font-weight: 700;
}

.company-info-modal__muted {
    color: #66757f;
}

.company-info-modal__variations {
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px dashed #d6e0e5;
}

.company-info-modal__variations h4 {
    margin: 0 0 8px;
    color: #4e606b;
    font-size: 14px;
    line-height: 1.2;
}

.company-info-modal__variations p {
    margin: 5px 0 0;
    color: #66757f;
    font-size: 13px;
    line-height: 1.35;
}

.company-info-modal__section--links p {
    margin: 8px 0 0;
    color: #222;
    font-size: 15px;
    line-height: 1.35;
}

.company-info-modal__section--links p:first-of-type {
    margin-top: 0;
}

.company-info-modal__section--links p > span:first-child {
    font-weight: 700;
}

.company-info-modal__section--links a {
    color: #007BFF;
}

/* General Wrapper Styling */
.table-wrapper {
    margin: 10px auto;
    max-width: fit-content;
    padding: 20px;
    overflow-x: auto;
}

.table-wrapper .all-rentals-link {
    color: #007BFF; /* Standard link color */
    text-decoration: none; /* Remove underline */
}

.table-wrapper .all-rentals-link:hover {
    text-decoration: underline; /* Add underline on hover */
    color: #0056b3; /* Darker blue on hover */
}

.table-wrapper tbody tr {
    cursor: pointer; /* Change cursor to pointer */
}

/* Hover effect with box-shadow to simulate a border */
.table-wrapper tbody tr:hover {
    background-color: #f0faff; /* Optional: Light background color for hover */
    box-shadow: 0 0 0 2px #8eceff; /* Simulates a border with blue color */
}
/* Table Styling */
.table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background-color: #f8f8f8;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.lease-companies-table__helper {
    text-align: center;
    font-size: 15px;
    color: #333;
    padding: 10px;
}

.lease-companies-table__helper-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 0;
}

.company-google-rating-source {
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
}

.company-google-rating-source--mobile {
    display: none;
}

.company-google-rating-service-attribution-host {
    flex: 0 0 auto;
}

.company-google-rating-service-attribution {
    min-width: 0;
    color: #5e5e5e;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.3;
}

/* Header Styling */
.table-wrapper thead tr {
    background-color: #f4f4f4;
    text-align: center;
}

.table-wrapper th {
    padding: 15px;
    border: 2px solid #b7b7b7;
    background-color: rgb(238, 255, 255);
}

/* Body Styling */
.table-wrapper td {
    padding: 15px;
    border: 1.5px solid #d1d1d1;
    text-align: center;
    vertical-align: middle; /* Ensure content is vertically aligned */
}

.lease-company-identity {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.lease-company-identity__text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.lease-company-name {
    min-width: 0;
}

.company-google-rating {
    min-height: 16px;
    color: #555;
    font-size: 12px;
    line-height: 1.3;
    text-align: left;
}

.company-google-rating[hidden] {
    display: none;
}

.company-google-rating__badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #3f3f3f;
    white-space: nowrap;
}

.company-google-rating__logo {
    display: block;
    width: auto;
    height: 14px;
    max-width: none;
    flex: 0 0 auto;
}

a.company-google-rating__badge {
    color: #006ca8;
    text-decoration: none;
}

a.company-google-rating__badge:hover,
a.company-google-rating__badge:focus-visible {
    color: #004f7c;
    text-decoration: underline;
}

.company-google-rating__star {
    color: #f5a623;
}

.company-google-rating__unavailable {
    color: #777;
}

.company-google-rating__skeleton {
    display: block;
    width: 92px;
    height: 11px;
    margin-top: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #e6e6e6 25%, #f5f5f5 50%, #e6e6e6 75%);
    background-size: 200% 100%;
    animation: company-google-rating-pulse 1.35s ease-in-out infinite;
}

@keyframes company-google-rating-pulse {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

/* Combined Logo and Company Name */
.table-wrapper td img {
    max-height: 50px;
    border-radius: 5px;
}

.table-wrapper td span {
    text-align: left;
}

.typical-amenities-cell {
    max-width: 300px;
}

.typical-utilities-cell {
    max-width: 240px;
}

.amenity-chip-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.amenity-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    padding: 5px 8px;
    border: 1.2px solid #ccd8df;
    border-radius: 999px;
    background-color: #fff;
    color: #263238;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
}

.amenity-chip i {
    color: #246f8f;
    font-size: 12px;
    flex: 0 0 auto;
}

.amenity-variation-note,
.amenity-empty {
    display: block;
    margin-top: 6px;
    color: #66757f;
    font-size: 12px;
    line-height: 1.3;
    text-align: center;
}

.amenity-empty {
    margin-top: 0;
    text-align: center;
}

.lease-company-cell--utilities .amenity-empty {
    text-align: center;
}

.table-wrapper .lease-company-cell--amenities .amenity-empty {
    text-align: center;
}

/* Status Colors */
.table-wrapper .leasing-now {
    color: green;
}

.table-wrapper .fully-rented {
    color: red;
}

.table-wrapper .unknown-status {
    color: gray;
}

.company-logo {
    min-width: 45px;  /* Adjust width/height to match your avatar */
    min-height: 45px;
    max-width: 45px;  /* Adjust width/height to match your avatar */
    max-height: 45px;
    object-fit: contain;
    border: 1.5px solid #c0c0c0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Adjust values based on your preference */
}

/* Button container */
.table-buttons {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

/* Back button styling */
.back-btn {
    padding: 8px 15px;
    font-size: 14px;
    background-color: #f0f0f0;
    border: 1px solid #d1d1d1;
    border-radius: 5px;
    cursor: pointer;
    color: #333;
}

.back-btn:hover {
    background-color: #e0e0e0;
}

/* View All Leases button styling */
.view-leases-button {
    padding: 8px 15px;
    font-size: 14px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
}

.view-leases-button:hover {
    background-color: #0056b3;
}

@media (max-width: 800px) {
    :root {
        --lease-mobile-gutter: 12px;
    }

    .company-info-modal {
        align-items: flex-start;
        padding-top: 16px;
    }

    .company-info-modal__dialog {
        width: min(500px, calc(100vw - 20px));
        max-height: calc(100vh - 32px);
    }

    .company-info-modal__header {
        padding: 20px 58px 14px 20px;
    }

    .company-info-modal__heading h2 {
        font-size: 24px;
    }

    .company-info-modal__body {
        padding: 10px 20px 18px;
    }

    .company-detail-specs__blocks {
        grid-template-columns: 1fr;
    }

    .company-detail-specs__blocks > .company-detail-spec:nth-child(2n+1),
    .company-detail-specs__blocks > .company-detail-spec:nth-child(2n) {
        padding-right: 0;
        padding-left: 0;
    }

    .company-detail-specs__blocks > .company-detail-spec + .company-detail-spec {
        border-top: 1px solid #e9e9e9;
    }

    .table-wrapper {
        width: min(620px, calc(100dvw - (var(--lease-mobile-gutter) * 2)));
        max-width: 100%;
        box-sizing: border-box;
        margin-inline: auto;
        padding: 0;
        overflow-x: clip;
    }

    .table-wrapper table {
        display: block;
        min-width: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        border-collapse: separate;
        border-spacing: 0;
        background: transparent;
        box-shadow: none;
    }

    .table-wrapper thead,
    .table-wrapper tbody {
        display: block;
    }

    .lease-companies-table__helper-row {
        display: block;
        margin-bottom: 0;
    }

    .lease-companies-table__helper-row th {
        display: block;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        padding: 14px 12px;
        border: 1.5px solid #b7b7b7;
        background-color: rgb(238, 255, 255);
        font-size: 13px;
        line-height: 1.35;
    }

    .lease-companies-table__helper-content {
        flex-direction: column;
        gap: 2px;
    }

    .company-google-rating-source--mobile {
        display: inline;
        white-space: normal;
    }

    .lease-companies-table__column-row {
        display: none;
    }

    .lease-company-row {
        display: block;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-bottom: 3px;
        border: 1px solid #cfd8dc;
        border-radius: 8px;
        background: #f8f8f8;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
        overflow: hidden;
    }

    .table-wrapper tbody tr:hover {
        background-color: #f8f8f8;
        box-shadow: 0 0 0 2px #8eceff, 0 2px 5px rgba(0, 0, 0, 0.12);
    }

    .lease-company-cell {
        display: block;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 12px 14px;
        border: 0;
        border-top: 1px solid #e1e6e8;
        text-align: center;
    }

    .lease-company-cell:first-child {
        border-top: 0;
    }

    .lease-company-cell--company {
        padding-bottom: 13px;
    }

    .lease-company-cell--status::before,
    .lease-company-cell--amenities::before,
    .lease-company-cell--utilities::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 5px;
        color: #66757f;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.2;
    }

    .lease-company-identity {
        align-items: center;
        justify-content: center;
    }

    .lease-company-identity__text {
        flex: 0 1 auto;
        align-items: center;
        max-width: calc(100% - 60px);
        text-align: center;
    }

    .company-google-rating {
        width: 100%;
        text-align: center;
    }

    .company-google-rating__badge {
        justify-content: center;
        max-width: 100%;
        white-space: normal;
    }

    .company-google-rating__skeleton {
        margin: 2px auto 0;
    }

    .lease-company-name {
        min-width: 0;
        color: #111;
        font-size: 16px;
        font-weight: 700;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .lease-company-cell--status {
        text-align: center;
    }

    .lease-company-cell--amenities,
    .lease-company-cell--utilities {
        max-width: none;
    }

    .lease-company-cell--amenities .amenity-chip-list,
    .lease-company-cell--utilities .amenity-chip-list {
        justify-content: center;
    }

    .lease-company-cell--amenities .amenity-chip,
    .lease-company-cell--utilities .amenity-chip {
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 480px) {
    .modal-content {
        max-width: 300px;
    }

    .company-info-modal__dialog {
        width: calc(100vw - 24px);
        max-height: calc(100vh - 32px);
    }

    .company-info-modal__header {
        padding: 18px 16px 14px;
    }

    .company-info-modal__heading h2 {
        font-size: 21px;
    }

    .company-info-modal__body {
        padding: 16px;
    }

    .table-wrapper {
        --lease-mobile-gutter: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .company-google-rating__skeleton {
        animation: none;
    }
}
