/* ============================================================
   EVENTS PAGE STYLES - PER STATE OVERRIDES
   ============================================================ */

/* ── BASE EVENT STYLES (applies to all states) ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.event-section {
    margin-bottom: 4rem;
}
.event-section-title {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
}

.filter-bar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding: 0.5rem 0;
}
.filter-btn {
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(0,0,0,1);
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    cursor: pointer;
}
.filter-btn:hover {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
}
.filter-btn.active {
    background: rgba(100,200,255,0.15);
    border-color: rgba(100,200,255,0.3);
    color: #64c8ff;
}

.event-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.event-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
}
.event-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.event-card-active {
    border-color: rgba(100,200,255,0.3);
    background: rgba(100,200,255,0.05);
}
.event-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}
.event-card-header h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
    flex: 1;
}
.event-type-tag {
    font-size: 0.65rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
    flex-shrink: 0;
    align-self: center;
}
.event-status {
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}
.event-status.active {
    background: rgba(100,200,255,0.2);
    color: #64c8ff;
}
.event-status.upcoming {
    background: rgba(255,200,100,0.2);
    color: #ffc864;
}
.event-status.past {
    background: rgba(255,255,255,0.1);
    color: #888;
}
.event-card-body {
    flex: 1;
}
.event-details p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
}
.event-description {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}
.event-card-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.event-link {
    color: #64c8ff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}
.event-link:hover {
    color: #88ddff;
    transform: translateX(4px);
}

/* ── SPACE STATE ── */
body.state-space .event-section {
    background: rgba(0,0,0,1);
}
body.state-space .event-section-title {
    color: #ffd700;
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
}
body.state-space .filter-btn {
    border: 1px solid rgba(255, 215, 0, 0.15);
    background: rgba(0,0,0,1);
    color: rgba(255,255,255,0.6);
}
body.state-space .filter-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
}
body.state-space .filter-btn.active {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.3);
    color: #ffd700;
}
body.state-space .event-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255, 215, 0, 0.08);
}
body.state-space .event-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255, 215, 0, 0.2);
}
body.state-space .event-card-active {
    border-color: rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.05);
}
body.state-space .event-card-header h3 {
    color: #ffd700;
}
body.state-space .event-status.active {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}
body.state-space .event-description {
    color: rgba(255,255,255,0.7);
}
body.state-space .event-link {
    color: #ffd700;
}
body.state-space .event-link:hover {
    color: #ffed4a;
}
body.state-space .intro-section {
    background: rgba(0,0,0,1);
    border: 1px solid rgba(255, 215, 0, 0.05);
}
body.state-space .intro-section p {
    color: rgba(255,255,255,0.7);
}
body.state-space .tbc-badge {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
}

/* ── EARTH STATE ── */
body.state-earth .event-section {
    background: rgba(26, 14, 8, 1);
}
body.state-earth .event-section-title {
    color: #e8a87c;
    border-bottom: 1px solid rgba(232, 168, 124, 0.15);
}
body.state-earth .filter-btn {
    border: 1px solid rgba(232, 168, 124, 0.15);
    background: rgba(26, 14, 8, 1);
    color: rgba(232, 213, 196, 0.6);
}
body.state-earth .filter-btn:hover {
    background: rgba(232, 168, 124, 0.1);
    color: #e8a87c;
}
body.state-earth .filter-btn.active {
    background: rgba(232, 168, 124, 0.15);
    border-color: rgba(232, 168, 124, 0.3);
    color: #e8a87c;
}
body.state-earth .event-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(232, 168, 124, 0.08);
}
body.state-earth .event-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(232, 168, 124, 0.2);
}
body.state-earth .event-card-active {
    border-color: rgba(232, 168, 124, 0.3);
    background: rgba(232, 168, 124, 0.05);
}
body.state-earth .event-card-header h3 {
    color: #e8a87c;
}
body.state-earth .event-status.active {
    background: rgba(232, 168, 124, 0.2);
    color: #e8a87c;
}
body.state-earth .event-description {
    color: rgba(212, 196, 184, 0.7);
}
body.state-earth .event-link {
    color: #e8a87c;
}
body.state-earth .event-link:hover {
    color: #f0b88c;
}
body.state-earth .intro-section {
    background: rgba(26, 14, 8, 1);
    border: 1px solid rgba(232, 168, 124, 0.05);
}
body.state-earth .intro-section p {
    color: rgba(212, 196, 184, 0.7);
}
body.state-earth .tbc-badge {
    background: rgba(232, 168, 124, 0.15);
    color: #e8a87c;
}

