/* Map.js Specific Styles */

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */

:root {
    /* Category Gradients */
    --gradient-wild: linear-gradient(135deg, #34A853 0%, #2d9248 100%);
    --gradient-campsite: linear-gradient(135deg, #4285F4 0%, #3b78db 100%);
    --gradient-discovery: linear-gradient(135deg, #FBBC04 0%, #e5aa04 100%);
    --gradient-petrol: linear-gradient(135deg, #9333ea 0%, #7c2ccf 100%);

    /* Category Colors */
    --color-wild: #34A853;
    --color-wild-dark: #2d9248;
    --color-campsite: #4285F4;
    --color-campsite-dark: #3b78db;
    --color-discovery: #FBBC04;
    --color-discovery-dark: #e5aa04;
    --color-petrol: #9333ea;
    --color-petrol-dark: #7c2ccf;

    /* Category RGB (for rgba usage) */
    --color-wild-rgb: 52, 168, 83;
    --color-campsite-rgb: 66, 133, 244;
    --color-discovery-rgb: 251, 188, 4;
    --color-petrol-rgb: 147, 51, 234;
}

/* ============================================
   ADD/EDIT MODAL CONTAINERS
   ============================================ */

.modal-popup-container {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    width: 650px;
    max-width: 90vw;
    border: 1px solid var(--border-light);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.modal-popup-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--slate-100);
}

.modal-popup-header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-popup-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.modal-popup-icon.wild {
    background: var(--gradient-wild);
}

.modal-popup-icon.campsite {
    background: var(--gradient-campsite);
}

.modal-popup-icon.discovery {
    background: var(--gradient-discovery);
}

.modal-popup-icon.petrol {
    background: var(--gradient-petrol);
}

.modal-popup-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--slate-800);
}

.modal-popup-subtitle {
    margin: 0.25rem 0 0 0;
    font-size: 0.75rem;
    color: var(--slate-400);
}

.modal-popup-scrollable {
    flex: 0 1 auto; /* Don't grow, but allow shrinking */
    overflow-y: auto;
    padding: 1.5rem;
    max-height: calc(85vh - 150px); /* Prevent taking too much space */
}

.modal-popup-footer {
    padding: 1rem 1.5rem;
    border-top: 2px solid var(--slate-100);
    background: white;
    border-radius: 0 0 1rem 1rem;
}

.modal-popup-footer-buttons {
    display: flex;
    gap: 0.75rem;
}

/* ============================================
   FORM SECTIONS
   ============================================ */

.form-section {
    background: var(--slate-50);
    border: 1px solid var(--border-light);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.form-section-pin {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 2px 4px rgba(52,168,83,0.3);
}

.form-section-pin.wild {
    background: var(--gradient-wild);
}

.form-section-pin.campsite {
    background: var(--gradient-campsite);
}

.form-section-pin.discovery {
    background: var(--gradient-discovery);
}

.form-section-pin.petrol {
    background: var(--gradient-petrol);
}

.form-section-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--slate-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-grid-2col {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

/* ============================================
   FORM INPUTS
   ============================================ */

.form-field-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--slate-600);
    margin-bottom: 0.4rem;
}

.form-field-label-optional {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--slate-400);
}

.form-field-label-required {
    color: var(--danger);
}

.form-input-text,
.form-input-select,
.form-input-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.form-input-text:focus,
.form-input-select:focus,
.form-input-textarea:focus {
    outline: none;
}

.form-input-text.wild:focus,
.form-input-select.wild:focus,
.form-input-textarea.wild:focus {
    border-color: var(--color-wild);
    box-shadow: 0 0 0 3px rgba(var(--color-wild-rgb), 0.1);
}

.form-input-text.campsite:focus,
.form-input-select.campsite:focus,
.form-input-textarea.campsite:focus {
    border-color: var(--color-campsite);
    box-shadow: 0 0 0 3px rgba(var(--color-campsite-rgb), 0.1);
}

