/* Pagination Container */
nav[aria-label="mib pagination"] .pagination {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    justify-content: center;
    --bs-pagination-disabled-bg: none;
}

/* Pagination Items */
nav[aria-label="mib pagination"] .pagination .page-item {
    margin: 0 2px;
}

nav[aria-label="mib pagination"] .pagination .page-item.disabled a,
nav[aria-label="mib pagination"] .pagination .page-item.disabled a:hover {
    color: #ccc;
    pointer-events: none;
    --bs-pagination-disabled-bg: none;
}

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Pagination Links */
nav[aria-label="mib pagination"] .pagination .page-link {
    padding: 6px;
    display: inline-block;
    font-size: 16px;
    font-weight: normal;
    line-height: 2em;
    color: #666;
    border: 1px solid rgba(0, 0, 0, 1);
    border-radius: 4px;
    min-width: 2em;
    box-sizing: content-box;
    text-align: center;
    margin: 0.5em 0.4em;
    text-decoration: none !important;
    box-shadow: none;
    vertical-align: middle;
    box-shadow: 0 0 15px rgba(0,0,0,.05);
    cursor: pointer;
    width: auto;
}

nav[aria-label="mib pagination"] .pagination .page-item.active .page-link{
    background: transparent !important;
    color: rgb(0, 0, 0);
    box-shadow: none;
    cursor: pointer
}
nav[aria-label="mib pagination"] .pagination .page-link:hover {
    color: rgb(0, 0, 0);
    box-shadow: none;
    cursor: pointer
    background: transparent !important;
}

/* Accessibility */
nav[aria-label="mib pagination"] .pagination .page-link:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    cursor: pointer;
}

#custom-list-table-container{

    background-color: #e2e1df;
    max-width: 100%;
}

.custom-list-table{

    border: 1px solid #eee;
    margin: 0 0 15px;
    text-align: left;
    width: 100%;
    border-collapse: collapse;
    font-family: "Barlow Condensed", sans-serif;

}

.custom-list-table tbody tr:nth-child(odd) {
    border-bottom-style: solid;
    border-bottom-width: 1px;
    background-color: rgba(0,0,0,.02);
}

.custom-list-table tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, .06);
    border-bottom-style: solid;
    border-bottom-width: 1px;
}

.custom-list-table #mibheadertr{
  border-bottom: 2px solid rgba(0, 0, 0, .6);
  background: rgba(0, 0, 0, 0);
}

.custom-list-table #mibheaderth{
  padding: 20px;
  /*background-color: #876865;*/
  color: rgb(255, 255, 255);
  text-align: center;
  color: #e2e1df;
  font-size: 20px;
  height: 20px;
  line-height: 20px;
  max-width: 800px;
}


.custom-list-table #mibtd{
  font-size: 16px;
  font-weight: 500;
  /*color: rgb(66, 66, 68, 1.0);*/
  text-align: left;
  text-indent: 0px;
  width: auto;
  height: auto;
  line-height: 20px; 
  word-break: normal;
  padding: 15px 24px;
  
}

.custom-list-table #mibtr{
    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-bottom-color: rgba(0, 0, 0, .06);

}
.custom-list-table #mibhre{
    /*color: #424244;*/
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0);
    border-style: none;
    border-width: 0px;
    font-size: 20px;
    text-decoration: none !important;
    margin-left: 18px;

}

#custom-list-table-container .custom-filter-container{
    padding: 12px 10px 3px 10px;
}

.custom-list-table #mibhrefinactive{
    color: #b6b9c1;
    font-weight: bold;
    font-size: 20px;
    text-decoration: none;
    text-align: left;
}

.row {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}


@media (max-width: 768px) {
    .row {
        flex-wrap: wrap;
    }
    .col-md-2 {
        width: 100%;
        margin-bottom: 5px;
    }
}


/*select {
    padding: .375rem 1.75rem .375rem .75rem;
    line-height: 1.5;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    height: calc(2.25rem + 2px);
    color: white !important;
    cursor: pointer;
    margin-top: 4px;
}*/

#singletabletd{
    padding: 20px;
    width: 150px;
    border-top: 0;
    border-bottom: 1px dotted rgba(0, 0, 0, .1);
    margin: 0;
    line-height: 1.5;
    color: #666;
    -webkit-font-smoothing: antialiased;
}

.singletabletd.label {
    font-weight: 700;
}

#custom-list-single-table{
    max-width: 90%;
}

