/* GENERAL */

* {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans", sans-serif;
  background-color: rgb(249, 250, 251);
}

html {
  scroll-behavior: smooth;
}

/* TRANSITION */

a {

  text-decoration: none !important;
  color: inherit;
  /* Optional: Keeps the same color as the parent element */
}

/* DESKTOP NAV */
#desktop-nav {
  font-family: "Noto Sans", sans-serif;
  /* background: hsla(0, 0%, 100%, .8); */
  /* border-bottom: 1px solid #eaeaea; */
  position: absolute;
  /* backdrop-filter: blur(8px); */
  top: 0;
  z-index: 999;
  width: 100%;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  height: 84px;
  width: 100%;
  margin: auto;
  max-width: 1344px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
}



.logo {
  display: flex;
  flex-direction: row;
  gap: 5px;
  align-items: center;
  text-decoration: none;
  /* Remove underline from link */

}

.logo-name {
  font-size: 40px;
  font-weight: bold;
  color: white;
}

.logo-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 64px;
  /* Adjust size as needed */
  height: 51px;
}

.logo-icon img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.nav-item {
  padding: 0 10px 0 10px;
}

.nav-links-container {
  height: 30px;
  border: 2px solid white;
  border-radius: 8px;
  padding: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  margin: 0 auto;
  top: 50%;
  left: 50%;
}

.hamburger-option img {
  width: 30px;
  height: 20px;
  filter: brightness(0) invert(1);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.nav-contact-wrapper {
  display: flex;
  /* Makes items appear in a row */
  gap: 15px;
  /* Adds spacing between the items */
  align-items: center;
  /* Vertically aligns items */
  position: relative;
}

.nav-contact-item {
  cursor: pointer;
}

.nav-contact-item:nth-child(1) img {
  width: 40px;
  height: 40px;
}

.nav-contact-item:nth-child(2) img {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1);
}

.nav-contact-circle {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(211, 211, 211, 0.5);
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.nav-contact-icons {
  background-color: rgba(211, 211, 211, 0.5);
  padding: 5px 15px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 15px;
}


.contact-popper {
  position: absolute;
  top: 120%;
  right: 0%;
  background-color: #fff;
  border: 1px solid #b4b4b4;
  border-radius: 8px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  padding: 16px;
  z-index: 1000;
}

.contact-popper ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-popper li {
  display: flex;
  align-items: center;
  padding: 8px;
}

.contact-popper li:last-child {
  margin-bottom: 0;
}

.contact-popper li a {
  font-size: 16px;
  color: #222;
  font-weight: 400;
}

.contact-popper img {
  margin-right: 8px;
}

.contact-icon-inverted {
  filter: invert(1);
}

.hamburger-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 100%;
}

.hamburger-option {
  position: relative;
  display: inline-block;
}


.hamburger-dropdown {
  display: none;
  position: absolute;
  top: 155%;
  right: -30%;
  background-color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  z-index: 1000;
  padding: 10px 0;
  min-width: 150px;
  /* Adjust width if needed */
}

.hamburger-dropdown ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hamburger-dropdown li {
  padding: 10px 15px;
}

.hamburger-dropdown li:hover {
  background-color: #f0f0f0;
  /* Light gray on hover */
}

.hamburger-dropdown a {
  text-decoration: none;
  color: #333;
  /* Dark text */
  font-size: 14px;
}

.hamburger-dropdown a span {
  font-weight: bold;
  color: #007bff;
  /* Optional: color the GBP amount */
}


/* Dropdown specific styles */
.location-container .dropdown {
  position: relative;
  /* Set relative positioning to the parent container for proper alignment */
}

.dropdown-options {
  display: none;
  top: 100%;
  left: -5%;
  position: absolute;
  background: #fff;
  width: 200px;
  box-shadow: 0 4px 15.2px 0 rgba(0, 0, 0, .07);
  z-index: 999;
  padding: 1px 0 0;
  border-radius: 12px;
  border: 1px solid #b4b4b4;
  max-height: 300px; /* Adjust based on your item height */
  overflow-y: auto;
  scrollbar-width: thin; /* For Firefox */
  scrollbar-color: #888 #f1f1f1;
}

