/*==========>
Buttons
<========== */
.primary_btn {
  all: unset;
  text-align: center;
  background: var(--primary-color);
  color: var(--text-white);
  padding: 5px;
  height: 40px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.4s;
  position: relative;

  &:hover {
    background-color: var(--secondary-color);
  }

  &:active {
    scale: 0.9;
  }
}

.hero_btn {
  /* Variables */
  --button_radius: 0.75em;
  --button_color: #e8e8e8;
  --button_outline_color: #d3cfcf;
  font-size: 17px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  border-radius: var(--button_radius);
  background: var(--button_outline_color);

  .button_top {
    display: block;
    box-sizing: border-box;
    border: 2px solid var(--button_outline_color);
    border-radius: var(--button_radius);
    padding: 0.75em 1.5em;
    background: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-0.2em);
    transition: transform 0.1s ease;
  }

  &:hover .button_top {
    /* Pull the button upwards when hovered */
    transform: translateY(-0.33em);
  }

  &:active .button_top {
    /* Push the button downwards when pressed */
    transform: translateY(0);
  }
}

.white_btn {
  background-color: white;
  padding: 8px 12px;
  border-radius: 12px;
  text-align: center;
  color: black;
  font-size: 16px;
  font-weight: 500;
}

.search_btn {
  all: unset;
  color: white;
  background: var(--primary-color);
  padding: 5px 8px;
  border-radius: 5px;
}

/*==========>
Sections
<========== */

/*==========> search-bar <========== */
.search {
  .search-bar {
    display: flex;
    align-items: center;
    background: #f5f9fc;
    border-radius: 50px;
    padding: 10px 15px;
    width: 100%;
    max-width: 400px;
  }

  .search-bar input {
    border: none;
    background: transparent;
    outline: none;
    flex-grow: 1;
    padding-left: 10px;
    font-size: 16px;
  }

  .search-bar i {
    color: #636b75;
  }
}

/*==========> navbar <========== */
#navbar {
  /* background: url("../images/nav2.jpg"); */
  height: 95px;
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 8px;

  @media (width < 992px) {
    height: auto;
    border-radius: 0;
  }

  #nav_main_container {
    max-width: 1200px !important;
    margin: auto !important;
  }

  .logo_image {
    width: 135px;
    height: auto;
  }

  .user_box {
    border-radius: 12px;
  }

  .dropdown-toggle:empty::after {
    display: none;
  }

  i {
    font-size: 17px !important;
    color: var(--primary-color);
    cursor: pointer;
  }
}

/*==========> hero-section <========== */
#hero-section {
  .swiper-container {
    width: 100%;
    /* max-width: 700px; */
  }

  .swiper-slide {
    /* background-color: purple; */
  }

  .ads_image {
    width: 100%;
    border-radius: 14px;
  }
}

/*==========> footer_section <========== */
#footer {
  margin-top: 10px;
  padding-top: 40px;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 10;

  i {
    font-size: 20px;
    padding: 9px;
    color: var(--primary-color);
  }

  .active {
    box-shadow: 0 1px 4px rgb(143 163 143);
    border-radius: 50%;
    position: relative;
    bottom: 8px;
  }

  a {
    transition: all 0.5s;

    &:hover {
      scale: 1.1;
    }

    &:active {
      scale: 0.8;
    }
  }
}

