@charset "UTF-8";

/* ==========================================================================
   RENT PROPERTY INDEX SYSTEM
   ========================================================================== */

.p-rent-index {
    width: 100%;
    background-color: #f7f6f3;
    color: #1a1a1a;
    padding-bottom: 120px;
}

.p-rent-index-hero {
    background-color: var(--color-hero-navy);
    background-image: linear-gradient(180deg, var(--color-hero-navy) 0%, #08152c 100%);
    padding: 100px 0;
    color: #ffffff;
    margin-bottom: 70px;
}

.p-rent-index-hero-inner {
    width: min(100%, 1440px);
    margin-inline: auto;
    padding-inline: 40px;
}

.p-rent-index-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-hero-gold);
    border: 1px solid var(--color-hero-gold);
    padding: 4px 12px;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
}

.p-rent-index-main-title {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 12px;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.p-rent-index-sub-title {
    font-size: 16px;
    color: #a4b3c6;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.05em;
}

.p-rent-index-container {
    width: min(100%, 1440px);
    margin: -148px auto 0;
    padding-inline: 40px;
}

.p-rent-index-search-panel {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 30px 60px rgba(14, 34, 69, 0.06);
    border: 1px solid #f0edf7;
    overflow: hidden;
    width: 100%;
}

.p-rent-index-panel-head {
    background-color: var(--color-hero-navy);
    padding: 24px 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    border-bottom: 3px solid var(--color-hero-gold);
}

.p-rent-index-panel-head .material-symbols-outlined {
    font-size: 24px;
    color: var(--color-hero-gold);
}

.p-rent-index-panel-head h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.05em;
}

.p-rent-index-form {
    padding: 40px;
}

.p-rent-index-group {
    margin-bottom: 36px;
}

.p-rent-index-group:last-of-type {
    margin-bottom: 0;
}

.p-rent-index-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-hero-navy);
    margin-bottom: 18px;
    letter-spacing: 0.02em;
}

.p-rent-index-label .material-symbols-outlined {
    font-size: 20px;
    color: var(--color-hero-gold);
}

.p-rent-index-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.p-rent-index-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fbfaf8;
    border: 1px solid #e1dbd6;
    border-radius: 4px;
    padding: 28px 16px;
    text-decoration: none;
    color: #444444;
    transition: all 0.3s ease;
    text-align: center;
}

.p-rent-index-type-btn .material-symbols-outlined {
    font-size: 34px;
    color: #888888;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.p-rent-index-type-btn strong {
    font-size: 17px;
    font-weight: 700;
    display: block;
    line-height: 1.5;
    color: var(--color-hero-navy);
}

