/* ================================================================
   GlassWindowBridge.com — Main Stylesheet
   Theme: Clean coastal professional, mobile-first
   ================================================================ */

/* ---------------------------------------------------------------
   CSS Variables
--------------------------------------------------------------- */
:root {
    --ocean-deep:    #0a3d62;
    --ocean-mid:     #1565a8;
    --ocean-light:   #2196f3;
    --turquoise:     #00bcd4;
    --turquoise-lt:  #e0f7fa;
    --sand:          #f5f0e8;
    --sand-dark:     #e8dcc8;
    --rock:          #607d8b;
    --rock-dark:     #37474f;
    --white:         #ffffff;

    /* Status colors */
    --status-open:   #2e7d32;
    --status-closed: #c62828;
    --status-calm:   #1565c0;
    --status-rough:  #e65100;
    --status-mixed:  #f57f17;
    --status-unk:    #546e7a;

    /* Typography */
    --font-body:     'Inter', system-ui, sans-serif;
    --font-heading:  'Montserrat', system-ui, sans-serif;

    /* Radii */
    --radius-sm:  8px;
    --radius-md:  16px;
    --radius-lg:  24px;

    /* Shadows */
    --shadow-sm:  0 2px 8px rgba(0,0,0,0.10);
    --shadow-md:  0 4px 20px rgba(0,0,0,0.14);
    --shadow-lg:  0 8px 40px rgba(0,0,0,0.18);
}

/* ---------------------------------------------------------------
   Base
--------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--sand);
    color: var(--rock-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 16px;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a { color: var(--ocean-mid); }
a:hover { color: var(--ocean-deep); }

/* ---------------------------------------------------------------
   Navbar
--------------------------------------------------------------- */
.gwb-navbar {
    background: linear-gradient(135deg, var(--ocean-deep) 0%, #0d4f80 100%);
    padding: 0.75rem 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.gwb-navbar .navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

.brand-icon { font-size: 1.5rem; margin-right: 0.25rem; }
.brand-name { color: var(--white); font-weight: 800; }
.brand-tld  { color: var(--turquoise); font-weight: 700; }

.gwb-navbar .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem !important;
    border-radius: var(--radius-sm);
    transition: background 0.2s, color 0.2s;
}

.gwb-navbar .nav-link:hover {
    background: rgba(255,255,255,0.12);
    color: var(--white) !important;
}

.btn-report-nav {
    background: var(--turquoise);
    color: var(--ocean-deep) !important;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.45rem 1.1rem;
    border-radius: 20px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
}

.btn-report-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,188,212,0.4);
    color: var(--ocean-deep) !important;
}

/* ---------------------------------------------------------------
   Hero Section
--------------------------------------------------------------- */
.hero-section {
    position: relative;
    min-height: 440px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--ocean-deep);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/bridge-aerial.jpg');
    background-size: cover;
    background-position: center 40%;
    opacity: 0.45;
    transition: opacity 0.5s;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10,61,98,0.6) 0%,
        rgba(10,61,98,0.75) 60%,
        rgba(10,61,98,0.92) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 3rem 0 2.5rem;
    width: 100%;
}

.hero-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    color: var(--white);
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 1.05rem;
    margin-bottom: 0;
}

