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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background: #f5f5f5;
}

/* 다크모드 */
body.dark #map {
    filter: invert(90%) hue-rotate(180deg) brightness(0.95) contrast(0.9);
}

body.dark #sidebar {
    background: #1e1e1e;
    box-shadow: 2px 0 8px rgba(0,0,0,0.4);
}

body.dark .search-section,
body.dark .filter-section,
body.dark .list-header {
    border-bottom-color: #333;
}

body.dark .property-item {
    border-bottom-color: #333;
}

body.dark .property-item:hover {
    background: #2a2a2a;
}

body.dark .property-item.active {
    background: #252540;
}

body.dark .property-item .address,
body.dark .filter-header h2,
body.dark .list-header h2 {
    color: #ccc;
}

body.dark .property-item .info {
    color: #999;
}

body.dark .search-box input,
body.dark .filter-group select,
body.dark .filter-group input {
    background: #2a2a2a;
    border-color: #444;
    color: #ddd;
}

body.dark .btn-toggle,
body.dark .btn-secondary {
    background: #333;
    color: #aaa;
}

body.dark .checkbox-label,
body.dark .filter-group label,
body.dark .range-inputs span {
    color: #999;
}

body.dark .loading {
    background: rgba(30,30,30,0.9);
}

body.dark .custom-overlay-wrap {
    background: #2a2a2a;
}

body.dark .info-window .info-header {
    background: #333;
}

body.dark .info-window .address,
body.dark .info-window .unit-number {
    color: #ccc;
}

body.dark .info-window .unit-details {
    color: #999;
}

body.dark .info-window .unit-item {
    border-bottom-color: #444;
}

body.dark .info-window .unit-item:hover {
    background: #333;
}

body.dark .unit-badge {
    background: #333;
}

body.dark .elevator-badge {
    background: #1b3a1b;
    color: #6abf6a;
}

body.dark .elevator-badge.no {
    background: #333;
    color: #777;
}

.btn-theme {
    width: 100%;
    padding: 8px;
    border: 1px solid #444;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    background: #16213e;
    color: #ccc;
    transition: background 0.2s;
}

.btn-theme:hover {
    background: #1f3056;
}

/* Container */
#container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Settings Panel */
#settings-panel {
    position: relative;
    width: 280px;
    min-width: 280px;
    height: 100vh;
    background: #1a1a2e;
    color: #ddd;
    display: flex;
    flex-direction: column;
    transition: width 0.3s, min-width 0.3s;
    z-index: 110;
    overflow: hidden;
}

#settings-panel.collapsed {
    width: 40px;
    min-width: 40px;
}

#settings-panel.collapsed .settings-content {
    opacity: 0;
    pointer-events: none;
}

#settings-toggle {
    position: absolute;
    top: 12px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: none;
    border: 1px solid #555;
    border-radius: 6px;
    color: #ccc;
    font-size: 16px;
    cursor: pointer;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

#settings-toggle:hover {
    background: #333;
}

.settings-content {
    padding: 52px 16px 16px;
    transition: opacity 0.2s;
    overflow-y: auto;
    flex: 1;
}

.settings-content h2 {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
}

.setting-group {
    margin-bottom: 20px;
}

.setting-group label {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
}

.setting-group select,
.setting-group input[type="text"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #444;
    border-radius: 6px;
    font-size: 13px;
    background: #16213e;
    color: #ddd;
}

.setting-group select:focus,
.setting-group input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
}

.setting-group .btn-primary {
    margin-top: 8px;
    width: 100%;
    font-size: 12px;
    padding: 8px;
}

.setting-status {
    margin-top: 6px;
    font-size: 11px;
    color: #e67e22;
    min-height: 16px;
}

.conversion-slider-wrap {
    display: none;
    margin-top: 8px;
}

.conversion-slider-wrap.visible {
    display: block;
}

.conversion-slider-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #999;
    margin-bottom: 6px;
}

.conversion-slider-header span:last-child {
    color: #667eea;
    font-weight: 600;
}

