/* =====================================================
   eFoil-Spot — Design System
   Brand: E-SURFER · Colors: #129C8B / #000 / #FFF
   Fonts: Karantina (display) · Poppins (body)
   ===================================================== */

/* === CUSTOM PROPERTIES === */
:root {
    --green:        #129C8B;
    --green-dark:   #0d7a6c;
    --green-light:  #e6f5f3;
    --green-xlight: #f0faf8;
    --black:        #000000;
    --white:        #FFFFFF;
    --gray-50:      #F5F5F7;
    --gray-100:     #E8E8ED;
    --gray-200:     #D1D1D6;
    --gray-400:     #8E8E93;
    --gray-600:     #48484A;
    --gray-700:     #3A3A3C;
    --gray-800:     #1C1C1E;
    --gray-900:     #111111;

    --type-spot:       #129C8B;
    --type-school:     #F59E0B;
    --type-dealer:     #3B82F6;
    --type-testcenter: #8B5CF6;

    --diff-easy:    #2db87d;
    --diff-medium:  #f59e0b;
    --diff-advanced:#ef4444;

    --water-sea:    #0ea5e9;
    --water-lake:   #129C8B;
    --water-river:  #6366f1;
    --water-bay:    #8b5cf6;
    --water-other:  #8E8E93;

    --radius-sm:  6px;
    --radius-md:  10px;
    --radius-lg:  16px;
    --radius-xl:  24px;

    --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
    --shadow-md:  0 4px 16px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.05);
    --shadow-lg:  0 20px 48px rgba(0,0,0,.14), 0 8px 16px rgba(0,0,0,.06);

    --header-h:   60px;
    --filter-h:   52px;
    --sidebar-w:  400px;

    --transition: .2s cubic-bezier(.4,0,.2,1);
    --transition-slow: .35s cubic-bezier(.4,0,.2,1);
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }

img { max-width: 100%; height: auto; display: block; }

input, select, textarea, button { font-family: inherit; }

/* === TYPOGRAPHY === */
.font-display { font-family: 'Karantina', 'Arial Black', sans-serif; font-weight: 700; }

h1, h2, h3 { line-height: 1.2; }

/* === LAYOUT UTILITIES === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* === HEADER === */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
    gap: 16px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 40px;
    height: 36px;
    flex-shrink: 0;
}

.logo-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1;
}

.logo-text {
    font-family: 'Karantina', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--black);
    letter-spacing: -0.3px;
    line-height: 1;
}

.logo-text span { color: var(--green); }

.logo-byline {
    font-size: 10px;
    font-weight: 600;
    color: var(--gray-400);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
    margin-top: 2px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}

.nav-link:hover {
    color: var(--black);
    background: var(--gray-50);
}

.nav-link.active { color: var(--green); }

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn:active { transform: scale(.97); }

.btn-primary {
    background: var(--green);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--green-dark);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(18,156,139,.35);
}

.btn-secondary {
    background: var(--gray-50);
    color: var(--gray-800);
    border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
    background: var(--gray-100);
    color: var(--black);
}

.btn-danger {
    background: #fff0f0;
    color: #ef4444;
    border: 1px solid #fecaca;
}

.btn-danger:hover {
    background: #fee2e2;
    color: #dc2626;
}

.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), color var(--transition);
}

.btn-icon:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

