/* ==========================================================================
   1. DESIGN TOKENS (from existing site)
   ========================================================================== */

:root {
  /* Colors */
  --color-primary-blue: #70b0e9;
  --color-teal: #67bfbf;
  --color-text-dark: #4e5e68;
  --color-text-gray: #d1d5dc;
  --color-bg-light: #f7f7f7;
  --color-bg-card: #f9f9f9;
  --color-white: #ffffff;
  --color-black: #000000;

  /* Typography */
  --font-heading: "Lora", serif;
  --font-body: "Montserrat", sans-serif;

  /* Font sizes */
  --fs-hero-title: 50px;
  --fs-hero-subtitle: 20px;
  --fs-section-title: 40px;
  --fs-card-title: 40px;
  --fs-body: 16px;
  --fs-body-sm: 14px;
  --fs-body-xs: 12px;

  /* Line heights */
  --lh-hero-title: 60px;
  --lh-hero-subtitle: 35px;
  --lh-section-title: 64px;
  --lh-body: 22px;
  --lh-body-sm: 24px;
  --lh-body-xs: 20px;

  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 48px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-search: 0px 4px 4px rgba(0, 0, 0, 0.25);

  /* Layout */
  --container-max-width: 1206px;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text-dark);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Container helper */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  width: 100%;
  padding-inline: 16px;
}

/* ==========================================================================
   3. HERO SECTION (background + title + search)
   ========================================================================== */

.hero {
  position: relative;
  width: 100%;
  height: 867px;
  overflow: hidden;
  background-color: var(--color-black);
}

.herobackground {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.herocontent {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 269px;
  padding-inline: 16px;
}

.herotitle {
  font-family: var(--font-heading);   /* Lora */
  font-weight: 700;
  font-size: 50px;
  line-height: 60px;
  color: var(--color-white);
  text-align: center;
  max-width: 807px;
  margin-bottom: 20px;
  /* remove letter-spacing or any extra properties here */
}

.herosubtitle {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-hero-subtitle);   /* 20px */
  line-height: var(--lh-hero-subtitle); /* 35px */
  color: var(--color-white);
  text-align: center;
  max-width: 590px;
  margin-bottom: 24px;
}

/* ==========================================================================
   4. SEARCH BOX (only WHERE select + button)
   ========================================================================== */

.search-box {
  background-color: var(--color-white);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-search);
  display: flex;
  align-items: center;
  padding: 10px 10px 10px 32px;
  width: 679px;
  height: 68px;
  max-width: 100%;
}

.search-boxfield {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.search-boxlabel {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body-xs); /* 12px */
  letter-spacing: 2.16px;
  color: var(--color-teal);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.search-boxinput {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body); /* 16px */
  color: var(--color-black);
  border: none;
  outline: none;
  background-color: transparent;
  width: 100%;
  border-radius: 8px;
}

/* Native select to mimic existing dropdown styling */
.sr-native-select {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: normal;
  color: var(--color-black);
  border: none;
  background-color: transparent;
  outline: none;
  width: 100%;
  padding: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  /* arrow */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2370b0e9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 0.75em auto;
  padding-right: 24px;
}

.search-boxbtn {
  background-color: var(--color-primary-blue);
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-body-sm); /* 14px */
  text-transform: uppercase;
  height: 37px;
  padding: 0 24px;
  border-radius: var(--radius-xl);
  margin-left: auto;
  transition: all 0.3s ease;
}

.search-boxbtn:hover {
  background-color: #5a9bd8;
}

/* ==========================================================================
   5. UNLOCK AREAS – TILE LAYOUT (like /new)
   ========================================================================== */

.unlock-areas {
  padding-top: 96px;
  padding-bottom: 96px;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding-inline: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-section-title);   /* 40px */
  line-height: var(--lh-section-title); /* 64px */
  color: var(--color-text-dark);
  text-align: center;
  text-transform: capitalize;
  margin-bottom: 24px;
}

.unlock-areas-intro {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body);   /* 16px */
  line-height: var(--lh-body); /* 22px */
  color: var(--color-text-dark);
  text-align: center;
  margin-bottom: 12px;
}

/* Grid of tiles */
.areas-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

