/* ============================================
   DESIGN SYSTEM - VARIABLES & RESET
   ============================================ */
:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: #1a2235;
    --bg-card-hover: #1f2a42;
    --bg-glass: rgba(17, 24, 39, 0.85);

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-purple: #8b5cf6;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;

    --gradient-main: linear-gradient(135deg, #3b82f6, #8b5cf6);
    --gradient-card: linear-gradient(145deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.04));
    --gradient-hover: linear-gradient(145deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.08));

    --border-subtle: rgba(148, 163, 184, 0.08);
    --border-accent: rgba(59, 130, 246, 0.3);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow: hidden;
}

/* ============================================
   HEADER
   ============================================ */
.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 60px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--accent-blue);
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.4));
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.4));
    }

    50% {
        filter: drop-shadow(0 0 16px rgba(59, 130, 246, 0.7));
    }
}

.top-header h1 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.top-header h1 .accent {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-nav {
    display: flex;
    gap: 4px;
}

.nav-link {
    padding: 6px 16px;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.1);
}

.header-right {
    display: flex;
    align-items: center;
}

.mobile-search-mount {
    display: none;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-box svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-box input {
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.85rem;
    width: 160px;
    outline: none;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-clear-btn {
    border: 0;
    background: rgba(148, 163, 184, 0.18);
    color: var(--text-primary);
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    pointer-events: auto;
    touch-action: manipulation;
    position: relative;
    z-index: 2;
}

.search-clear-btn:hover {
    background: rgba(148, 163, 184, 0.3);
}

/* ============================================
   MAIN LAYOUT
   ============================================ */
.main-content {
    display: flex;
    height: calc(100vh - 60px);
    overflow: hidden;
}

/* ============================================
   MAP SECTION
   ============================================ */
.map-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.map-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
}

.toolbar-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.toolbar-label svg {
    color: var(--accent-blue);
}

.zoom-controls {
    display: flex;
    gap: 4px;
}

.zoom-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.zoom-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--border-accent);
}

.map-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(6, 182, 212, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(59, 130, 246, 0.06) 0%, transparent 60%),
        var(--bg-primary);
}

#middleEastMap {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
    cursor: grab;
}

#middleEastMap:active {
    cursor: grabbing;
}

/* Country Styles (D3-rendered) */
.country {
    fill: #1e3a5f;
    stroke: rgba(59, 130, 246, 0.25);
    stroke-width: 1.2;
    transition: fill 0.3s ease, stroke 0.3s ease, stroke-width 0.3s ease;
    cursor: pointer;
}

.country.country-hover {
    fill: #2a5a8f;
    stroke: rgba(59, 130, 246, 0.6);
    stroke-width: 2;
}

.country.active {
    fill: #1d4ed8;
    stroke: #60a5fa;
    stroke-width: 2.5;
}

.country.search-highlight {
    fill: #2a5a8f;
    stroke: rgba(59, 130, 246, 0.8);
    stroke-width: 2;
}

.country.search-dim {
    fill: #101c30;
    stroke: rgba(59, 130, 246, 0.1);
}

.country-fallback {
    stroke-width: 1.4;
}

.country-fallback-label {
    font-size: 7px;
}

/* Background / surrounding countries */
.country-bg {
    transition: none;
    pointer-events: none;
}

.country-label {
    font-family: var(--font-family);
    fill: rgba(255, 255, 255, 0.75);
    font-weight: 600;
    letter-spacing: 0.12em;
    pointer-events: none;
    paint-order: stroke;
    stroke: rgba(0, 0, 0, 0.5);
    stroke-width: 3px;
}

.sea-label {
    font-family: var(--font-family);
    fill: rgba(6, 182, 212, 0.25);
    font-size: 10px;
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.2em;
    pointer-events: none;
}

/* City Markers */
.city-marker {
    pointer-events: none;
}

.city-marker.search-city-dim {
    opacity: 0.2;
}

.city-marker.search-city-highlight {
    opacity: 1;
}

.city-dot.capital-dot {
    fill: #fde68a;
    stroke: #fbbf24;
    stroke-width: 1.5;
    filter: drop-shadow(0 0 3px rgba(251, 191, 36, 0.5));
}

.capital-ring {
    stroke: rgba(251, 191, 36, 0.4);
    stroke-width: 1.5;
    stroke-dasharray: 2 1.5;
}

.city-dot.minor-dot {
    fill: #e2e8f0;
    stroke: rgba(226, 232, 240, 0.4);
    stroke-width: 0.8;
}

.city-marker.search-city-highlight .city-dot.capital-dot {
    fill: #fef3c7;
    stroke: #facc15;
    stroke-width: 2.2;
    filter: drop-shadow(0 0 7px rgba(250, 204, 21, 0.9));
}