.p-rent-index-type-sub {
    font-size: 12px;
    color: #a09990;
    font-family: "Inter", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.p-rent-index-type-btn:hover {
    background-color: #ffffff;
    border-color: var(--color-hero-gold);
    color: var(--color-hero-gold);
    box-shadow: 0 8px 20px rgba(184, 158, 116, 0.15);
    transform: translateY(-2px);
}

.p-rent-index-type-btn:hover strong,
.p-rent-index-type-btn:hover .material-symbols-outlined {
    color: var(--color-hero-gold);
}

.p-rent-index-map-container {
    display: table;
    width: 100%;
    table-layout: fixed;
    background-color: #fbfaf8;
    border: 1px solid #e1dbd6;
    border-radius: 6px;
    overflow: hidden;
}

.p-rent-index-map-wrapper {
    display: table-cell;
    width: 60%;
    padding: 40px;
    background-color: #ffffff;
    vertical-align: middle;
}

.p-rent-index-map-relative {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: auto;
    overflow: hidden;
}

.p-rent-index-svg-map {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

.p-rent-index-map-region {
    cursor: pointer;
}

.p-rent-index-map-region path {
    stroke: #ffffff;
    stroke-width: 4px;
    stroke-linejoin: round;
    transition: fill 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
}

.p-rent-index-map-region.m-west path {
    fill: #a6cd7e;
}

.p-rent-index-map-region.m-central path {
    fill: #72c0ae;
}

.p-rent-index-map-region.m-east path {
    fill: #75aadb;
}

.p-rent-index-map-region:hover path {
    filter: drop-shadow(0 8px 24px rgba(14, 34, 69, 0.25));
    opacity: 0.85;
}

.p-rent-index-map-label-card {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid #e1dbd6;
    border-radius: 6px;
    padding: 12px 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    pointer-events: none;
    text-align: center;
    width: max-content;
    min-width: 160px;
    transform: translate(-50%, -50%);
}

.p-rent-index-map-label-card.m-west {
    top: 72%;
    left: 24%;
}

.p-rent-index-map-label-card.m-central {
    top: 54%;
    left: 49%;
}

.p-rent-index-map-label-card.m-east {
    top: 66%;
    left: 79%;
}

.p-rent-index-map-label-card h3 {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 4px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.p-rent-index-map-label-card.m-west h3 {
    color: #558b2f;
}

.p-rent-index-map-label-card.m-central h3 {
    color: #00695c;
}

.p-rent-index-map-label-card.m-east h3 {
    color: #1565c0;
}

.p-rent-index-map-label-card p {
    font-size: 12px;
    font-weight: 700;
    color: #666666;
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
}

.p-rent-index-map-legend {
    display: table-cell;
    width: 40%;
    padding: 40px 30px;
    vertical-align: top;
    border-left: 1px solid #e1dbd6;
}

.p-rent-index-legend-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-hero-navy);
    margin: 0 0 24px;
    letter-spacing: 0.04em;
    border-left: 4px solid var(--color-hero-gold);
    padding-left: 12px;
}

.p-rent-index-legend-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.p-rent-index-legend-box {
    background-color: #ffffff;
    border: 1px solid #edebe6;
    border-radius: 6px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}

.p-rent-index-legend-box.m-west {
    border-left: 4px solid #a6cd7e;
}

.p-rent-index-legend-box.m-central {
    border-left: 4px solid #72c0ae;
}

.p-rent-index-legend-box.m-east {
    border-left: 4px solid #75aadb;
}

.p-rent-index-legend-box-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.p-rent-index-legend-box-head h4 {
    font-size: 16px;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.02em;
    line-height: 1.5;
}

.p-rent-index-legend-box.m-west h4 {
    color: #4b7a22;
}

.p-rent-index-legend-box.m-central h4 {
    color: #227a67;
}

.p-rent-index-legend-box.m-east h4 {
    color: #1f578a;
}

.p-rent-index-legend-towns {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.p-rent-index-legend-towns span {
    font-size: 13px;
    font-weight: 700;
    background-color: #f5f4f0;
    color: #555555;
    padding: 5px 10px;
    border-radius: 3px;
    letter-spacing: 0.01em;
    line-height: 1.4;
}

/* ==========================================================================
   MODAL WINDOW DIALOG SYSTEM
   ========================================================================== */

.p-rent-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(14, 34, 69, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.p-rent-modal-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

.p-rent-modal-window {
    background-color: #ffffff;
    width: 90%;
    max-width: 640px;
    border-radius: 8px;
    padding: 40px;
    position: relative;
    box-shadow: 0 30px 90px rgba(8, 21, 44, 0.25);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border-top: 4px solid var(--color-hero-gold);
}

.p-rent-modal-overlay.is-active .p-rent-modal-window {
    transform: translateY(0);
}

.p-rent-modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: #888888;
    transition: color 0.2s ease;
}

.p-rent-modal-close-btn:hover {
    color: var(--color-hero-navy);
}

.p-rent-modal-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.p-rent-modal-head .material-symbols-outlined {
    font-size: 24px;
    color: var(--color-hero-gold);
}

.p-rent-modal-head h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-hero-navy);
    margin: 0;
}

.p-rent-modal-lead {
    font-size: 16px;
    color: #666666;
    margin: 0 0 28px;
    font-weight: 500;
    line-height: 1.7;
}

.p-rent-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.p-rent-modal-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #fbfaf8;
    border: 1px solid #e1dbd6;
    border-radius: 4px;
    padding: 20px;
    text-decoration: none;
    color: #444444;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.25s ease;
}

.p-rent-modal-btn .material-symbols-outlined {
    font-size: 24px;
    color: #888888;
    transition: color 0.25s ease;
}

.p-rent-modal-btn:hover {
    background-color: #ffffff;
    border-color: var(--color-hero-gold);
    color: var(--color-hero-gold);
    box-shadow: 0 8px 20px rgba(184, 158, 116, 0.15);
}

.p-rent-modal-btn:hover .material-symbols-outlined {
    color: var(--color-hero-gold);
}

/* ==========================================================================
   RESPONSIVE CONTROL
   ========================================================================== */