#cards-section {
  max-width: 1000px;

  .tag-container {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
  }

  .tag-container::-webkit-scrollbar {
    height: 6px;
  }

  .tag-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
  }

  .tag-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
  }

  .tag-container::-webkit-scrollbar-thumb:hover {
    background: #aaa;
  }

  .tag-btn {
    display: inline-block;
    margin: 0 8px;
    padding: 2px 15px;
    background-color: transparent;
    border: 2px solid #d9d7d7;
    border-radius: 8px;
    color: #495057;
    font-weight: 500;
    transition: all 0.3sease;
    cursor: pointer;
  }

  .tag-btn:hover {
    /* background-color: var(--primary-color);
    color: #212529; */
    border: 2px solid var(--primary-color);
    transform: translateY(-2px);
  }

  .tag-btn:first-child {
    margin-left: 0;
  }

  .tag-btn:last-child {
    margin-right: 0;
  }

  .tag-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.3);
  }

  .card {
    width: 300px;
    margin: auto;
    border: none;
    background-color: #f7f7f7;
    padding: 1rem;
    transition: all 0.5s;
    
    &:hover {
      scale: 1.03;
      z-index: 10;
    }

    @media (width < 768px) {
      width: 100%;
    }

    .img_box {
      width: 100%;
      overflow: hidden;
    }

    img {
      width: 100%;
      height: 200px;
      display: block;
      border-radius: 12px;
      margin-bottom: 1rem;
    }

    a {
      color: var(--primary-color);
      font-weight: 500;
    }

    .view_more {
      font-size: 17px;
      color: red;
    }

    .info_box {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      position: relative;
    }

    .time {
      color: var(--primary-color);
    }

    .icons {
      display: flex;
      align-items: center;
      gap: 1rem;
      color: var(--primary-color);
    }

    .dropdown-toggle:empty::after {
      display: none;
    }

    .dropdown-menu {
      inset: 0;
    }

    .dropdown-menu li {
      display: flex;
    }

    .dropdown-menu li a:active {
      background: none;
    }
  }
}

#pagination {
  max-width: 1000px;
  padding-left: 2rem;

  a {
    color: var(--primary-color);
  }
}

.filter_modal {
  .category-container {
    margin: 20px 0;
  }

  .category-heading {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
  }

  .category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .category-item {
    all: unset;
    padding: 8px 15px;
    background-color: #f5f5f5;
    border-radius: 5px;
    font-size: 0.9rem;
  }

  .category-item:focus {
    border: 2px solid var(--primary-color);
  }
}



/*==========> Hero section for [Home Rent, Commercial Rent, Appartment, plants] <========== */
#details_container {
  max-width: 1200px;
  margin: auto;
  margin-bottom: 2rem;
  color: black;

  .primary-color {
    color: var(--primary-color);
  }

  .ads_box,
  .details_box {
    height: max-content;
    border-radius: 12px;
  }

  .image_box,
  .text_box {
    width: 50%;

    @media (width <=768px) {
      width: 100%;
    }
  }

  .main_image_box {
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .main_image {
    min-width: 280px;
    max-width: 100%;
    max-height: 100%;
    margin-bottom: 10px;
    border-radius: 12px;

    @media (width < 992px) {
      min-height: 100%;
    }
  }

  .gallery {
    img {
      width: 23%;
      max-height: 70px;
      margin-bottom: 0.5rem;
      border-radius: 5px;
    }
  }

  .icons_box button,
  .icons_box a {
    all: unset;
    display: inline-block;
    font-size: 14px;
    background-color: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 18px;
  }


  .location {
    border-bottom: 3px solid var(--primary-color);
    width: max-content;
  }
}


/*==========>
  carousel
==========>*/

.booking_3_slide_carousel {
  margin-top: 10px;
  padding-top: 40px;

  .swiper-container {
    width: 100%;
  }

  .swiper-slide {
    width: 100%;
    min-width: 240px;
    height: fit-content;
    border-radius: 8px;
  }

  .swiper-pagination-bullets,
  .swiper-pagination-custom,
  .swiper-pagination-fraction {
    bottom: 10px;
    left: 40% !important;
    width: 100%;
  }

  .ads_image {
    width: 100%;
  }
}

.ads_1_slide_carousel {
  .swiper-container {
    width: 100%;
  }

  .swiper-slide {
    width: 100%;
    height: fit-content;
    border-radius: 8px;
  }

  .swiper-pagination-bullets,
  .swiper-pagination-custom,
  .swiper-pagination-fraction {
    bottom: 10px;
    left: 40% !important;
    width: 100%;
  }

  .ads_image {
    width: 100%;
    border-radius: 12px;
  }
}