/* ── INTERIOR STATE ── */
body.state-interior .event-section {
    background: rgba(255, 255, 255, 1);
}
body.state-interior .event-section-title {
    color: #1a1a2e;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
body.state-interior .filter-btn {
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 1);
    color: rgba(26, 26, 46, 0.6);
}
body.state-interior .filter-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #1a1a2e;
}
body.state-interior .filter-btn.active {
    background: rgba(26, 26, 46, 0.08);
    border-color: rgba(26, 26, 46, 0.3);
    color: #1a1a2e;
}
body.state-interior .event-card {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.08);
}
body.state-interior .event-card:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.15);
}
body.state-interior .event-card-active {
    border-color: rgba(26, 26, 46, 0.3);
    background: rgba(26, 26, 46, 0.04);
}
body.state-interior .event-card-header h3 {
    color: #1a1a2e;
}
body.state-interior .event-status.active {
    background: rgba(26, 26, 46, 0.1);
    color: #1a1a2e;
}
body.state-interior .event-description {
    color: rgba(26, 26, 46, 0.7);
}
body.state-interior .event-link {
    color: #1a1a2e;
}
body.state-interior .event-link:hover {
    color: #000000;
}
body.state-interior .intro-section {
    background: rgba(255, 255, 255, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}
body.state-interior .intro-section p {
    color: rgba(26, 26, 46, 0.7);
}
body.state-interior .tbc-badge {
    background: rgba(26, 26, 46, 0.1);
    color: #1a1a2e;
}

/* ── INFINITE STATE ── */
body.state-infinite .event-section {
    background: rgba(10, 10, 18, 1);
}
body.state-infinite .event-section-title {
    color: #c8a8ff;
    border-bottom: 1px solid rgba(200, 168, 255, 0.15);
}
body.state-infinite .filter-btn {
    border: 1px solid rgba(200, 168, 255, 0.15);
    background: rgba(10, 10, 18, 1);
    color: rgba(200, 192, 216, 0.6);
}
body.state-infinite .filter-btn:hover {
    background: rgba(200, 168, 255, 0.1);
    color: #c8a8ff;
}
body.state-infinite .filter-btn.active {
    background: rgba(200, 168, 255, 0.15);
    border-color: rgba(200, 168, 255, 0.3);
    color: #c8a8ff;
}
body.state-infinite .event-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(200, 168, 255, 0.08);
}
body.state-infinite .event-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(200, 168, 255, 0.2);
}
body.state-infinite .event-card-active {
    border-color: rgba(200, 168, 255, 0.3);
    background: rgba(200, 168, 255, 0.05);
}
body.state-infinite .event-card-header h3 {
    color: #c8a8ff;
}
body.state-infinite .event-status.active {
    background: rgba(200, 168, 255, 0.2);
    color: #c8a8ff;
}
body.state-infinite .event-description {
    color: rgba(200, 192, 216, 0.7);
}
body.state-infinite .event-link {
    color: #c8a8ff;
}
body.state-infinite .event-link:hover {
    color: #d8b8ff;
}
body.state-infinite .intro-section {
    background: rgba(10, 10, 18, 1);
    border: 1px solid rgba(200, 168, 255, 0.05);
}
body.state-infinite .intro-section p {
    color: rgba(200, 192, 216, 0.7);
}
body.state-infinite .tbc-badge {
    background: rgba(200, 168, 255, 0.15);
    color: #c8a8ff;
}

/* ============================================================
   EVENT DETAIL PAGE STYLES - PER STATE
   ============================================================ */

