/* ==========================================
   NETWORK PAGE - Haryana Map & Dealers
   ========================================== */

/* Map Container */
.network-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.map-container { position: relative; background: #fff; border-radius: var(--radius-lg); padding: 25px; box-shadow: var(--shadow-md); border: 1px solid rgba(0,0,0,0.04); }
.haryana-map-svg { width: 100%; height: auto; }
.haryana-map-svg path { fill: #e8dcc8; stroke: #a08050; stroke-width: 1.5; cursor: pointer; transition: all 0.3s ease; }
.haryana-map-svg path:hover, .haryana-map-svg path.hovered { fill: #f5e6c8; stroke: var(--primary); stroke-width: 2; filter: brightness(1.05); }
.haryana-map-svg path.active { fill: var(--primary); fill-opacity: 0.2; stroke: var(--primary); stroke-width: 2.5; }
.haryana-map-svg path.has-dealers { fill: #efe3cc; }
.haryana-map-svg path.has-dealers:hover { fill: #f0d8a8; }

/* Map Tooltip */
.map-tooltip { position: absolute; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity 0.2s; max-width: 280px; }
.map-tooltip.active { opacity: 1; }
.map-tooltip-inner { background: var(--bg); border-radius: var(--radius-md); padding: 16px 20px; box-shadow: var(--shadow-lg); border: 1px solid rgba(0,0,0,0.06); }
.map-tooltip-inner h4 { font-size: 16px; color: var(--secondary); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); }
.tooltip-dealers { }
.dealer-count { display: inline-block; background: var(--primary); color: #fff; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.tooltip-dealer { padding: 6px 0; border-bottom: 1px solid var(--border); }
.tooltip-dealer:last-child { border: none; }
.tooltip-dealer strong { display: block; font-size: 14px; color: var(--text); }
.tooltip-dealer span { display: block; font-size: 12px; color: var(--text-muted); }
.tooltip-dealer i { font-size: 11px; margin-right: 4px; color: var(--primary); }
.no-dealers { font-size: 13px; color: var(--text-muted); font-style: italic; margin: 0; }

/* Map Labels */
.map-labels { display: none; }

/* Network Info */
.network-stats { display: flex; gap: 30px; margin: 25px 0; }
.net-stat { text-align: center; }
.net-stat strong { display: block; font-size: 32px; font-weight: 700; color: var(--primary); line-height: 1; }
.net-stat span { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* District Grid */
.district-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.district-card { background: var(--bg); border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.04); transition: var(--transition); }
.district-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.district-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.district-card-header h3 { font-size: 16px; color: var(--secondary); margin: 0; }
.dealer-badge { background: rgba(184,134,11,0.1); color: var(--primary); padding: 3px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.district-dealers { }
.mini-dealer { padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,0.03); }
.mini-dealer:last-child { border: none; }
.mini-dealer strong { display: block; font-size: 14px; color: var(--text); }
.mini-dealer span, .mini-dealer a { display: block; font-size: 13px; color: var(--text-muted); }
.mini-dealer a { color: var(--primary); }

/* Dealer Cards (from map click) */
.dealer-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px; }
.dealer-card { background: var(--bg); border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.04); }
.dealer-card h4 { font-size: 16px; color: var(--secondary); margin-bottom: 8px; }
.dealer-card .dealer-company { font-size: 13px; color: var(--primary); font-weight: 600; margin-bottom: 5px; }
.dealer-card p { font-size: 14px; color: var(--text-light); margin-bottom: 4px; }
.dealer-card p i { width: 18px; color: var(--primary); margin-right: 6px; }
.dealer-card a { color: var(--primary); }

.no-dealer-message { text-align: center; padding: 40px; color: var(--text-muted); }
.no-dealer-message i { font-size: 40px; margin-bottom: 15px; display: block; color: var(--primary); opacity: 0.5; }
.btn-sm { padding: 8px 20px; font-size: 13px; }

/* Dealer Application Form */
.dealer-form-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.dealer-benefits { margin: 20px 0; }
.dealer-benefits li { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 15px; color: var(--text); }
.dealer-benefits li i { color: var(--primary); font-size: 18px; }
.dealer-form-wrap { background: var(--bg); border-radius: var(--radius-lg); padding: 35px; box-shadow: var(--shadow-md); border: 1px solid rgba(0,0,0,0.04); }
.dealer-form-wrap h3 { font-size: 22px; color: var(--secondary); margin-bottom: 25px; padding-bottom: 12px; border-bottom: 2px solid var(--primary); }
.form-section-title { font-size: 14px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; margin: 20px 0 12px; padding-top: 15px; border-top: 1px solid var(--border); }
.form-section-title:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.radio-group { display: flex; gap: 20px; margin-top: 5px; }
.radio-label { display: flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.radio-label input { accent-color: var(--primary); }
.form-message { margin-top: 15px; padding: 12px 18px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.form-message.success { background: #d4edda; color: #155724; }
.form-message.error { background: #f8d7da; color: #721c24; }

/* ==========================================
   APPLICATIONS PAGE
   ========================================== */
.applications-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; }
.app-card { background: var(--bg); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.04); transition: var(--transition); }
.app-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.app-card-image { height: 200px; overflow: hidden; }
.app-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.app-card:hover .app-card-image img { transform: scale(1.06); }
.app-card-content { padding: 22px; }
.app-icon { width: 50px; height: 50px; background: linear-gradient(135deg, rgba(184,134,11,0.1), rgba(184,134,11,0.2)); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--primary); margin-bottom: 15px; }
.app-card-content h3 { font-size: 18px; color: var(--secondary); margin-bottom: 8px; }
.app-card-content p { font-size: 14px; color: var(--text-light); line-height: 1.6; margin: 0; }

/* ==========================================
   DEALERS EDGE PAGE
   ========================================== */
.de-hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; }
.de-hero-content h2 { font-size: 36px; color: var(--secondary); margin-bottom: 8px; }
.de-hero-content h3 { font-size: 20px; color: var(--primary); font-weight: 500; margin-bottom: 15px; }
.de-hero-content p { font-size: 16px; color: var(--text-light); line-height: 1.7; }
.de-stat-cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 15px; }
.de-stat { background: var(--bg); border-radius: var(--radius-md); padding: 25px; text-align: center; box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.04); transition: var(--transition); }
.de-stat:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.de-stat i { font-size: 28px; color: var(--primary); margin-bottom: 10px; display: block; }
.de-stat strong { display: block; font-size: 28px; color: var(--secondary); font-weight: 700; }
.de-stat span { font-size: 13px; color: var(--text-muted); }

.de-problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.de-problem-card { background: var(--bg); border-radius: var(--radius-md); padding: 30px; text-align: center; box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.04); transition: var(--transition); }
.de-problem-card:hover { box-shadow: var(--shadow-md); transform: translateY(-5px); }
.de-problem-icon { width: 60px; height: 60px; background: linear-gradient(135deg, #ffe0e0, #ffcccc); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 15px; font-size: 24px; color: #dc3545; }
.de-problem-card h3 { font-size: 18px; color: var(--secondary); margin-bottom: 10px; font-style: italic; }
.de-problem-card p { font-size: 14px; color: var(--text-light); margin: 0; }

.de-solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.de-solution-card { background: var(--bg); border-radius: var(--radius-md); padding: 30px; box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.04); transition: var(--transition); position: relative; overflow: hidden; }
.de-solution-card:hover { box-shadow: var(--shadow-md); transform: translateY(-5px); }
.de-solution-num { font-size: 48px; font-weight: 800; color: rgba(184,134,11,0.1); line-height: 1; margin-bottom: 12px; }
.de-solution-card h3 { font-size: 20px; color: var(--secondary); margin-bottom: 10px; }
.de-solution-card p { font-size: 14px; color: var(--text-light); line-height: 1.6; margin: 0; }

/* ==========================================
   RESPONSIVE - New Pages
   ========================================== */
@media (max-width: 1024px) {
    .network-hero-grid { grid-template-columns: 1fr; gap: 30px; }
    .de-hero-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 768px) {
    /* Network page */
    .dealer-form-layout { grid-template-columns: 1fr; gap: 25px; }
    .district-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .district-card { padding: 15px; }
    .district-card-header h3 { font-size: 14px; }
    .network-stats { flex-wrap: wrap; justify-content: center; gap: 20px; }
    .net-stat strong { font-size: 26px; }
    .net-stat span { font-size: 11px; }
    .map-container { padding: 15px; }
    .dealer-form-wrap { padding: 20px; }
    .dealer-form-wrap h3 { font-size: 18px; margin-bottom: 18px; }
    .form-section-title { font-size: 12px; margin: 15px 0 10px; }
    .radio-group { flex-direction: column; gap: 10px; }

    /* Dealer's Edge */
    .de-problem-grid, .de-solution-grid { grid-template-columns: 1fr; gap: 15px; }
    .de-stat-cards { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .de-stat { padding: 18px 12px; }
    .de-stat i { font-size: 22px; margin-bottom: 6px; }
    .de-stat strong { font-size: 22px; }
    .de-stat span { font-size: 11px; }
    .de-hero-content h2 { font-size: 26px; }
    .de-hero-content h3 { font-size: 16px; }
    .de-hero-content p { font-size: 14px; }
    .de-problem-card, .de-solution-card { padding: 22px; }
    .de-problem-card h3 { font-size: 16px; }
    .de-problem-card p, .de-solution-card p { font-size: 13px; }
    .de-problem-icon { width: 50px; height: 50px; font-size: 20px; }
    .de-solution-num { font-size: 36px; }
    .de-solution-card h3 { font-size: 17px; }

    /* Applications */
    .applications-grid { grid-template-columns: 1fr; gap: 15px; }
    .app-card-image { height: 180px; }
    .app-card-content { padding: 18px; }
    .app-card-content h3 { font-size: 16px; }
    .app-card-content p { font-size: 13px; }
    .app-icon { width: 42px; height: 42px; font-size: 18px; border-radius: 10px; margin-bottom: 12px; }
}

@media (max-width: 480px) {
    .district-grid { grid-template-columns: 1fr; }
    .dealer-cards { grid-template-columns: 1fr; }
    .de-stat-cards { grid-template-columns: 1fr; }
    .de-stat { padding: 15px; }
    .de-hero-content h2 { font-size: 22px; }
    .de-problem-card, .de-solution-card { padding: 18px; }
    .dealer-form-wrap { padding: 16px; }
    .dealer-form-wrap h3 { font-size: 16px; }
}
