




body {
    /* font-family: 'Plus Jakarta Sans', sans-serif !important; */
    font-family: 'Inknut Antiqua', serif;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


/* ================= PREMIUM DARK THEME (REF STYLE) ================= */

body.dark-mode {
  background-color: #0f1115;     /* soft charcoal */
  color: #e6e7eb;                /* off-white text */
}

/* LINKS */
body.dark-mode a {
  color: #8ab4f8;
}

/* MAIN CONTAINERS & CARDS */
body.dark-mode .container,
body.dark-mode .card,
body.dark-mode .dropdown-menu,
body.dark-mode .filters-main,
body.dark-mode .quick-filter-row {
  background-color: #151821;     /* slightly lighter than body */
  color: #e6e7eb;
  border-color: #242833;
}

/* INPUTS / SEARCH */
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
  background-color: #1c1f2a;
  color: #ffffff;
  border: 1px solid #2b3040;
}

body.dark-mode input::placeholder {
  color: #9aa0ad;
}

/* CATEGORY TABS */
body.dark-mode .top-category-tabs .tab-link {
  color: #b9becb;
}

body.dark-mode .top-category-tabs .tab-link.active {
  color: #8ab4f8;
}

/* FILTER CHIPS */
body.dark-mode .quick-chip,
body.dark-mode .filter-btn {
  background-color: #1c1f2a;
  border: 1px solid #2b3040;
  color: #e6e7eb;
}

/* NAVBAR */
body.dark-mode nav {
  background-color: #0f1115;
  border-bottom: 1px solid #242833;
}

/* FOOTER */
body.dark-mode footer {
  background-color: #0f1115;
  color: #9aa0ad;
}


.container {
    flex: 1;
    min-height: 70vh    ;
}

body::-webkit-scrollbar,
#category::-webkit-scrollbar {
    background-color: rgb(255, 255, 255);
    width: 8px;
    height: 0px;
    border-radius: 50px;
}

body::-webkit-scrollbar-button,
#category::-webkit-scrollbar-button {
    display: none;
}

body::-webkit-scrollbar-thumb,
#category::-webkit-scrollbar-thumb {
    background-color: rgb(146, 146, 146);
    border-radius: 50px;
    cursor: pointer;
}


/* card ------------------------------------------------------------------------------------- */
.card {
    border: .5px solid grey;
    margin-bottom: 1rem;
    /* height: 20rem; */
    /* width: 20rem;   */
    overflow: hidden;
}

.listing-card {
    border: none !important;
    padding: 5px;
}

.card-img-top {
    /* width: 100% !important; */
    /* height: 20.5rem !important; */
    object-fit: cover !important;
    transition: .5s ease-out 0s;
}

.heart {
    width: 22px;
    position: absolute;
    z-index: 10;
    top: 15px;
    right: 15px;
    opacity: .6;
    filter: drop-shadow(1px 1px 5px white);
    overflow: hidden;
}

.heart:hover {
    opacity: 1;
}

@media (max-width: 1400px) and (min-width: 1199px) {
    .heart {
        right: 45px;
    }
}

@media (max-width: 767px) {
    .heart {
        right: 105px;
    }
}

@media (max-width: 586px) {
    .heart {
        position: relative;
        top: 10px;
        left: 10px;
        /* right: 19vw; */
    }

    .card-img-top {
        /* height: 100%; */
        position: relative;
        top: -25px;
    }

    .heart-b {
        left: -15px;
    }
}

@media (width: 767px) {
    .heart {
        position: relative;
        right: 100px;
    }
}

/* -------hover effect--------------------------------------------------------------------------------------------- */
.show-card-img {
    /* height: 17rem !important; */
    overflow: hidden !important;
    border-radius: 1rem !important;
    display: flex;
}

.card-img {
    /* height: 20rem !important; */
    /* max-width: 320px; */
    overflow: hidden !important;
    /* border-radius: 1rem !important; */
    border-radius: 10px !important;
    /* box-shadow: 0px 6px 5px black !important; */
    box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.654) !important;
    margin-bottom: 10px;
}

.card-img-top:hover {
    transform: scale(1.08) !important;
    transition: .5s ease-in-out 0s;
    filter: contrast(1.25);
    opacity: 1;
    cursor: pointer;
}

/* ------------------------------------------ */
.card-body {
    margin-top: 5px;
    padding: 0 !important;
}

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

.listing-link {
    text-decoration: none !important;
    cursor: default;
}

/* new.ejs style -------------------------------------------------------------------------------------*/
.form-label {
    font-weight: 700;
}

.category-choose,
.category-added {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.category-choose p,
.category-added {
    font-size: .90rem;
    color: grey;
    line-height: 5px;
}

.category-choose p b,
.category-added p b {
    font-weight: 600;
}

#category {
    padding: 8px;
}