/* Card: full-bleed image with gradient and title at bottom */
.area-card {
  position: relative;
  display: block;
  height: 260px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background-color: var(--color-black);
}

.area-image {
  position: relative;
  width: 100%;
  height: 100%;
}

.area-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* dark gradient overlay */
.area-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

/* optional inner content wrapper, if used */
.area-content {
  position: relative;
  height: 100%;
}

/* Title text on bottom-left, white */
.area-name {
  position: absolute;
  left: 24px;
  bottom: 24px;
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;  /* slightly smaller than 40px for tile */
  line-height: 1.3;
  color: var(--color-white);
}

/* If you keep a CTA button inside the tile (not needed, but supported) */
.area-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-body-sm);
  text-transform: uppercase;
  padding: 0 24px;
  height: 37px;
  border-radius: var(--radius-pill);
  background-color: var(--color-primary-blue);
  color: var(--color-white);
}

/* Hover effect similar to /new */
.area-card:hover img {
  transform: scale(1.05);
  transition: transform 0.4s ease;
}

.area-card:hover .area-gradient {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.10) 0%,
    rgba(0, 0, 0, 0.65) 100%
  );
}

/* ==========================================================================
   6. RESPONSIVE STYLES
   ========================================================================== */

@media (max-width: 1200px) {
  .areas-grid {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  /* Hero */
  .hero {
    height: auto;
    min-height: 680px;
  }

  .herocontent {
    padding-top: 174px;
  }

  .herotitle {
    font-size: 40px;
    line-height: 50px;
    max-width: 369px;
  }

  .herosubtitle {
    font-size: 20px;
    line-height: 35px;
    max-width: 370px;
  }

  /* Search box stacked */
  .search-box {
    flex-direction: column;
    width: 100%;
    max-width: 360px;
    height: auto;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    gap: 14px;
  }

  .search-boxfield {
    width: 100%;
    height: 68px;
    padding: 6px 23px;
    background: var(--color-white);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-search);
  }

  .search-boxbtn {
    width: 100%;
    height: 60px;
    border-radius: var(--radius-xl);
    font-size: 18px;
    margin: 0;
  }

  /* Unlock areas */
  .unlock-areas {
    padding-top: 40px;
    padding-bottom: 60px;
  }

  .areas-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .area-card {
    height: 220px;
  }

  .area-name {
    font-size: 20px;
  }
}

@media (max-width: 400px) {
  .herocontent {
    padding-inline: 15px;
  }

  .herotitle {
    font-size: 36px;
    line-height: 46px;
  }

  .search-box {
    max-width: 340px;
  }

  .search-boxbtn {
    max-width: 340px;
  }
}

.select2-container--default .select2-selection--single {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: normal;
  color: var(--color-text-black);
  border: none;
  background-color: white;
  outline: none;
  width: 100%;
  padding: 0;
  cursor: pointer;

  /* remove default border/rounded bg that Select2 adds */
  box-shadow: none;
  border-radius: 0;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2370b0e9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
   background-repeat: no-repeat;
  background-position: right center;
  background-size: 0.65em auto;
}

/* Text inside */
.select2-container--default .select2-selection--single .select2-selection__rendered {
  padding-left: 0;
  padding-right: 0;
}

/* Remove default arrow so it looks like your native one */
.select2-container--default .select2-selection--single .select2-selection__arrow {
  display: none;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 0.65em auto;
  /* padding-right: 20px; */ /* if you re‑enable arrow */
  /* background-image: url("data:image/svg+xml;..."); */
}

/* Dropdown panel */
.select2-container--default .select2-dropdown {
  background-color: white;
  border: none;
}

/* NEW: Override focus states - keep border, kill color changes */
.select2-container--default.select2-container--focus .select2-selection--single {
  outline: none !important;
  box-shadow: none !important;
  border-color: inherit !important;  /* Keeps your original border */
  background-color: white !important;  /* Locks background */
}

/* Search input inside dropdown */
.select2-container--default .select2-search--dropdown .select2-search__field:focus {
  outline: none !important;
  box-shadow: none !important;
  border-color: #ddd !important;  /* Your choice of static border */
}