/* =====================================================
   Pankratovo Map Plugin — component styles
   ===================================================== */

/* --- visibility helpers -------------------------------------------- */
.hide {
    opacity: 0 !important;
    pointer-events: none !important;
    /* keep in DOM so dimensions are stable */
}
#pankratovo-map-app .none {
    display: none !important;
}

/* --- root wrapper --------------------------------------------------- */
#pankratovo-map-app {
    position: relative;
    font-family: 'Open Sans', Arial, sans-serif;
    color: #fff;
    box-sizing: border-box;
}
#pankratovo-map-app *,
#pankratovo-map-app *::before,
#pankratovo-map-app *::after {
    box-sizing: inherit;
}

/* --- outer map container -------------------------------------------- */
#pankratovo-map-app .map-yandex {
    position: relative;
    width: 100%;
    background: #1a2a1a;
}

/* --- section header (above map) ------------------------------------ */
#pankratovo-map-app .map-yandex > .header.center {
    text-align: center;
    padding: 24px 20px 16px;
    background: #1a2a1a;
}
#pankratovo-map-app .map-yandex > .header.center .title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}
#pankratovo-map-app .map-yandex > .header.center .desc {
    font-size: 15px;
    color: #ccc;
}

/* --- yandex map canvas --------------------------------------------- */
#pnkr-ymap {
    width: 100%;
    height: 600px;
    display: block;
}

/* --- finger preloader ---------------------------------------------- */
#pankratovo-map-app .preload {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10;
}
#pankratovo-map-app .preload img {
    width: 60px;
    height: auto;
    display: block;
}

/* --- detail panel -------------------------------------------------- */
#pnkr-detail {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    height: 100vh;
    background: #2d5a2d;
    z-index: 99999;
    padding: 20px;
    transition: opacity 0.25s ease;
    overflow-y: auto;
}

/* --- close (×) button ---------------------------------------------- */
#pankratovo-map-app .cross {
    position: absolute;
    top: 12px;
    right: 12px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
}
#pankratovo-map-app .cross:hover {
    background: rgba(255,255,255,0.3);
}

/* --- detail header (plot info) ------------------------------------- */
#pnkr-detail > .header {
    margin-bottom: 16px;
    padding-right: 36px; /* room for close btn */
}
#pnkr-detail > .header .title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}
#pnkr-detail > .header .item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 14px;
}
#pnkr-detail > .header .item .name {
    color: #b0d8b0;
}
#pnkr-detail > .header .item .value {
    font-weight: 600;
    color: #fff;
}

/* --- "sold" message block ------------------------------------------ */
#pankratovo-map-app .closed {
    transition: opacity 0.2s;
    text-align: center;
    padding-top: 12px;
}
#pankratovo-map-app .closed .p {
    font-size: 14px;
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 16px;
}

/* --- booking form -------------------------------------------------- */
#pankratovo-map-app .form {
    transition: opacity 0.2s;
}

/* sent / error state blocks */
#pankratovo-map-app .sended,
#pankratovo-map-app .error {
    text-align: center;
    padding: 12px 0;
    transition: opacity 0.2s;
}
#pankratovo-map-app .sended .text,
#pankratovo-map-app .error .text {
    font-size: 15px;
    margin-bottom: 14px;
    color: #fff;
}

/* form wrapper */
#pankratovo-map-app .wrapp > .title {
    font-size: 14px;
    line-height: 1.5;
    color: #d0e8d0;
    margin-bottom: 16px;
}

/* --- field --------------------------------------------------------- */
#pankratovo-map-app .field {
    margin-bottom: 14px;
}
#pankratovo-map-app .field > .name {
    font-size: 13px;
    color: #b0d8b0;
    margin-bottom: 5px;
}
#pankratovo-map-app .field input[type="text"],
#pankratovo-map-app .field input[type="tel"] {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
#pankratovo-map-app .field input::placeholder {
    color: rgba(255,255,255,0.4);
}
#pankratovo-map-app .field input:focus {
    border-color: rgba(255,255,255,0.7);
}

/* field error message */
#pankratovo-map-app .field .err {
    font-size: 12px;
    color: #ffaaaa;
    margin-top: 4px;
    min-height: 16px;
}

/* --- checkbox field ------------------------------------------------ */
#pankratovo-map-app .field.check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
#pankratovo-map-app .field.check .text {
    font-size: 12px;
    color: #b0d8b0;
    line-height: 1.5;
}
#pankratovo-map-app .field.check .text a {
    color: #90ee90;
    text-decoration: underline;
}

/* custom checkbox */
#pankratovo-map-app label.checkbox {
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}
#pankratovo-map-app label.checkbox input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
#pankratovo-map-app label.checkbox .fake {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    transition: background 0.2s;
}
#pankratovo-map-app label.checkbox input:checked + .fake {
    background: #5aff5a;
    border-color: #5aff5a;
}
#pankratovo-map-app label.checkbox .fake img {
    width: 12px;
    height: auto;
    display: none;
}
#pankratovo-map-app label.checkbox input:checked + .fake img {
    display: block;
}

/* --- buttons ------------------------------------------------------- */
#pankratovo-map-app .but {
    display: inline-block;
    width: 100%;
    padding: 11px 20px;
    background: #5aaf5a;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s;
    margin-top: 6px;
}
#pankratovo-map-app .but:hover {
    background: #3d8f3d;
}

/* --- animated preloader finger ------------------------------------- */
@keyframes pnkr-pulse {
    0%, 100% { transform: scale(1);   opacity: 1; }
    50%       { transform: scale(1.1); opacity: 0.7; }
}
#pankratovo-map-app .animated-fast {
    animation: pnkr-pulse 1.2s ease-in-out infinite;
}

/* --- responsive ---------------------------------------------------- */
@media (max-width: 640px) {
    #pnkr-detail {
        width: 100%;
        top: auto;
        bottom: 0;
        height: 70vh;
    }
    #pnkr-ymap {
        height: 380px;
    }
}