.greece-listings-map-module {
    position: relative;
    width: 100%;
    --brand: #2077ba;
    --brand-ink: #155179;
    --ink: #1a1814;
    --ink-70: #4a463f;
    --ink-50: #7a766c;
    --paper-warm: #f3eee3;
    --line: #e6dfd0;
    --gold: #c89b3c;
    font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
}

.greece-listings-map-module__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}

.greece-listings-map-module__map {
    width: 100%;
    min-height: 690px;
    height: calc(100vh - 150px);
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.1);
}

.greece-listings-map-module__sidebar {
    min-height: 690px;
    height: calc(100vh - 150px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 8px 0 0;
    scrollbar-gutter: stable;
}

.greece-listings-map-module__sidebar-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 18px;
}

.greece-listings-map-module__sidebar-status {
    padding: 10px 4px 4px;
    font-size: 0.82rem;
    color: #6c7d8c;
    text-align: center;
}

.greece-map-pagination {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-left: 12px;
}

.greece-map-pagination__button {
    width: 34px;
    height: 34px;
    border: 1px solid #dbe7f3;
    border-radius: 999px;
    background: #ffffff;
    color: #2077ba;
    font-size: 1.25rem;
    line-height: 1;
    font-weight: 800;
    cursor: pointer;
}

.greece-map-pagination__button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.greece-map-pagination__meta,
.greece-map-pagination__count {
    color: #4b5a63;
    font-weight: 800;
}

.greece-listings-map-module__sheet-header {
    display: none;
}

.greece-listings-map-module__desktop-only-message {
    display: none;
    padding: 18px;
    border: 1px solid #d7e5f2;
    background: #f7fbff;
    color: #1f2d3d;
    border-radius: 10px;
    font-size: 1rem;
    line-height: 1.5;
}

.greece-map-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
    color: var(--ink);
    border: 0;
    border-radius: 14px;
    background: transparent;
    padding: 0;
    overflow: visible;
    min-height: 100%;
    box-shadow: none;
    position: relative;
    transition: transform 0.15s ease;
}

.greece-map-card:hover,
.greece-map-card.is-active {
    transform: translateY(-2px);
}

.greece-map-card:hover .greece-map-card__media,
.greece-map-card.is-active .greece-map-card__media {
    box-shadow: 0 10px 24px -10px rgba(20, 18, 14, 0.25);
}

.greece-map-card.is-active .greece-map-card__media {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.greece-map-card__media {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: var(--line);
    transition: box-shadow 0.2s ease, outline-color 0.2s ease;
}

.greece-map-card__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    display: block;
}

.greece-map-card__ribbon {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 6px;
    background: var(--brand);
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(32, 119, 186, 0.35);
}

.greece-map-card__sea {
    position: absolute;
    top: 12px;
    right: 52px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: calc(100% - 64px);
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--brand);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(32, 119, 186, 0.28);
}

.greece-map-card__dots {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    gap: 5px;
}

.greece-map-card__dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
}

.greece-map-card__dot--on {
    width: 18px;
    background: #ffffff;
}

.greece-map-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 0 2px;
}

.greece-map-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.greece-map-card__head-text {
    min-width: 0;
    flex: 1;
}