.nav-links-container:hover .dropdown-options,
.dropdown-options:hover {
  display: block;
  /* Keep dropdown visible when hovering over it */
}

.dropdown a {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.dropdown svg {
  width: 16px;
  height: 12px;
  fill: #ffffff;
}

.dropdown:hover svg {
  transform: rotate(180deg);
}

/* Dropdown content styling */
.dropdownitems-link {
  padding: 12px 18px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #1d1d1d;
  font-size: 16px;
  font-family: "Noto Sans", sans-serif;
  line-height: 1.5;
}

.dropdownitems-link:hover {
  background: #1d1d1d;
  color: #fff;
}

.dropdownitems-link img {
  width: 22px;
  height: 15px;
}

.dropdownitems-link:last-child {
  border-radius: 0 0 12px 12px;
}

.navitem-dropdown-padding {
  color: white;
  text-decoration: none;
  padding: 19px 5px;
}






/* General Styles for Mobile Nav */
.mobile-nav {
  position: relative;
  z-index: 1000;
}

.hamburger-menu {
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
}

.hamburger-icon {
  font-size: 32px;
}

/* Drawer Styling */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
}

.drawer-mask {
  position: absolute;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: auto;
}

.drawer-content-wrapper {
  position: absolute;
  z-index: 1000;
  width: 100vw;
  right: 0;
  top: 0;
  bottom: 0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  box-shadow: -6px 0 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  transform: translateX(100%);
  /* Hidden by default */
}

.drawer-content-wrapper.open {
  transform: translateX(0);
  /* Show drawer when opened */
}

.drawer-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.drawer-header {
  display: flex;
  justify-content: flex-end;
  padding: 16px;
  /* height: 84px; */
  border-bottom: 1px solid #dcdcdc;
}

.drawer-close {
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.drawer-body {
  padding: 24px;
}

/* Mobile Dropdown for Locations */
.menu-item.mobile-dropdown {
  display: flex;
  flex-direction: column;
  /* Ensure flex column to make dropdown open below */
  align-items: flex-start;
  padding: 12px 0;
  font-size: 18px;
  cursor: pointer;
  border-bottom: 1px solid #eaeaea;
  /* Line under Locations */
}

.dropdown-header {
  display: flex;
  justify-content: space-between;
  width: 100%;
  /* Make sure header and arrow take up full width */
}

.dropdown-header svg.dropdown-arrow {
  transition: transform 0.3s ease;
}

/* Rotate arrow on click */
.menu-item.mobile-dropdown.open svg.dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown options hidden by default */
.mobile-dropdown-options {
  display: none;
  flex-direction: column;
  padding-left: 0px;
  padding-top: 10px;
  border-top: 1px solid #eaeaea;
  margin-top: 10px;
  transition: max-height 0.3s ease;
  overflow: hidden;
  max-height: 0;
}

/* Show dropdown options on click */
.mobile-dropdown-options.open {
  display: flex;
  max-height: 500px;
  /* Set a max height to allow smooth expansion */
}

.mobile-dropdown-options a {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  text-decoration: none;
  color: #1d1d1d;
  font-size: 16px;
}

.mobile-dropdown-options a img {
  width: 22px;
  height: 15px;
  margin-right: 12px;
}

.mobile-dropdown-options a:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Customization for other menu items */
.menu-item {
  padding: 12px 0;
  font-size: 18px;
  cursor: pointer;
  border-bottom: 1px solid #eaeaea;
  /* Line under Blogs, About Us, and Contact Us */
  width: 100%;
  /* Ensures they take up the full width and are in separate lines */
}

/* Drawer mask and content functionality */
.drawer-mask,
.drawer-content-wrapper {
  pointer-events: auto;
}

/* Hide hamburger icon and drawer mask by default on larger screens */
.hamburger-menu,
.drawer-mask,
.drawer-content-wrapper {
  display: none;
  /* Hidden by default for larger screens */
}

/* Add this new style to hide the hamburger icon when the menu is open */
.hamburger-menu.open {
  display: none;
}

/* Show hamburger icon only on mobile screens */
@media (max-width: 768px) {
  .hamburger-menu {
    display: block;
    /* Show the icon only on mobile */
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
  }

  .hamburger-icon {
    font-size: 32px;
    color: #000;
    cursor: pointer;
  }

  .logo-name {
    display: none;
  }

  /* Hide desktop nav-links on mobile */
  .nav-desktop {
    display: none;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-contact-wrapper {
    gap: 10px;
  }

  /* Ensure the logo and nav bar stay visible on mobile */
  #desktop-nav {
    display: flex;
    /* Ensure the navbar container stays visible */
    justify-content: space-between;
    align-items: center;
    width: 100%;
    /* background: hsla(0, 0%, 100%, .8); */
  }

  /* Show the drawer mask and content when open */
  .drawer-content-wrapper.open,
  .drawer-mask.open {
    display: block;
    /* Visible when drawer is open */
  }

  .drawer-content-wrapper {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100vw;
    background: white;
    transition: transform 0.3s ease;
    transform: translateX(100%);
    /* Hidden by default */
    z-index: 1001;
  }

  .drawer-content-wrapper.open {
    transform: translateX(0);
    /* Show drawer when opened */
  }

  .drawer-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    /* The grey overlay */
    z-index: 1000;
    display: none;
  }

  .drawer-mask.open {
    display: block;
    /* Show the mask when the drawer is open */
  }
}


