.location-map-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* min-height: 600px; */
    /* keeps overlay inside image */
}



/* Base image */
.map-image {
    width: 100%;
    display: block;
}

/* Dark overlay */
.map-dark-layer {
    position: absolute;
    inset: 0;
    /* top:0; right:0; bottom:0; left:0 */
    background: rgba(0, 0, 0, 0.6);
    /* semi-transparent black */
    z-index: 5;
}

.pin-border {
    border: 3px solid #D4AF37;
    padding: 6px;
}


/* Pins */
.pin-container {
    transform: translate(-50%, -50%);
    cursor: pointer;
    background: #D4AF37;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    border: 2px solid rgba(212, 175, 55, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    z-index: 10;
    background-clip: content-box;
    padding: 5px;
}

.pin-container button {
    border: none;
    background-color: transparent;
}

/* Title above the pin */
.pin-container::before {
    content: attr(data-title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    white-space: nowrap;
    font-size: 14px;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    font-family: 'Cinzel', sans-serif;
    text-transform: uppercase;
    color: #D4AF37;
}

/* Optional hover effect */
.pin-container:hover {
    transform: translate(-50%, -50%) scale(1.2);
    border-color: rgba(212, 175, 55, 0.8);
    box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.3);
}

/* Overlay layer */
.map-overlay {
    position: absolute;
    inset: 0;
    /* top:0 right:0 bottom:0 left:0 */
    z-index: 20;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: flex-end;
}

/* Hide */
.map-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Panel */
.overlay-panel {
    display: flex;
    width: 100%;
    max-width: 512px;
    height: 100%;
    background: #1A1A1A;
    border-left: 1px solid rgba(212, 175, 55, 0.3);
    transform: translateX(100%);
    transition: transform 0.5s ease;
    flex-direction: column;
}

/* Slide in when visible */
.map-overlay:not(.hidden) .overlay-panel {
    transform: translateX(0);
}

/* Close button */
.overlay-panel .close {
    /* position: absolute; */
    top: 16px;
    right: 16px;
    background-color: transparent;
    border: none;
    padding: 0;
    color: #6b7280;
}

.overlay-panel .close:hover {
    color: #D4AF37;
}

.hidden {
    display: none;
}


.projects-container {
    overflow-y: auto;
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}


/* Wrapper */
.project-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-main {
    width: 100%;
    display: flex;
    gap: 16px;

}

/* Card */
.project-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px;
    cursor: pointer;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.5s ease;
}

.project-card:hover {
    background: rgba(212, 175, 55, 0.05);
    border-color: rgba(212, 175, 55, 0.4);
}

/* Image wrapper */
.project-image {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: flex;
}

/* Image */
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

/* Hover zoom */
.project-card:hover .project-image img {
    transform: scale(1.1);
}

/* Content */
.project-content {
    flex: 1;
}

/* Title */
.project-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    font-family: Montserrat;
    text-align: start;
}

.project-card:hover .project-title {
    color: #D4AF37;
}

/* Meta */
.project-meta {
    margin-top: 12px;
}

.project-meta-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #D4AF37;
    margin-bottom: 0;
}

.project-meta-value {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 300;
    text-transform: uppercase;
    color: #d1d5db;
}


.project-actions {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.project-actions.open {
    max-height: 180px;
    opacity: 1;
    margin-bottom: 2rem;
}

.project-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 8px 8px 0;
}

.project-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Gold button */
.action-primary {
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #D4AF37;
}

.action-primary:hover {
    background: #D4AF37;
    color: #000;
}

/* Dark button */
.action-secondary {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #444;
    color: #bbb;
}

.action-secondary:hover {
    border-color: #D4AF37;
    color: #D4AF37;
}


.panel-header {
    display: flex;
    justify-content: space-between;
    text-align: start;
    padding: 32px;
    background: #000;
}

.panel-header h3 {
    color: #D4AF37;
    font-family: 'Cinzel', sans-serif;
    letter-spacing: 0.1em;
    font-size: 1.875rem;
    line-height: 2.25rem;
    margin: 0;
}

.panel-header p {
    color: #6b7280;
    font-size: 10px;
    letter-spacing: .4em;
    text-transform: uppercase;
    margin-top: .5rem;
}

