/* Root Variables */
:root {
    --new-index-primary-color: #3F5874;
    --new-index-secondary-color: #BCCCDC;
    --new-index-accent-color: #112D4E;
    --new-index-green-primary: #00803E;
    --new-index-green-light: #E8F5E9;
    --new-index-white: #FFFFFF;
    --new-index-gray-light: #F5F5F5;
    --new-index-gray-medium: #9E9E9E;
    --new-index-text-dark: #212121;
    --new-index-hot-dry: #FF0000;
    --new-index-warm-humid: #FFD700;
    --new-index-temperate: #E91E63;
    --new-index-cold: #2196F3;
    --new-index-composite: #FF9800;
}

.new-index-container-fluid {
    width: 100%;
    /* padding: 0 20px; */
}

.new-index-container {
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 0 20px;
}

.new-index-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.new-index-col-md-4 {
    padding: 0 15px;
}

.new-index-col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.new-index-col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

/* Header Styles */
.new-index-header {
    background: var(--new-index-white);
    padding: 7px 15px;
    /* border-bottom: 1px solid #8080803d; */
    /* box-shadow: 0 2px 5px rgba(0,0,0,0.1); */
   
}

.new-index-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.new-index-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.new-index-bee-logo {
    height: 40px;
    width: auto;
}
.new-index-bee-logo-expanded {
    height: 50px;
    width: auto;
}

.new-index-header-text h1 {
    font-size: 14px;
    font-weight: 600;
    color: var(--new-index-accent-color);
    margin-bottom: 2px;
}