/* ── BASE DETAIL STYLES ── */
.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: #64c8ff;
    text-decoration: none;
    font-size: 1rem;
}
.back-link:hover {
    color: #88ddff;
}
.detail-header {
    margin-bottom: 2.5rem;
}
.detail-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}
.detail-header .header-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}
.detail-status {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}
.detail-status.active {
    background: rgba(100,200,255,0.2);
    color: #64c8ff;
}
.detail-status.upcoming {
    background: rgba(255,200,100,0.2);
    color: #ffc864;
}
.detail-status.past {
    background: rgba(255,255,255,0.1);
    color: #888;
}
.detail-type-tag {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
}
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.detail-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.detail-meta {
    background: rgba(0,0,0,1);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 1.5rem;
}
.detail-meta p {
    margin: 0.5rem 0;
    font-size: 1rem;
}
.detail-meta .label {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.detail-description {
    background: rgba(0,0,0,1);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 1.5rem;
}
.detail-description p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
}
.detail-event-link {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.detail-event-link .label {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.detail-event-link a {
    color: #64c8ff;
    text-decoration: underline;
    word-break: break-all;
    font-size: 0.95rem;
}
.detail-event-link a:hover {
    color: #88ddff;
}
.detail-map {
    background: rgba(0,0,0,1);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    overflow: hidden;
    min-height: 400px;
    position: relative;
}
#map {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    background: #1a1a2e;
}
.map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    color: rgba(255,255,255,0.3);
    flex-direction: column;
    gap: 1rem;
}
.tbc-badge {
    display: inline-block;
    background: rgba(255,200,100,0.15);
    color: #ffc864;
    font-size: 0.7rem;
    padding: 0.15rem 0.6rem;
    border-radius: 12px;
    margin-left: 0.5rem;
    font-weight: 400;
}

/* ── DETAIL PAGE - SPACE STATE ── */
body.state-space .back-link {
    color: #ffd700;
}
body.state-space .back-link:hover {
    color: #ffed4a;
}
body.state-space .detail-header h1 {
    color: #ffd700;
}
body.state-space .detail-meta {
    background: rgba(0, 0, 0, 1);
    border: 1px solid rgba(255, 215, 0, 0.08);
}
body.state-space .detail-meta p {
    color: #fffcff;
}
body.state-space .detail-meta .label {
    color: rgba(255, 255, 255, 0.5);
}
body.state-space .detail-description {
    background: rgba(0, 0, 0, 1);
    border: 1px solid rgba(255, 215, 0, 0.08);
}
body.state-space .detail-description p {
    color: rgba(255,255,255,0.85);
}
body.state-space .detail-map {
    background: rgba(0, 0, 0, 1);
    border: 1px solid rgba(255, 215, 0, 0.08);
}
body.state-space .detail-event-link a {
    color: #ffd700;
}
body.state-space .detail-event-link a:hover {
    color: #ffed4a;
}
body.state-space .header-tags .detail-status {
    color: #fffcff;
}
body.state-space .header-tags .detail-type-tag {
    background: rgba(255, 255, 255, 0.1);
    color: #fffcff;
}
body.state-space .tbc-badge {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
}
body.state-space .map-placeholder {
    color: rgba(255,255,255,0.3);
}

/* ── DETAIL PAGE - EARTH STATE ── */
body.state-earth .back-link {
    color: #e8a87c;
}
body.state-earth .back-link:hover {
    color: #f0b88c;
}
body.state-earth .detail-header h1 {
    color: #e8a87c;
}
body.state-earth .detail-meta {
    background: rgba(26, 14, 8, 1);
    border: 1px solid rgba(232, 168, 124, 0.08);
}
body.state-earth .detail-meta p {
    color: #d4c4b8;
}
body.state-earth .detail-meta .label {
    color: rgba(212, 196, 184, 0.5);
}
body.state-earth .detail-description {
    background: rgba(26, 14, 8, 1);
    border: 1px solid rgba(232, 168, 124, 0.08);
}
body.state-earth .detail-description p {
    color: rgba(212, 196, 184, 0.85);
}
body.state-earth .detail-map {
    background: rgba(26, 14, 8, 1);
    border: 1px solid rgba(232, 168, 124, 0.08);
}
body.state-earth .detail-event-link a {
    color: #e8a87c;
}
body.state-earth .detail-event-link a:hover {
    color: #f0b88c;
}
body.state-earth .header-tags .detail-status {
    color: #d4c4b8;
}
body.state-earth .header-tags .detail-type-tag {
    background: rgba(232, 168, 124, 0.1);
    color: #d4c4b8;
}
body.state-earth .tbc-badge {
    background: rgba(232, 168, 124, 0.15);
    color: #e8a87c;
}
body.state-earth .map-placeholder {
    color: rgba(212, 196, 184, 0.3);
}