/* === BADGES === */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.badge-easy     { background: #dcfce7; color: #15803d; }
.badge-medium   { background: #fef3c7; color: #92400e; }
.badge-advanced { background: #fee2e2; color: #b91c1c; }

.badge-sea      { background: #e0f2fe; color: #0369a1; }
.badge-lake     { background: #ccfbf1; color: #0f766e; }
.badge-river    { background: #ede9fe; color: #6d28d9; }
.badge-bay      { background: #f3e8ff; color: #7c3aed; }
.badge-reservoir{ background: #f0fdf4; color: #166534; }
.badge-other    { background: var(--gray-100); color: var(--gray-600); }

.badge-type-spot       { background: #e6f5f3; color: #0d7a6c; }
.badge-type-school     { background: #fef3c7; color: #92400e; }
.badge-type-dealer     { background: #dbeafe; color: #1d4ed8; }
.badge-type-testcenter { background: #ede9fe; color: #6d28d9; }

/* === SPOT TYPE CARD GRID === */
.spot-type-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 4px;
}

@media (max-width: 640px) {
    .spot-type-grid { grid-template-columns: repeat(2, 1fr); }
}

.spot-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 10px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
    text-align: center;
    user-select: none;
}

.spot-type-card input[type="radio"] { display: none; }

.spot-type-card:hover {
    border-color: var(--green);
    background: var(--green-xlight);
}

.spot-type-card.selected,
.spot-type-card:has(input:checked) {
    border-color: var(--green);
    background: var(--green-xlight);
    box-shadow: 0 0 0 3px rgba(18,156,139,.15);
}

.stc-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stc-icon svg { width: 18px; height: 18px; }

.stc-spot       { background: #e6f5f3; color: #129C8B; }
.stc-school     { background: #fef3c7; color: #B45309; }
.stc-dealer     { background: #dbeafe; color: #1d4ed8; }
.stc-testcenter { background: #ede9fe; color: #6d28d9; }

.stc-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.2;
}

.stc-sub {
    font-size: 11px;
    color: var(--gray-400);
    line-height: 1.3;
}

/* === FILTER BAR === */
.filter-bar {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    height: var(--filter-h);
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar { display: none; }

.filter-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: .5px;
    flex-shrink: 0;
    margin-right: 4px;
}

.filter-select {
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--gray-200);
    border-radius: 100px;
    background: var(--white);
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-800);
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238E8E93' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--green);
    background-color: var(--green-xlight);
}

.filter-select:hover { border-color: var(--gray-400); }

.filter-divider {
    width: 1px;
    height: 20px;
    background: var(--gray-200);
    flex-shrink: 0;
}

.filter-count {
    font-size: 13px;
    color: var(--gray-400);
    flex-shrink: 0;
    margin-left: auto;
    white-space: nowrap;
}

/* === MAP SEARCH & GEOLOCATION === */
.search-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.map-search {
    position: relative;
    width: 210px;
}

.map-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
    display: flex;
}

#map-search-input {
    width: 100%;
    height: 32px;
    border: 1px solid var(--gray-200);
    border-radius: 100px;
    padding: 0 12px 0 32px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-800);
    background: white;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

#map-search-input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(18,156,139,.12);
}

#map-search-input::placeholder { color: var(--gray-400); }

.search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
    z-index: 10000;
    overflow: hidden;
    min-width: 260px;
}

.search-dropdown.open { display: block; }

.search-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 12px;
    border: none;
    border-bottom: 1px solid var(--gray-50);
    background: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 12.5px;
    color: var(--gray-700);
    text-align: left;
    transition: background var(--transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-dropdown-item:last-child { border-bottom: none; }
.search-dropdown-item:hover { background: var(--gray-50); }

.search-dropdown-item svg { flex-shrink: 0; color: var(--green); }

.search-dropdown-item span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-noresult {
    padding: 10px 14px;
    font-size: 12.5px;
    color: var(--gray-400);
}

.btn-locate {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--gray-200);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    flex-shrink: 0;
    transition: color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.btn-locate:hover {
    color: var(--green);
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(18,156,139,.12);
}

.btn-locate.locating svg { animation: spin 1s linear infinite; }

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

/* "You are here" pulsing marker */
.locate-pulse {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.locate-dot {
    width: 14px;
    height: 14px;
    background: #2563eb;
    border-radius: 50%;
    border: 2.5px solid white;
    box-shadow: 0 2px 6px rgba(37,99,235,.5), 0 0 0 0 rgba(37,99,235,.35);
    animation: locatePulse 2s ease-out infinite;
}

@keyframes locatePulse {
    0%   { box-shadow: 0 2px 6px rgba(37,99,235,.5), 0 0 0 0   rgba(37,99,235,.35); }
    70%  { box-shadow: 0 2px 6px rgba(37,99,235,.5), 0 0 0 12px rgba(37,99,235,0); }
    100% { box-shadow: 0 2px 6px rgba(37,99,235,.5), 0 0 0 0   rgba(37,99,235,0); }
}

/* Toast message */
.locate-toast {
    position: fixed;
    bottom: 64px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(28,28,30,.92);
    color: white;
    padding: 9px 20px;
    border-radius: 999px;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    z-index: 20000;
    white-space: nowrap;
    backdrop-filter: blur(8px);
    animation: toastIn .25s ease;
}

@keyframes toastIn {
    from { opacity:0; transform: translateX(-50%) translateY(8px); }
    to   { opacity:1; transform: translateX(-50%) translateY(0); }
}

@media (max-width: 768px) {
    .map-search { width: 150px; }
    #map-search-input { font-size: 12px; }
}

@media (max-width: 480px) {
    .map-search { width: 120px; }
}

/* === MAP === */
.map-wrap {
    position: fixed;
    top: calc(var(--header-h) + var(--filter-h));
    left: 0; right: 0; bottom: 0;
}

#map {
    width: 100%;
    height: 100%;
}

/* Custom Leaflet marker */
.custom-marker { background: transparent; border: none; }
.custom-marker svg { filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); }
.custom-marker:hover svg { filter: drop-shadow(0 4px 8px rgba(18,156,139,.5)); }

/* Cluster markers */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background-clip: padding-box;
    border-radius: 50%;
}

.marker-cluster-small  { background: rgba(18,156,139,.15); }
.marker-cluster-medium { background: rgba(18,156,139,.25); }
.marker-cluster-large  { background: rgba(18,156,139,.35); }

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    background: var(--green);
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Leaflet attribution */
.leaflet-control-attribution {
    font-size: 10px;
    color: var(--gray-400);
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(4px);
}

/* === SIDEBAR === */
.sidebar {
    position: fixed;
    top: calc(var(--header-h) + var(--filter-h));
    right: 0;
    width: var(--sidebar-w);
    bottom: 0;
    background: var(--white);
    border-left: 1px solid var(--gray-100);
    z-index: 800;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    box-shadow: var(--shadow-lg);
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
}

.sidebar-photos {
    position: relative;
    flex-shrink: 0;
    background: var(--gray-50);
    aspect-ratio: 4/3;
    overflow: hidden;
}

.sidebar-photos-slider {
    display: flex;
    height: 100%;
    transition: transform var(--transition-slow);
}

.sidebar-photo {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--gray-400);
    font-size: 13px;
}

.photo-placeholder svg { opacity: .4; }

.photo-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: background var(--transition), transform var(--transition);
    z-index: 1;
}

.photo-nav:hover { background: var(--white); transform: translateY(-50%) scale(1.1); }
.photo-nav.prev { left: 10px; }
.photo-nav.next { right: 10px; }
.photo-nav.hidden { display: none; }

.photo-dots {
    position: absolute;
    bottom: 10px;
    left: 0; right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.photo-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    transition: background var(--transition), transform var(--transition);
}

.photo-dot.active {
    background: var(--white);
    transform: scale(1.3);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-200) transparent;
}

.sidebar-content::-webkit-scrollbar { width: 4px; }
.sidebar-content::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 2px; }

.spot-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.spot-name {
    font-family: 'Karantina', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--black);
    line-height: 1.15;
    margin-bottom: 6px;
}

.spot-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-400);
    font-size: 13px;
    margin-bottom: 16px;
}