/* HAMBURGER MENU */

/* #hamburger-nav {
    display: none;
}

.hamburger-menu {
    position: relative;
    display: inline-block;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    cursor: pointer;
}

.hamburger-icon span {
    width: 100%;
    height: 2px;
    background-color: black;
    transition: all 0.3 ease-in-out;
}

.menu-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    width: fit-content;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3 ease-in-out;
}

.menu-links a {
    display: block;
    padding: 10px;
    text-align: center;
    font-size: 1.5rem;
    color: black;
    text-decoration: none;
    transition: all 0.3 ease-in-out;
}

.menu-links li {
    list-style: none;
}

.menu-links.open {
    max-height: 300px;
}

.hamburger-icon.open span:first-child {
    transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.open span:last-child {
    transform: rotate(-45deg) translate(10px, -5px);
}

.hamburger-icon span:first-child {
    transform: none;
}

.hamburger-icon span:first-child {
    opacity: 1;
}

.hamburger-icon span:first-child {
    transform: none;
} */

/* SECTIONS 
        background: linear-gradient(180deg, #000, rgba(0, 0, 0, .5) 66.68%, transparent);
        z-index: 2;
        position: absolute;
        width: 100%;
        height: 600px;*/


.section-container {
  display: flex;
}

/* PROFILE SECTION */

#first {
  position: relative;
  height: 75vh;
  overflow: visible;
  /* overflow: hidden; */
  /* To ensure no content spills out */
  margin: 0;

}

.section__pic-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  /* Behind the text */
  overflow: hidden;
}

.section__pic-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ensures the image covers the entire div */
  object-position: center;
  /* Centers the image within the container */
}

.section-text-overlay {
  background: linear-gradient(180deg, #000, rgba(0, 0, 0, .5) 66.68%, transparent);
  position: relative;
  z-index: 2;
  height: 100%;
  width: 100%;
}

.section-text-conatiner {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: white;
  gap: 24px;
  margin-left: auto;
  margin-right: auto;

}

.section-text-items {
  /* --bs-gutter-x: 1.5rem; */
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding-left: 10px;
  padding-right: 10px;
  margin-top: 96px;
  /* margin-right: calc(-.5* var(--bs-gutter-x));
    margin-left: calc(-.5* var(--bs-gutter-x)); */
}

.section-text-conatiner h1 {
  font-size: 45px;
}

/* SEARCH BAR */
/* General Wrapper */
.search-wrapper {
  width: 80%;
  padding: 40px 0;
  position: relative;
  z-index: 1;
}

/* Search Bar Styling */
.search-input-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-radius: 12px;
  border: 1px solid #dcdcdc;
  background-color: #fff;
  margin-bottom: 20px;
}

.search-input {
  flex: 1;
  padding: 10px;
  font-size: 16px;
  border: none;
  outline: none;
}

.search-button {
  padding: 10px 20px;
  background-color: #1d1d1d;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.search-button:hover {
  background-color: #333;
}