.panel-footer {
    background-color: rgba(0, 0, 0, .8);
    padding: 2rem;
    border-color: rgb(212 175 55 / 0.1);
    display: flex;
    border-top-width: 1px;
    color: #D4AF37;
    justify-content: center;

}

.panel-footer p {
    color: rgb(107 114 128 / 1);
    text-transform: uppercase;
    font-size: 9px;
    letter-spacing: .4em;
    margin: 0;

}



@media screen and (max-width: 768px) {
    .pin-container {
        width: 24px;
        height: 24px;
        padding: 3px;
        border-width: 1px;
    }

    .pin-container::before {
        font-size: 9px;
    }
	.project-title {
		font-size: 16px;
	}
	.project-meta-value {
    	font-size: 11px:
	}
	.project-image {
		width: 72px;
		height: 72px;
	}
}
@media screen and (max-width: 640px) {
    

    .pin-container::before {
        font-size: 0px;
    }
}

.map-overlay.fullscreen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.location-search-widget .icon {
    position: absolute;
    left: 0;
    top: 0;
    padding-left: 16px;
    display: flex;
    /* justify-content: center; */
    align-items: center;
    height: 100%;
    color: #D4AF37;
}

.location-search-widget input {
    width: 100%;
    font-size: 14px;
    line-height: 18px;
    color: #fff;
    padding: 12px 32px 16px;
    background: rgba(0, 0, 0, .6);
    border: 1px solid #d4af3733;
    border-radius: 9999px;
}

.location-search-widget input:focus {
    border-color: rgb(212 175 55 / 1);
    outline: 2px solid transparent;
    outline-offset: 2px;
}

/* Mobile / small screens */
@media (max-width: 1024px) {
    .map-overlay {
        position: fixed !important;
        /* overlay floats above everything */
        inset: 0;
        /* top:0; bottom:0; left:0; right:0 */
        width: 100vw;
        height: 100vh;
        /* full viewport height */
        padding: 1rem;
        overflow-y: auto;
        display: flex;
        justify-content: center;
        align-items: flex-start;
		z-index:99;
    }

    /* Optional: inner panel takes full width */
    .map-overlay .overlay-panel {
        width: 100%;
        max-width: none;
        /* remove desktop max-width */
        height: 100%;
        /* take full overlay height */
        border-radius: 0;
        /* optional for fullscreen look */
    }
}

.location-search-results {
    background: rgba(0, 0, 0, .9);
    padding: 32px 16px;
    color: #fff;
    border-radius: 8px;
    border: 1px solid rgb(212 175 55 / 40%);
}

.location-search-results .search-group {
    background-color: rgba(0, 0, 0, .3);
    margin-bottom: 1rem;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid rgb(212 175 55 / 30%);
}

.location-search-results .search-label {
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    border-bottom: 1px solid rgb(212 175 55 / 40%);

}

.location-search-results .search-item {
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, .7);
    margin: .5rem 0
}

.location-search-widget {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
}
input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.location-search-widget {
    position: relative;
    max-width: 400px;
}

.location-search-input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    /* space for icon */
    border-radius: 24px;
    border: 1px solid #d4af37;
    background-color: #000;
    color: #fff;
    font-size: 14px;
}

.location-search-input::placeholder {
    color: #aaa;
}

.location-search-widget .search-toggle {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4af37;
	padding:0;
}

.location-search-widget .search-toggle svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
    /* allow input click */
}

.location-search-widget .clear-icon {
    display: none;
}

/* Show X when active */
.location-search-widget.active .search-icon {
    display: none;
}

.location-search-widget.active .clear-icon {
    display: block;
}

.location-search-results {
    display: none;
    /* hidden by default */
}

.location-search-widget.active .location-search-results {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #111;
    border-radius: 8px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 50;
}

*::-webkit-scrollbar {
    width: 8px; /* width of the scrollbar */
}

*::-webkit-scrollbar-track {
    background: #1a1a1a; /* background behind the thumb */
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb {
    background-color: #d4af37; /* thumb color */
    border-radius: 4px;
    border: 2px solid #1a1a1a; /* creates spacing around thumb */
}

*::-webkit-scrollbar-thumb:hover {
    background-color: #b8952c; /* darker on hover */
}