.spot-location svg { flex-shrink: 0; }

.spot-description {
    font-size: 14px;
    line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: 20px;
    border-top: 1px solid var(--gray-100);
    padding-top: 16px;
}

.spot-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-400);
    font-size: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
}

.spot-meta svg { flex-shrink: 0; }

.sidebar-cta {
    padding: 16px 20px;
    border-top: 1px solid var(--gray-100);
    background: var(--white);
    flex-shrink: 0;
}

.sidebar-cta .btn { width: 100%; }

/* === EMPTY MAP STATE === */
.map-empty-state {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 40px;
    box-shadow: var(--shadow-md);
    z-index: 500;
    max-width: 320px;
    pointer-events: none;
}

/* === PAGE LAYOUT (non-map pages) === */
.page-wrap {
    padding-top: calc(var(--header-h) + 48px);
    padding-bottom: 80px;
    min-height: 100vh;
    background: var(--gray-50);
}

.page-inner {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 24px;
}

.page-inner-wide {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-family: 'Karantina', sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
}

.page-subtitle {
    color: var(--gray-400);
    font-size: 15px;
}

/* === CARD === */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-section {
    padding: 28px;
    border-bottom: 1px solid var(--gray-100);
}

.card-section:last-child { border-bottom: none; }

.card-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--gray-400);
    margin-bottom: 20px;
}