.booking_gallary_carousel,
.priceModal_carousel {
  margin: 0;
  background: #f4f4f4;
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  align-items: center;

  .swiper {
    width: 90%;
    max-width: 1000px;
  }

  .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
  }

  .swiper-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .swiper-button-next,
  .swiper-button-prev {
    color: transparent !important;
    background-size: 22px 44px;
    background-image: none;
  }

  .swiper-button-next:after,
  .swiper-button-prev:after {
    color: var(--primary-color);
    font-size: 35px;
  }

  .swiper-pagination {
    position: absolute;
    text-align: center;
    transition: 300ms opacity;
    transform: translate3d(0, 0, 0);
    z-index: 10;
  }

  .swiper-pagination-fraction {
    color: #333;
    font-weight: bold;
  }
}


/*==========>
Sections For Booking services
==========>*/

#filterModal {

  color: black;

  @media (min-width: 992px) {
    .modal-dialog {
      max-width: 50vw;
    }

    .modal-content {
      border-radius: 12px !important;
    }
  }

  @media (max-width: 991.98px) {
    .modal-dialog {
      margin: 0;
      max-width: 900px;
      height: 100vh;
    }
  }

  .modal-content {
    height: 100%;
    border-radius: 0;
    display: flex;
    flex-direction: column;
  }

  .modal-body {
    overflow-y: auto;
    flex-grow: 1;
  }

  h6 {
    color: var(--primary-color);
  }

  label {
    color: #777;
    cursor: pointer;
  }

  label:focus,
  input:focus {
    box-shadow: none;
    border: 1px solid var(--primary-color);
  }

  .green_btn {
    background-color: var(--primary-color);
    color: white;
  }

  .rating-button {
    border: 1px solid #20c997;
    color: #20c997;
    padding: 6px 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background-color 0.2s;
    text-decoration: none;
  }

  .rating-button:hover {
    background-color: #e6fcf5;
  }

  .rating-button:focus {
    background-color: var(--primary-color);
    color: white;
  }
}

.booking_search .search-bar {
  display: flex;
  align-items: center;
  background: #dce1e7;
  border-radius: 10px;
  padding: 8px 15px;
  width: 100%;
  max-width: 400px;
}


.booking_details_container {
  max-width: 1200px;
  margin: auto;
  margin-bottom: 2rem;
  color: black;

  .primary-color {
    color: var(--primary-color);
  }

  .text_box h4 {
    color: var(--primary-color);
  }

  .ads_box,
  .details_box {
    height: max-content;
    border-radius: 12px;
  }

  .image_box,
  .text_box {
    width: 50%;

    @media (width <=768px) {
      width: 100%;
    }
  }

  .main_image {
    max-width: 100%;
    max-height: 600px;
    margin-bottom: 10px;
    border-radius: 12px;
  }



  .location {
    border-bottom: 3px solid var(--primary-color);
    width: max-content;
  }


  .rating-button {
    padding: 6px 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background-color 0.2s;
    text-decoration: none;
    background-color: var(--primary-color);
    color: white;
  }


  .tag_btn {
    border: none;
    padding: 4px 5px;
    background-color: var(--primary-color);
    border-radius: 4px;
    color: white;
  }

  .couple-btn {
    background-color: #ffeef2;
    color: #e91e63;
    border: 1px solid #ffeef2;
    border-radius: 50px;
    padding: 4px 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    font-size: 14px;

    i {
      width: 16px;
      height: 16px;
      margin-right: 6px;
    }
  }
}

.booking_genaral_description {
  max-width: 1200px;
  margin: auto;
  color: black;

  .inner_container {
    border-radius: 20px;
    background-color: #f4f4f4;
  }

  h4 {
    color: var(--primary-color);
  }

  p {
    color: #2b2f32;
    font-size: 17px;
  }

  i {
    color: var(--primary-color);
  }

}

.Availability,
#priceModal_1,
#bookingModal {
  --font-16px: 16px;
  --font-14px: 14px;
  --font-18px: 18px;
  --font-20px: 20px;
  --font-24px: 24px;
  --primary-color: #1aa080;


  .btn-main {
    background-color: var(--primary-color);
    border: none;
  }
}

.Availability {
  max-width: 1200px;
  margin: auto;

  .show_modal_btn {
    background-color: var(--primary-color);
    color: white;

    &:hover {
      background-color: var(--primary-color);
      color: white;
      outline: none;
    }
  }

  th {
    background-color: var(--primary-color);
  }

  @media (width > 992px) {
    td {
      min-width: 250px;
    }
  }

  i {
    color: var(--primary-color);
  }
}