/* ---------------------------------------------------------------
   Status Card
--------------------------------------------------------------- */
.status-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.status-card-header {
    background: linear-gradient(135deg, var(--ocean-deep), var(--ocean-mid));
    color: var(--white);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-card-body {
    padding: 1.25rem;
}

/* Confidence / meta row */
.status-meta-row {
    margin-top: 0.25rem;
}

/* Status axis label */
.status-axis-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--rock);
    margin-bottom: 0.4rem;
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.status-open        { background: #e8f5e9; color: var(--status-open); border: 2px solid var(--status-open); }
.status-closed      { background: #ffebee; color: var(--status-closed); border: 2px solid var(--status-closed); }
.status-calm        { background: #e3f2fd; color: var(--status-calm); border: 2px solid var(--status-calm); }
.status-rough       { background: #fff3e0; color: var(--status-rough); border: 2px solid var(--status-rough); }
.status-mixed       { background: #fffde7; color: var(--status-mixed); border: 2px solid var(--status-mixed); }
.status-unconfirmed { background: #eceff1; color: var(--status-unk);    border: 2px dashed var(--status-unk); }

/* Confidence meter */
.confidence-bar-wrap {
    background: #e9ecef;
    border-radius: 20px;
    height: 8px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.confidence-bar {
    height: 100%;
    border-radius: 20px;
    transition: width 1s ease;
}

.conf-high   .confidence-bar { background: var(--status-open);  width: 100%; }
.conf-medium .confidence-bar { background: var(--status-mixed); width: 66%; }
.conf-low    .confidence-bar { background: var(--status-rough); width: 33%; }
.conf-none   .confidence-bar { background: #ccc;                width: 5%; }

.confidence-label {
    font-size: 0.78rem;
    color: var(--rock);
    margin-top: 0.3rem;
}

/* Status divider */
.status-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--rock);
    font-size: 0.8rem;
    margin: 1rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-divider::before,
.status-divider::after {
    content: '';
    flex: 1;
    border-top: 1px solid #dee2e6;
}

/* Auto-refresh indicator */
.refresh-indicator {
    font-size: 0.78rem;
    color: var(--rock);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.refresh-dot {
    width: 8px;
    height: 8px;
    background: var(--turquoise);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.8); }
}

/* ---------------------------------------------------------------
   Report Buttons
--------------------------------------------------------------- */
.report-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.report-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ocean-deep);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-report {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    min-height: 90px;
    padding: 1rem 0.75rem;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid transparent;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.2s;
    cursor: pointer;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-report:active {
    transform: scale(0.97);
}

.btn-report:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-report .report-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.btn-report .report-label {
    font-size: 0.88rem;
    line-height: 1.2;
    text-align: center;
}

.btn-report-open  { background: var(--status-open);  color: var(--white); }
.btn-report-close { background: var(--status-closed); color: var(--white); }
.btn-report-calm  { background: var(--status-calm);   color: var(--white); }
.btn-report-rough { background: var(--status-rough);  color: var(--white); }

.btn-report-open:hover  { background: #1b5e20; color: var(--white); }
.btn-report-close:hover { background: #b71c1c; color: var(--white); }
.btn-report-calm:hover  { background: #0d47a1; color: var(--white); }
.btn-report-rough:hover { background: #bf360c; color: var(--white); }

/* ---------------------------------------------------------------
   Reports Feed
--------------------------------------------------------------- */
.reports-feed {
    margin-top: 1.5rem;
}

.report-item {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid transparent;
    transition: transform 0.15s;
}

.report-item:hover {
    transform: translateX(3px);
}

.report-item-open   { border-left-color: var(--status-open); }
.report-item-closed { border-left-color: var(--status-closed); }
.report-item-calm   { border-left-color: var(--status-calm); }
.report-item-rough  { border-left-color: var(--status-rough); }

.report-meta {
    font-size: 0.8rem;
    color: var(--rock);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.4rem;
}

.report-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.badge-trusted {
    background: #fff8e1;
    color: #e65100;
    border: 1px solid #ffcc80;
    font-size: 0.72rem;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-weight: 600;
}

.report-comment {
    font-size: 0.9rem;
    margin-top: 0.3rem;
    color: var(--rock-dark);
    font-style: italic;
}

/* ---------------------------------------------------------------
   Page Sections
--------------------------------------------------------------- */
.section-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ocean-deep);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ---------------------------------------------------------------
   Auth Pages (Login / Register)
--------------------------------------------------------------- */
.auth-page {
    background: linear-gradient(160deg, var(--ocean-deep) 0%, #0d6efd20 100%);
    min-height: 100vh;
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem 2rem;
    max-width: 440px;
    margin: 0 auto;
}

.auth-card-title {
    font-size: 1.6rem;
    color: var(--ocean-deep);
    margin-bottom: 0.25rem;
}

.auth-card-subtitle {
    color: var(--rock);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--rock-dark);
}

.form-control {
    border-radius: var(--radius-sm);
    border: 1.5px solid #dee2e6;
    padding: 0.65rem 0.9rem;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--ocean-mid);
    box-shadow: 0 0 0 3px rgba(21,101,168,0.15);
}

.btn-ocean {
    background: linear-gradient(135deg, var(--ocean-mid), var(--ocean-deep));
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.75rem;
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-ocean:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(10,61,98,0.35);
    color: var(--white);
}

/* ---------------------------------------------------------------
   Admin Pages
--------------------------------------------------------------- */
.admin-sidebar {
    background: var(--ocean-deep);
    min-height: calc(100vh - 60px);
    padding-top: 1.5rem;
}

.admin-nav-link {
    color: rgba(255,255,255,0.75);
    padding: 0.6rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    margin: 0.1rem 0.5rem;
    transition: background 0.2s, color 0.2s;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    background: rgba(255,255,255,0.12);
    color: var(--white);
}

.admin-nav-link i { width: 1.2rem; text-align: center; }

.admin-content {
    padding: 1.5rem;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--ocean-mid);
}

.stat-card-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--ocean-deep);
    line-height: 1;
}

.stat-card-label {
    font-size: 0.82rem;
    color: var(--rock);
    margin-top: 0.25rem;
}

/* ---------------------------------------------------------------
   Toast Notifications
--------------------------------------------------------------- */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
}

.gwb-toast {
    background: var(--ocean-deep);
    color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 280px;
}

.gwb-toast.toast-success { border-left: 4px solid var(--status-open); }
.gwb-toast.toast-error   { border-left: 4px solid var(--status-closed); }

/* ---------------------------------------------------------------
   Image Gallery Section
--------------------------------------------------------------- */
.bridge-photo {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.bridge-photo img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s;
}

.bridge-photo:hover img {
    transform: scale(1.03);
}

/* ---------------------------------------------------------------
   About / Info Cards
--------------------------------------------------------------- */
.info-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    height: 100%;
}

.info-card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

/* ---------------------------------------------------------------
   Footer
--------------------------------------------------------------- */
.gwb-footer {
    background: var(--ocean-deep);
    color: rgba(255,255,255,0.75);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.footer-brand {
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
}

.footer-heading {
    color: var(--turquoise);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li { margin-bottom: 0.4rem; }

.footer-links a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--turquoise); }

.footer-disclaimer {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.5;
}

.footer-disclaimer strong { color: rgba(255,255,255,0.8); }

.footer-divider {
    border-color: rgba(255,255,255,0.12);
    margin: 1.5rem 0 1rem;
}

.footer-copy {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
    margin: 0;
}

.footer-legal-link {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
}

.footer-legal-link:hover { color: var(--turquoise); }

/* ---------------------------------------------------------------
   Utility
--------------------------------------------------------------- */
.text-ocean { color: var(--ocean-mid); }
.bg-ocean   { background: var(--ocean-deep); }
.bg-sand    { background: var(--sand); }

.card-gwb {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: none;
}

/* ---------------------------------------------------------------
   Mobile Optimizations
--------------------------------------------------------------- */
@media (max-width: 767.98px) {
    .btn-report   { min-height: 80px; }
    .btn-report .report-icon  { font-size: 1.5rem; }
    .btn-report .report-label { font-size: 0.82rem; }

    .auth-card { padding: 1.75rem 1.25rem; }

    .toast-container {
        bottom: 1rem;
        right: 0.75rem;
        left: 0.75rem;
    }

    .gwb-toast { min-width: auto; width: 100%; }
}

/* ---------------------------------------------------------------
   Print
--------------------------------------------------------------- */
@media print {
    .gwb-navbar, .gwb-footer, .report-section { display: none; }
    .status-card { box-shadow: none; border: 1px solid #ccc; margin-top: 0; }
}

/* ---------------------------------------------------------------
   Community Chat
--------------------------------------------------------------- */
.chat-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-top: 1.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: linear-gradient(135deg, var(--ocean-deep), #0d5a8a);
    color: var(--white);
    padding: 0.75rem 1.25rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-live-dot {
    width: 8px;
    height: 8px;
    background: #4cff91;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
    flex-shrink: 0;
}

.chat-online-count {
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255,255,255,0.6);
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: 0;
}

.chat-window {
    height: 320px;
    overflow-y: auto;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    background: #f8f9fa;
    scroll-behavior: smooth;
}

.chat-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rock);
    font-size: 0.85rem;
    margin: auto;
}

.chat-msg {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    animation: chat-fade-in 0.2s ease;
}

.chat-msg.chat-msg-mine { flex-direction: row-reverse; }

@keyframes chat-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.chat-msg-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--ocean-mid);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--font-heading);
}

