/* Cormack Interactive Map - Frontend Styles */

.cim-map-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.cim-map {
    width: 100%;
    height: 100%;
}

/* Overlay Bar — pinned to the TOP, styled like the site nav glass pill */
.cim-map-overlay-bar {
    position: absolute;
    top: clamp(1rem, 0.7rem + 1.4vw, 1.75rem);
    left: 50%;
    transform: translateX(-50%);
    width: min(72rem, calc(100% - 2 * clamp(1rem, 0.6rem + 1.4vw, 2.25rem)));   /* longer bar */
    z-index: 10;
    border-radius: 999px;          /* pill, like the nav */
}

/* Liquid-glass surface — uses the shared .glass recipe (class added in markup),
   tuned to the same tokens as the site nav pill / floorplans tabs. */
.cim-overlay-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    border-radius: inherit;
    --glass-tint-amount: 10%;
    --glass-blur: 10px;
    --glass-saturation: 140%;
    --glass-reflex-light: 1.6;     /* brighter edge highlight over the dark map */
    --glass-reflex-dark: 0.6;
}

.cim-overlay-left {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
}

.cim-overlay-type {
    font-family: "Reforma 1969", "Times New Roman", Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 142%;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: #ffffff;
    padding: 18px 28px;
    margin-left: 8px;
    position: relative;
}

/* Inner divider only (between category and place name). The far-left edge
   border is intentionally removed. */
.cim-overlay-type::after {
    content: '';
    position: absolute;
    top: 12px;
    bottom: 12px;
    right: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.4);
}

.cim-overlay-label {
    font-family: "proxima-nova", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 142%;
    letter-spacing: 0;
    color: #ffffff;
    /* Generous space after the place name before the link (per design) */
    padding: 18px 28px;
    padding-right: clamp(2.5rem, 1.5rem + 5vw, 6rem);
}

/* Push the Google Maps link hard to the right */
.cim-overlay-right {
    display: flex;
    align-items: center;
    margin-left: auto;
    padding: 12px 8px;
    margin-right: 16px;
    position: relative;
}

.cim-overlay-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: "proxima-nova", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #ffffff;
    white-space: nowrap;
    text-decoration: none;
    padding: 12px 24px;
    background: none;
    border: none;
    border-radius: 0;
    transition: color 0.3s ease;
}

.cim-overlay-link:hover {
    background: none;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive */
@media (max-width: 768px) {
    .cim-map-overlay-bar {
        top: 16px;
        width: calc(100% - 32px);
        max-width: none;
        /* The bar stacks vertically on mobile — a soft rounded-rect reads better
           than the full desktop pill, whose huge radius bows the stacked edges. */
        border-radius: 18px;
    }

    .cim-overlay-content {
        flex-direction: column;
        gap: 0;
    }

    .cim-overlay-left {
        width: 100%;
        justify-content: flex-start;
        border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    }

    .cim-overlay-type {
        font-size: 15px;
        padding: 15px 20px;
    }

    .cim-overlay-label {
        font-size: 15px;
        padding: 15px 20px;
        padding-right: 20px;        /* reset desktop right-space on mobile */
    }

    .cim-overlay-right {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .cim-overlay-link {
        width: 100%;
        justify-content: center;
        font-size: 0.875rem;
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .cim-overlay-type {
        padding: 12px 15px;
    }

    .cim-overlay-label {
        padding: 12px 15px;
    }

    .cim-overlay-link {
        padding: 12px 15px;
    }
}