#mibapartmentitle{
    font-size: 75px;
    color: #876865 !important;
    line-height: 1em;
    font-weight: 700;
}

.entry-content .apartment-container{
    max-width: 100%;
    display: flex;
    align-items: flex-start; /* Aligns items to the top */
    font-family: "Barlow Condensed", sans-serif !important;
}

.apartment-container h1{
    font-family: "Barlow Condensed", sans-serif !important;
}

.apartment-image {
    flex: 2;
    margin-right: 20px; /* Adjust the space between the image and the table */
}

.apartment-info {
    flex: 2;
}

/* Responsive adjustment: stack them on smaller screens */
@media (max-width: 768px) {
    .apartment-container {
        flex-direction: column;
    }
    
    .apartment-image {
        margin-right: 0;
        margin-bottom: 20px; /* Space between image and table on small screens */
    }

    .apartment-info {
        width: 100%;
    }
}

.apartment-image #mibimage{
    width: 100%;
    margin-left: 20px;
    margin-top: 200px;
    max-height: 650px;
}

#price, #mibinfo{
    font-size: 21px;
    color: #876865 !important;
    line-height: 2em;
    font-weight: 500;
    font-family: "Barlow Condensed", sans-serif !important;
}

.custom-list-table tbody .singletr:nth-child(odd) {
    border-bottom-style: solid;
    border-bottom-width: 1px;
    background-color: rgb(249 249 249);
}

.custom-list-table tbody .singletr:nth-child(even) {
    background-color: rgba(0, 0, 0, .025);
    border-bottom-style: solid;
    border-bottom-width: 1px;
}

#mibfloorplan{
    font-weight: 700;
    text-transform: uppercase;
    font-size: 22px;
    color: #876865 !important;
    text-decoration: none;
    pointer:cursor;
    margin-bottom: 5px;
}

body .mibfloorplan{
    line-height: 5em;
    margin-bottom: -55px;
    margin-left: 0px !important;
}

.dropdown-menu.show{
    width: 247px;
    /*background: #3a322d;*/
}
.dropdown-menu {
    left: auto; /* Alapértelmezésben jobbra igazítja, ezt felülírjuk */
    right: 0; /* A trigger elem bal oldalához igazítja */
}
.dropdown-item{
    color:white !important;
}

.floor-checkbox{
    vertical-align: baseline;
    margin: 0 .5em 0 0;
    display: inline !important;
}

.dropdown-item:hover, .dropdown-item:focus {
    color: white !important;
    /*background-color: #3a322d !important;*/ /* Biztosítja, hogy ne legyen változás hoverkor */
    cursor: pointer; /* Opcionális: Megadja az egérmutató stílusát */
}

.floor-checkbox {
    vertical-align: baseline;
    margin: 0 .5em 0 0;
    display: inline !important;
}

/* Az alábbiak opcionálisan hozzáadhatók, ha szeretnéd, hogy a checkboxok és a címkék is konzisztensek maradjanak a hover effekt nélkül */
.dropdown-item label:hover, .dropdown-item label:focus {
    background-color: transparent !important;
    cursor: pointer;
}

.btn-dark, .btn-dark:hover{

    /*background-color: #3a322d !important;*/
    max-height: 38px;
}

#mib-spinner{
    display: none;
}

.range-slider-container #slider-range{
    margin-top: 10px !important;
        margin-bottom: -5px !important;
  }


.range-slider-container{
    padding-left: 10px;
    padding-right: 10px;
    text-align:center;
    border-radius: 7px;
    /*background-color: #3a322d !important;*/
    max-height: 55px;
}

.range-slider-container div{
  margin-bottom: 5px !important;
}

.range-slider-container span{
  color:white !important;
}

.range-slider-container p{
  color:white !important;
}

@media only screen and (max-width: 600px) {

    /* LIST VIEW MOBILE CSS */
    .simple-page-link{
        display:none !important;
    }

    #custom-list-table-container{
        overflow:scroll !important;
    }

    body .justify-content-end {
        justify-content: normal !important;
    }

    #mib-filter-deletefilters{
       white-space: nowrap !important;
    }


    /* APARTMANT VIEW MOBILE CSS */
    #mibapartmentitle{
        font-size:45px !important;
    }

    #mibinfo{
        margin-bottom: -10px !important;
    }

    #custom-list-single-table{
        max-width: 100% !important;
    }

    .apartment-image #mibimage{
        margin-left: 0px !important;
        margin-top: 0px !important;
    }

    .apartment-container{
        margin-bottom: -30px !important;
    }
}