@media screen and (max-width: 1024px) {
    .p-rent-index {
        padding-bottom: 90px;
    }

    .p-rent-index-hero {
        padding: 80px 0 140px;
    }

    .p-rent-index-hero-inner,
    .p-rent-index-container {
        padding-inline: 32px;
    }

    .p-rent-index-main-title {
        font-size: 36px;
    }

    .p-rent-index-container {
        margin-top: -70px;
    }

    .p-rent-index-panel-head {
        padding: 22px 32px;
    }

    .p-rent-index-form {
        padding: 32px;
    }

    .p-rent-index-type-grid {
        grid-template-columns: 100%;
        gap: 14px;
    }

    .p-rent-index-type-btn {
        padding: 22px 16px;
    }

    .p-rent-index-map-container {
        display: block;
    }

    .p-rent-index-map-wrapper {
        display: block;
        width: 100%;
        padding: 32px;
    }

    .p-rent-index-map-legend {
        display: block;
        width: 100%;
        padding: 32px;
        border-left: none;
        border-top: 1px solid #e1dbd6;
    }

    .p-rent-index-map-label-card {
        min-width: 130px;
        padding: 10px 14px;
    }

    .p-rent-index-map-label-card h3 {
        font-size: 14px;
    }

    .p-rent-index-map-label-card p {
        font-size: 11px;
    }

    .p-rent-index-legend-list {
        display: grid;
        grid-template-columns: 100%;
    }

    .p-rent-modal-window {
        max-width: 600px;
    }
}

@media screen and (max-width: 768px) {
    .p-rent-index {
        padding-bottom: 64px;
    }

    .p-rent-index-hero {
        padding: 56px 0 96px;
    }

    .p-rent-index-hero-inner,
    .p-rent-index-container {
        padding-inline: 20px;
    }

    .p-rent-index-badge {
        font-size: 10px;
        margin-bottom: 16px;
    }

    .p-rent-index-main-title {
        font-size: 28px;
        line-height: 1.35;
    }

    .p-rent-index-sub-title {
        font-size: 13px;
        line-height: 1.8;
    }

    .p-rent-index-container {
        margin-top: -44px;
    }

    .p-rent-index-search-panel {
        border-radius: 6px;
    }

    .p-rent-index-panel-head {
        padding: 18px 20px;
    }

    .p-rent-index-panel-head h2 {
        font-size: 17px;
        line-height: 1.5;
    }

    .p-rent-index-panel-head .material-symbols-outlined {
        font-size: 22px;
    }

    .p-rent-index-form {
        padding: 24px 18px;
    }

    .p-rent-index-group {
        margin-bottom: 30px;
    }

    .p-rent-index-label {
        font-size: 16px;
        margin-bottom: 14px;
        line-height: 1.6;
    }

    .p-rent-index-type-btn {
        padding: 22px 16px;
    }

    .p-rent-index-type-btn strong {
        font-size: 16px;
    }

    .p-rent-index-type-sub {
        font-size: 12px;
    }

    .p-rent-index-map-wrapper {
        padding: 20px 14px;
    }

    .p-rent-index-map-relative {
        overflow: visible;
    }

    .p-rent-index-map-label-card {
        min-width: 92px;
        padding: 7px 8px;
        border-radius: 4px;
    }

    .p-rent-index-map-label-card h3 {
        font-size: 12px;
        margin-bottom: 0;
    }

    .p-rent-index-map-label-card p {
        display: none;
    }

    .p-rent-index-map-label-card.m-west {
        top: 73%;
        left: 25%;
    }

    .p-rent-index-map-label-card.m-central {
        top: 53%;
        left: 50%;
    }

    .p-rent-index-map-label-card.m-east {
        top: 67%;
        left: 78%;
    }

    .p-rent-index-map-legend {
        padding: 24px 18px;
    }

    .p-rent-index-legend-title {
        font-size: 17px;
        margin-bottom: 18px;
    }

    .p-rent-index-legend-list {
        gap: 14px;
    }

    .p-rent-index-legend-box {
        padding: 18px;
        gap: 12px;
    }

    .p-rent-index-legend-box-head h4 {
        font-size: 16px;
    }

    .p-rent-index-legend-towns {
        gap: 6px;
    }

    .p-rent-index-legend-towns span {
        font-size: 13px;
        padding: 5px 9px;
    }

    .p-rent-modal-overlay {
        padding: 20px;
    }

    .p-rent-modal-window {
        width: 100%;
        max-width: none;
        padding: 32px 20px 24px;
    }

    .p-rent-modal-close-btn {
        top: 14px;
        right: 14px;
    }

    .p-rent-modal-head h2 {
        font-size: 20px;
    }

    .p-rent-modal-lead {
        font-size: 16px;
        line-height: 1.7;
        margin-bottom: 22px;
    }

    .p-rent-modal-grid {
        grid-template-columns: 100%;
        gap: 10px;
    }

    .p-rent-modal-btn {
        min-height: 54px;
        padding: 14px 16px;
        font-size: 16px;
    }
}