/* Leaflet popup and UI styling */
/* This file contains all cosmetic styling for map popups and UI elements */

/* Leaflet popup styling - Modern design */
.leaflet-popup-content-wrapper {
    border-radius: 16px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
    padding: 0 !important;
    overflow: hidden;
    background: #ffffff !important;
}

.leaflet-popup-tip {
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.leaflet-popup-close-button {
    width: 32px !important;
    height: 32px !important;
    line-height: 32px !important;
    font-size: 20px !important;
    color: #666 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 10 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.leaflet-popup-close-button:hover {
    background: #ffffff !important;
    color: #000 !important;
    transform: rotate(90deg) scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.leaflet-popup-content {
    margin: 0 !important;
    padding: 0 !important;
    min-width: 320px !important;
    max-width: 400px !important;
}

.leaflet-popup-content .map-info {
    width: 100%;
    display: block;
    text-align: left;
    background: #ffffff;
}

.leaflet-popup-content .map-info span {
    display: block;
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0;
    border-radius: 0;
    position: relative;
}

.leaflet-popup-content .map-info span::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}

.leaflet-popup-content .map-info .map-info-content {
    padding: 20px;
}

.leaflet-popup-content .map-info p {
    margin: 0 0 12px 0;
    font-size: 1.4rem;
    color: #555;
    line-height: 1.6;
}

.leaflet-popup-content .map-info p:last-of-type {
    margin-bottom: 16px;
}

.leaflet-popup-content .map-info p b {
    color: #2c3e50;
    font-weight: 600;
}

/* Map info row - icons in one row */
.map-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    margin: 0 0 16px 0;
    gap: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.map-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.map-info-item i {
    font-size: 1.6rem;
    color: #0c93d2;
    min-width: 20px;
    text-align: center;
}

.map-info-item strong {
    font-size: 1.4rem;
    color: #333;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.map-info-item strong.price {
    color: #0c93d2;
    font-size: 1.5rem;
}

.leaflet-popup-content .map-info .button {
    display: block;
    width: 100%;
    margin: 0 0 10px 0;
    padding: 12px 20px;
    background: linear-gradient(135deg, #0c93d2 0%, #00a8e6 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(12, 147, 210, 0.3);
}

.leaflet-popup-content .map-info .button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.leaflet-popup-content .map-info .button:hover::before {
    left: 100%;
}

.leaflet-popup-content .map-info .button:hover {
    background: linear-gradient(135deg, #00a8e6 0%, #0c93d2 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(12, 147, 210, 0.4);
}

.leaflet-popup-content .map-info .button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(12, 147, 210, 0.3);
}

.leaflet-popup-content .map-info .button.open-map {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.leaflet-popup-content .map-info .button.open-map:hover {
    background: linear-gradient(135deg, #f7931e 0%, #ff6b35 100%);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.map-info {
    width: 100%;
    display: block;
    background: #ffffff;
}

.map-info > span {
    display: block;
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0;
    border-radius: 0;
}

.map-info p {
    margin: 0 0 12px 0;
    font-size: 1.4rem;
    color: #555;
    line-height: 1.6;
}

.map-info p:last-of-type {
    margin-bottom: 16px;
}

.map-info p b {
    color: #2c3e50;
    font-weight: 600;
}