#slider-range, #price-slider-range {
  width: 300px;
  margin: 15px;
  /*background: #212529;*/
}

#slider-value, #price-slider-range {
  text-align: center; /* A szöveg középre igazítása */
  margin-top: 10px; /* Adjon hozzá felső margót a `p` elemhez, hogy biztosítsa a visuális tér a slider felett */
  color: #333; /* Szövegszín beállítása */
  font-family: Arial, sans-serif; /* Betűtípus beállítása */
}

.ui-slider {
  background-color: #8B4513; /* A teljes slider sínjének barna színe */
}

.ui-slider-handle {
  background-color: #A0522D; /* A fogantyú világosabb barna színe */
  border-color: #454545; /* A fogantyú keretének sötétbarna színe */
}

.ui-slider-range {
  background: #8B4513; /* A kijelölt tartomány barna színe */
}

.recommended-apartments {
    display: flex;
    padding: 0 20px;
    max-width: 100% !important;
    margin-top: 50px;
}

@media only screen and (max-width: 600px) {
  .recommended-apartment {
width: 100% !important; /* Kis százalékos szélesség, hogy négy blokk elférjen */
    margin-bottom:20px !important;
  }

  .recommended-apartments {
    display: block;
}
}

.recommended-apartment {
    width: 19%; /* Kis százalékos szélesség, hogy négy blokk elférjen */
    margin-right:1%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
    background: #fff;
    text-align: center;
    margin-bottom: 20px; /* Szükség esetén alsó margó */
}

.recommended-apartment img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #eee; /* Kép alatti elválasztó vonal */
}

.recommended-apartment a {
    color: inherit; /* Ez az érték megtartja a szülő elem színét */
    text-decoration: none;
}

.recommended-apartment h3 {
    margin: 10px 0;
    font-size: 16px;
    color: #333;
    margin: 10px 0px 0px 10px;
    text-align:left;
    font-weight:700 !important;
}

.recommended-apartment p {
    font-size: 14px;
    margin: 0px 0px 0px 10px;
    color: #666;
    text-align:left !important;
    margin-bottom: 10px;
}
#recommended-h4{
    margin-top: 80px;
    color: #876865 !important;
    margin-bottom: 40px;
    text-align:center !important;
    font-weight:700 !important;
}

@media (max-width: 768px) {
  /* Mobilnézethez, amikor a képernyő szélessége 768px vagy kisebb */
  table th:nth-child(3), 
  table td:nth-child(3),
  table th:nth-child(4), 
  table td:nth-child(4),
  table th:nth-child(5), 
  table td:nth-child(5),
  table th:nth-child(6), 
  table td:nth-child(6) {
    display: none;
  }
}

@media (max-width: 768px) {
  .d-flex {
    flex-wrap: wrap; /* Lehetővé teszi az elemek tördelését új sorba */
  }

  .mb-2 {
    /*flex: 0 0 48%;
    margin-right: 2%;*/
  }

  .mb-2:nth-child(2n) {
    margin-right: 0; /* Minden második elem igazodik a jobb oldalhoz */
  }

  .dropdown-toggle {
    width: 100%;  /* Gombok szélessége 100% */
  }

  .range-slider-container {
    width: 100%;  /* Csúszka szélessége is 100% */
  }

  button#mib-filter-deletefilters {
    width: 100%;  /* Szűrők törlése gomb teljes szélesség */
    margin-top: 1rem;
  }

  .dropdown-menu {
    position: static; /* A legördülő menü statikus elhelyezése */
    width: 100%;      /* A menü szélessége 100% legyen, így nem lóg ki */
    left: 0;          /* Balra igazítva */
    right: 0;         /* Jobbra igazítva */
    margin: 0 auto;   /* Középre igazítja a menüt */
  }

  .dropdown-item {
    width: 100%;      /* A menüelemek szélessége is teljes legyen */
  }

  .dropdown-menu.show {
    
    width: 240px;

   }
}

/** are input range instead of slider */
.area-range-container {
    border-radius: 4px;
    width: 100%;
}

.square-filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px; /* Térköz a két input között */
    width: 100%;
}

.min-area-container,
.max-area-container {
    flex: 1; /* A két mező egyenlő szélességet kap */
}