.city-marker.search-city-highlight .city-dot.minor-dot {
    fill: #f8fafc;
    stroke: #7dd3fc;
    stroke-width: 1.4;
    filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.7));
}

.city-label {
    font-family: var(--font-family);
    pointer-events: none;
    paint-order: stroke;
    stroke: rgba(10, 14, 23, 0.9);
    stroke-width: 3.5px;
    stroke-linejoin: round;
}

.city-label.capital-label {
    fill: #fde68a;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.city-label.minor-label {
    fill: rgba(226, 232, 240, 0.85);
    font-size: 7.5px;
    font-weight: 500;
}

.city-marker.search-city-highlight .city-label {
    fill: #f8fafc;
    font-weight: 700;
}

.search-preview-layer {
    pointer-events: none;
}

.search-preview-pulse {
    fill: rgba(14, 165, 233, 0.25);
    stroke: rgba(56, 189, 248, 0.95);
    stroke-width: 2;
}

.search-preview-dot {
    fill: #38bdf8;
    stroke: #f8fafc;
    stroke-width: 1.6;
    filter: drop-shadow(0 0 7px rgba(56, 189, 248, 0.8));
}

.search-preview-label {
    font-family: var(--font-family);
    font-size: 10px;
    font-weight: 700;
    fill: #e2e8f0;
    letter-spacing: 0.02em;
    paint-order: stroke;
    stroke: rgba(2, 6, 23, 0.95);
    stroke-width: 4px;
    stroke-linejoin: round;
}

.news-pin {
    pointer-events: none;
}

.news-pin path {
    filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.45));
}

.pin-pulse {
    pointer-events: none;
}

/* Tooltip */
.map-tooltip {
    position: absolute;
    pointer-events: none;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 50;
    min-width: 180px;
}

.map-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.tooltip-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.tooltip-info {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Country Info Panel */
.country-info-panel {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--shadow-lg);
    transform: translateY(120%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 30;
}

.country-info-panel.visible {
    transform: translateY(0);
}

.country-info-panel h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-panel {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    transition: color 0.2s;
}

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

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.info-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
}

.info-item .info-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.info-item .info-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   FEED SECTION
   ============================================ */
.feed-section {
    width: 380px;
    min-width: 380px;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
}

.feed-header {
    padding: 16px 20px 8px;
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
    z-index: 10;
}

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

.feed-header-top h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.feed-header-top h2 svg {
    color: var(--accent-blue);
}

.add-news-btn {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.add-news-btn:hover {
    background: #2563eb;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.feed-tabs {
    display: flex;
    gap: 4px;
}

.feed-tab {
    padding: 8px 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-family);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 20px;
    transition: var(--transition);
}

.feed-tab:hover {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
}

.feed-tab.active {
    color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.1);
}

.feed-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    scroll-behavior: smooth;
}

/* Custom scrollbar */
.feed-list::-webkit-scrollbar {
    width: 4px;
}

.feed-list::-webkit-scrollbar-track {
    background: transparent;
}

.feed-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

.feed-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Post Card */
.post-card {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition);
    cursor: pointer;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.post-card:hover {
    background: var(--gradient-hover);
}

.post-card.post-focus {
    background: linear-gradient(145deg, rgba(6, 182, 212, 0.12), rgba(59, 130, 246, 0.08));
    box-shadow: inset 3px 0 0 rgba(6, 182, 212, 0.85);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
    flex-shrink: 0;
}

.post-meta {
    flex: 1;
    min-width: 0;
}

.post-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.verified-badge {
    width: 16px;
    height: 16px;
    color: var(--accent-blue);
}

.post-handle {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.post-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.post-body {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.post-source-link {
    display: block;
    margin-top: 8px;
    margin-bottom: 8px;
    color: var(--accent-cyan);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    word-break: break-all;
}

.post-source-link:hover {
    text-decoration: underline;
}

.post-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-top: 8px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #000;
}

.post-media-video {
    position: relative;
}

.post-video-load-btn {
    position: absolute;
    inset: 0;
    z-index: 3;
    border: 0;
    border-radius: var(--radius-sm);
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.58));
    color: #f8fafc;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.post-media-video.video-loaded .post-video-load-btn,
.post-video-load-btn[hidden] {
    display: none;
}

.post-media-carousel {
    margin-top: 8px;
    position: relative;
}

.post-media-slides {
    position: relative;
}

.post-media-slide {
    display: none;
}

.post-media-slide.active {
    display: block;
}

