﻿/*Trzaskowski - most of stylistic changes I made are included in this css file*/
/*.page {
    position: relative;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

@media (min-width: 641px) {
    .page {
        flex-direction: row;
    }
}*/

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/*map*/
#mapComponent {
    position: relative;
    top: 60px;
    z-index: 0;
}

/*buttons - zoom in, zoom out and fullscreen*/
.btn-group {
    position: absolute !important;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0 auto !important;
}

.zoom-in-btn, .zoom-out-btn, .fullscreen-btn, .fit-bounds-button {
    background-color: white;
    border-color: grey;
    color: black;
    z-index: 1000;
    border-radius: 5px;
    position: absolute;
    width: 22px;
    height: 22px;
    margin: 0 auto !important;
    justify-content: center;
    text-align: center;
}

.fit-bounds-button {
    bottom: 145px;
    right: 20px;
}

.zoom-in-btn {
    bottom: 90px;
    right: 20px;
}

.zoom-out-btn {
    bottom: 35px;
    right: 20px;
    padding-left: 14px;
    padding-right: 14px;
}

.fullscreen-btn {
    top: 20px;
    right: 20px;
    padding-left: 5px;
    padding-right: 8px;
    width: 34px;
    margin: 0 auto !important;
    justify-content: center;
    text-align: center;
}

.btn-btn-secondary {
    width: 25px !important;
    height: 25px !important;
    margin: 0 auto;
}

    .btn-btn-secondary button {
        padding: 20px !important;
        margin: 20px !important;
        width: 20px !important;
        height: 20px !important;
    }

#mapContainer {
    /*padding: 10px;*/
    /*margin-top: 20px;*/
    position: relative;
    z-index: 0;
}

.mud-dialog-content {
    margin: 0 auto;
}

