/* Map Directory */

.container {
    height: 100vh;
    width: 100%;
}

.mapDirectory {
    display: grid;
    grid-template-columns: 300px 1fr;
    height: 100%;
    width: 100%;
}

.filter-container {
    background: white;
    padding: 1rem;
    height: 100vh;
    overflow-y: auto;
}
.filter-container h3{
    font-family: var(--fontPri);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.fullMap {
    height: 100vh;
    width: 100%;
}

@media (max-width: 540px) {
    .mapDirectory {
        grid-template-columns: 1fr;
    }

    .filter-container {
        position: fixed;
        left: -300px;
        top: 0;
        width: 300px;
        height: 100vh;
        z-index: 900;
        transition: left 0.3s ease;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    }

    .filter-container.active {
        left: 0;
    }
}

/*
.mapboxgl-map, #partnerList{
    height: 100vh !important;
}
*/
#partnerList{
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

/* Ensure popups appear above all markers and mobile elements */
.mapboxgl-popup {
    z-index: 1100 !important;
}

.mapboxgl-popup-tip {
    z-index: 1100 !important;
}

.mapboxgl-popup-content {
    padding: 0;
    width: 350px;
    max-width: 350px;
    min-height: 200px;
    z-index: 1100;
}

.mapboxgl-popup-content h3{
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-family: var(--fontPri);
    line-height: 1.2;
    font-weight: 600;
}

.popup-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100%;
    min-height: 200px;
}

.popup-image {
    flex-shrink: 0;
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: #f5f5f5;
}

.popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-details {
    flex: 1;
    min-width: 0;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

/* When there's no image, center the content */
.popup-content-wrapper:not(:has(.popup-image)) .popup-details {
    padding: 15px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .mapboxgl-popup-content {
        width: 300px;
        max-width: 300px;
        min-height: 180px;
    }
    
    .popup-image {
        height: 120px; /* Increased by 50% from 80px */
    }
    
    .popup-details {
        padding: 8px;
    }
    
    .mapboxgl-popup-content h3{
        font-size: 0.9rem;
    }
    
    .popup-value {
        font-size: 11px;
    }
    
    .popup-description {
        font-size: 9px;
    }
}

#uk_mapbox_container {
    width: 70%;
}

.mapPopup{
    margin-bottom: 0.6rem;
}

.popup-field {
    margin-bottom: 6px;
}

.popup-field:last-child {
    margin-bottom: 0;
}

.popup-label {
    font-size: 9px;
    font-family: var(--fontPri);
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1px;
}

.popup-value {
    font-size: 11px;
    font-family: var(--fontPri);
    color: #333;
    line-height: 1.3;
}

.popup-value a {
    color: #2599A2;
    text-decoration: none;
}

.popup-value a:hover {
    color: #1A7A82;
}

.popup-description {
    font-size: 10px;
    font-family: var(--fontPri);
    color: #666;
    line-height: 1.4;
    margin: 0.5rem 0 0 0;
}
#partnerSearch {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--fontPri);
}

#partnerList {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.partner-item {
    cursor: pointer;
    border-bottom: 1px solid #e5e5e5;
    transition: all 0.3s ease;
    background: white;
}

.partner-item:hover {
    background-color: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.partner-item.active {
    background-color: #E8F7F8;
    border-left: 4px solid #2599A2;
}

.partner-item.hidden {
    display: none;
}

.partner-content {
    display: flex;
    padding: 15px;
    gap: 15px;
    align-items: flex-start;
}

.partner-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.partner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile partner image adjustment */
@media (max-width: 540px) {
    .partner-image {
        height: 90px; /* Increased by 50% from 60px */
    }
}

.partner-details {
    flex: 1;
    min-width: 0;
}

.partner-title {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--fontPri);
    color: #333;
    line-height: 1.3;
}

.partner-category {
    font-size: 12px;
    font-family: var(--fontPri);
    color: #2599A2;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.partner-address {
    font-size: 13px;
    font-family: var(--fontPri);
    color: #666;
    line-height: 1.4;
    margin: 0;
}



#noMatchingPartners {
    padding: 10px;
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-top: 10px;
}
.checkbox-container {
    margin-bottom: 10px;
}