.post-media-nav {
    position: absolute;
    top: 8px;
    z-index: 5;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #e2e8f0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
}

.post-media-prev {
    left: 8px;
}

.post-media-next {
    right: 8px;
}

.post-media-nav:hover {
    background: rgba(30, 41, 59, 0.92);
}

.post-media-counter {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.72);
    color: #cbd5e1;
    font-size: 0.68rem;
    font-weight: 600;
}

.post-thumbnail {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-sm);
    border: 0;
    display: block;
    object-fit: cover;
}

.post-thumbnail-clickable {
    cursor: zoom-in;
}

.post-tag {
    display: inline-block;
    color: var(--accent-blue);
    font-weight: 500;
}

.post-country-tag {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--accent-blue);
    margin-top: 6px;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.post-country-tag:hover {
    background: rgba(59, 130, 246, 0.16);
    border-color: rgba(125, 211, 252, 0.45);
    color: #bfdbfe;
}

.post-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    row-gap: 8px;
}

.post-action {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    background: none;
    border: none;
    font-family: var(--font-family);
    padding: 4px;
    border-radius: 4px;
}

.post-action:hover {
    color: var(--accent-blue);
}

.post-action:hover svg {
    transform: scale(1.15);
}

.post-action svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.post-action.liked {
    color: var(--accent-rose);
}

.post-action.retweeted {
    color: var(--accent-emerald);
}

.post-admin-views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.32);
    color: #cbd5e1;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1;
}

.post-admin-view-count {
    min-width: 1.5em;
    text-align: right;
}

.admin-edit-btn {
    padding: 4px 8px;
    border: 1px solid rgba(59, 130, 246, 0.28);
    border-radius: 8px;
    color: var(--accent-blue);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.admin-edit-btn:hover {
    background: rgba(59, 130, 246, 0.12);
    color: #dbeafe;
}

.admin-delete-btn {
    padding: 4px 8px;
    border: 1px solid rgba(239, 68, 68, 0.45);
    border-radius: 8px;
    color: #fca5a5;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.admin-delete-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #fee2e2;
}

.admin-delete-btn.admin-delete-armed {
    background: rgba(239, 68, 68, 0.22);
    border-color: rgba(252, 165, 165, 0.78);
    color: #fecaca;
}

/* ============================================
   MODAL & MEDIA
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

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

.modal-content {
    background: var(--bg-card);
    width: 400px;
    max-width: 90%;
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--border-accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform 0.3s;
}

.modal-overlay.visible .modal-content {
    transform: translateY(0);
}

.video-modal-open {
    overflow: hidden;
}

.video-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(5px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

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

.video-modal-shell {
    position: relative;
    width: min(1200px, 96vw);
    max-height: 92vh;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #000;
    box-shadow: 0 20px 55px rgba(2, 6, 23, 0.75);
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-player {
    width: 100%;
    max-height: calc(92vh - 28px);
    border-radius: 10px;
    display: block;
    background: #000;
}

.video-modal-image {
    width: auto;
    max-width: 100%;
    max-height: calc(92vh - 28px);
    border-radius: 10px;
    display: block;
    object-fit: contain;
    background: #000;
}

.video-modal-player[hidden],
.video-modal-image[hidden] {
    display: none !important;
}

.video-modal-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.45);
}

.video-modal-close:hover {
    background: #dc2626;
}

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

.modal-header h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

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

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-family);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--gradient-main);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    box-shadow: var(--shadow-glow);
}

.post-video {
    width: 100%;
    height: 100%;
    border-radius: 0;
    margin-top: 0;
    display: block;
    object-fit: cover;
    background: #000;
}

.open-video-btn,
.open-image-btn,
.open-media-btn {
    margin-top: 8px;
    padding: 6px 10px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.08);
    color: var(--accent-blue);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
}

.open-video-btn:hover,
.open-image-btn:hover,
.open-media-btn:hover {
    background: rgba(59, 130, 246, 0.14);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .feed-section {
        width: 320px;
        min-width: 320px;
    }

    .header-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }

    .map-section {
        height: 50vh;
    }

    .feed-section {
        width: 100%;
        min-width: 100%;
        height: 50vh;
    }

    .header-right .search-box {
        display: none;
    }

    .header-right {
        display: none;
    }

    .mobile-search-mount {
        display: block;
        padding: 10px 12px;
        background: var(--bg-secondary);
        border-top: 1px solid var(--border-subtle);
    }

    .mobile-search-mount .search-box {
        display: flex;
        width: 100%;
        border-radius: 12px;
        padding: 9px 12px;
    }

    .mobile-search-mount .search-box input {
        width: 100%;
        font-size: 0.9rem;
    }
}
