/* Light mode (default) */
:root {
    --bg-color: #f0f2f5;
    --white: #ffffff;
    --primary: #1877f2;
    --primary-hover: #166fe5;
    --text-dark: #1c1e21;
    --text-light: #65676b;
    --border: #e4e6eb;
    --hover-bg: #f0f2f5;
    --card-bg: #ffffff;
    --input-bg: #ffffff;
    --shadow: 0 1px 2px rgba(0,0,0,0.1);
    --modal-overlay: rgba(0, 0, 0, 0.5);
    --danger: #dc2626;
}

/* Dark mode */
[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --white: #2d2d2d;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --text-dark: #e5e7eb;
    --text-light: #9ca3af;
    --border: #404040;
    --hover-bg: #374151;
    --card-bg: #2d2d2d;
    --input-bg: #374151;
    --shadow: 0 1px 2px rgba(0,0,0,0.3);
    --modal-overlay: rgba(0, 0, 0, 0.8);
    --danger: #ef4444;
}

/* Dark mode link colors - Sky Blue */
[data-theme="dark"] .resort-link {
    color: #38bdf8;
}

[data-theme="dark"] .resort-link:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

[data-theme="dark"] .az-resort-item .resort-name {
    color: #e5e7eb;
}

[data-theme="dark"] .az-resort-item:hover .resort-name {
    color: #38bdf8;
}

[data-theme="dark"] .ranking-item .name {
    color: #e5e7eb;
}

[data-theme="dark"] .ranking-item:hover .name {
    color: #38bdf8;
}

[data-theme="dark"] .review-header h3 {
    color: #e5e7eb;
}

[data-theme="dark"] .review-header h3 a {
    color: inherit;
}

[data-theme="dark"] .review-header h3 a:hover {
    color: #38bdf8;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    padding-top: 60px;
}

/* ==================== TOP NAVIGATION ==================== */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 16px;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav-left {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
}

.home-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 50%;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.home-btn:hover {
    background: var(--hover-bg);
}

.home-btn i {
    font-size: 20px;
    color: var(--primary);
}

.search-container {
    background: var(--bg-color);
    border-radius: 24px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    width: 280px;
}

.search-container i {
    color: var(--text-light);
    margin-right: 8px;
    font-size: 14px;
}

.search-container input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 15px;
    color: var(--text-dark);
}

.search-container input::placeholder {
    color: var(--text-light);
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.8;
}

.logo i {
    font-size: 28px;
}

.nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-icons {
    display: flex;
    gap: 8px;
}