#category option {
    border-radius: 50px;
    border: .5px solid rgba(0, 0, 0, 0.486);
    padding: 2px 10px 5px 10px;
    background-color: rgba(169, 169, 169, 0.322);
    margin: 0px;
    margin-bottom: 3px;
}

.category-added {
    border: .5px solid rgba(0, 0, 0, 0.448);
    border-radius: 50px;
    color: black;
    line-height: 6px;
    padding: 10px 8px 0px 8px;
}

.category-added p {
    margin-right: 5px;
    margin-top: 3px;
    margin-left: 5px;

}

/* edit.ejs style -------------------------------------------------------------------------------------*/
@media (max-width: 768px) {
    .edit-btn {
        width: 4rem !important;
    }

    .category-choose {
        display: none;
    }

    #map {
        height: 350px !important;
    }

    .mapImg {
        /* padding: none; */
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

.listingImg,.listingImg img {
    width: 200px !important;
    height: 150px;
    border-radius: 10px;
    object-fit: cover;
}

/* map ------------------------------------------------------------------------------------- */
#map {
    height: 500px;
    width: 100%;
    border-radius: 1rem;
    border: 1px solid rgba(0, 128, 0, 0.428);
}

.mapboxgl-ctrl-bottom-left,
.mapboxgl-ctrl-bottom-right {
    display: none !important;
}

#map {
    position: relative;
}

.mapboxgl-ctrl-geocoder {
    right: 40px;
}

.mapboxgl-ctrl-geocoder--powered-by {
    display: none !important;
}

.mapboxgl-ctrl-geocoder--input {
    border: none !important;
}

.mapboxgl-ctrl-geocoder {
    border: 1px solid rgb(137, 137, 137) !important;
}

.mapboxgl-ctrl-group {
    position: absolute;
    z-index: 3;
    top: 4px;
    right: 2.8px;
}

@media (max-width: 639px) {
    .mapboxgl-ctrl-geocoder {
        height: 40px !important;
        width: 160px !important;
    }

    .mapboxgl-ctrl-geocoder--input {
        height: 40px !important;
    }

    .mapboxgl-ctrl-geocoder--icon-search {
        top: 9px !important;
    }
}

.map-zoom-icon {
    border-radius: 6px;
    font-size: 2rem;
    color: black;
    z-index: 10;
    position: absolute;
    right: 8px;
    top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgb(255, 255, 255);
    border: 1px solid rgb(137, 137, 137) !important;
}

.icon {
    box-shadow: 2px 2px 1px black, -2px -2px -1px black;
    height: fit-content;
    width: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 1.6rem;
    width: 1.6rem;
    padding: 17px 15px 15px 19px;
    margin: 1px;
    opacity: .4;
}

.icon:active {
    opacity: 1;
}

.icon > i {
    font-size: 1.5rem;
    margin: none;
    cursor: pointer;
}

.icon-plus {
    border-bottom: 1px solid black;
    padding-bottom: 18px;
}

.akash {
    z-index: 10;
    font-size: .8rem;
    background-color: rgba(16, 15, 15, 0.592);
    padding: 2px 5px;
    border-radius: 5px;
    text-decoration: none !important;
    font-weight: 800;
    padding: 0px 10px;
    border: 2px solid rgba(0, 0, 0, 0.781);
    position: absolute;
    left: 20px;
    bottom: 10px;
}

.akash a {
    color: white;
    text-decoration: none;
}

/* indes.ejs style -------------------------------------------------------------------------------------*/
@media (max-width: 769px) {
    .index-res {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .index-res-img {
        width: 320px;
    }

    .container {
        display: flex !important;
        flex-direction: column;
        margin-bottom: 15px;
        margin-left: 15px;
        margin-top: 1.5rem;
    }
}

@media (max-width: 355px) {
    .card-img {
        /* max-width: 290px; */
        /* height: 19rem !important; */
        /* max-width: 290px; */
        overflow: hidden !important;
        border-radius: 1rem !important;
        box-shadow: 0px 6px 5px rgb(0, 0, 0) !important;
        margin-bottom: 15px;
        margin-left: 15px;

    }

    .card-text {
        margin-left: 15px;
    }
}
/* update.ejs------------------- */

#imagePreview img,.listingImg-update{
    height: 150px;
    width: 150px;
    object-fit: cover;
    border-radius: 50%;
}
.update-change{
    display: flex;
    justify-content: space-evenly;
    margin-bottom: 2rem;
}
.update-change > div input{
    /* display: none; */
    height: 20px;
    width: 20px;
    cursor: pointer;
}
.update-change  div label{
    font-weight: 600;
    filter: drop-shadow( 2px 0px 1px black);
    margin-bottom: 5px;
    cursor: pointer;

}
.update-change  div{
    background-color: rgb(66, 66, 82);
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin: 3px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}
#password-box,#image-box{
    display: none;
}
.update-change  div:hover{
    box-shadow: 0px 0px 5px black;
}
.update-change  div:active{
    transform: scale(1.1);
}