.btn-group .btn-btn-secondary.zoom-in-btn,
.btn-group .btn-btn-secondary.fullscreen-btn {
    width: 45px !important;
    height: 45px !important;
    font-size: 30px;
    display: flex;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

.btn-group .btn-btn-secondary.zoom-out-btn {
    width: 45px !important;
    height: 45px !important;
    font-size: 45px;
    display: flex;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

.btn-group .btn-btn-secondary.fit-bounds-button {
    width: 45px !important;
    height: 45px !important;
    font-size: 45px;
    display: flex;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

.btn-group .btn-btn-secondary.fullscreen-btn MudIcon {
    font-size: 35px;
}

button.btn-btn-secondary.fullscreen-btn .mud-icon-root.mud-svg-icon.mud-icon-size-medium {
    width: 45px !important;
    height: 45px !important;
}


/* legend located in lower right corner - map specs*/
.leaflet-container *,
.leaflet-container a,
.leaflet-container span,
.leaflet-bottom.leaflet-right *,
.leaflet-control-container *,
.leaflet-control-container a,
.leaflet-control-container span {
    color: black !important;
    margin-right: 0px !important;
}

/* map in fullscreen mode*/
.mud-dialog-container.mud-dialog-centerleft {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 25px;
    padding: 0;
    box-sizing: border-box;
}

.mud-dialog-content {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}




/************************************/
/* Belka górna                      */
.menu button {
    color: white;
    text-transform: none;
}

.menu-item p {
    font-size: 0.9rem;
}

.menu-label-long {
    display: inline-block;
}

.menu-label-plus {
    display: none;
}

@media (max-width: 750px) {
    .menu-version {
        display: none;
    }
    .menu-label-long {
        display: none;
    }
    .menu-label-plus {
        display: inline-block;
    }
}


/************************************/
/* Zakładki w oknie 'Moje ogłoszenia' */
.top-tabs-active  {
    background-color: #005A9C;
    color: white !important;
    border: 2px solid #005A9C; 
}

    .top-tabs-active.mud-tab.mud-tab-active:hover {
        background-color: #005A9C;
        color: white !important;
        border: 2px solid #005A9C;
        opacity: 0.8;
    }


/**********************************/
/* Ramka dla ogłoszenia na liście */
.table-with-hover .mud-table-cell {
    border-bottom: none;
}

.table-with-hover .mud-table-cell:hover {
    background-color: #005A9C;
    border-radius: 15px !important;
    transition: 2s ease;
}

.table-with-hover .mud-table-container {
    overflow-y: unset !important;
}


/* ************************************* */
/* Kategorie ogłoszeń na ekranie głównym */
.announcements-categories {
    margin-bottom: 5% !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.announcements-categories-icon {
    width: 150px;
    height: 150px;
    text-align: center;
    border-radius: 20px !important;
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.4) !important;
    background-color: white !important;
}

    .announcements-categories-icon:hover {
        /*border: 1px solid #005A9C;
        margin-bottom: 3px !important;*/
        background-color: lightgray !important;
        /*#add8ff*/
    }

.announcements-categories div.mud-chip {
    margin: 8px;
    padding: 90px !important;
}

.announcements-categories .mud-chip-content {
    justify-content: center;
}

.category-name {
    margin-top: 10px;
    display: block;
    font-weight: bold;
}

.category-icon {
    height: 130px;
    width: 130px;
}

/*@media (min-resolution: 96dpi) {
    .announcements-categories-icon {
        background-color: yellow !important;
    }
}

@media (min-resolution: 120dpi) {
    .announcements-categories-icon {
        background-color: cornflowerblue !important;
    }
}*/


/* *************************************************************** */
/* Przycisk "POKAŻ NA MAPIE" nad listą ogłoszeń na ekranie głównym */
.div-button-show-on-map {
    height: 35px;
    background-color: white;
    padding: 2px;
}

    .div-button-show-on-map button.mud-button {
        border: none;
        color: var(--mud-palette-text-primary);
    }

        .div-button-show-on-map button.mud-button:hover {
            border: none;
            /*background-color: white;*/
        }


/* ********************************* */
/* Lista ogłoszeń na ekranie głównym */
.announcement-list-title {
    font-weight: bold;
    max-width: 500px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.announcement-list-description {
    width: 80%;
    display: block;
    overflow: hidden;
    height: 50px;
    white-space: pre-wrap;
}

/* ustawienie stylizacji dla div z przyciskiem polubienia i ceną*/
.announcement-list-div {
    width: 190px;
    text-align: end;
}

.announcement-list-price {
    font-weight: bold;
    font-size: 1.125rem;
}


/* *********************** */
/* Lista ogłoszeń na mapie */
.map-announcement-list-title {
    font-weight: bold;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ******************************** */
/* Lista ogłoszeń 'Moje ogłoszenia' */
.user-announcement-list-title {
    font-weight: bold;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-announcement-list-buttons {
    text-align: end;
}

.user-announcement-list-description {
    width: 100%;
    display: block;
    overflow: hidden;
    height: 50px;
    white-space: pre-wrap;
}


/* ******************** */
/* Szczegóły ogłoszenia */
div.announcement-table-container {
    max-height: 320px;
    overflow: auto;
}


/* ************************************* */
/* Pasek wyszukiwania na stronie głównej */
.main-page div.search-bar {
    margin-top: 15px;
    margin-bottom: 80px;
    height: 60px;
    border-radius: 40px;
    padding-left: 25px;
}

.main-page hr.search-bar-divider {
    height: 60px !important;
    border-color: #005A9C;
}

.main-page button.search-bar-button {
    background-color: #005A9C;
    color: white;
    height: 58px;
    width: 200px;
    border-top-right-radius: 40px;
    border-bottom-right-radius: 40px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    margin-bottom: 2px;
}


/*******************************************/
/* Pasek wyszukiwania na pozostałych stronach */
div.other-page {
    padding-top: 24px;
}

.other-page div.search-bar {
    background-color: #F5F5F5;
    height: 56px;
    max-width: 870px;
    padding-left: 20px;
}

.other-page hr.search-bar-divider {
    height: 56px !important;
    border-color: black;
}

.other-page button.search-bar-button {
    background-color: #F5F5F5;
    color: black;
    width: 150px;
}

.other-page input {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}


/********************/
/* Dodaj ogłoszenie */
button.add-announcement-button {
    border: 2px solid #005A9C !important;
    border-radius: 0px !important;
    color: #005A9C !important;
    margin: 5px !important;
}


/*****************************/
/* Moje konto - Ustawienia */

/* Tytuły podstron */
h5.title {
    color: black;
}

button.button-w170 {
    background-color: #005A9C;
    color: white;
    width: 170px;
    height: 50px;
    border-radius: 0px;
}

.settings-categories {
    height: 50px;
    font-size: 1.2rem;
}

.settings-category {
    color: black !important;
}

.settings-category.active {
    font-weight: bold;
}


/*************************************************************/
/* Style dla okien logowania, resetowania hasła, rejestracji */

/* Główny przycisk */
.main-button {
    background-color: #005A9C;
    color: white;
    height: 50px;
    font-size: 16px;
}

.button-w140 {
    width: 140px;
}

.button-h30 {
    background-color: #005A9C;
    height: 30px;
    text-align: center;
    margin-top: 5px;
    padding-top: 4px;
}


/*******************************/
/* Style dla różnych kontrolek */
h2 {
    color: #005A9C;
}

.bg-color-input input {
    background-color: white !important;
}

.total-list-items-label {
    background-color: white;
    padding-left: 15px;
    padding-bottom: 5px;
    display: block;
    width: 100%;
    font-weight: 500
}

.clear-filters-button {
    display: block;
    text-align: end;
    margin-bottom: 20px
}

.userpage-clear-filers-button {
    margin-top: 20px;
    margin-right: 5px;
    flex-basis: 100%
}

.no-help-container div.mud-input-control-helper-container{
    display: none;
}

.password-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.password-text {
    width: 100%;
    padding-right: 30px;
    box-sizing: border-box;
}

.password-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer
}

/*Tooltip*/
.tooltip-info-icon {
    height: 16px !important;
    color: #6f767d
}

.map-outlined-checkbox {
    border: 1px solid #ccc !important;
    padding-right: 15px !important;
    background-color: white;
    border-color: grey;
    border-radius: 5px;
    justify-content: center;
    text-align: center;
    left: 20px !important;
    top: 20px;
    height: 37px;
}

.detail-map-outlined-checkbox {
    border: 1px solid #ccc !important;
    padding-right: 15px !important;
    background-color: white;
    border-color: grey;
    border-radius: 5px;
    justify-content: center;
    text-align: center;
    top: 5px;
    height: 37px;
}

.map-addparcel-popup {
    position: absolute;
    z-index: 1000;
    padding: 20px;
    border: 1px solid #ccc !important;
    border-color: grey;
    border-radius: 5px;
    top: 7% !important;
    left: 82% !important;
}