* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    max-width: 100%;
    overflow-x: hidden;
    font-family: "Manrope", Arial, sans-serif;
    background: #EAF2F8;
    color: #20364D;
    scroll-behavior: smooth;
}

.layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    width: 100%;
    min-height: 100vh;
}

.sidebar {
    background: linear-gradient(180deg, #2F6B9A, #214E73);
    color: white;
    padding: 26px 18px;
    overflow: hidden;
}

.brand {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.15;
}

.subbrand {
    font-size: 12px;
    opacity: 0.85;
    margin-top: 8px;
    margin-bottom: 32px;
}

nav a {
    display: block;
    padding: 13px 14px;
    margin: 8px 0;
    color: white;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 700;
    opacity: 0.9;
}

nav a.active,
nav a:hover {
    background: rgba(255,255,255,0.18);
}

.pipeline {
    margin-top: 36px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 18px;
    padding: 16px;
    font-size: 13px;
}

.pipeline p {
    color: #DCE6EF;
}

.healthy-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #52B788;
    border-radius: 50%;
    margin-right: 8px;
}

.main {
    min-width: 0;
    padding: 28px;
    overflow-x: hidden;
}

header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

h1 {
    margin: 0;
    font-size: 30px;
    letter-spacing: -0.7px;
}

header p,
.updated {
    color: #6B7C8F;
    font-size: 13px;
}

.card {
    background: white;
    border: 1px solid #DCE6EF;
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 10px 25px rgba(47,107,154,0.08);
    overflow: hidden;
    margin-bottom: 18px;
}

h2 {
    font-size: 17px;
    margin: 0 0 14px;
}

.kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.kpis .card span {
    display: block;
    color: #6B7C8F;
    font-size: 12px;
    font-weight: 800;
}

.kpis .card b {
    display: block;
    margin-top: 8px;
    font-size: 27px;
}

.top-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    gap: 18px;
}

.chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.filter-bar {
    background: white;
    border: 1px solid #DCE6EF;
    border-radius: 18px;
    padding: 14px 18px;
    margin-bottom: 18px;
    box-shadow: 0 10px 25px rgba(47,107,154,0.06);
}

.filter-bar form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-bar label {
    font-size: 13px;
    color: #6B7C8F;
    font-weight: 800;
}

.filter-bar input,
.filter-bar select,
.filter-bar button {
    border: 1px solid #DCE6EF;
    border-radius: 12px;
    padding: 9px 11px;
    font-family: inherit;
    font-weight: 700;
    color: #20364D;
    background: #F5F8FB;
}

.filter-bar button {
    background: #2F6B9A;
    color: white;
    cursor: pointer;
}

.small-input {
    width: 85px;
}

.clear-filter {
    padding: 9px 13px;
    background: #E6F0FA;
    border-radius: 12px;
}