.setting-group input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: #444;
    border-radius: 2px;
    outline: none;
}

.setting-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    border: 2px solid #1a1a2e;
}

.price-converted {
    font-size: 10px;
    color: #999;
    text-decoration: line-through;
    margin-right: 4px;
}

.pdf-drop-zone {
    border: 2px dashed #444;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 8px;
    transition: border-color 0.2s, background 0.2s;
}

.pdf-drop-zone:hover,
.pdf-drop-zone.dragover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.08);
}

.pdf-drop-text {
    font-size: 12px;
    color: #888;
    display: block;
}

.pdf-drop-zone.has-file .pdf-drop-text {
    display: none;
}

.pdf-filename {
    font-size: 12px;
    color: #667eea;
    font-weight: 600;
    display: none;
}

.pdf-drop-zone.has-file .pdf-filename {
    display: block;
}

.pdf-progress {
    margin-top: 8px;
}

.pdf-progress-bar {
    height: 4px;
    background: #333;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.pdf-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    transition: width 0.3s;
}

.settings-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #333;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-link {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    transition: background 0.2s;
    background: #16213e;
    color: #ccc;
}

.footer-link:hover {
    background: #1f3056;
}

.footer-link.sponsor {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.footer-link.sponsor:hover {
    opacity: 0.9;
}

/* Sidebar */
#sidebar {
    width: 320px;
    min-width: 320px;
    height: 100vh;
    background: #fff;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-header {
    padding: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.sidebar-header h1 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 0;
}

.sidebar-header .subtitle {
    font-size: 12px;
    opacity: 0.9;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.auth-area {
    flex-shrink: 0;
}

.btn-kakao-login {
    padding: 4px 10px;
    background: #FEE500;
    color: #191919;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.btn-kakao-login:hover {
    background: #F0D800;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-info .profile-img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info .nickname {
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-logout {
    padding: 3px 8px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 10px;
    cursor: pointer;
}

.btn-logout:hover {
    background: rgba(255,255,255,0.25);
}

/* Search Section */
.search-section {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
}

.search-box {
    display: flex;
    gap: 8px;
}

.search-box input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    transition: border-color 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-search {
    padding: 10px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-search:hover {
    opacity: 0.9;
}

/* Filter Section */
.filter-section {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.filter-header h2 {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin: 0;
}

.btn-toggle {
    padding: 4px 10px;
    background: #f0f0f0;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-toggle:hover {
    background: #e5e5e5;
}

#filter-content {
    transition: max-height 0.3s ease;
    overflow: hidden;
}

#filter-content.collapsed {
    max-height: 0 !important;
    padding: 0;
}

.filter-section h2 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #555;
}

.filter-buttons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.filter-buttons .btn-primary,
.filter-buttons .btn-secondary {
    flex: 1;
    margin-top: 0;
}

.filter-group {
    margin-bottom: 8px;
}

.filter-group label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    transition: border-color 0.2s;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #667eea;
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.range-inputs input {
    flex: 1;
    width: 0;
    min-width: 0;
}

.range-inputs span {
    color: #999;
}

.btn-primary,
.btn-secondary {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f0f0f0;
    color: #666;
}

.btn-secondary:hover {
    background: #e5e5e5;
}

/* List Section */
.list-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
}

.list-header h2 {
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

.list-options {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
}

#result-count {
    font-size: 13px;
    color: #667eea;
    font-weight: 500;
}

#property-list {
    flex: 1;
    overflow-y: auto;
    list-style: none;
}

.property-item {
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
}

.property-item:hover {
    background: #f8f9ff;
}

.property-item.active {
    background: #f0f3ff;
    border-left: 3px solid #667eea;
}

.property-item .id {
    font-size: 12px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 4px;
}

.property-item .address {
    font-size: 13px;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-item .info {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #888;
}

.property-item .info span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Map Container */
#map-container {
    flex: 1;
    position: relative;
}

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