/* ── DETAIL PAGE - INTERIOR STATE ── */
body.state-interior .back-link {
    color: #1a1a2e;
}
body.state-interior .back-link:hover {
    color: #000000;
}
body.state-interior .detail-header h1 {
    color: #1a1a2e;
}
body.state-interior .detail-meta {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}
body.state-interior .detail-meta p {
    color: #1a1a2e;
}
body.state-interior .detail-meta .label {
    color: rgba(26, 26, 46, 0.5);
}
body.state-interior .detail-description {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}
body.state-interior .detail-description p {
    color: rgba(26, 26, 46, 0.85);
}
body.state-interior .detail-map {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}
body.state-interior .detail-event-link a {
    color: #1a1a2e;
}
body.state-interior .detail-event-link a:hover {
    color: #000000;
}
body.state-interior .header-tags .detail-status {
    color: #1a1a2e;
}
body.state-interior .header-tags .detail-type-tag {
    background: rgba(0, 0, 0, 0.08);
    color: #1a1a2e;
}
body.state-interior .tbc-badge {
    background: rgba(26, 26, 46, 0.1);
    color: #1a1a2e;
}
body.state-interior .map-placeholder {
    color: rgba(26, 26, 46, 0.3);
}
body.state-interior .map-placeholder p {
    color: rgba(26, 26, 46, 0.5);
}

/* ── DETAIL PAGE - INFINITE STATE ── */
body.state-infinite .back-link {
    color: #c8a8ff;
}
body.state-infinite .back-link:hover {
    color: #d8b8ff;
}
body.state-infinite .detail-header h1 {
    color: #c8a8ff;
}
body.state-infinite .detail-meta {
    background: rgba(10, 10, 18, 1);
    border: 1px solid rgba(200, 168, 255, 0.08);
}
body.state-infinite .detail-meta p {
    color: #c8c0d8;
}
body.state-infinite .detail-meta .label {
    color: rgba(200, 192, 216, 0.5);
}
body.state-infinite .detail-description {
    background: rgba(10, 10, 18, 1);
    border: 1px solid rgba(200, 168, 255, 0.08);
}
body.state-infinite .detail-description p {
    color: rgba(200, 192, 216, 0.85);
}
body.state-infinite .detail-map {
    background: rgba(10, 10, 18, 1);
    border: 1px solid rgba(200, 168, 255, 0.08);
}
body.state-infinite .detail-event-link a {
    color: #c8a8ff;
}
body.state-infinite .detail-event-link a:hover {
    color: #d8b8ff;
}
body.state-infinite .header-tags .detail-status {
    color: #c8c0d8;
}
body.state-infinite .header-tags .detail-type-tag {
    background: rgba(200, 168, 255, 0.1);
    color: #c8c0d8;
}
body.state-infinite .tbc-badge {
    background: rgba(200, 168, 255, 0.15);
    color: #c8a8ff;
}
body.state-infinite .map-placeholder {
    color: rgba(200, 192, 216, 0.3);
}

/* ============================================================
   RESPONSIVE - EVENTS
   ============================================================ */
@media (max-width: 768px) {
    .event-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .detail-header h1 {
        font-size: 1.8rem;
    }
    #map {
        height: 300px;
    }
    .detail-map {
        min-height: 300px;
    }
    .filter-bar {
        gap: 0.3rem;
    }
    .filter-btn {
        padding: 0.3rem 0.8rem;
        font-size: 0.75rem;
    }
}


/* ============================================================
   EVENT DETAIL CONTAINER STYLES - PER STATE
   ============================================================ */

/* ── BASE STYLES (applies to all states) ── */

.detail-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-map {
    background: rgba(0,0,0,1);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    overflow: hidden;
    min-height: 400px;
    position: relative;
}

.detail-gallery {
    grid-column: 1 / -1;
    margin-top: 1rem;
    background: rgba(0,0,0,1);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 1.5rem;
}