.icon-btn {
    outline: none !important;
    border: none !important;
    background: transparent;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.icon-btn:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.icon-btn:hover {
    background: var(--hover-bg);
}

.icon-btn i {
    font-size: 20px;
    color: var(--text-dark);
}

.icon-btn:hover i {
    color: var(--primary);
}

/* ==================== MAIN 3-COLUMN LAYOUT ==================== */
.main-layout {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 20px;
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
}

/* ==================== LEFT SIDEBAR ==================== */
.left-sidebar {
    position: sticky;
    top: 80px;
    height: calc(100vh - 100px);
    overflow-y: auto;
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    min-height: calc(100vh - 100px);
}

/* Top Resorts Bar */
.top-resorts-bar {
    background: var(--white);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    min-height: 100px;
}

.top-resorts-bar h3 {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-resorts-bar h3 i {
    color: gold;
}

.resort-rankings {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.ranking-item {
    flex: 1;
    background: var(--bg-color);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.ranking-item:hover {
    background: var(--border);
    transform: translateY(-2px);
}

.ranking-item .rank {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
}

.ranking-item .name {
    font-size: 14px;
    font-weight: 600;
    margin: 4px 0;
    color: var(--text-dark);
}

.ranking-item .rating {
    font-size: 13px;
    color: var(--text-light);
    font-family: Arial, Helvetica, sans-serif;
}

/* Share Box */
.share-box {
    background: var(--white);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.share-input {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: var(--bg-color);
    border-radius: 24px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.share-input:hover {
    background: var(--border);
}

.share-actions {
    display: flex;
    gap: 8px;
}

.share-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
}

.share-action:hover {
    background: var(--hover-bg);
}

.share-action i {
    font-size: 18px;
}

/* Feed Header */
.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 4px;
}

.feed-header h3 {
    font-size: 18px;
    color: var(--text-dark);
}

.feed-header span {
    color: var(--text-light);
    font-size: 14px;
}

/* Feed Items */
.feed {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-item {
    background: var(--white);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow);
}

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

.review-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.review-rating {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.review-text {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-dark);
    margin-bottom: 16px;
}

/* Photo Gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    margin: 12px 0;
}

.photo-thumbnail {
    position: relative;
    padding-bottom: 75%;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    border-color: var(--border);
}

.photo-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.photo-thumbnail:hover img {
    transform: scale(1.05);
}

.review-date {
    color: var(--text-light);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* ==================== RIGHT SIDEBAR ==================== */
.right-sidebar {
    position: sticky;
    top: 80px;
    height: calc(100vh - 100px);
    overflow-y: auto;
}

.sidebar-header {
    background: var(--white);
    padding: 16px;
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid var(--border);
}

.sidebar-header h3 {
    font-size: 16px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.resort-list {
    background: var(--white);
    border-radius: 0 0 12px 12px;
    padding: 8px 0;
    margin-bottom: 20px;
}

.resort-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.resort-list-item:hover {
    background: var(--hover-bg);
}

.resort-list-item .rank-badge {
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.resort-list-item .rank-1 { background: gold; color: black; }
.resort-list-item .rank-2 { background: silver; color: black; }
.resort-list-item .rank-3 { background: #cd7f32; color: white; }

.resort-list-item .resort-info {
    flex: 1;
}

.resort-list-item .resort-name {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-dark);
}

.resort-list-item .resort-rating {
    font-size: 12px;
    color: var(--text-light);
}

.resort-list-item i {
    color: var(--primary);
}

/* ==================== MODAL STYLES ==================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--modal-overlay);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--white);
    border-radius: 16px 16px 0 0;
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
}

.modal-close {
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
}

.modal-close:hover {
    background: var(--hover-bg);
}

.modal-content form {
    padding: 20px;
}

/* Settings Modal */
.settings-modal {
    max-width: 450px !important;
}

.settings-content {
    padding: 20px;
}

.settings-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.settings-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.settings-section h4 {
    color: var(--text-light);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.settings-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
}

.settings-info i {
    width: 20px;
    color: var(--primary);
    font-size: 16px;
}

.settings-btn {
    padding: 6px 12px;
    background: var(--hover-bg);
    border-radius: 6px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.settings-btn:hover {
    background: var(--border);
}

/* Dark Mode Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border);
    transition: .3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* ==================== SEARCHABLE DROPDOWN ==================== */
.searchable-dropdown {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

#resort_search {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    background: var(--input-bg);
    color: var(--text-dark);
}

#resort_search:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(24,119,242,0.2);
}

.suggestions-box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
    z-index: 1000;
    display: none;
}

.suggestions-box.active {
    display: block;
}

.suggestion-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
    color: var(--text-dark);
}

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

.suggestion-item:hover {
    background: var(--hover-bg);
}

.suggestion-item.selected {
    background: rgba(24,119,242,0.1);
}

.no-results {
    padding: 10px 12px;
    color: var(--text-light);
    font-style: italic;
}

/* ==================== FORM ELEMENTS ==================== */
.rating-selector {
    margin-bottom: 15px;
}

.rating-selector label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-dark);
}

.rating-selector input {
    width: 100%;
    background: var(--input-bg);
    color: var(--text-dark);
}

.photo-upload {
    margin-bottom: 15px;
}

.photo-label {
    display: inline-block;
    padding: 8px 16px;
    background: var(--hover-bg);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-dark);
}

.photo-label:hover {
    background: var(--border);
}

.photo-preview {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.photo-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--border);
}

.post-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

.post-btn:hover {
    background: var(--primary-hover);
}

/* ==================== A-Z DIRECTORY ==================== */
.az-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 10px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.az-letter {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-dark);
}

.az-letter:hover {
    background: var(--primary);
    color: white;
}

.az-resort-list {
    padding: 10px;
    max-height: 500px;
    overflow-y: auto;
}

.az-section {
    margin-bottom: 20px;
}

.az-section-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 50px;
    background: var(--white);
    z-index: 5;
}

.az-resort-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 6px;
    margin-bottom: 2px;
}

.az-resort-item:hover {
    background: var(--hover-bg);
}

.az-resort-item .resort-name {
    font-size: 14px;
    color: var(--text-dark);
}

.az-resort-item i {
    font-size: 12px;
    color: var(--text-light);
    opacity: 0.5;
}

.az-resort-item:hover i {
    opacity: 1;
    color: var(--primary);
}

/* ==================== RESORT PROFILE ==================== */
.profile-container {
    background: transparent;
}

.profile-header {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.profile-hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    padding: 30px;
}

.profile-hero h1 {
    font-size: 28px;
    margin-bottom: 20px;
}

