/* İllere Göre Isı Yalıtım Kalınlıkları - Map-Centric Design */

/* Override subpage-header for this page */
.subpage-header {
    padding: 140px 0 60px;
}

/* ========================================
   MAIN LAYOUT
   ======================================== */

.kalinlik-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}

/* ========================================
   SECTION HEADER
   ======================================== */

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-family: var(--font-heading-tech);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    color: #fff;
}

/* ========================================
   MAP SECTION
   ======================================== */

.map-section {
    margin-bottom: 4rem;
}

.map-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Turkey SVG Map */
.turkey-map-svg {
    width: 100%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2rem;
    overflow: hidden;
}

.turkey-map-svg svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.turkey-map-svg path {
    fill: rgba(255, 255, 255, 0.05);
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 0.5;
    transition: all 0.3s ease;
    cursor: pointer;
}

.turkey-map-svg path:hover {
    fill-opacity: 1;
    stroke: rgba(255, 255, 255, 0.8);
    stroke-width: 1.5;
    z-index: 10;
    transform: translateY(-2px);
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
}

/* Zone Classes applied to SVG paths */
.turkey-map-svg path.zone-1 {
    fill: #ef4444;
}

.turkey-map-svg path.zone-2 {
    fill: #f59e0b;
}

.turkey-map-svg path.zone-3 {
    fill: #3b82f6;
}

.turkey-map-svg path.zone-4 {
    fill: #8b5cf6;
}

/* ========================================
   SELECTED CITY CARD (Harita Altı)
   ======================================== */

.selected-city-card {
    width: 100%;
    max-width: 800px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin: 0 auto 2rem;
}

.selected-city-name {
    font-family: var(--font-heading-tech);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.selected-city-zone {
    font-size: 1rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.selected-city-values {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 1.5rem;
}

.selected-city-values .value-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.selected-city-values .value-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.selected-city-values .value-data {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
}

.selected-city-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    margin: 0;
}

/* Inactive state (when filtering) */
.turkey-map-svg.filtering path {
    opacity: 0.2;
}

.turkey-map-svg.filtering path.active-zone {
    opacity: 1;
    stroke: #fff;
    stroke-width: 1.5;
}

/* Labels hidden by default, can be shown on hover if needed */
.turkey-map-svg g#label_points,
.turkey-map-svg g#points {
    display: none;
    pointer-events: none;
}

.city-label {
    display: none;
    /* Hide old labels */
}

/* Map Legend */
.map-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.legend-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 4px;
}

.legend-color.zone-1 {
    background: #ef4444;
}

.legend-color.zone-2 {
    background: #f59e0b;
}

.legend-color.zone-3 {
    background: #3b82f6;
}

.legend-color.zone-4 {
    background: #8b5cf6;
}

.legend-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Region Cards */
.region-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.region-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1.5rem;
    opacity: 0.6;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
}

.region-card:hover {
    opacity: 0.8;
}

.region-card.active {
    opacity: 1;
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.05);
}

.card-badge {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.card-badge.zone-1 {
    background: #ef4444;
}

.card-badge.zone-2 {
    background: #f59e0b;
}

.card-badge.zone-3 {
    background: #3b82f6;
}

.card-badge.zone-4 {
    background: #8b5cf6;
}

.region-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.card-cities {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
}

.thickness-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.thickness-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.thickness-row span {
    color: rgba(255, 255, 255, 0.6);
}

.thickness-row strong {
    color: var(--color-accent);
}

.card-note {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

/* ========================================
   FILTER SECTION
   ======================================== */

.filter-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.filter-header {
    margin-bottom: 1.5rem;
}

.filter-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
}

.filter-header p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.filter-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.search-box {
    flex: 1;
    position: relative;
}

.search-box svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.4);
}

.search-box input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 0.95rem;
    color: #fff;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(245, 158, 11, 0.05);
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.filter-controls select {
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 0.95rem;
    color: #fff;
    cursor: pointer;
    min-width: 180px;
}

.filter-controls select:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* City Info Panel */
.city-info-panel {
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
}

.city-info-panel.hidden {
    display: none;
}

.city-info-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.city-info-header h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
}

.region-badge {
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
}

.region-badge.zone-1 {
    background: #ef4444;
}

.region-badge.zone-2 {
    background: #f59e0b;
}

.region-badge.zone-3 {
    background: #3b82f6;
}

.region-badge.zone-4 {
    background: #8b5cf6;
}

.city-thickness {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.thickness-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.thickness-item .material {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.thickness-item .value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-accent);
}

.city-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* ========================================
   TABLE SECTION
   ======================================== */

.table-section {
    margin-bottom: 3rem;
}

.table-header {
    margin-bottom: 0;
}

/* Premium Styled Dropdown Filter */
.table-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.table-filter-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.table-filter-wrapper svg {
    width: 18px;
    height: 18px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.styled-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    min-width: 220px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23f59e0b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
}

.styled-select:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(255, 255, 255, 0.04));
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
}

.styled-select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15), 0 4px 20px rgba(245, 158, 11, 0.2);
}

.styled-select option {
    background: #1a1a2e;
    color: #fff;
    padding: 0.75rem;
}

.table-result-count {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.table-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.table-toggle:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

.table-toggle span {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.toggle-icon {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease;
}

.table-toggle.open .toggle-icon {
    transform: rotate(180deg);
}

.table-container {
    margin-top: 1rem;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.table-container.hidden {
    display: none;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 1rem 1.25rem;
    text-align: left;
}

.data-table th {
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
}

.data-table td {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* ========================================
   INFO SECTION
   ======================================== */

.info-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.info-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
}

.info-icon {
    width: 48px;
    height: 48px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
}

.info-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.info-content p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* ========================================
   CLOSING SECTION
   ======================================== */

.closing-section {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.closing-section p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .region-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .kalinlik-main {
        padding: 3rem 1.5rem 4rem;
    }

    .turkey-map {
        grid-template-columns: repeat(2, 1fr);
        height: auto;
        padding: 1rem;
    }

    .map-region {
        min-height: 100px;
    }

    .region-cards {
        grid-template-columns: 1fr;
    }

    .map-legend {
        gap: 0.75rem;
    }

    .filter-controls {
        flex-direction: column;
    }

    .filter-controls select {
        min-width: 100%;
    }

    .city-thickness {
        flex-direction: column;
        gap: 1rem;
    }
}