/* === FORM === */
.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 6px;
}

.form-label .required { color: var(--green); margin-left: 2px; }

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--gray-800);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
    -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--gray-200); }

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(18,156,139,.12);
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238E8E93' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.form-textarea { resize: vertical; min-height: 110px; }

.form-hint {
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 5px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-error {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
}

/* === LOCATION MAP (submit form) === */
.location-wrap {
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.location-wrap.has-location {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(18,156,139,.12);
}

.location-search {
    display: flex;
    align-items: center;
    gap: 0;
    border-bottom: 1px solid var(--gray-100);
}

.location-search-input {
    flex: 1;
    padding: 11px 14px;
    border: none;
    font-size: 14px;
    color: var(--gray-800);
    background: var(--white);
}

.location-search-input:focus { outline: none; }

.location-search-btn {
    padding: 11px 16px;
    background: var(--white);
    border: none;
    border-left: 1px solid var(--gray-100);
    color: var(--green);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background var(--transition);
    white-space: nowrap;
}

.location-search-btn:hover { background: var(--green-xlight); }

#location-map { height: 260px; }

.location-coords {
    padding: 10px 14px;
    font-size: 13px;
    color: var(--gray-400);
    background: var(--gray-50);
    border-top: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
}

.location-coords.set { color: var(--green); font-weight: 500; }

/* === PHOTO UPLOAD === */
.photo-upload-area {
    border: 2px dashed var(--gray-200);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
    position: relative;
}

.photo-upload-area:hover,
.photo-upload-area.drag-over {
    border-color: var(--green);
    background: var(--green-xlight);
}

.photo-upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.photo-upload-icon { color: var(--gray-400); margin-bottom: 8px; }
.photo-upload-text { font-size: 14px; color: var(--gray-600); font-weight: 500; }
.photo-upload-hint { font-size: 12px; color: var(--gray-400); margin-top: 4px; }

.photo-previews {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.photo-preview {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--gray-50);
}

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

.photo-preview-remove {
    position: absolute;
    top: 4px; right: 4px;
    width: 22px; height: 22px;
    background: rgba(0,0,0,.6);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === SUBMIT ACTIONS === */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 8px;
}

.form-actions .btn { min-width: 160px; }

/* === SUCCESS / ERROR PAGES === */
.result-page {
    padding-top: calc(var(--header-h) + 80px);
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
}

.result-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 56px 48px;
    text-align: center;
    box-shadow: var(--shadow-md);
    max-width: 480px;
    width: 100%;
    margin: 0 24px;
}

.result-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
}

.result-icon.success { background: #dcfce7; color: #15803d; }
.result-icon.error   { background: #fee2e2; color: #b91c1c; }
.result-icon.info    { background: var(--green-light); color: var(--green); }

.result-title {
    font-family: 'Karantina', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 12px;
}

.result-text {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 32px;
}

/* === SPOT DETAIL PAGE === */
.spot-detail-hero {
    position: relative;
    height: 420px;
    background: var(--gray-50);
    overflow: hidden;
    margin-top: var(--header-h);
}

.spot-hero-slider {
    display: flex;
    height: 100%;
    transition: transform var(--transition-slow);
}

.spot-hero-slide {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
}

.spot-hero-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--gray-400);
    font-size: 15px;
}

.spot-hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    background: rgba(255,255,255,.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: background var(--transition);
}

.spot-hero-nav:hover { background: var(--white); }
.spot-hero-nav.prev { left: 16px; }
.spot-hero-nav.next { right: 16px; }

.spot-hero-counter {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0,0,0,.5);
    color: white;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.spot-detail-body {
    padding-bottom: 80px;
}

.spot-detail-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
    padding-top: 40px;
}

.spot-detail-name {
    font-family: 'Karantina', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--black);
    line-height: 1.1;
    margin-bottom: 12px;
}

.spot-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.spot-detail-desc {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray-600);
}

.spot-info-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.spot-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--gray-50);
    font-size: 14px;
}