.profile-ratings {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.rating-card {
    text-align: center;
    min-width: 100px;
}

.rating-value {
    font-size: 32px;
    font-weight: bold;
    display: block;
    line-height: 1.2;
}

.rating-label {
    font-size: 14px;
    opacity: 0.9;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 30px;
}

.info-card {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.info-card i {
    font-size: 24px;
    color: var(--primary);
    min-width: 30px;
}

.info-content h4 {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.info-content p {
    color: var(--text-dark);
    line-height: 1.5;
}

.website-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.website-link:hover {
    text-decoration: underline;
}

.reviews-section {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.reviews-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
}

.no-reviews {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-style: italic;
}

.error {
    text-align: center;
    padding: 40px;
    color: var(--danger);
}

/* Quick Actions Sidebar */
.quick-actions {
    background: var(--white);
    border-radius: 0 0 12px 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    border: none;
    background: var(--hover-bg);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    margin-bottom: 8px;
    transition: background 0.2s;
}

.quick-action-btn:hover {
    background: var(--border);
}

.quick-action-btn i {
    color: var(--primary);
    font-size: 16px;
}

/* Stats Container */
.stats-container {
    background: var(--white);
    border-radius: 0 0 12px 12px;
    padding: 16px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

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

.stat-label {
    color: var(--text-light);
    font-size: 14px;
}

.stat-value {
    font-weight: bold;
    color: var(--primary);
}

.error-message {
    text-align: center;
    padding: 60px;
    color: var(--danger);
    font-size: 18px;
}

/* ==================== MESSAGES ==================== */
.message {
    margin: 12px 20px 20px;
    padding: 10px;
    border-radius: 8px;
    display: none;
}

.message.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

/* ==================== LOADING SPINNER ==================== */
.loading-spinner {
    text-align: center;
    padding: 20px;
    color: var(--text-light);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    
    .left-sidebar, .right-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-left {
        display: none;
    }
    
    .nav-center {
        justify-content: flex-start;
    }
    
    .home-btn span {
        display: none;
    }
    
    .home-btn {
        padding: 8px;
    }
}

/* Blue Verified Badge */
.verified-badge {
    background: #1877f2;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 6px;
}

.verified-badge i {
    font-size: 10px;
}

/* Update existing official badge if any */
.official-badge-small {
    display: none;
}

/* Modal verified badge */
.modal-comment-header .verified-badge {
    background: #1877f2;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.report-btn {
    background: transparent;
    border: 1px solid var(--border);
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-light);
}

.report-btn:hover {
    background: #fee2e2;
    border-color: #ef4444;
    color: #ef4444;
}

.admin-nav {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    padding: 10px 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.admin-nav-item {
    padding: 8px 16px;
    border-radius: 8px;
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.admin-nav-item:hover {
    background: var(--hover-bg);
}

.admin-nav-item.active {
    background: var(--primary);
    color: white;
}

.report-badge {
    background: #ef4444;
    color: white;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 11px;
    margin-left: 4px;
}

/* Custom scrollbar for light mode (optional) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* Dark mode scrollbar */
[data-theme="dark"] ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: #2d2d2d;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 4px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* For Firefox */
[data-theme="dark"] {
    scrollbar-color: #4b5563 #2d2d2d;
    scrollbar-width: thin;
}

/* Info Rows for Overview Tab */
.info-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.info-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-icon {
    width: 24px;
    color: var(--primary);
    font-size: 16px;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
}

.info-label {
    color: var(--text-light);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 500;
}

.info-value {
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.5;
    word-break: break-word;
}

.info-value a {
    color: var(--primary);
    text-decoration: none;
    word-break: break-all;
}

.info-value a:hover {
    text-decoration: underline;
}

/* Fix for text wrapping in resort profiles */
.info-value {
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    white-space: normal !important;
    max-width: 100% !important;
    display: block !important;
}

.info-value a {
    word-break: break-all !important;
    display: inline-block !important;
    max-width: 100% !important;
}

.info-row {
    width: 100% !important;
    overflow: hidden !important;
}

.info-content {
    min-width: 0 !important;
    flex: 1 !important;
    width: calc(100% - 40px) !important;
}
/* Resort Comparison Tool */
.comparison-selector {
    margin-bottom: 20px;
}

.comparison-label {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 5px;
    font-weight: 500;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-box i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 14px;
}

.search-box input {
    width: 100%;
    padding: 10px 10px 10px 35px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-dark);
    font-size: 13px;
}

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

.comparison-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
    z-index: 1000;
    display: none;
}

.comparison-suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 13px;
    color: var(--text-dark);
}

.suggestion-item:hover {
    background: var(--hover-bg);
}

.selected-resort {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-color);
    border-radius: 8px;
    margin-top: 8px;
}

.selected-resort i {
    font-size: 24px;
    color: var(--primary);
}

.selected-resort span {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
}

.remove-resort {
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
}

.remove-resort:hover {
    background: var(--hover-bg);
    color: var(--danger);
}

.vs-divider {
    text-align: center;
    margin: 15px 0;
    position: relative;
}

.vs-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
    z-index: 1;
}