.area-input {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.input-with-unit {
  display: flex;
  align-items: center;
}

.input-with-unit .area-input {
  flex: 1;
}

.input-with-unit .unit {
  margin-left: 8px;
  font-size: 14px; /* Egység betűmérete */
}

.input-with-unit {
  display: flex;
  align-items: center;
}

.input-with-unit .area-input {
  flex: 1;
}

.input-with-unit .unit {
  margin-left: 8px;
  font-size: 14px; /* Egység betűmérete */
}

/* Mobil nézethez (max 768px-es szélesség) */
@media screen and (max-width: 768px) {

  /* Táblázat konténer mobilra */
  .custom-list-table {
    width: 100%; /* Táblázat teljes szélességet használja */
    table-layout: fixed; /* Fix oszlopszélesség, hogy ne legyenek túl szélesek */
    overflow-x: auto; /* Vízszintes görgetés lehetősége */
    border-collapse: collapse;
  }

  .custom-list-table #mibtd {
    padding: 8px 12px; /* Csökkentett padding mobil nézetben */
  }

  /* Tábla cellák méretezése */
  th, td {
    padding: 10px 5px; /* Kisebb padding a cellákban mobilon */
    font-size: 12px; /* Kisebb betűméret mobilra */
    word-wrap: break-word; /* Szövegtörés a hosszabb tartalmaknál */
    white-space: nowrap; /* Szövegek egy sorban tartása */
    overflow: hidden; /* Szöveg levágása, ha túl hosszú */
    text-overflow: ellipsis; /* Három pont megjelenítése hosszú szövegeknél */
  }

  /* Fejléc stílus mobilon */
  th {
    font-size: 10px; /* Kisebb betűméret a fejlécekhez */
    text-align: left; /* Balra igazítás a fejléceknél */
    white-space: nowrap; /* Ne törjön meg a hosszú szöveg a fejlécben */
    overflow: hidden; 
    text-overflow: ellipsis;
  }

  /* Sorok igazítása mobilon */
  tr {
    display: table-row;
    width: 100%; /* Sorok szélessége teljes legyen */
  }

  /* Státusz cella megjelenése */
  td:last-child {
    text-align: center; /* Státusz középre igazítása */
  }

  /* Táblázat konténer görgethetősége */
  #custom-list-table-container {
    overflow-x: auto; /* Vízszintes görgetés, ha a tartalom nem fér el */
    width: 100%; /* Konténer teljes szélessége */
  }

  /* Spinner és egyéb stílusok a mobil nézethez */
  .mib-spinner {
    margin: 10px auto; /* Spinner középre igazítása */
  }

  /* Filterek igazítása mobilon */
  .custom-filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center; /* Középre igazítja a filtereket mobilon */
    margin-bottom: 10px;
  }
}

.apartment-name-label {
    position: absolute;
    top: 10px; /* A kép tetejétől 10px távolságra */
    left: 10px; /* A kép bal oldalától 10px távolságra */
    background-color: rgba(0, 0, 0, 0.5); /* Átlátszó fekete háttér */
    color: #fff; /* Fehér szöveg */
    padding: 5px 10px; /* Térköz a szöveg körül */
    font-size: 14px; /* Szöveg mérete */
    border-radius: 3px; /* Lekerekített sarkok */
}

#apartment-datas, #apartment-card-body, #custom-card-container{
    gap: 0px;
    justify-content: center;
}
.card-body {
    padding: 20px;
}

.card-text {
    font-size: 14px;
    margin-bottom: 5px;
}

.card .btn {
    width: 48%; /* Gombok egymás mellett */
}

.btn-outline-dark {
    border-color: #000;
    color: #000;
}

.btn-primary {
    background-color: #004f61;
    border-color: #004f61;
}

#cardhref{
    text-decoration: none;
}

/* Kép méretének beállítása a kártyákban */
#custom-card-container .card-img-top {
    width: 100%;           /* A kép szélessége teljesen kitölti a kártyát */
    height: 200px;         /* Állítsd be a kívánt magasságot, pl. 200px */
    object-fit: cover;     /* Megakadályozza a kép torzulását, levágja a széleket, hogy kitöltse a teret */
    object-position: center; /* A kép középre igazítása, ha levágásra kerül */
}

.load-more-container{
    text-align: center;
    margin-top: 20px;
}

.loading-spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #333;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: inline-block;
    margin-right: 5px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@media only screen and (min-width: 700px) {
    .custom-filter-container .area-range-container{
        width:350px !important;
    }
}