#pothole-map {
    width: 100%;
    height: 500px;
    border-radius: 8px;
}

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #ccc;
    border-top: 2px solid #333;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 6px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.leaflet-popup-content {
    width: 320px !important;
}

.pm-popup {
    display: flex;
    gap: 10px;
    max-width: 300px;
}

.pm-popup-img img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
}

.pm-popup-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pm-popup-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 4px;
}

.pm-popup-severity {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

.pm-popup-desc {
    font-size: 13px;
    color: #333;
}

.pm-popup-img img {
    transition: transform 0.2s;
}

.pm-popup-img img:hover {
    transform: scale(1.05);
}

.pm-lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.8);

    justify-content: center;
    align-items: center;
}

.pm-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.pm-clickable-img {
    cursor: pointer;
    transition: transform 0.2s;
}

.pm-clickable-img:hover {
    transform: scale(1.05);
}

.pm-upload-btn {
    display: inline-block;
    padding: 8px 12px;
    background: #eee;
    border-radius: 6px;
    cursor: pointer;
}

.pm-upload-btn:hover {
    background: #ddd;
}

.wp-block-post {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wp-block-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.vote-btn.voted {
    transform: scale(1.1);
    background-color: #28a745;
    color: white;
}

.pm-pothole-card-list {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1024px) {
    .pm-pothole-card-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .pm-pothole-card-list {
        grid-template-columns: 1fr;
    }
}

.pm-pothole-card {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
}

.pm-pothole-card-image img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    display: block;
}

.pm-pothole-card-image-empty {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
    color: #666;
    font-size: 0.95rem;
}

.pm-pothole-card-body {
    padding: 18px;
}

.pm-pothole-card-body h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
}

.pm-pothole-card-body h3 a {
    color: #111;
    text-decoration: none;
}

.pm-pothole-card-severity {
    margin-bottom: 0.8rem;
    color: #555;
}

.pm-pothole-card-desc {
    margin-bottom: 1rem;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.6;
}

.pm-pothole-card-heading {
  font-size: var(--wp--preset--font-size--xx-large);
  font-weight: 700;
  letter-spacing: -0.1px;
  line-height: 1.125;
}

.vote-btn {
    border: 1px solid #ccc;
    background: #fafafa;
    color: #333;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.vote-btn:hover {
    background-color: #f0f0f0;
}