.vs-divider span {
    position: relative;
    z-index: 2;
    background: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid var(--border);
    font-weight: bold;
    color: var(--primary);
}

.compare-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}

.compare-btn:hover:not(:disabled) {
    background: var(--primary-hover);
}

.compare-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Comparison Results */
#comparisonResults {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid var(--border);
}

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

.comparison-header h4 {
    font-size: 16px;
    color: var(--text-dark);
}

.close-results {
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
}

.close-results:hover {
    color: var(--primary);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.comparison-col {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 15px;
}

.resort-badge {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
    color: var(--primary);
}

.comparison-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-row .metric {
    font-size: 12px;
    color: var(--text-light);
}

.comparison-row .value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.comparison-row.highlight .value {
    color: var(--primary);
    font-size: 16px;
}

.category-comparison {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
}

.category-comparison h4 {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.category-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.category-row:last-child {
    border-bottom: none;
}

.category-name {
    font-size: 12px;
    color: var(--text-light);
}

.category-values {
    display: flex;
    gap: 15px;
    font-size: 13px;
    font-weight: 500;
}

.winner-message {
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 15px;
}

.winner-message.winner-a {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.winner-message.winner-b {
    background: rgba(24, 119, 242, 0.1);
    color: var(--primary);
}

.winner-message.tie {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}
/* Three-dots menu */
.post-menu-container {
    position: relative;
    display: inline-block;
}

.post-menu-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.post-menu-btn:hover {
    background: var(--hover-bg);
    color: var(--primary);
}

.post-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 200px;
    z-index: 1000;
    display: none;
    margin-top: 5px;
    overflow: hidden;
}

.post-menu-dropdown.active {
    display: block;
}

.post-menu-item {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
}

.post-menu-item:hover {
    background: var(--hover-bg);
}

.post-menu-item i {
    width: 18px;
    color: var(--text-light);
    font-size: 14px;
}

.post-menu-item:hover i {
    color: var(--primary);
}

/* Special styling for report item */
.post-menu-item:last-child:hover {
    background: #fee2e2;
    color: #ef4444;
}

.post-menu-item:last-child:hover i {
    color: #ef4444;
}

/* Dark mode adjustments */
[data-theme="dark"] .post-menu-dropdown {
    background: #2d2d2d;
    border-color: #404040;
}

[data-theme="dark"] .post-menu-item:hover {
    background: #374151;
}

[data-theme="dark"] .post-menu-item:last-child:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}
/* Jobs Tab Styling */
.tab-link {
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 20px;
    transition: background 0.2s;
}

.tab-link:hover {
    background: var(--hover-bg);
}

.tab-link.active {
    color: var(--primary);
    background: rgba(24, 119, 242, 0.1);
}

/* Job Cards */
.job-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

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

.job-header h3 {
    font-size: 16px;
    margin: 0;
}

.job-department {
    background: var(--bg-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-light);
}

.job-title {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.job-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--text-light);
}

.job-meta i {
    margin-right: 5px;
    color: var(--primary);
}