/* Loading */
.loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading.hidden {
    display: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading p {
    margin-top: 12px;
    color: #666;
}

/* InfoWindow Custom Style */
.info-window {
    padding: 12px;
    min-width: 250px;
    max-width: 300px;
}

.info-window .title {
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.info-window .address {
    font-size: 13px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.5;
}

.info-window .details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    font-size: 12px;
}

.info-window .details .item {
    display: flex;
    justify-content: space-between;
}

.info-window .details .label {
    color: #888;
}

.info-window .details .value {
    color: #333;
    font-weight: 500;
}

.info-window .price-section {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.info-window .price {
    font-size: 15px;
    font-weight: 600;
    color: #e74c3c;
}

.info-window .price small {
    font-size: 12px;
    font-weight: 400;
    color: #888;
}

/* Cluster Marker */
.cluster-marker {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.4);
}

/* Search Highlight */
.property-item.highlight {
    background: #fff3cd;
    border-left: 3px solid #ffc107;
}

.property-item.highlight:hover {
    background: #ffecb3;
}

/* No Results */
.no-results {
    padding: 40px 20px;
    text-align: center;
    color: #888;
}

.no-results p {
    margin-bottom: 8px;
}

.no-results small {
    font-size: 12px;
    color: #aaa;
}

/* Toast Message */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s;
}

.toast.show {
    opacity: 1;
}

/* Property Header */
.property-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.property-header .id {
    margin-bottom: 0;
}

.unit-badge {
    font-size: 11px;
    padding: 2px 6px;
    background: #e8eafd;
    color: #667eea;
    border-radius: 4px;
    font-weight: 500;
}

.rooms {
    font-size: 11px;
}

.elevator-badge {
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 500;
    background: #e8f5e9;
    color: #2e7d32;
}

.elevator-badge.no {
    background: #f5f5f5;
    color: #aaa;
}

/* Price Info in List */
.price-info {
    display: flex;
    gap: 12px;
    margin-top: 6px;
    font-size: 12px;
}

.price-info .deposit {
    color: #e74c3c;
    font-weight: 500;
}

.price-info .rent {
    color: #667eea;
    font-weight: 500;
}

.price-info .commute {
    color: #e67e22;
    font-weight: 500;
}

/* Custom Overlay Wrapper */
.custom-overlay-wrap {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    overflow: visible;
}

.overlay-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(0,0,0,0.3);
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay-close:hover {
    background: rgba(0,0,0,0.5);
}

/* Multi-Unit InfoWindow */
.info-window.multi-unit {
    padding: 0;
    min-width: 260px;
    max-width: 300px;
}

.info-window .info-header {
    padding: 12px;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}

.info-window .info-header .title {
    margin-bottom: 4px;
    padding-bottom: 0;
    border-bottom: none;
}

.info-window .info-header .address {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    line-height: 1.4;
    word-break: keep-all;
    white-space: normal;
}

.info-window .info-meta {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: #667eea;
    font-weight: 500;
}

.info-window .units-container {
    max-height: 300px;
    overflow-y: auto;
}

.info-window .unit-item {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
}

.info-window .unit-item:last-child {
    border-bottom: none;
}

.info-window .unit-item:hover {
    background: #f8f9ff;
}

.info-window .unit-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.info-window .unit-number {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.info-window .unit-type {
    font-size: 11px;
    padding: 2px 6px;
    background: #f0f0f0;
    color: #666;
    border-radius: 4px;
}

.info-window .unit-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: #666;
}

.info-window .unit-details span {
    white-space: nowrap;
}

