* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
  font:15px 'Inter',sans-serif;
  background:#f7f9fc;
  margin:0;
  display:flex;
  justify-content:center;
}

.card{
  max-width:900px;
  width:95%;
  margin:24px auto;
  padding:16px 24px 24px;
  background:#fff;
  border-radius:12px;
  box-shadow:0 4px 14px rgba(0,0,0,.07);
}
#summary{
  display:flex;
  gap:32px;
  padding-bottom:16px;
  border-bottom:1px solid #e5e9f2;
}
#summary span{
  font-weight:600;
  font-size:20px;
}
#map{
  height:480px;
  border-radius:8px;
  margin-top:16px;
}

/* Error message styling */
#error-message {
    background-color: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 20px;
    text-align: center;
    font-weight: 500;
}

.error-hidden {
    display: none;
}

/* Custom marker styling - these classes will be applied to Leaflet markers */
.marker-green {
    filter: hue-rotate(90deg) saturate(1.5);
}

.marker-yellow {
    filter: hue-rotate(45deg) saturate(1.2);
}

.marker-red {
    filter: hue-rotate(0deg) saturate(1.5);
}

@media(max-width:600px){
  #map{height:60vh;}
}

.pin {
    border: none !important;
    background: none !important;
}

.pin div {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

#list th, #list td{padding:6px 8px;border-bottom:1px solid #e5e9f2;text-align:left}
#list tr:nth-child(even){background:#fafbfc}
#list th{cursor:pointer;font-weight:600}
.selected{background:#e3f2fd !important}

.column-help {
    font-size: 11px;
    color: #666;
    margin: 8px 0 4px 0;
    line-height: 1.3;
}

.column-help span {
    display: inline-block;
    margin-right: 16px;
    margin-bottom: 2px;
}

@media (max-width: 768px) {
    .column-help span {
        display: block;
        margin-right: 0;
        margin-bottom: 4px;
    }
}

/* Leaflet popup customization */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.leaflet-popup-content {
    margin: 12px 16px;
    font-family: inherit;
}

.cafe-popup {
    text-align: center;
}

.cafe-name {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.cafe-score {
    font-weight: 700;
    font-size: 14px;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
}

.score-high {
    background-color: #d4edda;
    color: #155724;
}

.score-medium {
    background-color: #fff3cd;
    color: #856404;
}

.score-low {
    background-color: #f8d7da;
    color: #721c24;
}