.job-description {
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.job-requirements {
    background: var(--bg-color);
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.job-date {
    color: var(--text-light);
    font-size: 12px;
}

/* Job Detail Modal */
.job-detail-resort {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.job-detail-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    padding: 10px;
    background: var(--bg-color);
    border-radius: 8px;
}

.job-detail-salary {
    background: rgba(24, 119, 242, 0.1);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: var(--primary);
    font-weight: 500;
}

.job-detail-section {
    margin-bottom: 20px;
}

.job-detail-section h4 {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.job-detail-apply {
    background: var(--bg-color);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.job-detail-apply p {
    margin-bottom: 8px;
}

/* Dashboard Jobs */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.job-card.dashboard {
    position: relative;
    padding: 15px;
}

.job-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.job-status.active {
    background: #d1fae5;
    color: #065f46;
}

.job-status.expired {
    background: #fee2e2;
    color: #991b1b;
}

.job-actions {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.action-btn.small {
    flex: 1;
    padding: 5px;
    font-size: 12px;
}
/* ==================== FEED TABS ==================== */
.tab-link {
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.2s;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light);
}

.tab-link:hover {
    background: var(--hover-bg);
    color: var(--primary);
}

.tab-link.active {
    color: var(--primary);
    background: rgba(24, 119, 242, 0.1);
}

/* Jobs in feed styling */
.job-department {
    background: var(--bg-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-light);
}

.no-jobs {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-style: italic;
}
/* ==================== FEED SPACING FIX ==================== */
.feed {
    display: flex;
    flex-direction: column;
    gap: 20px !important;
}

.review-item {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 0 !important;
    width: 100%;
    box-sizing: border-box;
}

/* Photo Gallery Fix */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    margin: 12px 0;
}

.photo-thumbnail {
    position: relative;
    padding-bottom: 75%;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid var(--border);
}

.photo-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-thumbnail:hover img {
    transform: scale(1.05);
}

/* Job specific styles */
.job-meta {
    display: flex;
    gap: 20px;
    margin: 10px 0;
    color: var(--text-light);
    font-size: 13px;
}

.job-meta i {
    color: var(--primary);
    margin-right: 5px;
}

.job-description {
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.6;
    margin: 10px 0;
}

.job-requirements {
    background: var(--bg-color);
    padding: 12px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 13px;
}

.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.job-date {
    color: var(--text-light);
    font-size: 12px;
}

.view-details-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s;
}

.view-details-btn:hover {
    background: var(--primary-hover);
}

/* Fix for review actions */
.review-actions {
    display: flex;
    gap: 12px;
    margin: 15px 0 10px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.action-btn {
    flex: 1;
    padding: 8px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.action-btn:hover {
    background: var(--hover-bg);
    border-color: var(--primary);
    color: var(--primary);
}

/* Feed header with tabs */
.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 4px;
}

.tab-link {
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.2s;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light);
}

.tab-link:hover {
    background: var(--hover-bg);
    color: var(--primary);
}

.tab-link.active {
    color: var(--primary);
    background: rgba(24, 119, 242, 0.1);
}

/* Job department badge */
.job-department {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* Empty states */
.no-jobs, .no-reviews {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-style: italic;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}
/* ==================== FEED SPACING FIX ==================== */
.feed {
    display: flex;
    flex-direction: column;
    gap: 20px !important;
}

.review-item {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 0 !important;
    width: 100%;
    box-sizing: border-box;
}

/* Make sure there's space between multiple review items */
.review-item + .review-item {
    margin-top: 0 !important;
}

/* Fix for review actions */
.review-actions {
    display: flex;
    gap: 12px;
    margin: 15px 0 10px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.action-btn {
    flex: 1;
    padding: 8px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.action-btn:hover {
    background: var(--hover-bg);
    border-color: var(--primary);
    color: var(--primary);
}

/* Photo Gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    margin: 12px 0;
}

.photo-thumbnail {
    position: relative;
    padding-bottom: 75%;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid var(--border);
}

.photo-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Comment preview */
.comment-preview {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.comment-preview-item {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    padding: 8px;
    border-radius: 8px;
    background: var(--bg-color);
}

.comment-preview-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.comment-preview-content {
    flex: 1;
}

.comment-preview-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.comment-preview-author {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-dark);
}

.verified-badge {
    background: #1877f2;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.comment-preview-date {
    color: var(--text-light);
    font-size: 11px;
    margin-left: auto;
}

.comment-preview-text {
    font-size: 13px;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.4;
}

.view-all-comments {
    text-align: center;
    padding: 8px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    background: var(--bg-color);
    margin-top: 8px;
}

.view-all-comments:hover {
    background: var(--border);
}

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

.review-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.review-rating {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.review-text {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.review-date {
    color: var(--text-light);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* Three-dots menu */
.post-menu-container {
    position: relative;
    display: inline-block;
}

.post-menu-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.post-menu-btn:hover {
    background: var(--hover-bg);
    color: var(--primary);
}

.post-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 200px;
    z-index: 1000;
    display: none;
    margin-top: 5px;
    overflow: hidden;
}

.post-menu-dropdown.active {
    display: block;
}

.post-menu-item {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
}

.post-menu-item:hover {
    background: var(--hover-bg);
}

.post-menu-item i {
    width: 18px;
    color: var(--text-light);
    font-size: 14px;
}

.post-menu-item:last-child:hover {
    background: #fee2e2;
    color: #ef4444;
}

.post-menu-item:last-child:hover i {
    color: #ef4444;
}
.modal-close {
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
}

.modal-close:hover {
    background: var(--hover-bg);
}