.chips {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chip {
    background: #E6F0FA;
    color: #2F6B9A;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.muted-chip {
    color: #6B7C8F;
}

.real-map {
    position: relative;
    height: 360px;
    background: #EAF8FB;
    overflow: hidden;
    border-radius: 22px;
}

.real-map .map-img {
    position: absolute;
    width: 78% !important;
    height: auto !important;
    left: 11% !important;
    top: -6% !important;
    object-fit: unset !important;
    object-position: initial !important;
    transform: none !important;
    pointer-events: none;
}

.island {
    display: none !important;
}

.pin {
    position: absolute;
    z-index: 5;
    background: rgba(255,255,255,.92);
    border: 2px solid #2F6B9A;
    padding: 6px 11px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    color: #20364D;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0,0,0,0.14);
    transition: 0.18s ease;
    transform: translate(-50%, -100%) !important;
}

.pin::before {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    background: #2F6B9A;
    border-radius: 50%;
    left: 50%;
    bottom: -7px;
    transform: translateX(-50%);
    box-shadow: 0 0 0 4px rgba(47,107,154,.15);
}

.pin:hover {
    background: #2F6B9A;
    color: white;
}

.pin.active-pin {
    background: #2F6B9A;
    color: white;
    box-shadow: 0 0 0 5px rgba(47,107,154,0.18), 0 10px 22px rgba(0,0,0,0.16);
}

.pin.active-pin::before {
    background: white;
}

/* Final positions from your marked screenshot */
.real-map .pin.girne {
    left: 43% !important;
    top: 50% !important;
}

.real-map .pin.guzelyurt {
    left: 36% !important;
    top: 69% !important;
}

.real-map .pin.lefke {
    left: 21% !important;
    top: 79% !important;
}

.real-map .pin.lefkosa {
    left: 52% !important;
    top: 74% !important;
}

.real-map .pin.magusa {
    left: 64% !important;
    top: 70% !important;
}

.real-map .pin.iskele {
    left: 67% !important;
    top: 55% !important;
}

.insight {
    background: #F5F8FB;
    border: 1px solid #DCE6EF;
    padding: 13px;
    border-radius: 15px;
    margin-bottom: 10px;
    font-size: 13px;
}

.bar-row {
    display: grid;
    grid-template-columns: 95px minmax(0, 1fr) 75px;
    gap: 10px;
    align-items: center;
    margin: 13px 0;
    font-size: 13px;
}

.bar-track {
    height: 11px;
    background: #EAF2F8;
    border-radius: 999px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 999px;
}

.blue {
    background: #2F6B9A;
}

.green {
    background: #69C7B5;
}

.hist {
    height: 210px;
    display: flex;
    align-items: flex-end;
    gap: 16px;
    padding-top: 20px;
}

.hist-col {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.hist-bar {
    width: 100%;
    background: #2F6B9A;
    border-radius: 10px 10px 0 0;
    margin-bottom: 9px;
}

.hist-count {
    font-size: 13px;
    font-weight: 800;
    color: #20364D;
}

.hist-label {
    font-size: 12px;
    color: #6B7C8F;
}

table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 13px;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid #EEF3F7;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

th {
    color: #6B7C8F;
    font-weight: 800;
}

.pill {
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.pill.green {
    background: #DDF6EA;
    color: #237A57;
}

.pill.blue {
    background: #E6F0FA;
    color: #2F6B9A;
}

a {
    color: #2F6B9A;
    font-weight: 800;
    text-decoration: none;
}

.placeholder {
    background: linear-gradient(135deg, #FFFFFF, #F5F8FB);
}

.placeholder p {
    color: #6B7C8F;
    font-weight: 600;
}

.empty-row {
    text-align: center;
    color: #6B7C8F;
    font-weight: 800;
    padding: 28px !important;
    background: #F5F8FB;
}

@media (max-width: 1100px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .kpis,
    .top-grid,
    .chart-grid {
        grid-template-columns: 1fr;
    }

    .main {
        padding: 18px;
    }
}

/* ===== REAL FINAL FROM DRAWN TARGETS ===== */
.real-map .pin.girne {
    left: 41% !important;
    top: 53% !important;
}

.real-map .pin.guzelyurt {
    left: 28% !important;
    top: 65% !important;
}

.real-map .pin.lefke {
    left: 22% !important;
    top: 87% !important;
}

.real-map .pin.lefkosa {
    left: 43% !important;
    top: 71% !important;
}

.real-map .pin.magusa {
    left: 60% !important;
    top: 80% !important;
}

.real-map .pin.iskele {
    left: 60% !important;
    top: 60% !important;
}

/* ===== FINAL COAST ADJUSTMENT ===== */

.real-map .pin.magusa{
    left:61.5% !important;
    top:80% !important;
}

.real-map .pin.iskele{
    left:61.5% !important;
    top:60% !important;
}


/* Portfolio-compatible project introduction */

.project-intro {
    margin-bottom: 28px;
    padding: 34px;
    color: #101828;
    background:
        radial-gradient(circle at 88% 12%, rgba(18,100,79,.10), transparent 24%),
        #F6F8F7;
    border: 1px solid #DDE4E1;
    border-radius: 28px;
    box-shadow: 0 16px 45px rgba(16,24,40,.08);
}

.project-intro-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 44px;
}

.portfolio-back {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    color: #12644F;
    background: #FFFFFF;
    border: 1px solid #DDE4E1;
    border-radius: 11px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    transition: .2s ease;
}

.portfolio-back:hover {
    transform: translateY(-2px);
    background: #DCECE6;
}

.project-status {
    padding: 9px 13px;
    color: #5F6B7A;
    background: #FFFFFF;
    border: 1px solid #DDE4E1;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.project-intro-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 34px;
    align-items: center;
}

.project-label {
    display: inline-flex;
    padding: 8px 13px;
    color: #0B4D3B;
    background: #DCECE6;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.project-intro-copy h1 {
    margin: 20px 0 20px;
    color: #101828;
    font-size: clamp(46px, 5vw, 70px);
    line-height: .98;
    letter-spacing: -.06em;
}

.project-intro-copy h1 span {
    display: block;
    color: #12644F;
}

.project-intro-copy p {
    max-width: 680px;
    margin: 0;
    color: #5F6B7A;
    font-size: 18px;
    line-height: 1.7;
}

.study-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 28px;
    padding: 0 19px;
    color: white;
    background: #12644F;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(18,100,79,.20);
    transition: .2s ease;
}

.study-button:hover {
    transform: translateY(-2px);
}

.project-intro-cards {
    display: grid;
    gap: 13px;
}

.intro-card {
    padding: 21px;
    background: #FFFFFF;
    border: 1px solid #DDE4E1;
    border-radius: 17px;
    box-shadow: 0 10px 28px rgba(16,24,40,.055);
}

.intro-card h2 {
    margin: 0 0 9px;
    color: #101828;
    font-size: 17px;
}

.intro-card p {
    margin: 0;
    color: #5F6B7A;
    font-size: 14px;
    line-height: 1.65;
}

.study-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.study-steps span {
    padding: 8px 10px;
    color: #0B4D3B;
    background: #EEF4F1;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 900;
}

@media (max-width: 900px) {
    .project-intro-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .project-intro {
        padding: 23px;
    }

    .project-intro-top {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 30px;
    }
}


/* Full-width intro above sidebar layout */
body > .property-showcase {
    margin: 0;
    width: 100%;
}

body > .layout {
    min-height: auto;
}






/* ===== Definitive full-width project intro layout ===== */

body {
    display: block !important;
}

body > .property-showcase {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    position: relative !important;
    z-index: 2 !important;
}

body > .layout {
    display: grid !important;
    grid-template-columns: 230px minmax(0, 1fr) !important;
    width: 100% !important;
    min-height: 100vh !important;
}

body > .layout > .sidebar {
    position: static !important;
    top: auto !important;
    left: auto !important;
    height: auto !important;
    min-height: 100vh !important;
    padding: 26px 18px !important;
    margin: 0 !important;
}

body > .layout > .main {
    min-width: 0 !important;
}

@media (max-width: 800px) {
    body > .layout {
        grid-template-columns: 1fr !important;
    }

    body > .layout > .sidebar {
        min-height: auto !important;
    }
}