.chat-msg-mine    .chat-msg-avatar { background: var(--ocean-deep); }
.chat-msg-admin   .chat-msg-avatar { background: #c62828; }
.chat-msg-trusted .chat-msg-avatar { background: #e65100; }

.chat-msg-body { max-width: 78%; }

.chat-msg-mine .chat-msg-body {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
}

.chat-msg-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--rock);
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.chat-msg-mine .chat-msg-name { flex-direction: row-reverse; }

.chat-badge-trusted {
    font-size: 0.65rem;
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffcc80;
    border-radius: 10px;
    padding: 0 0.35rem;
}

.chat-badge-admin {
    font-size: 0.65rem;
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
    border-radius: 10px;
    padding: 0 0.35rem;
}

.chat-bubble {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 16px 16px 16px 4px;
    padding: 0.5rem 0.85rem;
    font-size: 0.88rem;
    color: var(--rock-dark);
    line-height: 1.4;
    word-break: break-word;
    box-shadow: 0 1px 3px rgba(0,0,0,0.07);
}

.chat-msg-mine .chat-bubble {
    background: var(--ocean-deep);
    color: var(--white);
    border-color: transparent;
    border-radius: 16px 16px 4px 16px;
}

.chat-msg-time {
    font-size: 0.68rem;
    color: #aaa;
    margin-top: 0.2rem;
    padding: 0 0.2rem;
}

.chat-empty {
    text-align: center;
    color: var(--rock);
    font-size: 0.85rem;
    margin: auto;
    padding: 1rem;
}

.chat-empty-icon { font-size: 2rem; margin-bottom: 0.4rem; }

.chat-input-area {
    border-top: 1px solid #e9ecef;
    padding: 0.75rem 1rem 0.5rem;
    background: var(--white);
}

.chat-input-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ocean-mid);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--font-heading);
}