.spot-info-row:last-child { border-bottom: none; }
.spot-info-label { color: var(--gray-400); font-size: 13px; }
.spot-info-value { font-weight: 500; color: var(--gray-800); }

/* === ADMIN === */
.admin-wrap {
    padding-top: calc(var(--header-h) + 32px);
    padding-bottom: 60px;
    min-height: 100vh;
    background: var(--gray-50);
}

.admin-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    padding: 0;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    z-index: 850;
}

.admin-tabs {
    display: flex;
    gap: 0;
    padding: 0 24px;
}

.admin-tab {
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-400);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    text-decoration: none;
    transition: color var(--transition), border-color var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-tab:hover { color: var(--gray-800); }
.admin-tab.active { color: var(--green); border-color: var(--green); }

.admin-badge {
    background: var(--green);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 100px;
    min-width: 18px;
    text-align: center;
}

.admin-content {
    padding-top: 53px; /* admin-tabs height */
}

.admin-table-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--gray-400);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
}

.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-50);
    font-size: 14px;
    vertical-align: top;
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--gray-50); }

.admin-spot-thumb {
    width: 60px;
    height: 44px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: var(--gray-100);
    flex-shrink: 0;
}

.admin-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* Status pills */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending_email    { background: #fef3c7; color: #92400e; }
.status-pending_approval { background: #e0f2fe; color: #0369a1; }
.status-approved         { background: #dcfce7; color: #15803d; }
.status-rejected         { background: #fee2e2; color: #b91c1c; }

/* Admin login */
.admin-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    padding: 24px;
}

.admin-login-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 400px;
}

.admin-login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.admin-login-title {
    font-size: 14px;
    color: var(--gray-400);
    text-align: center;
    margin-bottom: 28px;
}

/* Reject modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 36px;
    max-width: 440px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    transform: scale(.95);
    transition: transform var(--transition);
}

.modal-overlay.open .modal { transform: scale(1); }

.modal-title {
    font-family: 'Karantina', sans-serif;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-desc { color: var(--gray-400); font-size: 14px; margin-bottom: 24px; }
.modal-actions { display: flex; gap: 10px; margin-top: 24px; }
.modal-actions .btn { flex: 1; }

/* Alert messages */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success { background: #dcfce7; color: #15803d; }
.alert-error   { background: #fee2e2; color: #b91c1c; }
.alert-info    { background: var(--green-light); color: var(--green-dark); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    :root {
        --header-h:   56px;
        --filter-h:   48px;
        --sidebar-w:  100%;
    }

    .logo-text { font-size: 20px; }

    .nav-link:not(.btn-primary) { display: none; }

    .filter-bar { gap: 6px; padding: 0 12px; }

    /* Sidebar becomes bottom sheet on mobile */
    .sidebar {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 85vh;
        border-left: none;
        border-top: 1px solid var(--gray-100);
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        transform: translateY(100%);
        box-shadow: 0 -8px 40px rgba(0,0,0,.12);
    }

    .sidebar.open { transform: translateY(0); }

    .sidebar-photos { aspect-ratio: 16/9; }

    .spot-detail-grid {
        grid-template-columns: 1fr;
    }

    .spot-detail-hero { height: 280px; }
    .spot-detail-name { font-size: 36px; }

    .form-row { grid-template-columns: 1fr; }

    .result-card { padding: 40px 24px; }

    .admin-table th:nth-child(3),
    .admin-table td:nth-child(3),
    .admin-table th:nth-child(4),
    .admin-table td:nth-child(4) { display: none; }

    .page-title { font-size: 32px; }
}

@media (max-width: 480px) {
    .header-inner { padding: 0 16px; }
    .page-inner, .page-inner-wide { padding: 0 16px; }
    .card-section { padding: 20px; }
}

/* === FOOTER === */
.site-footer {
    border-top: 1px solid var(--gray-100);
    padding: 24px 24px;
    margin-top: auto;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.footer-inner p {
    font-size: 0.875rem;
    color: var(--gray-400);
    line-height: 1.6;
}
.footer-inner a {
    color: var(--gray-600);
    text-decoration: none;
}
.footer-inner a:hover { color: var(--green); }
.footer-copy {
    font-size: 0.8rem !important;
    color: var(--gray-400) !important;
}
