/* ================= BASE ================= */

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Helvetica, Arial, sans-serif;
    background: #f5f5f5;
}

#map {
    width: 100%;
    height: 100%;
}

/* ================================================= */
/* ================= BOTTOM SHEET ================= */
/* ================================================= */

#sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;

    height: 72px;
    background: #ffffff;

    border-radius: 18px 18px 0 0;
    box-shadow: 0 -6px 24px rgba(0,0,0,0.18);

    transition: height 0.3s ease;
    z-index: 2000;

    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#sheet.open {
    height: 65vh;
}

/* ================= HANDLE ================= */

#sheet-handle {
    width: 100%;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    cursor: pointer;
    flex-shrink: 0;
}

/* ПО УМОЛЧАНИЮ — ЗАКРЫТО */
#sheet-handle::before {
    content: "Список всех адресов";
    font-size: 22px;
    font-weight: 600;
    color: #111;
}

/* ОТКРЫТО — ПОЛОСКА */
#sheet.open #sheet-handle::before {
    content: "";
    width: 48px;
    height: 6px;
    background: #cfcfcf;
    border-radius: 3px;
}



/* ================= LIST ================= */

#sheet-list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 20px 30px;
}


.sheet-item {
    padding: 16px 14px;
    margin-bottom: 14px;

    background: #fafafa;
    border-radius: 16px;
    border: 1px solid #eee;

    text-align: center;
    cursor: pointer;

    transition: background 0.15s ease, transform 0.1s ease;
}

.sheet-item:hover {
    background: #f0f0f0;
}

.sheet-item:active {
    transform: scale(0.98);
}

.sheet-title {
    font-size: 17px;
    font-weight: 700;
    color: #222;
    margin-bottom: 6px;
}

.sheet-address {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 14px;
}

.sheet-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.sheet-btn {
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.sheet-btn.phone {
    background: #f2f2f2;
    color: #333;
}

.sheet-btn.whatsapp {
    background: #7BC043;
    color: #ffffff;
}

/* ================================================= */
/* ================= YANDEX BALLOON ================= */
/* ================================================= */

/* убираем хвост */
.ymaps-2-1-79-balloon__tail {
    display: none !important;
}

/* контейнер */
.ymaps-2-1-79-balloon__content {
    padding: 18px 20px !important;
    font-family: inherit;
    text-align: left;
}

/* заголовок */
.ymaps-2-1-79-balloon__content .balloon-title {
    font-size: 18px;
    font-weight: 800;
    color: #222;
    margin-bottom: 8px;
}

/* адрес */
.ymaps-2-1-79-balloon__content .balloon-address {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 14px;
}

/* телефон — отдельной строкой */
.ymaps-2-1-79-balloon__content .balloon-phone {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #222;
    text-decoration: none;
    margin-bottom: 14px;
}

/* кнопка WhatsApp */
.ymaps-2-1-79-balloon__content .balloon-whatsapp {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 999px;
    background: #7BC043;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.ymaps-2-1-79-balloon__content a {
    color: #111 !important;          /* чёрный цвет */
    text-decoration: none !important; /* без подчёркивания */
    font-weight: 600;
}

.ymaps-2-1-79-balloon__content a:hover {
    text-decoration: none !important;
}
