/* ============================================================
   Data Center Module
   ============================================================ */
/* Stats row inside hero */
.dc-hero-stats { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin-top: 24px; }
.dc-hero-stats .stat { text-align: center; }
.dc-hero-stats .stat-val { font-size: 36px; font-weight: 700; color: var(--accent); }
.dc-hero-stats .stat-lbl { font-size: 13px; opacity: 0.7; margin-top: 4px; }

/* City filter */
.dc-city-filter { display: flex; justify-content: center; gap: 8px; margin-bottom: 30px; flex-wrap: wrap; }
.dc-city-tag { padding: 6px 16px; border-radius: 16px; border: 1px solid var(--border); font-size: 13px; cursor: pointer; transition: .2s; background: #fff; color: var(--text-light); }
.dc-city-tag.active, .dc-city-tag:hover { border-color: var(--primary); color: var(--primary); background: rgba(0,85,166,0.04); }

/* Section label */
.dc-section-label { font-size: 20px; font-weight: 600; color: var(--text); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--primary); display: inline-block; }

/* ── Grid layouts ── */
.dc-grid { display: grid; gap: 24px; }
.dc-grid-2 { grid-template-columns: repeat(2, 1fr); }
.dc-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── Base card ── */
.dc-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: .3s; }
.dc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.dc-card-img { height: 200px; background: var(--bg-light); position: relative; overflow: hidden; }
.dc-card-img img { width: 100%; height: 100%; object-fit: cover; }
.dc-card-img .dc-tier { position: absolute; top: 12px; right: 12px; background: var(--accent); color: #fff; padding: 3px 10px; border-radius: 3px; font-size: 12px; font-weight: 600; z-index: 2; }
.dc-card-img .dc-city-badge { position: absolute; top: 12px; left: 12px; background: rgba(0,0,0,0.5); color: #fff; padding: 3px 10px; border-radius: 3px; font-size: 12px; backdrop-filter: blur(4px); z-index: 2; }
.dc-card-body { padding: 20px; }
.dc-card-body h3 { font-size: 18px; margin-bottom: 12px; line-height: 1.3; }
.dc-card-body h3 a { color: var(--text); }
.dc-card-body h3 a:hover { color: var(--primary); }

/* ── Self-owned card (large, full-width halves) ── */
.dc-card-self { border: 2px solid var(--primary); }
.dc-card-self:hover { border-color: var(--primary-light); }
.dc-card-self .dc-card-img-tall { height: 260px; }
.dc-self-badge { position: absolute; bottom: 12px; left: 12px; background: var(--primary); color: #fff; padding: 4px 12px; border-radius: 3px; font-size: 11px; font-weight: 600; letter-spacing: 0.5px; z-index: 2; }
.dc-card-desc { font-size: 14px; color: var(--text-light); line-height: 1.6; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dc-card-self .dc-card-body h3 { font-size: 20px; }
.dc-card-self .dc-card-params .param-val { font-size: 18px; }

/* ── Partner card (compact, 4-col) ── */
.dc-card-partner .dc-card-body { padding: 16px; }
.dc-card-partner .dc-card-body h3 { font-size: 15px; margin-bottom: 10px; }
.dc-card-params-sm { gap: 10px; }
.dc-card-params-sm .param-val { font-size: 14px; }
.dc-card-params-sm .param-lbl { font-size: 10px; }
.dc-partner-addr { font-size: 12px; color: var(--text-muted); line-height: 1.5; margin-bottom: 6px; }
.dc-partner-addr svg { fill: var(--primary); vertical-align: -2px; margin-right: 3px; }
.dc-partner-phone { font-size: 13px; color: var(--primary); font-weight: 600; }
.dc-partner-phone svg { fill: var(--primary); vertical-align: -2px; margin-right: 3px; }
.dc-link { font-size: 13px; color: var(--primary); font-weight: 500; display: inline-block; margin-top: 4px; }
.dc-link:hover { color: var(--primary-light); }

/* SVG image area for partner cards */
.dc-card-svg-img { height: 160px; padding: 0; }
.dc-card-svg-img svg { width: 100%; height: 100%; display: block; }

/* Card params (shared) */
.dc-card-params { display: flex; gap: 16px; margin-bottom: 14px; }
.dc-card-params .param { text-align: center; flex: 1; }
.dc-card-params .param-val { font-size: 16px; font-weight: 700; color: var(--primary); }
.dc-card-params .param-lbl { font-size: 11px; color: var(--text-muted); }

/* ── Detail page Hero (animated grid) ── */
.dc-detail-hero { position: relative; height: 380px; overflow: hidden; }
.dc-detail-hero-grid { background: linear-gradient(160deg, #001122 0%, #002244 40%, #001a33 100%); }
.dc-detail-hero-grid #dcHeroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.dc-detail-hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; padding: 0 20px; max-width: var(--wrap); margin: 0 auto; }
.dc-detail-hero h1 { font-size: 34px; margin-bottom: 10px; text-shadow: 0 2px 16px rgba(0,0,0,0.3); }
.dc-detail-hero .tags { display: flex; gap: 8px; margin-bottom: 16px; justify-content: center; }
.dc-detail-hero .tag { padding: 4px 14px; border-radius: 20px; font-size: 13px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); backdrop-filter: blur(4px); }
.dc-hero-desc { font-size: 15px; opacity: 0.85; max-width: 750px; line-height: 1.7; margin-bottom: 20px; text-align: center; }
.dc-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.dc-param-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: -40px auto 40px; position: relative; z-index: 3; max-width: var(--wrap); padding: 0 20px; }
.dc-param-card { background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: var(--radius); padding: 24px; text-align: center; color: #fff; }
.dc-param-card .val { font-size: 28px; font-weight: 700; }
.dc-param-card .lbl { font-size: 13px; opacity: 0.8; margin-top: 4px; }

/* Features grid (2-col card layout) */
.dc-features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.dc-feat-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); transition: .2s; }
.dc-feat-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.dc-feat-icon { width: 44px; height: 44px; background: var(--bg-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dc-feat-icon svg { width: 22px; height: 22px; fill: var(--primary); }
.dc-feat-card p { font-size: 14px; color: var(--text); line-height: 1.6; margin: 0; }

/* Legacy feature items (keep for compat) */
.dc-features { padding: 50px 0; }
.dc-feature-item { display: flex; gap: 30px; align-items: center; margin-bottom: 40px; padding: 20px; border-radius: var(--radius); transition: .2s; }
.dc-feature-item:hover { background: var(--bg-light); }
.dc-feature-item:nth-child(even) { flex-direction: row-reverse; }
.dc-feature-icon { width: 60px; height: 60px; background: var(--bg-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dc-feature-icon svg { width: 28px; height: 28px; fill: var(--primary); }
.dc-feature-text h3 { font-size: 18px; margin-bottom: 6px; }
.dc-feature-text p { color: var(--text-light); font-size: 14px; line-height: 1.7; }

.dc-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 100%; }
.dc-gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; aspect-ratio: 16/10; background: var(--bg-light); }
.dc-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.dc-gallery-item:hover img { transform: scale(1.05); }
.dc-gallery-overlay { position: absolute; inset: 0; background: rgba(0,51,102,0.4); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s; }
.dc-gallery-item:hover .dc-gallery-overlay { opacity: 1; }

.dc-contact-section { background: var(--bg-light); padding: 40px 0; }
.dc-contact-bar { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.dc-contact-item { display: flex; gap: 16px; margin-bottom: 20px; }
.dc-contact-item svg { width: 24px; height: 24px; fill: var(--primary); flex-shrink: 0; margin-top: 2px; }
.dc-contact-item strong { display: block; font-size: 14px; color: var(--text-muted); margin-bottom: 4px; font-weight: 500; }
.dc-contact-item p { font-size: 15px; color: var(--text); margin: 0; }
.dc-contact-cta { margin-left: auto; display: flex; gap: 10px; flex-shrink: 0; }

/* Advantages */
.dc-advantages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 40px 0; }
.dc-adv-item { text-align: center; padding: 20px; border-radius: var(--radius); transition: .2s; }
.dc-adv-item:hover { background: var(--bg-light); }
.dc-adv-item svg { width: 40px; height: 40px; fill: var(--primary); margin-bottom: 10px; }
.dc-adv-item h4 { font-size: 15px; margin-bottom: 4px; }
.dc-adv-item p { font-size: 13px; color: var(--text-light); }

/* ── Responsive ── */
@media (max-width: 1200px) {
    .dc-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .dc-grid-2, .dc-grid-4 { grid-template-columns: 1fr; }
    .dc-card-self .dc-card-img-tall { height: 200px; }
    .dc-param-cards { grid-template-columns: repeat(2, 1fr); margin-top: -20px; }
    .dc-detail-hero { height: 260px; }
    .dc-detail-hero h1 { font-size: 22px; }
    .dc-hero-desc { font-size: 13px; }
    .dc-hero-stats { gap: 20px; }
    .dc-hero-stats .stat-val { font-size: 28px; }
    .dc-advantages { grid-template-columns: repeat(2, 1fr); }
    .dc-features-grid { grid-template-columns: 1fr; }
    .dc-feature-item, .dc-feature-item:nth-child(even) { flex-direction: column; text-align: center; }
    .dc-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .dc-contact-bar { flex-direction: column; align-items: flex-start; }
    .dc-contact-cta { margin-left: 0; width: 100%; }
    .dc-contact-cta .btn { flex: 1; text-align: center; }
    .dc-card-svg-img { height: 140px; }
}
@media (max-width: 480px) {
    .dc-param-cards { grid-template-columns: 1fr 1fr; }
    .dc-advantages { grid-template-columns: 1fr 1fr; }
    .dc-gallery-grid { grid-template-columns: 1fr; }
}
