/* ============================================================
   ACM Rental Market Analysis Dashboard — v1.0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600&family=Rajdhani:wght@400;500;600;700&display=swap');

.acm-rm-fullwidth {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    margin-left: -50vw !important;
    background: #07080A !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    font-family: 'Rajdhani', sans-serif;
    color: #E8E0D0;
}

/* ── Red ACM Banner Header ── */
.acm-rm-header {
    background: linear-gradient(135deg, #6B0000 0%, #8B0000 40%, #7A0000 100%);
    border-bottom: 3px solid #C9A84C;
    padding: 28px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.acm-rm-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(0,0,0,0.04) 40px, rgba(0,0,0,0.04) 80px);
    pointer-events: none;
}
.acm-rm-brand {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(232,224,208,0.65);
    margin-bottom: 8px;
}
.acm-rm-title {
    font-size: 30px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0;
}
.acm-rm-sub {
    font-size: 11px;
    color: rgba(232,224,208,0.55);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 6px;
}
.acm-rm-badge {
    border: 1px solid rgba(201,168,76,0.6);
    padding: 12px 20px;
    text-align: center;
    flex-shrink: 0;
}
.acm-rm-live {
    font-size: 11px;
    letter-spacing: 2px;
    color: #00C853;
    margin-bottom: 6px;
}
.acm-rm-byline-label {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(232,224,208,0.5);
    margin-bottom: 3px;
}
.acm-rm-byline-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    color: #E8CC7A;
}
.acm-rm-byline-sub {
    font-size: 10px;
    color: rgba(232,224,208,0.4);
    letter-spacing: 1px;
    margin-top: 2px;
}
@media (max-width: 700px) {
    .acm-rm-header { flex-direction: column; gap: 16px; padding: 24px 20px; }
    .acm-rm-title  { font-size: 22px; }
}

/* ── Scrolling Ticker ── */
.acm-rm-ticker-wrap {
    background: #0A0B0E;
    border-bottom: 1px solid rgba(201,168,76,0.2);
    overflow: hidden;
    white-space: nowrap;
    padding: 10px 0;
}
.acm-rm-ticker {
    display: inline-block;
    animation: acm-rm-scroll 80s linear infinite;
}
.acm-rm-ticker:hover { animation-play-state: paused; }
@keyframes acm-rm-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.acm-rm-tick-item {
    display: inline-block;
    padding: 0 32px;
    font-size: 13px;
    color: #8A8278;
    border-right: 1px solid rgba(201,168,76,0.15);
}
.acm-rm-tick-item strong { color: #E8CC7A; }
.acm-rm-tick-item em { font-style: normal; font-size: 11px; }
.acm-rm-tick-item em.up { color: #00C853; }
.acm-rm-tick-item em.dn { color: #FF1744; }

/* ── Meta bar ── */
.acm-rm-meta-bar {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 48px;
    background: #0A0B0E;
    font-size: 11px;
    color: #555;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(201,168,76,0.1);
}

/* ── Dashboard content ── */
.acm-rm-dashboard {
    padding: 32px 48px 48px;
}
@media (max-width: 700px) { .acm-rm-dashboard { padding: 20px 16px 32px; } }

/* ── Groups ── */
.acm-rm-group { margin-bottom: 40px; }
.acm-rm-group-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #C9A84C;
    border-bottom: 1px solid rgba(201,168,76,0.2);
    padding-bottom: 10px;
    margin-bottom: 16px;
}

/* ── Cards ── */
.acm-rm-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.acm-rm-card {
    background: #0E1014;
    border: 1px solid rgba(201,168,76,0.12);
    border-top: 3px solid rgba(201,168,76,0.3);
    padding: 18px 16px 14px;
    cursor: default;
    animation: acm-rm-fadein 0.4s ease both;
    transition: border-color 0.2s, transform 0.2s;
}
.acm-rm-card:hover { border-color: rgba(201,168,76,0.5); transform: translateY(-2px); }
.acm-rm-card.up { border-top-color: #00C853; }
.acm-rm-card.dn { border-top-color: #FF1744; }
@keyframes acm-rm-fadein { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

.acm-rm-card-label {
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #8A8278;
    margin-bottom: 10px;
    line-height: 1.3;
}
.acm-rm-card-value {
    font-size: 28px;
    font-weight: 700;
    color: #E8CC7A;
    line-height: 1;
    margin-bottom: 10px;
}
.acm-rm-err { color: #555 !important; font-size: 14px !important; }
.acm-rm-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
}
.acm-rm-card-change { font-weight: 600; }
.acm-rm-up { color: #00C853; }
.acm-rm-dn { color: #FF1744; }
.acm-rm-card-source {
    font-size: 10px;
    color: #444;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.acm-rm-card-date {
    font-size: 10px;
    color: #555;
    margin-top: 6px;
    letter-spacing: 0.5px;
}

/* ── Footer note ── */
.acm-rm-footer-note {
    padding: 16px 48px 32px;
    font-size: 11px;
    color: #444;
    line-height: 1.6;
    border-top: 1px solid rgba(201,168,76,0.08);
}
