.body{
    font-family:"PlusJkarta Sans", sans-serif !important;
    display:flex;
    flex-direction:column;
    min-height: 100vh;
}

.container{
    flex:1;
}

.navbar{
    height:5rem; 
    background-color: white;
}

.fa-compass{
    color: #fe424d;
    font-size: 2rem;
}

.nav-link{
     color: #222222 !important;
}

.f-info-links a{
    text-decoration: none;
    color: #222222;
}

.f-info-links a:hover{
    text-decoration: underline;
}

.f-info-links, .f-info-socials, .f-info-brand{
    width:100%;
    display:flex;
    align-items:center; 
    justify-content: center;

}

.f-info-socials i{
    margin-right:1rem;
    font-size:1.2rem;
}

.f-info{
    text-align: center;
    height: 8rem;
    display:flex;
    background-color: #ebebeb;
    flex-wrap: wrap;
    justify-content: center;
    align-items: space-evenly; 
}

/* cards */
.card-title,
.card-location,
.price{
    margin: 2px 0;
}

.card-body{
    line-height: 1.2;
}

.card-location{
    color:#6c757d;
    font-size:14px;
}

.listing-card{
    border:none !important;
    padding-top:5px;
    margin-bottom: 2rem;
}

.card-img-top{
    border-radius: 1rem !important;
    width: 100% !important;
    object-fit: cover;
}

.card-body{
    padding:0 !important;
}

.card-text{
    font-weight:400 !important;
}

.listing-link{
    text-decoration:none;
}

/* card effect */
.cardsimg-overlay{
    opacity:0;
}

.card-img-overlay:hover{
    opacity:0.2;
    background-color: white;
}

.add-btn{
    background-color: #fe424d !important;
    border:none !important;
}   

.edit-btn{
    background-color: #fe424d !important;
    border:none !important;
}   

/* show page */

.show-img{
    height: 30vh;
}

.btns{
    display:flex;
}

.show-card{
    padding-left:0;
    padding-right:0;
}

/* map */
#map {
    height: 400px;
    width:80vh;
}

.icon{
    color: black;
    text-decoration: none;
}

a{
    text-decoration: none;
}

/* filters */

.pagination{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    margin:40px 0;
    margin-bottom:0 !important;
    padding-bottom:15px;
}

.page-number,
.page-btn{
    padding:8px 14px;
    border:1px solid #ddd;
    border-radius:8px;
    text-decoration:none;
    color:#333;
}

.page-number:hover,
.page-btn:hover{
    background:#f2f2f2;
}

.page-number.active{
    background:#ff385c;
    color:white;
    border:none;
}

.results-count{
    display:flex;
    justify-content:center;
    align-items:center;
}

#filters-wrapper{
    display:flex;
    align-items:center;
    justify-content:space-between;
    border-bottom:1px solid #eaeaea;
    padding:10px 0;
    padding-top:120px;
    margin-left:95px;
    margin-right:95px;
}

#filters{
    display:flex;
    overflow-x:auto;
    gap:35px;
    scrollbar-width:none;
}

.filter{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-decoration:none;
    color:#555;
    font-size:0.85rem;
    transition:0.25s;
}


.filter i{
    font-size:1.2rem;
    margin-bottom:4px;
}

.filter:hover{
    color:black;
    transform:translateY(-3px);
}

.filter.active{
    border-bottom:2px solid black;
    font-weight:600;
}

.tax-toggle{
    display:flex;
    align-items:center;
    gap:12px;
    background:#f7f7f7;
    padding:10px 18px;
    border-radius:25px;
    margin-left:20px;
}

.switch{
    position:relative;
    width:42px;
    height:22px;
}

.switch input{
    opacity:0;
    width:0;
    height:0;
}

.filter-slider{
    position:absolute;
    inset:0;
    background-color:#ccc;
    border-radius:50px;
    transition:0.3s;
}

.filter-slider::before{
    content:"";
    position:absolute;
    height:18px;
    width:18px;
    left:2px;
    top:2px;
    background:white;
    border-radius:50%;
    transition:0.3s ease;
    box-shadow:0 2px 6px rgba(0,0,0,0.2);
}

input:checked + .filter-slider{
    background-color:#ff385c;
}

input:checked + .filter-slider:before{
    transform: translateX(17px);
}

.slider:before{
    transition: transform 0.25s ease;
}

.card-wrapper{
    margin-left:60px;
    margin-right:60px;
}

/* dark-theme */
.theme-dark #filters-wrapper {
    background-color: #121212;
    border-bottom: 1px solid #2a2a2a;
}

.theme-dark .filter {
    background-color: #121212;
    color: #b0b0b0;
    transition: all 0.3s ease;
}

.theme-dark .filter:hover {
    background-color: #242424;
    color: #ffffff;
}

.theme-dark .filter i {
    color: #b0b0b0;
}

.theme-dark .filter:hover i {
    color: #ffffff;
}

.theme-dark .tax-toggle {
    color: #e0e0e0;
    background:#242424;
}

.theme-dark .tax-toggle .slider {
    background-color: #2a2a2a;
}

.theme-dark .tax-toggle input:checked + .slider {
    background-color: #ffffff;
}

.theme-dark .listing-card {
    background-color: #1c1c1c;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.theme-dark .listing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.6);
}

.theme-dark .card-img-top {
    filter: brightness(0.9);
}

.theme-dark .card-title {
    color: #ffffff;
}

.theme-dark .card-location {
    color: #b0b0b0;
}

.theme-dark .price {
    color: #e0e0e0;
}

.theme-dark .card-img-overlay {
    background: rgba(0,0,0,0.15);
}

.theme-dark .results-count {
    color: #b0b0b0;
}   

.theme-dark .pagination a {
    background-color: #1c1c1c;
    color: #b0b0b0;
    border: 1px solid #2a2a2a;
    padding: 6px 12px;
    border-radius: 8px;
    margin: 0 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.theme-dark .pagination a:hover {
    background-color: #242424;
    color: #ffffff;
}

.theme-dark .page-number.active {
    background-color: #ffffff;
    color: #121212;
    border: none;
}

.theme-dark .main-section{
    background-color:#121212;
}

.flash{
    margin-top: 120px !important;
    margin-bottom: -90px !important;
}

@media (max-width: 576px) {

    #filters-wrapper {
      flex-direction: column;
      align-items: flex-start;
  
      margin: 0;
      padding: 100px 10px 10px;
    }
  
    #filters {
      width: 100%;
      gap: 20px;
      padding: 10px 5px;
    }
  
    .filter {
      min-width: 60px;
      font-size: 0.75rem;
    }
  
    .filter i {
      font-size: 1rem;
    }
  
    .tax-toggle {
      width: 100%;
      justify-content: center;
      margin: 10px 0 0 0;
      padding: 8px 12px;
    }
  
  }