.menu_section {
  padding: 4rem 0;

  .menu-tabs .nav-link {
    color: #333;
    font-weight: 600;
    border: none;
    padding: 0.75rem 1.5rem;
    margin: 0 0.25rem;
  }

  .menu-tabs .nav-link.active {
    color: var(--primary-color);
    background: transparent;
    border-bottom: 2px solid var(--primary-color);
  }

  .menu-item {
    margin-bottom: 2.5rem;
    display: flex;
    gap: 1.5rem;
  }

  .menu-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
  }

  .menu-content {
    flex-grow: 1;
  }

  .menu-title {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
  }

  .menu-title span:first-child {
    white-space: nowrap;
  }

  .menu-price {
    color: var(--primary-color);
    white-space: nowrap;
  }

  .menu-desc {
    color: #6c757d;
    font-style: italic;
    margin-bottom: 0;
  }

  .dotted-line {
    flex-grow: 1;
    border-bottom: 2px dotted #dee2e6;
    margin-bottom: 0.3rem;
  }

  .menu-column {
    padding: 0 1.5rem;
  }

  .tab-pane {
    padding-top: 2rem;
  }
}


/* #Gallery_Section {
  margin-bottom: 40px;

  .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 200px;
    grid-gap: 1rem;
    grid-auto-flow: dense;
  }

  .gallery-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }

  .gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  }

  .gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }

  .gallery-item:hover .gallery-img {
    transform: scale(1.05);
  }

  .wide {
    grid-column: span 2;
  }

  .tall {
    grid-row: span 2;
  }

  .big {
    grid-column: span 2;
    grid-row: span 2;
  }
} */

#Gallery_Section {
    margin-bottom: 40px;

    .gallery {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        grid-auto-rows: 200px;
        grid-gap: 1rem;
        grid-auto-flow: dense;
    }

    .gallery-item {
        overflow: hidden;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    .gallery-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    }

    .gallery-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .gallery-item:hover .gallery-img {
        transform: scale(1.05);
    }

    .wide {
        grid-column: span 2;
    }

    .tall {
        grid-row: span 2;
    }

    .big {
        grid-column: span 2;
        grid-row: span 2;
    }

    /* Mobile devices */
    @media (max-width: 768px) {
        .gallery {
            grid-template-columns: 1fr;
            grid-auto-rows: auto;
        }

        .gallery-item {
            aspect-ratio: 1/1;
        }

        .wide,
        .tall,
        .big {
            grid-column: span 1;
            grid-row: span 1;
        }

        .gallery-item:hover {
            transform: none;
        }

        .gallery-item:hover .gallery-img {
            transform: none;
        }
    }
}

/* Modal for gallery */
#gallery_modal_1 {

    .modal-header {
        border-bottom: none;
    }

    .modal-content {
        background-color: transparent;
        border: none;
    }

    .modal_close_btn {
        background-color: white;

    }

    .modal-body {
        width: 100%;

        .gallery-img {
            width: 100%;
            max-width: 100% !important;
        }
    }


    @media (max-width: 768px) {
        .modal-body {
            padding: 0;
        }
    }

}

/*==========> property_card for Apprtment <========== */
.property_card {
  max-width: 300px;
  margin: auto;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  padding: 0;
  color: black;

  h4 {
    color: var(--primary-color) !important;
  }

  .property_image {
    background-color: black;
    height: 180px;
    display: flex;
    justify-content: center;
    margin-bottom: 5px;

    img {
      height: 100%;
    }
  }

  .card_divider {
    border-top: 1px dashed #e0e0e0;
    margin: 1rem 0;

    @media (width < 568px) {
      margin-top: 0;
    }
  }

  .view-details-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 6px 16px;
    border-radius: 4px;
    font-weight: 500;
    border: none;
    transition: all 0.4s;
  }

  .view-details-btn:hover {
    background-color: #2ea78a;
  }

  .info_column {
    padding-right: 1rem;
    font-size: 15px;
  }
}