
/* Container */
.halloweenmap-container {
    max-width: 100%;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Email Modal */
.halloween-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.halloween-modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: halloween-modal-appear 0.3s ease;
}

@keyframes halloween-modal-appear {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.halloween-modal-content h2 {
    color: #e8701a;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.halloween-modal-content h2 i {
    color: #6b2fa0;
}

.halloween-privacy-note {
    font-size: 12px;
    color: #666;
    margin: 15px 0;
}

/* Map */
#halloween-map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
}

/* Custom marker styling */
.halloween-custom-marker {
    background: transparent;
    border: none;
}

/* Leaflet popup customization */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    padding: 0;
    min-width: 280px;
    max-width: 280px;
}

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

.halloween-popup {
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
}

.halloween-popup h3 {
    margin: 0 0 10px 0;
    color: #e8701a;
    font-size: 15px;
    line-height: 1.3;
    word-wrap: break-word;
}

.halloween-popup-type {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 8px;
}

.halloween-popup-type.walkthrough {
    background: #e8701a;
    color: white;
}

.halloween-popup-type.standard {
    background: #6b2fa0;
    color: white;
}

/* Current Rating Badge */
.halloween-current-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.halloween-rating-badge {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #000;
    font-weight: bold;
    font-size: 16px;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.halloween-rating-count {
    font-size: 12px;
    color: #666;
}

.halloween-popup-photo {
    width: 100%;
    border-radius: 6px;
    margin: 8px 0;
    max-height: 150px;
    object-fit: cover;
}

.halloween-popup-description {
    margin: 8px 0;
    font-size: 13px;
    line-height: 1.4;
    word-wrap: break-word;
}

.halloween-popup-actions {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.halloween-popup-actions button {
    flex: 1;
    min-width: 80px;
    padding: 6px 8px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
}

.halloween-popup-actions button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.halloween-btn-directions {
    background: #0d6efd;
    color: white;
}

.halloween-btn-share {
    background: #6c757d;
    color: white;
}

.halloween-btn-report {
    background: #dc3545;
    color: white;
}

/* Rating Widget */
.halloween-rating-widget {
    text-align: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 10px 0;
}

.halloween-rating-widget h4 {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #333;
}

.halloween-rating-input {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.halloween-rating-bulb {
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s;
    filter: grayscale(100%);
    opacity: 0.4;
    display: inline-block;
}

.halloween-rating-bulb:hover,
.halloween-rating-bulb.hover {
    transform: scale(1.15);
    filter: grayscale(0%) brightness(1.2);
    opacity: 1;
}

.halloween-rating-bulb.selected {
    filter: grayscale(0%) brightness(1.3);
    opacity: 1;
    animation: pulse 0.3s ease-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.halloween-bulb {
    display: inline-block;
    font-size: 18px;
}

.halloween-bulb-on {
    filter: grayscale(0%);
    opacity: 1;
}

.halloween-bulb-half {
    filter: grayscale(0%);
    opacity: 0.6;
}

.halloween-bulb-off {
    filter: grayscale(100%);
    opacity: 0.3;
}

.halloween-rating-text {
    font-size: 14px;
    color: #666;
    margin-left: 5px;
}

/* Controls */
.halloween-controls {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.halloween-search-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 15px;
    transition: border-color 0.2s;
}

.halloween-search-input:focus {
    outline: none;
    border-color: #e8701a;
}

.halloween-filters {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.halloween-filters label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
}

.halloween-filters label span {
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.halloween-filters input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.halloween-filters select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

/* Add Button */
.halloween-add-button-container {
    text-align: center;
    margin: 20px 0;
}

/* Form */
.halloween-form-container {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.halloween-form-container h3 {
    color: #e8701a;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.halloween-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.halloween-form-group {
    display: flex;
    flex-direction: column;
}

.halloween-form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.halloween-form-group input[type="text"],
.halloween-form-group input[type="email"],
.halloween-form-group input[type="file"],
.halloween-form-group textarea,
.halloween-form-group select {
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.halloween-form-group input:focus,
.halloween-form-group textarea:focus,
.halloween-form-group select:focus {
    outline: none;
    border-color: #e8701a;
}

.halloween-form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.halloween-form-group small {
    color: #666;
    font-size: 13px;
    margin-top: 4px;
}

/* Display Type Selector */
.halloween-display-type-group {
    grid-column: 1 / -1;
}

.halloween-display-type-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.halloween-display-type-selector input[type="radio"] {
    display: none;
}

.halloween-type-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
    text-align: center;
}

.halloween-type-option:hover {
    border-color: #e8701a;
    background: #fff4ea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.15);
}

.halloween-display-type-selector input[type="radio"]:checked + .halloween-type-option {
    border-color: #e8701a;
    background: linear-gradient(135deg, #fff4ea 0%, #ffe6d1 100%);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.2);
}

.halloween-type-icon {
    font-size: 48px;
    margin-bottom: 10px;
    display: block;
}

.halloween-type-label {
    font-weight: bold;
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

.halloween-type-desc {
    font-size: 13px;
    color: #666;
    display: block;
}

.halloween-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Buttons */
.halloween-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.halloween-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.halloween-btn:active {
    transform: translateY(0);
}

.halloween-btn-primary {
    background: #e8701a;
    color: white;
}

.halloweenmap-container .halloween-btn-primary:hover,
.halloweenmap-container .halloween-btn-primary:focus {
    background: #b8520f;
    color: white;
}

.halloween-btn-success {
    background: #6b2fa0;
    color: white;
}

/* Container prefix so theme button:hover colours can't override the white text */
.halloweenmap-container .halloween-btn-success:hover,
.halloweenmap-container .halloween-btn-success:focus {
    background: #e8701a;
    color: white;
}

.halloween-btn-plus {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.halloween-btn-secondary {
    background: #6c757d;
    color: white;
}

/* Top Lists */
.halloween-top-lists {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.halloween-top-list {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.halloween-top-list h3 {
    color: #e8701a;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.halloween-list-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.halloween-list-item {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: 12px;
    align-items: center;
}

.halloween-list-item:last-child {
    border-bottom: none;
}

.halloween-list-item:hover {
    background: #f8f9fa;
    border-radius: 6px;
}

.halloween-list-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #e8701a 0%, #b8520f 100%);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
}

.halloween-list-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.halloween-list-address {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    line-height: 1.3;
    word-wrap: break-word;
}

.halloween-list-rating {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.halloween-list-rating .halloween-rating-badge {
    font-size: 13px;
    padding: 3px 8px;
}

.halloween-list-rating .halloween-rating-count {
    font-size: 11px;
}

.halloween-list-view-btn {
    background: #6b2fa0;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.halloween-list-view-btn:hover {
    background: #4e1f7a;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(45, 122, 62, 0.3);
}

/* Loading */
.halloween-loading {
    text-align: center;
    color: #666;
    padding: 20px;
    font-style: italic;
}

/* Season Closed */
.halloween-season-closed {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin: 20px 0;
}

.halloween-season-closed p {
    font-size: 18px;
    color: #856404;
    margin: 0;
}

/* No Photo / Add Photo */
.halloween-no-photo {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin: 8px 0;
}

.halloween-add-photo-btn {
    background: linear-gradient(135deg, #6b2fa0 0%, #4e1f7a 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(45, 122, 62, 0.2);
}

.halloween-add-photo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 122, 62, 0.3);
}

.halloween-no-photo small {
    display: block;
    color: #666;
    font-size: 12px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .halloween-modal-content {
        padding: 20px;
    }
    
    .halloween-form-row {
        grid-template-columns: 1fr;
    }
    
    .halloween-filters {
        flex-direction: column;
        gap: 10px;
    }
    
    .halloween-popup-actions {
        flex-direction: column;
    }
    
    .halloween-top-lists {
        grid-template-columns: 1fr;
    }
    
    .halloween-form-actions {
        flex-direction: column;
    }
    
    .halloween-btn {
        width: 100%;
        justify-content: center;
    }
}

