html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body.has-map {
    overflow: hidden;
}

#map {
    height: calc(96vh - 50px);
    width: 100%;
    border-radius: 12px;
    border: 1px solid #ddd;
}

.offer-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.3vh 1.5vh;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    font-size: 9px;
    font-weight: 600;
    border: 1px solid #000;
    color: rgb(0, 0, 0);
    cursor: pointer;
    transition: transform 0.2s;
    min-width: auto !important;
    white-space: nowrap;
}

.offer-marker:hover {
    transform: scale(1.05);
    z-index: 1000 !important;
}

.leaflet-marker-icon leaflet-zoom-animated leaflet-interactive {
    opacity: 0 !important;
}

.leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-bar {
    padding-top: 20px !important;
    border: none !important;
    box-shadow: 0 0px 0px rgba(0,0,0,0.15) !important;
}

.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
}

.leaflet-control-zoom a {
    background: white !important;
    color: #ff5a5f !important;
    border-radius: 4px !important;
    margin: 2px !important;
}

.leaflet-popup-content-wrapper {
    padding: 0 !important;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    border: none !important;
}

.leaflet-popup-content {
    width: 300px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.custom-popup {
    position: relative;
}

.popup-image-container {
    position: relative;
    height: 200px;
    width: 100%;
}

.popup-image-slider {
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.popup-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.popup-image.active {
    display: block;
}

.popup-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 2;
}

.popup-nav button {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #484848;
    transition: all 0.2s;
}

.popup-nav button:hover {
    background: white;
    transform: scale(1.1);
}

.popup-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.popup-actions button {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
}


.popup-actions .close-popup:hover {
    background: #D3D3D3;
    color: white;
}

.popup-actions .favorite-popup:hover {
    background: #D3D3D3;
    color: white;
}

.popup-content {
    padding: 16px;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.popup-title {
    font-size: 18px;
    font-weight: 600;
    color: #484848;
    margin: 0;
}

.popup-price {
    font-weight: 600;
    color: #484848;
    background: none;
    padding: 0;
    margin: 0;
    font-size: 20px;
}

.popup-reward {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.reward-amount {
    display: flex;
    align-items: center;
    gap: 4px;
}

.reward-value {
    color: #000000;
    font-size: 18px;
    font-weight: 600;
}

.reward-text {
    color: #717171;
    font-size: 12px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #484848;
    font-size: 14px;
}

.rating i {
    color: #D3D3D3;
}

.popup-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.dot.active {
    background: white;
}

.cluster-marker {
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 600;
    font-size: 18px;
    background: #ff5a5f;
    border: 2px solid white;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    transition: transform 0.2s;
}

.cluster-marker:hover {
    transform: scale(1.1);
    z-index: 1000;
}

.leaflet-popup-tip {
    display: none !important;
}

.cluster-example {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #ff5a5f;
    border-radius: 50%;
    margin-right: 8px;
}

.marker-example {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid #ff5a5f;
    border-radius: 12px;
    margin-right: 8px;
}

.marker-cluster {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid #000 !important;
    border-radius: 6px !important;
    color: #000 !important;
    width: auto !important;
    height: auto !important;
    padding: 0.3vh 1.5vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 600 !important;
    font-size: 9px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15) !important;
    transition: all 0.2s ease !important;
}

.marker-cluster:before {
    content: "+" !important;
    margin-right: 2px !important;
}

.marker-cluster:hover {
    transform: scale(1.05) !important;
    background: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
} 