#mobile-view-switcher {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        overflow: hidden;
    }

    #container {
        flex-direction: column-reverse;
        height: 100dvh;
    }

    #settings-panel {
        display: none;
    }

    #settings-panel.mobile-open {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        min-width: 100%;
        height: 100dvh;
        z-index: 1100;
        padding-bottom: 72px;
    }

    #settings-panel.mobile-open .settings-content {
        opacity: 1;
        pointer-events: auto;
    }

    #settings-panel.mobile-open #settings-toggle {
        display: flex;
    }

    #sidebar,
    #map-container {
        width: 100%;
        min-width: auto;
        height: 100dvh;
    }

    #sidebar {
        max-height: none;
        padding-bottom: 72px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .list-section {
        flex: none;
        overflow: visible;
    }

    #property-list {
        overflow-y: visible;
    }

    #map-container {
        padding-bottom: 0;
    }

    #mobile-view-switcher {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: max(12px, env(safe-area-inset-bottom));
        z-index: 1200;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 8px;
        background: rgba(17, 24, 39, 0.92);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 14px;
        padding: 8px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.22);
    }

    .mobile-switch-btn {
        border: none;
        border-radius: 10px;
        padding: 12px 16px;
        font-size: 14px;
        font-weight: 600;
        color: #d1d5db;
        background: transparent;
        cursor: pointer;
    }

    .mobile-switch-btn.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: #fff;
    }

    body.mobile-list-view #sidebar {
        display: flex;
    }

    body.mobile-list-view #map-container {
        display: none;
    }

    body.mobile-map-view #sidebar {
        display: none;
    }

    body.mobile-map-view #map-container {
        display: block;
    }

    .sidebar-header {
        padding: 12px 16px;
    }

    .sidebar-header h1 {
        font-size: 16px;
    }

    .search-section {
        padding: 12px 16px;
    }

    .filter-section {
        padding: 12px 16px;
    }

    .filter-group {
        margin-bottom: 10px;
    }

    .list-header {
        padding: 12px 16px;
    }

    .property-item {
        padding: 12px 16px;
    }

    .info-window {
        min-width: 200px;
        max-width: 260px;
    }
}

/* Social Section */
.social-section {
    padding: 10px 12px;
    border-top: 1px solid #eee;
}

.like-area {
    margin-bottom: 8px;
}

.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: 1px solid #ddd;
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    color: #888;
    transition: all 0.2s;
}

.like-btn:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

.like-btn.liked {
    background: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
}

.comments-area {
    max-height: 200px;
    overflow-y: auto;
}

.comment-item {
    display: flex;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #f5f5f5;
}

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

.comment-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-avatar-placeholder {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ddd;
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-author {
    font-size: 11px;
    font-weight: 600;
    color: #555;
    margin-right: 6px;
}

.comment-text {
    font-size: 12px;
    color: #333;
    word-break: break-word;
}

.comment-time {
    font-size: 10px;
    color: #aaa;
    margin-left: 6px;
}

.comment-delete {
    border: none;
    background: none;
    color: #aaa;
    font-size: 10px;
    cursor: pointer;
    margin-left: 4px;
}

.comment-delete:hover {
    color: #e74c3c;
}

.no-comments {
    font-size: 12px;
    color: #aaa;
    text-align: center;
    padding: 8px 0;
}

.comment-form {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.comment-input {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 12px;
}

.comment-input:focus {
    outline: none;
    border-color: #667eea;
}

.comment-submit {
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}

.comment-login-prompt {
    font-size: 12px;
    color: #888;
    text-align: center;
    padding: 8px 0;
}

.comment-login-prompt a {
    color: #667eea;
    text-decoration: none;
}

body.dark .social-section { border-top-color: #444; }
body.dark .like-btn { background: #2a2a2a; border-color: #444; color: #999; }
body.dark .like-btn:hover { border-color: #e74c3c; color: #e74c3c; }
body.dark .like-btn.liked { background: #e74c3c; color: #fff; }
body.dark .comment-item { border-bottom-color: #333; }
body.dark .comment-author { color: #ccc; }
body.dark .comment-text { color: #ddd; }
body.dark .comment-input { background: #2a2a2a; border-color: #444; color: #ddd; }
body.dark .no-comments { color: #666; }
body.dark .comment-login-prompt { color: #666; }

@media (max-width: 480px) {
    .list-options {
        flex-direction: column;
        align-items: flex-end;
        gap: 4px;
    }

    .range-inputs {
        flex-wrap: wrap;
    }

    .range-inputs input {
        width: calc(50% - 16px);
    }
}