.chat-input {
    flex: 1;
    border: 1.5px solid #dee2e6;
    border-radius: 20px;
    padding: 0.45rem 0.9rem;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
    background: #f8f9fa;
}

.chat-input:focus {
    border-color: var(--ocean-mid);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(21,101,168,0.1);
}

.chat-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ocean-mid);
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.15s;
}

.chat-send-btn:hover    { background: var(--ocean-deep); transform: scale(1.05); }
.chat-send-btn:active   { transform: scale(0.95); }
.chat-send-btn:disabled { background: #ccc; cursor: not-allowed; transform: none; }

.chat-char-count {
    font-size: 0.72rem;
    color: #bbb;
    text-align: right;
    margin-top: 0.2rem;
    padding-right: 0.2rem;
    transition: color 0.2s;
}

.chat-char-count.chat-chars-warn  { color: var(--status-rough); }
.chat-char-count.chat-chars-limit { color: var(--status-closed); font-weight: 700; }

.chat-guest-bar {
    border-top: 1px solid #e9ecef;
    padding: 0.85rem 1.25rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--rock);
    background: #f8f9fa;
}

.chat-guest-bar a { font-weight: 600; }

.chat-date-sep {
    text-align: center;
    font-size: 0.72rem;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.25rem 0;
}

.chat-date-sep::before,
.chat-date-sep::after {
    content: '';
    flex: 1;
    border-top: 1px solid #e0e0e0;
}

@media (max-width: 767.98px) {
    .chat-window { height: 260px; }
    .chat-bubble  { font-size: 0.85rem; }
}

/* ---------------------------------------------------------------
   Ad Banner Slots
--------------------------------------------------------------- */
.ad-slot {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: #f0f2f5;
    margin-top: 1.25rem;
}

.ad-slot-main {
    width: 100%;
    min-height: 60px;
}

.ad-slot-main .ad-slide img {
    width: 100%;
    max-height: 120px;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-md);
}

.ad-slot-sidebar {
    width: 100%;
}

.ad-slot-sidebar .ad-slide img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-md);
}

.ad-slide {
    display: none;
}

.ad-slide.active {
    display: block;
    animation: ad-fade 0.5s ease;
}

@keyframes ad-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Dot indicators */
.ad-dots {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
}

.ad-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.2s;
}

.ad-dot.active { background: var(--white); }

/* Placeholder when no ads uploaded */
.ad-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.1rem;
    border: 2px dashed #c8d6df;
    background: #f8f9fa;
    color: var(--rock);
    font-size: 0.82rem;
    text-align: center;
    min-height: 70px;
}

.ad-placeholder i {
    font-size: 1.4rem;
    color: var(--ocean-mid);
    opacity: 0.5;
}

.ad-placeholder-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ocean-mid);
}

/* ---------------------------------------------------------------
   Community Condition Photos
--------------------------------------------------------------- */
.cond-photo-main {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.cond-photo-main img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.cond-photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(10,61,98,0.88));
    padding: 0.6rem 0.75rem 0.5rem;
}

.cond-photo-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--ocean-deep);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    font-family: var(--font-heading);
}

.cond-photo-thumb {
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1;
}

.cond-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.cond-photo-thumb:hover img {
    transform: scale(1.07);
}

/* ---------------------------------------------------------------
   Report Photo Upload
--------------------------------------------------------------- */
.report-photo-upload {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #dee2e6;
}

.report-photo-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--ocean-mid);
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    border: 1.5px dashed var(--ocean-mid);
    border-radius: var(--radius-sm);
    transition: background 0.2s, color 0.2s;
}

.report-photo-label:hover {
    background: var(--turquoise-lt);
}

/* ---------------------------------------------------------------
   Stale Status Warning
--------------------------------------------------------------- */
.stale-warning {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #fff3cd;
    border: 1.5px solid #ffc107;
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.9rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.stale-warning-dot {
    width: 9px;
    height: 9px;
    background: #dc3545;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse-dot 1.5s infinite;
}

.stale-warning-text {
    font-size: 0.82rem;
    color: #856404;
    font-weight: 600;
    flex: 1;
}

.stale-warning-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #dc3545;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    white-space: nowrap;
    font-family: var(--font-heading);
}

@media (max-width: 575px) {
    .stale-warning { gap: 0.4rem; }
    .stale-warning-text { font-size: 0.78rem; }
}