.checkbox-container label {
    display: block;
    margin-bottom: 5px;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 5px;
}


/* Custom marker styles for partners */
.custom-marker {
    cursor: pointer;
    width: 34px;
    height: 34px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease;
}

.custom-marker svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.custom-marker .pin-bg {
    fill: white;
}

.custom-marker .pin-icon {
    fill: white;
}

/* Partner type specific marker styles */
.custom-marker.partner-type-super-featured {
    z-index: 3;
}

.custom-marker.partner-type-featured {
    z-index: 2;
}

.custom-marker.partner-type-standard {
    z-index: 1;
}

.custom-marker.partner-type-super-featured svg {
    filter: drop-shadow(0 3px 6px rgba(37, 153, 162, 0.4));
}

.custom-marker.partner-type-featured svg {
    filter: drop-shadow(0 2px 5px rgba(92, 179, 185, 0.4));
}

/* Category-based marker colors - Updated to Barcelunettes turquoise palette */
.custom-marker.category-restaurant .pin-bg {
    fill: #2599A2;
}

.custom-marker.category-hotel .pin-bg {
    fill: #5CB3B9;
}

.custom-marker.category-shop .pin-bg {
    fill: #2599A2;
}

.custom-marker.category-service .pin-bg {
    fill: #5CB3B9;
}

.custom-marker.category-entertainment .pin-bg {
    fill: #2599A2;
}

.custom-marker.category-health .pin-bg {
    fill: #5CB3B9;
}

.custom-marker:hover {
    transform: scale(1.1);
    z-index: 9;
}

.custom-marker:hover svg {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}

/* Removed CTA button styles as website is now a text link */

/* Featured Partner Styles */

/* Featured partner list items (LOCAL FEATURE - C9E6E8) */
.partner-item.featured-partner {
    background: #C9E6E8;
    border: 2px solid #5CB3B9;
    border-radius: 8px;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(92, 179, 185, 0.2);
    position: relative;
}

.partner-item.featured-partner:hover {
    background: #B8DDE0;
    box-shadow: 0 6px 16px rgba(92, 179, 185, 0.3);
    transform: translateY(-1px);
}

.partner-item.featured-partner.active {
    background: #B8DDE0;
    border-color: #2599A2;
    border-left: 6px solid #2599A2;
}

/* Super Featured Partner Styles (SUPER FEATURE - 5CB3B9) */
.partner-item.super-featured-partner {
    background: #5CB3B9;
    border: 2px solid #2599A2;
    border-radius: 8px;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(37, 153, 162, 0.3);
    position: relative;
}

.partner-item.super-featured-partner:hover {
    background: #4DA5AB;
    box-shadow: 0 6px 16px rgba(37, 153, 162, 0.4);
    transform: translateY(-1px);
}

.partner-item.super-featured-partner.active {
    background: #4DA5AB;
    border-color: #2599A2;
    border-left: 6px solid #2599A2;
}

/* Featured badge */
.featured-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #5CB3B9;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--fontPri);
    box-shadow: 0 2px 6px rgba(92, 179, 185, 0.4);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Super featured badge */
.super-featured-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #2599A2;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--fontPri);
    box-shadow: 0 2px 6px rgba(37, 153, 162, 0.4);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Featured partner content adjustments */
.partner-item.featured-partner .partner-content,
.partner-item.super-featured-partner .partner-content {
    padding-right: 50px; /* Make room for the badge */
}

.partner-item.featured-partner .partner-title {
    color: #2599A2;
    font-weight: 700;
}

.partner-item.featured-partner .partner-category {
    color: #1A7A82;
    font-weight: 600;
}

.partner-item.super-featured-partner .partner-title {
    color: white;
    font-weight: 700;
}

.partner-item.super-featured-partner .partner-category {
    color: #f0f9ff;
    font-weight: 600;
}

/* Mobile responsive featured styles */
@media (max-width: 540px) {
    .partner-item.featured-partner .partner-content,
    .partner-item.super-featured-partner .partner-content {
        padding-right: 45px;
    }
    
    .featured-badge,
    .super-featured-badge {
        font-size: 12px;
        width: 24px;
        height: 24px;
        top: 6px;
        right: 6px;
    }
}