/* Dropdown Container */
.search-results {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: absolute;
  z-index: 9999;
}

/* Show Dropdown when active */
.search-results.active {
  max-height: 240px;
  /* Show up to 3 items with a scroll */
  overflow-y: scroll;
}

/* Individual Search Item */
.search-item {
  padding: 20px 30px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}

.search-item:hover {
  background-color: #f9f9f9;
}

/* Scroll Bar Customization */
.search-results::-webkit-scrollbar {
  width: 8px;
}

.search-results::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 4px;
}

.search-results::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}

/* Hide scrollbars by default */
.search-results.hidden {
  display: none;
}

/* Location details */
.location-name {
  font-weight: bold;
  color: #182B46;
  text-align: left;
}

.location-address {
  margin-top: 5px;
  font-size: 14px;
  color: #777;
  text-align: left;
}




/* our-partner feature */
#brands {
  height: 180px;
  padding: 0;
  background-color: white;
  text-align: center;
  overflow: hidden;
  position: relative;
}

#brands h2 {
  font-size: 32px;
  margin-bottom: 0;
  font-weight: 600;
}

.brand-slider {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}

.brand-track {
  display: flex;
  gap: 180px; /* Even more space between logos */
  width: max-content;
  animation: scroll 15s linear infinite;
}

.brand-item {
  flex: 0 0 auto;
  padding: 30px; /* More padding around logos */
  background-color: white;
}

.brand-item img {
  height: 100px;
  width: 200px;
  object-fit: contain;
  display: block;
}

/* Logo Adjustments */
.brand-item img[src*="sc-logo.png"] {
  width: 200px;
  height: 95px;
  padding: 3px;
}

.brand-item img[src*="junehomes-logo.png"] {
  width: 120px;
  height: 90px;
  padding: 5px;
}

/* Smooth Scrolling Animation */
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}











/* SECOND SECTION */

#second {
  box-sizing: border-box;
  min-height: fit-content;
}

.second-inner-containers {
  display: flex;
  justify-content: space-around;
  flex-direction: row;
  /* margin-bottom: 2rem; */
  margin-top: 2rem;
}

.icons-items {
  padding: 1.5rem;
  flex: 1;
  text-align: center;
}

.icons-items h3 {
  font-size: 36px;
  font-weight: 500;
}



.second-container {
  height: 80%;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  /* overflow: hidden; */
}

/* ICONS */

.icon {
  height: 5rem;
}







/* CITIES SECTION */

#locations {
  position: relative;
  padding-top: 60px;
}

.locations-container {
  box-sizing: border-box;
  min-height: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.cities-head {
  margin-left: auto;
  margin-right: auto;
}

.cities-head h1 {
  font-size: 32px;
  text-align: center;
}

.cities-head h2 {
  font-size: 22px;
  text-align: center;
  margin-top: 25px;
}

#countries-container {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px;
}

.country-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccc;
  gap: 8px;
  border-radius: 8px;
  padding: 12px 16px;
  text-align: center;
  cursor: pointer;
}

.country-head.active {
  background-color: white;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
  color: black;
}

.country-img {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 30px;
}

.country-img img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.country-name {
  font-size: 16px;
  font-weight: 500;
}

.cities-container {
  display: flex;
  flex-wrap: wrap;
  margin: 2rem 0 5rem 0;
  /* padding: 0 5rem 0 5rem; */
  gap: 2rem;
  justify-content: center;
}

/* .cities-container div {
    flex: 1;
} */

.city {
  display: none;
  /* Hide all cities by default */
}

.city.active {
  display: flex;
  /* Show only active cities */
}


.city {
  flex-grow: 1;
  flex-shrink: 0;
  max-width: 22%;
  overflow: hidden;
  position: relative;
}

.city img {
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease, filter 0.3s ease;
  /* Smooth transition for both zoom and blur */
  display: block;
}

.city img:hover {
  transform: scale(1.1);
}


.coming-soon-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  pointer-events: none;
}

.city-name {
  position: absolute;
  top: 20px;
  left: 20px;
  color: white;
  font-size: 16px;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 5px 10px;
  border-radius: 5px;
  z-index: 1;
}