.form-input-text.discovery:focus,
.form-input-select.discovery:focus,
.form-input-textarea.discovery:focus {
    border-color: var(--color-discovery);
    box-shadow: 0 0 0 3px rgba(var(--color-discovery-rgb), 0.1);
}

.form-input-text.petrol:focus,
.form-input-select.petrol:focus,
.form-input-textarea.petrol:focus {
    border-color: var(--color-petrol);
    box-shadow: 0 0 0 3px rgba(var(--color-petrol-rgb), 0.1);
}

.form-input-textarea {
    resize: none;
}

/* ============================================
   STAR RATING
   ============================================ */

.star-rating-container {
    display: flex;
    justify-content: space-around;
    gap: 0.35rem;
    padding: 0.65rem 0.75rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    min-height: 51px;
    align-items: center;
}

.star-rating,
.star-rating-campsite,
.star-rating-discovery,
.star-rating-edit,
.star-rating-edit-campsite,
.star-rating-edit-discovery {
    cursor: pointer;
    width: 28px;
    height: 28px;
    transition: all 0.2s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.star-rating svg,
.star-rating-campsite svg,
.star-rating-discovery svg,
.star-rating-edit svg,
.star-rating-edit-campsite svg,
.star-rating-edit-discovery svg {
    width: 28px;
    height: 28px;
    fill: #cbd5e1;
    stroke: #64748b;
    stroke-width: 1.5px;
    transition: all 0.2s ease;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    display: block;
}

.star-rating:hover svg,
.star-rating-campsite:hover svg,
.star-rating-discovery:hover svg,
.star-rating-edit:hover svg,
.star-rating-edit-campsite:hover svg,
.star-rating-edit-discovery:hover svg {
    fill: #fbbf24;
    stroke: #f59e0b;
    transform: scale(1.15);
    filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.3));
}

.star-rating.active svg,
.star-rating-campsite.active svg,
.star-rating-discovery.active svg,
.star-rating-edit.active svg,
.star-rating-edit-campsite.active svg,
.star-rating-edit-discovery.active svg {
    fill: #fcd34d;
    stroke: #f59e0b;
    filter: drop-shadow(0 2px 8px rgba(252, 211, 77, 0.6));
    animation: starPop 0.3s ease;
}

@keyframes starPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-more-options {
    flex: 1;
    padding: 0.75rem 1rem;
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-600);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-more-options:hover {
    border-color: var(--border);
    background: var(--slate-50);
}

.btn-submit {
    flex: 1.5;
    padding: 0.75rem 1.5rem;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit.wild {
    background: var(--gradient-wild);
    box-shadow: 0 4px 12px rgba(52,168,83,0.3);
}

.btn-submit.wild:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(52,168,83,0.4);
}

.btn-submit.campsite {
    background: var(--gradient-campsite);
    box-shadow: 0 4px 12px rgba(66,133,244,0.3);
}

.btn-submit.campsite:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(66,133,244,0.4);
}

.btn-submit.discovery {
    background: var(--gradient-discovery);
    box-shadow: 0 4px 12px rgba(251,188,4,0.3);
}

.btn-submit.discovery:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(251,188,4,0.4);
}

.btn-submit.petrol {
    background: var(--gradient-petrol);
    box-shadow: 0 4px 12px rgba(147,51,234,0.3);
}

.btn-submit.petrol:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(147,51,234,0.4);
}

/* ============================================
   CLOSE BUTTON
   ============================================ */

.close-btn {
    background: none;
    border: none;
    color: var(--slate-300);
    font-size: 1.75rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--slate-400);
}

/* ============================================
   MORE OPTIONS SECTION
   ============================================ */

.more-options-section {
    display: none;
    animation: slideDown 0.3s ease;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}

.more-options-section.visible {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   CHECKBOXES & CHECKBOX GRID
   ============================================ */

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.checkbox-item:hover {
    border-color: var(--border);
    background: var(--slate-50);
}

.checkbox-item input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.checkbox-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--slate-700);
    cursor: pointer;
    flex: 1;
}