.new-index-header-text p {
    /* font-size: 12px;
    color: var(--new-index-primary-color); */
    font-size: 18px;
    color: #33378C;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}

.new-index-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.new-index-login-btn {
    background: var(--new-index-green-primary);
    color: var(--new-index-white);
    border: none;
    padding: 10px 30px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.new-index-login-btn:hover {
    background: #006633;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.new-index-gbpn-logo {
    height: 30px;
    width: auto;
    margin-bottom: 15px;
}

/* Main Content */
.new-index-main-content {
    /* padding: 40px 0; */
}

/* Map Section */
.new-index-map-section {
    margin-bottom: 60px;
    background-image: url("/assets/image/gridmapbg.svg");
}

.new-index-map-container {
    /* background: #E8F0F5; */
    background: transparent;
    border-radius: 10px;
    padding: 20px;
    /* box-shadow: 0 4px 10px rgba(0,0,0,0.1); */
    height: 600px;
}

#new-index-india-map {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    /* background: #E8F0F5; */
    background: transparent;
}

/* State Tooltip Styles - Compact Version */
.new-index-leaflet-tooltip {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.new-index-leaflet-tooltip::before {
    display: none !important;
}

.new-index-state-tooltip {
    background: var(--new-index-white);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.18);
    min-width: 200px;
    max-width: 240px;
}

.new-index-tooltip-header {
    background: #2F3387;
    color: var(--new-index-white);
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.new-index-tooltip-body {
    padding: 12px;
    background: var(--new-index-white);
}

.new-index-tooltip-row {
    display: flex;
    justify-content: space-around;
    gap: 8px;
    margin-bottom: 10px;
}

.new-index-tooltip-item {
    text-align: center;
    flex: 1;
}

.new-index-tooltip-number {
    font-size: 22px;
    font-weight: 700;
    color: #2F3387;
    line-height: 1;
    margin-bottom: 4px;
}

.new-index-tooltip-label {
    font-size: 11px;
    color: var(--new-index-text-dark);
    line-height: 1.2;
}

.new-index-tooltip-climate {
    border-top: 1px solid #e0e0e0;
    padding-top: 10px;
    margin-top: 4px;
}

.new-index-tooltip-climate-text {
    font-size: 13px;
    color: var(--new-index-gray-medium);
    margin-bottom: 6px;
    text-align: center;
}

.new-index-tooltip-climate-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.new-index-tooltip-climate-item {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.new-index-tooltip-climate-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.new-index-tooltip-climate-name {
    font-size: 12px;
    color: var(--new-index-text-dark);
    line-height: 10px;
    font-weight: 500;
}


/* Legend Styles */
.new-index-legend {
    line-height: 18px;
    color: #555;
    background: white;
    background: rgba(255,255,255,0.95);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.new-index-legend i {
    width: 18px;
    height: 18px;
    float: left;
    margin-right: 8px;
    opacity: 0.7;
}

.new-index-legend strong {
    color: var(--new-index-green-primary);
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}

/* Info Container */
.new-index-info-container {
    /* background: var(--new-index-white); */
    background: transparent;
    /* border-radius: 10px; */
    padding: 70px 0px 0px 35px;
    /* box-shadow: 0 4px 10px rgba(0,0,0,0.1); */
    height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: start;
}

.new-index-main-heading {
    color: var(--new-index-green-primary);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.new-index-sub-heading {
    color: var(--new-index-text-dark);
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
}

.new-index-description {
    color: var(--new-index-text-dark);
    font-size: 14px;
    padding-right: 100px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.new-index-climate-zones h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--new-index-text-dark);
}

.new-index-climate-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.new-index-climate-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
}

.new-index-climate-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

.new-index-hot-dry .new-index-climate-dot {
    background: var(--new-index-hot-dry);
}

.new-index-warm-humid .new-index-climate-dot {
    background: var(--new-index-warm-humid);
}

.new-index-temperate .new-index-climate-dot {
    background: var(--new-index-temperate);
}

.new-index-cold .new-index-climate-dot {
    background: var(--new-index-cold);
}

.new-index-composite .new-index-climate-dot {
    background: var(--new-index-composite);
}

.new-index-state-portal-btn {
    background: #2F3387;
    color: var(--new-index-white);
    border: none;
    width: max-content;
    padding: 14px 22px;
    margin-top: 20px;
    border-radius: 30px;
    font-size: 15px;
   
    cursor: pointer;

    display: inline-flex;
    align-items: center;
    gap: 12px;

    transition: all 0.3s ease;
}

/* 🔵 White circular arrow */
.new-index-state-portal-btn i {
    width: 28px;
    height: 28px;
    background: #ffffff;
    color: var(--new-index-primary-color);

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    font-size: 18px;
}

/* Hover effect */
.new-index-state-portal-btn:hover {
   
    background: #2F3387;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.new-index-state-portal-btn:hover i {
    color: var(--new-index-accent-color);
}


/* FAQ Section */
.new-index-faq-section {
    margin-bottom: 60px;
}

.new-index-section-title {
    text-align: center;
    color: var(--new-index-green-primary);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.new-index-faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.new-index-faq-item {
    background: var(--new-index-white);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.new-index-faq-item:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.new-index-faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: var(--new-index-white);
    transition: background 0.3s ease;
}

.new-index-faq-question:hover {
    background: var(--new-index-green-light);
}

.new-index-faq-question h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--new-index-accent-color);
    margin: 0;
}

.new-index-faq-question i {
    color: var(--new-index-green-primary);
    transition: transform 0.3s ease;
    font-size: 14px;
}

.new-index-faq-item.active .new-index-faq-question i {
    transform: rotate(180deg);
}

.new-index-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.new-index-faq-item.active .new-index-faq-answer {
    max-height: 500px;
}

.new-index-faq-answer p {
    padding: 0 25px 20px;
    color: var(--new-index-text-dark);
    font-size: 14px;
    line-height: 1.8;
}

/* Metrics Section */
.new-index-metrics-section {
    margin-bottom: 60px;
    background: linear-gradient(180deg, #FFFFFF 0%, #EBF9F2 100%);
    /* padding: 50px 0; */
}

.new-index-section-title {
    text-align: center;
    color: #00803E;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.new-index-metrics-grid {
    max-width: 900px;
    margin: 0 auto;
}

.new-index-metrics-grid .new-index-row {
    margin-bottom: 30px;
}

.new-index-metric-card {
    border-radius: 10px;
    background: white;
   
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    min-height: 240px;
    position: relative;
    overflow: hidden;  /* ← Changed from visible to hidden */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.new-index-metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.new-index-metric-header {
    margin-bottom: auto;
    padding: 15px;
    z-index: 5;
    position: relative;
}

.new-index-metric-number {
    font-size: 52px;
    font-weight: 700;
    color: #00803E;
    margin-bottom: 8px;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

/* NEW: Inline unit styling for "cities" */
.new-index-inline-unit {
    font-size: 18px;
    font-weight: 600;
    color: #00803E;
    margin-left: 5px;
}

.new-index-metric-label-small {
    font-size: 16px;
    color: #00803E;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.new-index-metric-label {
    font-size: 14px;
    color: #333333;
    width: 60%;
    font-weight: 400;
    line-height: 1.4;
    margin: 5px 0 0 0;
}

.new-index-metric-footer {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    position: relative;
    min-height: 90px;
    margin-top: auto;
    z-index: 5;
}

.new-index-metric-link {
    color: #3F5874;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    padding: 25px 25px 25px 18px;
    transition: color 0.3s ease;
    z-index: 10;
    position: relative;
}

.new-index-metric-link:active, .new-index-metric-link:focus  {
    color: #3F5874;
}

.new-index-metric-link:hover {
    color: #00803E;
}

/* Graphics Container - FIXED POSITIONING */
.new-index-metric-graphic {
    position: absolute;
    bottom: 0;  /* ← Changed from -10px to 0 */
    right: 0;   /* ← Changed from -10px to 0 */
    width: 120px;
    height: 130px;
    background: #00803e;
    border-top-left-radius: 999px;
   
    z-index: 1;
}

/* Green Background Pattern - LAYER 1 (BACK) */
.new-index-metric-bg-graphic {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 80px;
    
    z-index: 1;
    object-fit: cover;  /* ← Changed from contain to cover */
}

/* Blue Circle Container - LAYER 2 (FRONT) - FIXED POSITIONING */
.new-index-metric-icon-circle {
    position: absolute;
    bottom: 35px;
    left: -15px;
    width: 80px;
    height: 80px;
    background: #2f3387;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.new-index-metric-icon-image {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

/* White Icon Inside Blue Circle */
.new-index-metric-icon-circle i {
    color: #FFFFFF;
    font-size: 32px;
}

/* Responsive - Tablet */
@media (max-width: 992px) {
    .new-index-col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .new-index-metric-number {
        font-size: 44px;
    }
    
    .new-index-inline-unit {
        font-size: 16px;
    }
    
    .new-index-metric-card {
        min-height: 220px;
    }
    
    .new-index-metric-graphic {
        width: 150px;
        height: 110px;
    }
    
    .new-index-metric-icon-circle {
        width: 60px;
        height: 60px;
        bottom: 20px;
        left: 12px;
    }
    
    .new-index-metric-icon-image {
        width: 30px;
        height: 30px;
    }
    
    .new-index-metric-icon-circle i {
        font-size: 28px;
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    .new-index-metric-card {
        padding: 25px 20px;
        min-height: 200px;
    }
    
    .new-index-metric-number {
        font-size: 38px;
    }
    
    .new-index-inline-unit {
        font-size: 14px;
    }
    
    .new-index-metric-label {
        font-size: 13px;
    }
    
    .new-index-metric-graphic {
        width: 130px;
        height: 95px;
    }
    
    .new-index-metric-icon-circle {
        width: 52px;
        height: 52px;
        bottom: 18px;
        left: 10px;
    }
    
    .new-index-metric-icon-image {
        width: 26px;
        height: 26px;
    }
    
    .new-index-metric-icon-circle i {
        font-size: 24px;
    }
}

/* Footer */
.new-index-container {
    /* background: var(--new-index-accent-color); */
    color: var(--new-index-white);
    padding: 20px 0;
    text-align: center;
}

.new-index-footer-content p {
    margin: 0;
    font-size: 14px;
}

/* Modal Styles */
.new-index-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: new-index-fadeIn 0.3s ease;
}

@keyframes new-index-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.new-index-modal-content {
    background-color: var(--new-index-white);
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: new-index-slideDown 0.3s ease;
}

@keyframes new-index-slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.new-index-modal-header {
    padding: 25px 30px;
    background: #2F3387;
    color: var(--new-index-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.new-index-modal-header h2 {
    margin: 0;
    font-size: 24px;
}

.new-index-close {
    color: var(--new-index-white);
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.new-index-close:hover {
    color: var(--new-index-secondary-color);
}

.new-index-modal-body {
    padding: 30px;
    max-height: calc(80vh - 90px);
    overflow-y: auto;
}

.new-index-state-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.new-index-state-item {
    padding: 15px 20px;
    background: var(--new-index-green-light);
    border-left: 4px solid var(--new-index-green-primary);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.new-index-state-item:hover {
    background: var(--new-index-green-primary);
    color: var(--new-index-white);
    transform: translateX(5px);
}

.new-index-state-item h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.new-index-state-item p {
    margin: 5px 0 0;
    font-size: 12px;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 992px) {
    .new-index-col-md-4, .new-index-col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .new-index-map-container,
    .new-index-info-container {
        height: auto;
        min-height: 400px;
    }
    
    .new-index-header-text h1 {
        font-size: 12px;
    }
    
    .new-index-header-text p {
        font-size: 10px;
    }
    
    .new-index-main-heading {
        font-size: 24px;
    }
    
    .new-index-sub-heading {
        font-size: 16px;
    }
    
    .new-index-metric-number {
        font-size: 42px;
    }
    
    .new-index-state-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .new-index-header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .new-index-header-left {
        flex-direction: column;
        text-align: center;
    }
    
    .new-index-climate-legend {
        flex-direction: column;
        gap: 10px;
    }
    
    .new-index-section-title {
        font-size: 24px;
    }
    
    .new-index-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .new-index-state-list {
        grid-template-columns: 1fr;
    }
    
    .new-index-state-tooltip {
        min-width: 200px;
    }
}

@media (max-width: 480px) {
    .new-index-container-fluid,
    .new-index-container {
        padding: 0 10px;
    }
    
    .new-index-info-container {
        padding: 20px;
    }
    
    .new-index-metric-card {
        padding: 20px;
    }
    
    .new-index-metric-number {
        font-size: 36px;
    }
    
    .new-index-modal-body {
        padding: 15px;
    }
    
    .new-index-legend {
        font-size: 12px;
    }
    
    .new-index-state-tooltip {
        min-width: 180px;
        max-width: 220px;
    }
    
    .new-index-tooltip-number {
        font-size: 20px;
    }
    
    .new-index-tooltip-label {
        font-size: 9px;
    }
}

/* Custom Scrollbar */
.new-index-modal-body::-webkit-scrollbar {
    width: 8px;
}

.new-index-modal-body::-webkit-scrollbar-track {
    background: var(--new-index-gray-light);
}

.new-index-modal-body::-webkit-scrollbar-thumb {
    background: #2F3387;
    border-radius: 4px;
}

/* .new-index-modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--new-index-accent-color);
} */


/* Shift+Scroll message */
.zoom-hint {
    background: rgba(255,255,255,0.9);
    color: #333;
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #888;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  }


  .new-index-legend {
    font-size: 14px; 
}


.new-index-map-container .leaflet-right .leaflet-control {
    margin-right: 0px !important;
}

.new-index-map-container .leaflet-top .leaflet-control {
    margin-top: 0px !important;
}