.greece-map-card__title {
    margin: 0;
    color: #2077ba;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    display: -webkit-box;
    line-clamp: 1;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.greece-map-card__location {
    margin: 2px 0 0;
    color: var(--ink-50);
    font-size: 12.5px;
    line-height: 1.35;
    font-weight: 500;
    display: -webkit-box;
    line-clamp: 1;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.greece-map-card__stars {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 1px;
    color: var(--line);
}

.greece-map-card__stars .is-filled {
    color: var(--gold);
}

.greece-map-card__stars svg {
    fill: currentColor;
}

.greece-map-card__address {
    margin: -8px 0 0;
    color: var(--ink-50);
    font-size: 12.5px;
    line-height: 1.35;
    display: -webkit-box;
    line-clamp: 1;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.greece-map-card__amenities {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 8px;
    background: var(--paper-warm);
    color: var(--ink-70);
}

.greece-map-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.greece-map-card__tag {
    max-width: 100%;
    padding: 3px 7px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink-70);
    font-size: 10.5px;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.greece-map-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 11px;
    border-top: 1px solid var(--line);
}

.greece-map-card__price {
    display: block;
    color: var(--ink);
    font-size: 17px;
    line-height: 1.15;
    font-weight: 700;
    white-space: nowrap;
}

.greece-map-card__price-suffix {
    color: var(--ink-50);
    font-size: 12px;
    font-weight: 500;
}

.greece-map-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 4px;
    color: var(--brand);
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
}

.greece-map-card:hover .greece-map-card__cta {
    color: var(--brand-ink);
}

.greece-map-pin-wrapper {
    transition: transform 0.18s ease;
}

.greece-map-pin-wrapper.is-active {
    transform: scale(1.22);
    z-index: 999 !important;
}

.greece-map-pin {
    width: 24px;
    height: 24px;
    border-radius: 50% 50% 50% 0;
    background: #f9b33b;
    border: 2px solid #fff;
    transform: rotate(-45deg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
    position: relative;
}

.greece-map-pin::after {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    top: 5px;
    left: 5px;
}

.greece-listings-map-module .greece-map-pin-tooltip {
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: #3a5fad;
    padding: 8px 12px;
    font-size: 1.22rem;
    line-height: 1.2;
    font-weight: 800;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.18);
}

.greece-listings-map-module .greece-map-pin-tooltip::before {
    border-top-color: #ffffff;
}

/* Force solid white map container to avoid transparent overlays from theme styles */
.greece-listings-map-module .leaflet-container,
.greece-listings-map-module .leaflet-pane,
.greece-listings-map-module .leaflet-tile-pane {
    background: #ffffff !important;
}

@media (max-width: 1280px) {
    .greece-listings-map-module__layout {
        gap: 18px;
    }

    .greece-listings-map-module__sidebar-list {
        gap: 18px 14px;
    }
}

@media (max-width: 991px) {
    .greece-listings-map-module {
        display: block !important;
        visibility: visible !important;
    }

    .greece-listings-map-module__layout {
        display: flex !important;
        flex-direction: column;
        gap: 14px;
        min-height: 0;
        visibility: visible !important;
    }

    .greece-listings-map-module__sidebar {
        display: flex !important;
        order: 2;
    }

    .greece-listings-map-module__map {
        display: block !important;
        order: 1;
        width: 100% !important;
        min-height: 360px;
        height: 56vh;
        border-radius: 18px;
        box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
        visibility: visible !important;
        opacity: 1 !important;
    }

    .greece-listings-map-module__sidebar {
        position: relative;
        right: auto;
        bottom: auto;
        left: auto;
        z-index: 1;
        flex-direction: column;
        min-height: 0;
        height: auto;
        max-height: none;
        padding: 0;
        overflow: visible;
        border: 1px solid rgba(226, 232, 240, 0.95);
        border-radius: 22px;
        background: #ffffff;
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
        transition: none;
        scrollbar-gutter: auto;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .greece-listings-map-module.is-mobile-sheet-expanded .greece-listings-map-module__sidebar {
        height: auto;
    }

    .greece-listings-map-module__sheet-header {
        display: flex;
        flex: 0 0 auto;
        flex-direction: column;
        align-items: center;
        gap: 7px;
        width: 100%;
        padding: 10px 16px 8px;
        border: 0;
        border-bottom: 1px solid #e7edf4;
        border-radius: 22px 22px 0 0;
        background: #ffffff;
        color: #111827;
        font: inherit;
        font-size: 0.98rem;
        font-weight: 800;
        text-align: center;
        cursor: pointer;
    }

    .greece-listings-map-module__sheet-handle {
        width: 46px;
        height: 5px;
        border-radius: 999px;
        background: #cbd5e1;
    }

    .greece-listings-map-module__sheet-title {
        display: block;
    }

    .greece-listings-map-module__sidebar-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        overflow: visible;
        padding: 12px;
        -webkit-overflow-scrolling: touch;
    }

    .greece-listings-map-module__sidebar-status {
        flex: 0 0 auto;
        padding: 8px 14px 12px;
        background: #ffffff;
    }

    .greece-map-pagination {
        display: flex;
        margin: 8px 0 0;
    }

    .greece-listings-map-module__desktop-only-message {
        display: none;
    }

    .greece-map-card {
        border-radius: 16px;
        padding: 0;
        box-shadow: none;
    }

    .greece-map-card__media {
        border-radius: 16px;
    }

    .greece-map-card__image {
        aspect-ratio: 4 / 3;
    }

    .greece-map-card__content {
        padding: 0 2px;
    }

    .greece-map-card__title {
        font-size: 1.08rem;
    }

    .greece-map-card__location {
        font-size: 0.92rem;
    }

    .greece-map-card__address {
        margin: -8px 0 0;
        font-size: 0.86rem;
    }

    .greece-map-card__footer {
        padding-top: 12px;
    }

    .greece-map-card__price {
        font-size: 1.1rem;
    }

    .greece-map-card__cta {
        font-size: 0.84rem;
    }
}