/* ============================================
   NOISE LEVEL BUTTONS
   ============================================ */

.noise-btn-group {
    display: flex;
    gap: 0.5rem;
}

.noise-btn,
.noise-btn-edit {
    flex: 1;
    padding: 0.75rem 0.5rem;
    border: 2px solid var(--border-light);
    border-radius: 0.5rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
}

.noise-btn:hover,
.noise-btn-edit:hover {
    border-color: var(--border);
    background: var(--slate-50);
}

.noise-btn.active,
.noise-btn-edit.active {
    border-color: var(--color-wild);
    background: rgba(var(--color-wild-rgb), 0.1);
    color: var(--color-wild-dark);
}

/* ============================================
   PHOTO UPLOAD AREA
   ============================================ */

.photo-upload-area {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.photo-preview-grid {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.photo-preview-item {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 2px solid var(--border-light);
}

.photo-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-remove-btn {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: rgba(239,68,68,0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    transition: all 0.2s;
}

.photo-remove-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.photo-primary-badge {
    position: absolute;
    bottom: 0.25rem;
    left: 0.25rem;
    background: rgba(52,168,83,0.9);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
}

.photo-upload-btn {
    width: 120px;
    height: 120px;
    border: 2px dashed var(--border);
    border-radius: 0.5rem;
    background: var(--slate-50);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.photo-upload-btn:hover {
    border-color: var(--slate-400);
    background: white;
}

.photo-upload-icon {
    font-size: 2rem;
}

.photo-upload-text {
    font-size: 0.75rem;
    color: var(--slate-600);
    font-weight: 600;
}

/* ============================================
   SPINNER (for loading states)
   ============================================ */

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

.btn-spinner {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.spinner-icon {
    width: 1rem;
    height: 1rem;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ============================================
   SUBLABEL (helper text)
   ============================================ */

.sublabel {
    font-size: 0.75rem;
    color: var(--slate-400);
    margin-top: 0.25rem;
    display: block;
}

/* ============================================
   TAG BUTTONS (Discovery modal)
   ============================================ */

.tag-btn {
    padding: 0.45rem 0.5rem;
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.tag-btn:hover {
    border-color: var(--border);
    background: var(--slate-50);
}

.tag-btn.active,
.tag-btn.selected {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.tag-btn-icon {
    font-size: 1rem;
    line-height: 1;
    width: 1rem;
    height: 1rem;
    display: inline-block;
    flex-shrink: 0;
}

.tag-btn-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ===================================
   ACHIEVEMENT BADGE NOTIFICATION
   =================================== */
.achievement-notification {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.achievement-notification-icon {
    font-size: 3rem;
    line-height: 1;
}

.achievement-notification-content {
    flex: 1;
}

.achievement-notification-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.achievement-notification-name {
    font-weight: 600;
    color: #34A853;
    margin-bottom: 0.25rem;
}

.achievement-notification-description {
    font-size: 0.85rem;
    color: #64748b;
}

.achievement-notification-points {
    font-size: 0.75rem;
    color: #f59e0b;
    margin-top: 0.5rem;
    font-weight: 600;
}

/* ===================================
   LOCATION TYPE SELECTOR MODAL
   =================================== */
.location-type-modal {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.3), 0 10px 30px -10px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    width: 480px;
    max-width: 90vw;
    border: 1px solid #e2e8f0;
}

.location-type-modal-header h4 {
    font-size: 1.25rem;
    margin: 0;
    font-weight: 700;
    color: var(--secondary);
}

.location-type-modal-header p {
    font-size: 0.85rem;
    margin: 0.25rem 0 0 0;
    color: #64748b;
}

.location-type-divider {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
}

.location-type-btn {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.location-type-btn:hover {
    background: #f8fafc;
    border-color: #FF6B35;
}

.location-type-btn-compact {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    gap: 0.4rem;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    display: flex !important;
    align-items: center !important;
    /* Petrol Station - Purple theme */
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%) !important;
    border-color: #d8b4fe !important;
}

.location-type-btn-compact:hover {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%) !important;
    border-color: #c084fc !important;
    box-shadow: 0 8px 20px -6px rgba(168, 85, 247, 0.4);
}

.location-type-btn-compact .location-type-btn-icon {
    font-size: 0.95rem;
}

.location-type-btn-compact .location-type-btn-label {
    flex-shrink: 0;
}

.location-type-btn-compact .location-type-btn-description {
    font-size: 0.75rem;
    flex-shrink: 0;
}

.location-type-btn-icon {
    font-size: 1.1rem;
}

.location-type-btn-label {
    color: #64748b;
    font-weight: 500;
}

.location-type-btn-description {
    color: #94a3b8;
    font-size: 0.75rem;
    margin-left: auto;
}

/* ===================================
   LOCK OVERLAY (Login Required)
   =================================== */
.lock-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    pointer-events: none;
}

.lock-overlay-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.lock-overlay-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    color: var(--secondary);
    font-weight: 700;
}

.lock-overlay-content p {
    margin: 0;
    font-size: 1rem;
    color: var(--text);
    font-weight: 500;
}

/* ===================================
   EDIT LOCATION MODAL
   =================================== */
.edit-location-form {
    padding: 0.5rem 0;
}

form#edit-location-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.edit-location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
}

/* Column Headers */
.edit-column-header {
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.edit-column-header-pin {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.edit-column-header-icon {
    font-size: 1.1rem;
}

/* Field Lists */
.edit-field-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.edit-field-group {
    display: flex;
    flex-direction: column;
}

.edit-field-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.4rem;
}

.edit-required {
    color: #ef4444;
}

/* Form Inputs */
.edit-field-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.edit-field-input:focus {
    outline: none;
    border-color: var(--primary);
}

.edit-field-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.9rem;
}

.edit-field-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    resize: vertical;
    transition: all 0.2s;
    font-family: inherit;
}

.edit-field-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Rating Stars */
.edit-rating-container {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
}

.edit-rating-star {
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.2s;
}

.edit-rating-star[data-active="true"] {
    opacity: 1;
}

.edit-rating-star[data-active="false"] {
    opacity: 0.3;
}

/* Noise Buttons */
.edit-noise-buttons {
    display: flex;
    gap: 0.4rem;
}

.edit-noise-button {
    flex: 1;
    padding: 0.5rem 0.25rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 0.4rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #475569;
}

.edit-noise-button[data-selected="true"] {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.edit-noise-icon {
    font-size: 1rem;
    margin-bottom: 0.1rem;
}

.edit-noise-button[data-selected="true"] .edit-noise-icon {
    color: white;
}

.edit-noise-button[data-selected="false"] .edit-noise-icon {
    color: #475569;
}

.edit-noise-label {
    font-size: 0.6rem;
}

.edit-noise-button[data-selected="true"] .edit-noise-label {
    color: white;
}

.edit-noise-button[data-selected="false"] .edit-noise-label {
    color: #94a3b8;
}

/* Level Ground Checkbox */
.edit-level-ground-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.75rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.edit-level-ground-label:hover {
    background: #f1f5f9;
}

.edit-level-ground-checkbox {
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
}

.edit-level-ground-text {
    font-size: 0.85rem;
    color: #475569;
    font-weight: 500;
}

/* Amenity Checkboxes */
.edit-amenities-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.edit-amenity-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.75rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.edit-amenity-checkbox-label:hover {
    background: #f8fafc;
}

.edit-amenity-checkbox {
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
}

.edit-amenity-checkbox-text {
    font-size: 0.85rem;
    color: #475569;
    font-weight: 500;
}

/* Waste Facilities */
.edit-waste-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.edit-waste-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    padding: 0.6rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 0.4rem;
    transition: all 0.2s;
    font-size: 0.8rem;
}

.edit-waste-checkbox-label:hover {
    background: #f8fafc;
}

.edit-waste-checkbox {
    width: 1rem;
    height: 1rem;
    cursor: pointer;
}

.edit-waste-checkbox-text {
    color: #475569;
}

/* Photo Upload */
.edit-photo-thumbnails {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    min-height: 80px;
}

.edit-photo-input {
    display: none;
}

.edit-add-photo-btn {
    width: 100%;
    padding: 0.75rem;
    border: 2px dashed #cbd5e1;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    background: white;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
}

.edit-add-photo-btn:hover {
    background: #f8fafc;
}

/* Form Actions */
.edit-form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 2px solid #f1f5f9;
}

.edit-cancel-btn {
    flex: 1;
    padding: 0.9rem;
    background: white;
    color: #64748b;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.edit-submit-btn {
    flex: 2;
    padding: 0.9rem;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

/* ===================================
   PHOTO THUMBNAILS (Edit Modal)
   =================================== */
.edit-photo-thumbnail {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 3px solid #e2e8f0;
}

.edit-photo-thumbnail[data-primary="true"] {
    border-color: #f59e0b;
}

.edit-photo-thumbnail[data-new="true"] {
    border-color: #3b82f6;
    border-width: 2px;
}

.edit-photo-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edit-photo-primary-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(245, 158, 11, 0.95);
    color: white;
    padding: 0.15rem;
    text-align: center;
    font-size: 0.65rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.edit-photo-new-badge {
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    background: rgba(59, 130, 246, 0.95);
    color: white;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.65rem;
    font-weight: bold;
}

.edit-photo-set-primary-btn {
    position: absolute;
    bottom: 0.25rem;
    left: 0.25rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 1.75rem;
    height: 1.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s;
}

.edit-photo-delete-btn {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: rgba(239, 68, 68, 0.95);
    color: white;
    border: none;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ===================================
   ADD LOCATION - MORE OPTIONS SECTIONS
   =================================== */
.add-options-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.add-options-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.add-options-icon {
    font-size: 1.1rem;
}

.add-options-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.add-options-sublabel {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-left: 0.25rem;
}

.add-photo-thumbnails {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.add-photo-input {
    display: none;
}

.add-photo-btn {
    width: 100%;
    padding: 0.75rem;
    border: 2px dashed #cbd5e1;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    background: white;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
}

.add-photo-help-text {
    font-size: 0.7rem;
    color: #94a3b8;
    margin: 0.5rem 0 0 0;
    text-align: center;
}

.add-conditions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.add-conditions-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.4rem;
}

.add-conditions-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    background: white;
}

/* ===================================
   LOADING SPINNER
   =================================== */
.loading-spinner-container {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.loading-spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ===================================
   COST INPUT WITH CURRENCY SYMBOL
   =================================== */
.cost-input-wrapper {
    display: flex;
    gap: 0.5rem;
}

.cost-currency-symbol {
    padding: 0.75rem 0.5rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem 0 0 0.5rem;
    font-size: 0.9rem;
    color: #64748b;
}

.cost-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-left: none;
    border-radius: 0 0.5rem 0.5rem 0;
    font-size: 0.9rem;
}

.cost-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ===================================
   NOISE LEVEL BUTTONS (Add Location)
   =================================== */
.add-noise-section {
    margin-bottom: 1rem;
}

.add-noise-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.add-noise-buttons {
    display: flex;
    gap: 0.5rem;
}

.add-noise-btn {
    flex: 1;
    padding: 0.65rem 0.5rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
}

.add-noise-btn-icon {
    font-size: 1.2rem;
    margin-bottom: 0.15rem;
}

.add-noise-btn-label {
    font-size: 0.65rem;
    color: #94a3b8;
}

/* Level Ground Checkbox (Add Location) */
.add-level-ground-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.75rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.add-level-ground-label:hover {
    background: #f8fafc;
}

.add-level-ground-checkbox {
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
}

.add-level-ground-text {
    font-size: 0.85rem;
    color: #475569;
    font-weight: 500;
}

/* Waste Facilities Grid (Add Location) */
.add-waste-facilities-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.25rem;
}

.add-waste-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.add-waste-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.75rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.add-waste-checkbox-label:hover {
    background: #f8fafc;
}

.add-waste-checkbox {
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
}

.add-waste-checkbox-text {
    font-size: 0.85rem;
    color: #475569;
}

/* ===================================
   ADD LOCATION - PHOTO THUMBNAILS
   =================================== */
.add-photo-thumb {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 0.4rem;
    overflow: hidden;
    border: 2px solid #e2e8f0;
}

.add-photo-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.add-photo-delete {
    position: absolute;
    top: 0.2rem;
    right: 0.2rem;
    background: rgba(239, 68, 68, 0.95);
    color: white;
    border: none;
    border-radius: 50%;
    width: 1.3rem;
    height: 1.3rem;
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.add-photo-delete:hover {
    background: rgb(239, 68, 68);
}

/* ===================================
   TAG BUTTONS GRID
   =================================== */
.tag-buttons-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 0.5rem;
}

.tag-btn-icon {
    font-size: 1.25rem;
}

/* ===================================
   ACTION BUTTONS (More Options, Submit)
   =================================== */
.action-buttons-row {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.action-btn-icon {
    font-size: 1.1rem;
}

/* ===================================
   CONFIRMATION DIALOGS
   =================================== */
.confirm-dialog-container {
    text-align: center;
    padding: 1rem;
}

.confirm-dialog-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.confirm-dialog-message {
    color: #1e293b;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.confirm-dialog-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.confirm-cancel-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: white;
    color: #64748b;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.confirm-delete-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* ============================================
   REVIEWS
   ============================================ */

/* Review Form Modal */
.review-form-modal {
    background: white;
    border-radius: 1rem;
}

.review-form-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--slate-100);
}

.review-location-title {
    color: var(--slate-600);
    font-size: 0.9rem;
    margin: 0.25rem 0 0 0;
}

.review-form {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.review-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.review-form-label {
    font-weight: 600;
    color: var(--slate-700);
    font-size: 0.9rem;
}

.review-stars {
    display: flex;
    gap: 0.25rem;
    font-size: 2rem;
}

.review-star {
    cursor: pointer;
    color: var(--slate-300);
    transition: all 0.2s ease;
}

.review-star:hover,
.review-star.selected {
    color: #fbbf24;
    transform: scale(1.1);
}

.review-form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.review-form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.review-form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.2s ease;
}

.review-form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.review-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--slate-700);
    cursor: pointer;
}