.detail-gallery h3 {
    font-weight: 300;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.detail-video {
    grid-column: 1 / -1;
    margin-top: 1rem;
    background: rgba(0,0,0,1);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 1.5rem;
}

.detail-video h3 {
    font-weight: 300;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.detail-review {
    grid-column: 1 / -1;
    margin-top: 1rem;
    background: rgba(0,0,0,1);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 1.5rem;
}


.detail-links {
    grid-column: 1 / -1;
    margin-top: 1rem;
    background: rgba(0,0,0,1);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 1.5rem;
}

.detail-review h3 {
    font-weight: 300;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.detail-review .review-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
}

.detail-review .review-content p {
    margin-bottom: 1rem;
}

.detail-review .review-content a {
    color: #64c8ff;
    text-decoration: underline;
}

.detail-review .review-content a:hover {
    color: #88ddff;
}

.detail-review .review-content ul,
.detail-review .review-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.detail-review .review-content blockquote {
    border-left: 3px solid rgba(100,200,255,0.3);
    padding-left: 1rem;
    margin: 1rem 0;
    color: rgba(255,255,255,0.6);
}

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

.video-item {
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.video-item:hover {
    transform: translateY(-2px);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-title {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    font-weight: 400;
    text-align: center;
    background: rgba(0,0,0,0.5);
    border-top: 1px solid rgba(255,255,255,0.05);
}

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

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.02);
}

#map {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    background: #1a1a2e;
}

.map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    color: rgba(255,255,255,0.3);
    flex-direction: column;
    gap: 1rem;
}

/* ── SPACE STATE ── */
body.state-space .detail-info {
    background: transparent;
}

body.state-space .detail-map {
    background: rgba(0, 0, 0, 1);
    border: 1px solid rgba(255, 215, 0, 0.08);
}

body.state-space .detail-map #map {
    background: #0a0a0a;
}

body.state-space .detail-gallery {
    background: rgba(0, 0, 0, 1);
    border: 1px solid rgba(255, 215, 0, 0.08);
}

body.state-space .detail-gallery h3 {
    color: #ffd700;
}

body.state-space .detail-video {
    background: rgba(0, 0, 0, 1);
    border: 1px solid rgba(255, 215, 0, 0.08);
}

body.state-space .detail-video h3 {
    color: #ffd700;
}

body.state-space .detail-review {
    background: rgba(0, 0, 0, 1);
    border: 1px solid rgba(255, 215, 0, 0.08);
}


body.state-space .detail-links {
    background: rgba(0, 0, 0, 1);
    border: 1px solid rgba(255, 215, 0, 0.08);
}


body.state-space .detail-review h3 {
    color: #ffd700;
}

body.state-space .detail-review .review-content {
    color: rgba(255,255,255,15);
}

body.state-space .detail-review .review-content a {
    color: #ffd700;
}

body.state-space .detail-review .review-content a:hover {
    color: #ffed4a;
}

body.state-space .detail-review .review-content blockquote {
    border-left: 3px solid rgba(255, 215, 0, 0.3);
    color: rgba(255,255,255,0.6);
}

body.state-space .map-placeholder {
    color: rgba(255,255,255,0.3);
}

/* ── EARTH STATE ── */
body.state-earth .detail-info {
    background: transparent;
}

body.state-earth .detail-map {
    background: rgba(26, 14, 8, 1);
    border: 1px solid rgba(232, 168, 124, 0.08);
}

body.state-earth .detail-map #map {
    background: #1a0e08;
}

body.state-earth .detail-gallery {
    background: rgba(26, 14, 8, 1);
    border: 1px solid rgba(232, 168, 124, 0.08);
}

body.state-earth .detail-gallery h3 {
    color: #e8a87c;
}

body.state-earth .detail-video {
    background: rgba(26, 14, 8, 1);
    border: 1px solid rgba(232, 168, 124, 0.08);
}

body.state-earth .detail-video h3 {
    color: #e8a87c;
}

body.state-earth .detail-review {
    background: rgba(26, 14, 8, 1);
    border: 1px solid rgba(232, 168, 124, 0.08);
}

body.state-earth .detail-links {
    background: rgba(26, 14, 8, 1);
    border: 1px solid rgba(232, 168, 124, 0.08);
}

body.state-earth .detail-review h3 {
    color: #e8a87c;
}

body.state-earth .detail-review .review-content {
    color: rgba(212, 196, 184, 0.85);
}

body.state-earth .detail-review .review-content a {
    color: #e8a87c;
}

body.state-earth .detail-review .review-content a:hover {
    color: #f0b88c;
}

