/**
 * Superseed Tect Map — tect-map.css
 *
 * Styles for the Leaflet map container, custom pins, and popup cards.
 *
 * @package SuperseedTectMap
 * @copyright 2026 Superseed Digital
 */


/* ─────────────────────────────────────────────────────────────
   MAP CONTAINER
───────────────────────────────────────────────────────────── */

#tect-project-map {
    width: 100%;
    background: #ffffff;  /* Snazzy Maps water colour */
    border-radius: 4px;
    overflow: hidden;
    display: block;
}


/* ─────────────────────────────────────────────────────────────
   PIN MARKER
───────────────────────────────────────────────────────────── */

.sstm-pin {
    background: transparent !important;
    border: none !important;
}

.sstm-pin__dot {
    width: 14px;
    height: 14px;
    background-color: #EE9A0D;
    border: 1px solid #FFFFFF;
    border-radius: 50%;
/*     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.40); */
    transition: transform 0.15s ease, background-color 0.15s ease;
    cursor: pointer;
}

.sstm-pin:hover .sstm-pin__dot,
.sstm-pin--active .sstm-pin__dot {
    transform: scale(1.2);
    background-color: #146DB5;
}


/* ─────────────────────────────────────────────────────────────
   POPUP — LEAFLET OVERRIDES
───────────────────────────────────────────────────────────── */

.sstm-popup .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 0px;
    overflow: hidden;
/*     box-shadow: 0 10px 40px rgba(0, 0, 0, 0.20); */
/*     border: 1px solid #E5E7EB; */
}

.sstm-popup .leaflet-popup-content {
    margin: 0;
    width: 260px !important;
    line-height: 1;
}

.sstm-popup .leaflet-popup-close-button {
    top: 8px !important;
    right: 8px !important;
    width: 24px !important;
    height: 24px !important;
    line-height: 24px !important;
    text-align: center;
    padding: 0 !important;
    font-size: 18px !important;
    color: #6B7280 !important;
    background: rgba(255, 255, 255, 0.90) !important;
    border-radius: 50%;
    z-index: 10;
    transition: color 0.15s ease;
}

.sstm-popup .leaflet-popup-close-button span {
	display: inline-block;
	transform: translateY(-2px) translateX(0.5px);
}

.sstm-popup .leaflet-popup-close-button:hover {
    color: #146DB5 !important;
}

.sstm-popup .leaflet-popup-tip {
    background: #FFFFFF;
}


/* ─────────────────────────────────────────────────────────────
   POPUP — CARD
───────────────────────────────────────────────────────────── */

.sstm-popup__card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #FFFFFF;
    transition: background 0.15s ease;
}

.sstm-popup__card:hover {
    background: #F5F8FF;
    text-decoration: none;
    color: inherit;
}


/* ─────────────────────────────────────────────────────────────
   POPUP — FEATURE IMAGE
───────────────────────────────────────────────────────────── */

.sstm-popup__image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: #E5E7EB;
    display: block;
}

.sstm-popup__image img {
    width: 100%;
    height: 150px !important;
    object-fit: cover;
	object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.sstm-popup__card:hover .sstm-popup__image img {
    transform: scale(1.04);
}

.sstm-popup__image--empty {
    background: linear-gradient(135deg, #146DB5 0%, #1A8AE5 100%);
}


/* ─────────────────────────────────────────────────────────────
   POPUP — BODY
───────────────────────────────────────────────────────────── */

.sstm-popup__body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}


/* ─────────────────────────────────────────────────────────────
   POPUP — CLIENT
───────────────────────────────────────────────────────────── */

.sstm-popup__client {
    margin: 0;
    font-size: 11px;
    font-weight: 400;
/*     text-transform: uppercase; */
    letter-spacing: 0.06em;
    color: #6B7280;
    line-height: 1.3;
}

.sstm-popup__client a {
    color: #6B7280;
    text-decoration: none;
}

.sstm-popup__client a:hover {
    color: #146DB5;
}

.leaflet-popup-content p {
	margin:  0 !important;
}


/* ─────────────────────────────────────────────────────────────
   POPUP — TITLE
───────────────────────────────────────────────────────────── */

.sstm-popup__title {
    margin: 0;
    padding: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: rgb(102, 102, 102);
}

.sstm-popup__title a {
    color: #1A1A2E;
    text-decoration: none;
}

.sstm-popup__title a:hover {
    color: #146DB5;
}


/* ─────────────────────────────────────────────────────────────
   POPUP — COMMODITY TAGS
───────────────────────────────────────────────────────────── */

.sstm-popup__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 2px;
}

.sstm-popup__tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    background: #EEF2FF;
    color: #146DB5;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: background 0.15s ease, color 0.15s ease;
}

/* .sstm-popup__tag:hover {
    background: #146DB5;
    color: #FFFFFF;
    text-decoration: none;
} */


/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────────── */

@media screen and ( max-width: 768px ) {

    #tect-project-map {
        height: 420px !important;
    }

    .sstm-popup .leaflet-popup-content {
        width: 220px !important;
    }

    .sstm-popup__image {
        height: 120px;
    }

    .sstm-popup__title {
        font-size: 13px;
    }
}