.review-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.review-form-file {
    padding: 0.5rem;
    border: 2px dashed var(--border);
    border-radius: 0.5rem;
    cursor: pointer;
}

.review-form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

/* Reviews Display */
.reviews-container {
    padding: 1rem;
}

.no-reviews {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--slate-500);
}

.reviews-stats {
    background: var(--slate-50);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.reviews-average {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.reviews-rating-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--slate-900);
    line-height: 1;
}

.reviews-stars {
    display: flex;
    gap: 0.25rem;
    font-size: 1.5rem;
}

.star-filled {
    color: #fbbf24;
}

.star-half {
    color: #fbbf24;
    opacity: 0.5;
}

.star-empty {
    color: var(--slate-300);
}

.reviews-count {
    color: var(--slate-600);
    font-size: 0.9rem;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.review-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.25rem;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.review-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    object-fit: cover;
}

.review-avatar-placeholder {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.review-user-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.review-username {
    font-weight: 600;
    color: var(--slate-900);
}

.review-date {
    font-size: 0.85rem;
    color: var(--slate-500);
}

.review-rating {
    display: flex;
    gap: 0.125rem;
    font-size: 1.25rem;
}

.review-title {
    font-weight: 600;
    color: var(--slate-900);
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.review-text {
    color: var(--slate-700);
    line-height: 1.6;
    margin: 0 0 0.75rem 0;
}

.review-visit-date {
    color: var(--slate-600);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.review-would-return {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0.5rem 0;
}

.review-would-return.positive {
    background: #dcfce7;
    color: #15803d;
}

.review-would-return.negative {
    background: #fee2e2;
    color: #b91c1c;
}

.review-photo {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin: 0.75rem 0;
}

.review-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

/* ============================================
   LOCATION ACTIONS
   ============================================ */

/* Report Form */
.report-form {
    padding: 0.5rem;
}

/* Share Modal */
.share-modal {
    padding: 0.5rem;
}

.share-url-container {
    display: flex;
    gap: 0.5rem;
}

.share-url-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.95rem;
    background: var(--slate-50);
}

/* Add to Trip Modal */
.add-to-trip-modal {
    padding: 0.5rem;
}

.trip-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
}

.trip-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border: 2px solid var(--border);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.trip-option:hover {
    border-color: var(--primary);
    background: var(--slate-50);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.trip-option-icon {
    font-size: 2rem;
    line-height: 1;
}

.trip-option-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.trip-option-name {
    font-weight: 600;
    color: var(--slate-900);
    font-size: 1rem;
}

.trip-option-date {
    font-size: 0.85rem;
    color: var(--slate-600);
}

/* Checked-in state */
.check-in-btn.checked-in {
    background: #dcfce7;
    color: #15803d;
    border-color: #86efac;
    cursor: default;
}

.check-in-btn.checked-in:hover {
    background: #dcfce7;
    transform: none;
}

/* ============================================
   CUSTOM MARKERS
   ============================================ */

.custom-marker {
    position: absolute;
    cursor: pointer;
    transform: translate(-50%, -100%);
    z-index: 1;
}

.marker-pin {
    width: 40px;
    height: 40px;
    border-radius: 50% 50% 50% 0;
    background: #f97316;
    position: relative;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.custom-marker:hover .marker-pin {
    transform: rotate(-45deg) scale(1.15);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.marker-icon {
    transform: rotate(45deg);
    font-size: 1rem;
    line-height: 1;
    background: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
}

.marker-shadow {
    width: 40px;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 70%);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
}

.marker-highlighted {
    animation: marker-pulse 1.5s ease-in-out infinite;
}

.marker-selected .marker-pin {
    transform: rotate(-45deg) scale(1.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    filter: brightness(1.1);
}

@keyframes marker-pulse {
    0%, 100% {
        transform: rotate(-45deg) scale(1);
    }
    50% {
        transform: rotate(-45deg) scale(1.2);
    }
}

/* Temporary Marker */
.temp-marker .temp-marker-pin {
    animation: temp-marker-bounce 0.6s ease-out;
}

@keyframes temp-marker-bounce {
    0% {
        transform: rotate(-45deg) translateY(-100px);
        opacity: 0;
    }
    50% {
        transform: rotate(-45deg) translateY(10px);
    }
    100% {
        transform: rotate(-45deg) translateY(0);
        opacity: 1;
    }
}

/* Cluster Marker */
.cluster-marker {
    position: absolute;
    cursor: pointer;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.cluster-marker-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cluster-marker:hover .cluster-marker-circle {
    transform: scale(1.15);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.cluster-marker-count {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

/* ============================================
   FILTERS & SEARCH
   ============================================ */

/* Filter Panel */
.filter-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.filter-panel.active {
    right: 0;
}

.filter-panel-header {
    padding: 1.5rem;
    border-bottom: 2px solid var(--slate-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.filter-panel-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--slate-900);
    margin: 0;
}

.filter-panel-close {
    width: 2rem;
    height: 2rem;
    border: none;
    background: var(--slate-100);
    border-radius: 0.5rem;
    color: var(--slate-600);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.filter-panel-close:hover {
    background: var(--slate-200);
    color: var(--slate-900);
}

.filter-panel-content {
    padding: 1.5rem;
}

.filter-section {
    margin-bottom: 2rem;
}

.filter-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--slate-700);
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
}

.filter-option:hover {
    background: var(--slate-50);
}

.filter-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.filter-option-label {
    flex: 1;
    color: var(--slate-700);
    font-weight: 500;
    cursor: pointer;
}

.filter-option-count {
    color: var(--slate-500);
    font-size: 0.85rem;
}

/* Search Input */
.map-search-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.map-search-input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.map-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.map-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-400);
    font-size: 1.1rem;
}

/* Rating Filter */
.rating-filter-slider {
    width: 100%;
    padding: 0.5rem 0;
}

.rating-filter-value {
    display: inline-block;
    margin-left: 0.5rem;
    color: var(--slate-700);
    font-weight: 600;
}

/* Filter Actions */
.filter-actions {
    padding: 1rem 1.5rem;
    border-top: 2px solid var(--slate-100);
    position: sticky;
    bottom: 0;
    background: white;
}

.clear-filters-btn {
    width: 100%;
    padding: 0.75rem;
    background: white;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    color: var(--slate-700);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-filters-btn:hover {
    background: var(--slate-50);
    border-color: var(--slate-400);
}

/* Filter Button (Map Controls) */
.filter-toggle-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--slate-700);
    transition: all 0.2s ease;
}

.filter-toggle-btn:hover {
    background: var(--slate-50);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.filter-count-badge {
    display: none;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    align-items: center;
    justify-content: center;
}

/* Filter Panel Backdrop */
.filter-panel-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999;
}

.filter-panel-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

@media (max-width: 768px) {
    .filter-panel {
        width: 100%;
        right: -100%;
    }

    .filter-panel.active {
        right: 0;
    }
}

/* ============================================
   ACHIEVEMENTS
   ============================================ */

/* Achievement Notification */
.achievement-notification {
    position: fixed;
    top: 20px;
    right: -400px;
    width: 350px;
    max-width: 90vw;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
    padding: 1.5rem;
    z-index: 10000;
    transition: right 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.achievement-notification.show {
    right: 20px;
}

.achievement-notification-content {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.achievement-notification-icon {
    font-size: 3rem;
    line-height: 1;
}

.achievement-notification-details {
    flex: 1;
}

.achievement-notification-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.25rem;
}

.achievement-notification-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.achievement-notification-description {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.5rem;
}

.achievement-notification-points {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Achievements Modal */
.achievements-modal {
    max-height: 80vh;
    overflow-y: auto;
}

.achievements-header {
    padding: 1rem;
    background: var(--slate-50);
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.achievements-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.achievement-stat {
    text-align: center;
}

.achievement-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.achievement-stat-label {
    font-size: 0.85rem;
    color: var(--slate-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.achievement-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    transition: all 0.2s ease;
}

.achievement-card.unlocked {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.05) 0%, rgba(234, 88, 12, 0.05) 100%);
}

.achievement-card.locked {
    opacity: 0.6;
}

.achievement-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.achievement-card-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.achievement-card.locked .achievement-card-icon {
    filter: grayscale(1);
}

.achievement-card-content {
    flex: 1;
}

.achievement-card-name {
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.achievement-card-description {
    font-size: 0.85rem;
    color: var(--slate-600);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.achievement-card-points {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

.achievement-card.unlocked .achievement-card-points {
    color: #15803d;
}

/* Achievement Progress Bar */
.achievement-progress {
    margin-bottom: 0.75rem;
}

.achievement-progress-bar {
    height: 0.5rem;
    background: var(--slate-200);
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.achievement-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 1rem;
    transition: width 0.3s ease;
}

.achievement-progress-text {
    font-size: 0.75rem;
    color: var(--slate-500);
}

@media (max-width: 768px) {
    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .achievement-notification {
        width: calc(100vw - 40px);
    }

    .achievements-stats {
        gap: 1rem;
    }
}

/* ============================================
   USER LOCATION MARKER
   ============================================ */

.user-location-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.user-location-dot {
    width: 16px;
    height: 16px;
    background: #4285F4;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.user-location-pulse {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(66, 133, 244, 0.3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: user-location-pulse 2s ease-out infinite;
    z-index: 1;
}

@keyframes user-location-pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}