body.state-earth .detail-review .review-content blockquote {
    border-left: 3px solid rgba(232, 168, 124, 0.3);
    color: rgba(212, 196, 184, 0.6);
}

body.state-earth .map-placeholder {
    color: rgba(212, 196, 184, 0.3);
}

/* ── INTERIOR STATE ── */
body.state-interior .detail-info {
    background: transparent;
}

body.state-interior .detail-map {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.state-interior .detail-map #map {
    background: #e8e8ed;
}

body.state-interior .detail-gallery {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.state-interior .detail-gallery h3 {
    color: #1a1a2e;
}

body.state-interior .detail-gallery .gallery-grid img {
    border: 1px solid rgba(0, 0, 0, 0.06);
}

body.state-interior .detail-video {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.state-interior .detail-video h3 {
    color: #1a1a2e;
}

body.state-interior .detail-video .video-item {
    background: rgba(0, 0, 0, 0.02);
}

body.state-interior .detail-video .video-title {
    color: #1a1a2e;
    background: rgba(0, 0, 0, 0.03);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

body.state-interior .detail-review {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.state-interior .detail-links {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.state-interior .detail-review h3 {
    color: #1a1a2e;
}

body.state-interior .detail-review .review-content {
    color: rgba(26, 26, 46, 0.85);
}

body.state-interior .detail-review .review-content a {
    color: #1a1a2e;
}

body.state-interior .detail-review .review-content a:hover {
    color: #000000;
}

body.state-interior .detail-review .review-content blockquote {
    border-left: 3px solid rgba(26, 26, 46, 0.3);
    color: rgba(26, 26, 46, 0.6);
}

body.state-interior .map-placeholder {
    color: rgba(26, 26, 46, 0.3);
}

body.state-interior .map-placeholder p {
    color: rgba(26, 26, 46, 0.5);
}

body.state-interior .map-placeholder span {
    opacity: 0.5;
}

/* ── INFINITE STATE ── */
body.state-infinite .detail-info {
    background: transparent;
}

body.state-infinite .detail-map {
    background: rgba(10, 10, 18, 1);
    border: 1px solid rgba(200, 168, 255, 0.08);
}

body.state-infinite .detail-map #map {
    background: #0a0a18;
}

body.state-infinite .detail-gallery {
    background: rgba(10, 10, 18, 1);
    border: 1px solid rgba(200, 168, 255, 0.08);
}

body.state-infinite .detail-gallery h3 {
    color: #c8a8ff;
}

body.state-infinite .detail-gallery .gallery-grid img {
    border: 1px solid rgba(200, 168, 255, 0.06);
}

body.state-infinite .detail-video {
    background: rgba(10, 10, 18, 1);
    border: 1px solid rgba(200, 168, 255, 0.08);
}

body.state-infinite .detail-video h3 {
    color: #c8a8ff;
}

body.state-infinite .detail-video .video-item {
    background: rgba(255,255,255,0.02);
}

body.state-infinite .detail-video .video-title {
    color: #c8c0d8;
    background: rgba(0,0,0,0.5);
    border-top: 1px solid rgba(200, 168, 255, 0.05);
}

body.state-infinite .detail-review {
    background: rgba(10, 10, 18, 1);
    border: 1px solid rgba(200, 168, 255, 0.08);
}

body.state-infinite .detail-review h3 {
    color: #c8a8ff;
}

body.state-infinite .detail-review .review-content {
    color: rgba(200, 192, 216, 0.85);
}

body.state-infinite .detail-review .review-content a {
    color: #c8a8ff;
}

body.state-infinite .detail-review .review-content a:hover {
    color: #d8b8ff;
}

body.state-infinite .detail-review .review-content blockquote {
    border-left: 3px solid rgba(200, 168, 255, 0.3);
    color: rgba(200, 192, 216, 0.6);
}

body.state-infinite .map-placeholder {
    color: rgba(200, 192, 216, 0.3);
}

body.state-infinite .map-placeholder p {
    color: rgba(200, 192, 216, 0.5);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .detail-gallery,
    .detail-video,
    .detail-review {
        padding: 1rem;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .gallery-grid img {
        height: 150px;
    }
    
    .detail-map {
        min-height: 300px;
    }
    
    #map {
        height: 300px;
    }
    
    .map-placeholder {
        height: 300px;
    }
}