/* Modern date input */
.modern-date-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid #ddd;
  font-size: 16px;
  background: #fff;
  cursor: pointer;
}

/* Calendar popup */
.flatpickr-calendar {
  border-radius: 16px !important;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
  font-family: inherit;
}

/* Selected dates */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: #000 !important;
  color: #fff !important;
}

/* In-range background */
.flatpickr-day.inRange {
  background: #f2f2f2 !important;
}

/* ================= ADMIN BOOKINGS – MOBILE ================= */
@media (max-width: 768px) {

  .admin-bookings-table thead {
    display: none;
  }

  .admin-bookings-table,
  .admin-bookings-table tbody,
  .admin-bookings-table tr,
  .admin-bookings-table td {
    display: block;
    width: 100%;
  }

  .admin-bookings-table tr {
    margin-bottom: 16px;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 12px;
    background: #fff;
  }

  .admin-bookings-table td {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 0;
  border: none;
  font-size: 14px;
  gap: 12px;
}

.admin-bookings-table td::before {
  flex: 0 0 40%;
}


  .admin-bookings-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #555;
  }
}
@media (max-width: 768px) {
  .admin-bookings-table td[data-label="#"] {
    display: none;
  }
}
@media (max-width: 768px) {
  .admin-bookings-table td[data-label="#"],
  .admin-bookings-table th {
    display: none;
  }
}
@media (max-width: 768px) {
  .admin-bookings-table tr {
    margin-bottom: 14px;
    padding: 14px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
}


/* ================= FIX BROKEN DESKTOP CARDS ================= */

/* Card must grow naturally */
.card {
  height: auto !important;
  overflow: hidden;
}

/* Image wrapper controls ratio */
.card-img {
  height: auto !important;
  max-width: 100%;
  aspect-ratio: 4 / 5;        /* 🔥 Airbnb / Dozzy style */
  border-radius: 16px;
  overflow: hidden;
}

/* Image fits wrapper, never stretches */
.card-img-top {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

/* Prevent grid collapse on desktop */
.listing-card {
  align-self: stretch;
}

/* Desktop grid stability */
@media (min-width: 992px) {
  .index-res {
    display: block !important;
  }
}




/* ===== MASONRY GRID ===== */

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* responsive breakpoints */
@media (max-width: 1400px) {
  .masonry-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .masonry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .masonry-grid {
    grid-template-columns: 1fr;
  }
}

/* masonry item */
.masonry-item {
  break-inside: avoid;
}


/* ===== AIRBNB STYLE HOVER ZOOM ===== */

.dozzy-img-wrapper {
  position: relative;
  overflow: hidden;           /* 🔑 prevents image overflow */
  border-radius: 18px;
  background: #eee;
}

.dozzy-img-wrapper img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.6s ease;  /* smooth & premium */
  will-change: transform;
}

/* Desktop hover only */
@media (hover: hover) and (pointer: fine) {
  .dozzy-card:hover .dozzy-img-wrapper img {
    transform: scale(1.08);
  }
}


/* =========================
   DOZZY OVERLAY FIX
========================= */

.dozzy-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 14px 16px;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.65),
    rgba(0,0,0,0.25),
    rgba(0,0,0,0)
  );

  color: #fff;
}

/* left text */
.dozzy-info .left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dozzy-info .title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.dozzy-info .title span {
  font-size: 12px;
  opacity: 0.85;
  margin-left: 6px;
}

.dozzy-info .sub {
  font-size: 12px;
  opacity: 0.85;
}

/* price */
.dozzy-info .price {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}
/* =========================
   HOVER EFFECT (DESKTOP ONLY)
========================= */

@media (hover: hover) {
  .dozzy-img-wrapper img {
    transition: transform 0.35s ease;
  }

  .dozzy-card:hover .dozzy-img-wrapper img {
    transform: scale(1.06);
  }
}
/* top icons */
.dozzy-icons {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* dots */
.dozzy-dots {
  position: absolute;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.dozzy-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
}

.dozzy-dots .dot.active {
  background: #fff;
}
/* ======================
   HEART TOGGLE
====================== */

.heart-btn {
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

/* active (favourite) */
.heart-btn.active {
  background: rgba(220, 38, 38, 0.9); /* red */
  color: #fff;
  transform: scale(1.1);
}
