/* =============================================
   DESTINATIONS PAGE (MODERNIZED PRODUCTION CSS)
   ============================================= */

*, *::before, *::after { 
  box-sizing: border-box; 
}

:root {
  --mmtorange:   #E8571A;
  --mmtorange-d: #C44510;
  --forest:      #1B6B3A;
  --gold:        #D4940A;
  --cream:       #F8F6F0;
  --white:       #FFFFFF;
  --text-dark:   #0F172A;
  --text-mid:    #475569;
  --text-light:  #94A3B8;
  --border:      #E2E8F0;
  
  --shadow-sm:   0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md:   0 8px 24px -4px rgba(15, 23, 42, 0.08);
  --shadow-lg:   0 20px 32px -8px rgba(15, 23, 42, 0.12);
  
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
}

/* ===== HERO SECTION ===== */

/* Fix top whitespace / margin collapse */
html {
  margin-top: 0 !important;
}

body {
  margin: 0;
  padding: 0;
}

/* Ensure header sticks flush to the top */
header, 
.site-header {
  margin-top: 0 !important;
  position: relative;
  z-index: 1000;
}

.dest-hero {
  /* Rich vibrant emerald to deep ocean gradient */
  background: linear-gradient(135deg, #0d3b2e 0%, #155e46 50%, #1a2e3b 100%) !important;
  padding: 60px 0 50px !important;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Subtler grid pattern instead of harsh dots */
.dest-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.dest-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
  position: relative;
  z-index: 1;
  color: var(--white);
}

/* Sleek floating pill breadcrumb instead of full-width block */
.dest-breadcrumb {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  padding: 6px 16px !important;
  border-radius: 30px !important;
  backdrop-filter: blur(8px);
  width: auto !important;
  margin-bottom: 20px;
}

.dest-breadcrumb a {
  color: #fff !important;
  text-decoration: none;
  font-weight: 500;
}

.dest-breadcrumb span {
  opacity: 0.6;
}

.dest-hero-inner h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
  line-height: 1.15;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.dest-hero-inner > p {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 28px;
  max-width: 640px;
  line-height: 1.6;
  font-weight: 400;
}

/* Modern Search Box */
.dest-search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 40px;
  padding: 10px 20px;
  max-width: 540px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.dest-search-box:focus-within {
  border-color: var(--mmtorange);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 28px rgba(232, 87, 26, 0.25);
}

.dest-search-box span { 
  font-size: 16px; 
  flex-shrink: 0; 
  opacity: 0.8;
}

.dest-search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--white);
  font-weight: 500;
}

.dest-search-box input::placeholder { 
  color: rgba(255, 255, 255, 0.65); 
}


/* ===== FILTER BAR (STICKY) ===== */
.dest-filterbar {
  background: #E6F2DD;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.dest-filterbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px clamp(16px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dest-filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.dest-filter-label {
  font-size: 14px;
  font-weight: 800;
  color: #A47251;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.dest-filter-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  width: 100%;
}

.dest-filter-tabs::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Area Tabs */
.dest-tab {
  padding: 6px 16px;
  border-radius: 30px;
  border: 1.5px solid var(--border);
  background: var(--cream);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.dest-tab:hover {
  border-color: var(--mmtorange);
  color: var(--mmtorange);
  background: var(--white);
}

.dest-tab--active {
  background: var(--mmtorange) !important;
  border-color: var(--mmtorange) !important;
  color: var(--white) !important;
}

.dest-tab-count {
  background: rgba(15, 23, 42, 0.08);
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
}

.dest-tab--active .dest-tab-count {
  background: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

/* Category Pills */
.dest-cat-pill {
  padding: 5px 14px;
  border-radius: 30px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.dest-cat-pill:hover {
  border-color: var(--forest);
  color: var(--forest);
}

.dest-cat-pill--active {
  background: var(--forest) !important;
  border-color: var(--forest) !important;
  color: var(--white) !important;
}

/* Results Bar */
.dest-results-bar {
  background: var(--cream);
  border-top: 1px solid var(--border);
  padding: 8px 0;
}

.dest-results-bar .dest-filterbar-inner {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

#destResultsCount {
  font-size: 13px;
  color: var(--text-mid);
  font-weight: 600;
}

.dest-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1.5px solid var(--mmtorange);
  color: var(--mmtorange);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dest-clear-btn:hover {
  background: var(--mmtorange);
  color: var(--white);
}


/* ===== MAIN BODY ===== */
.dest-body { 
  background: var(--cream); 
  padding: 40px 0 80px; 
  min-height: 60vh;
}

.dest-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

/* ===== DISTRICT SECTIONS ===== */
.dest-district {
  margin-bottom: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.dest-district:last-of-type { 
  border-bottom: none; 
  margin-bottom: 0;
  padding-bottom: 0;
}

.dest-district-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 20px;
}

.dest-district-info h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--text-dark);
  letter-spacing: -0.3px;
}

.dest-district-info h2 a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.dest-district-info h2 a:hover { 
  color: var(--mmtorange); 
}

.dest-district-info p {
  font-size: 14px;
  color: var(--text-mid);
  margin: 0;
  max-width: 600px;
  line-height: 1.5;
}

.dest-district-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mmtorange);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  padding: 8px 18px;
  border: 1.5px solid var(--mmtorange);
  border-radius: 30px;
  transition: all 0.2s ease;
  flex-shrink: 0;
  background: var(--white);
}

.dest-district-link:hover {
  background: var(--mmtorange);
  color: var(--white);
}

.dest-district-link span { 
  transition: transform 0.2s ease; 
}

.dest-district-link:hover span { 
  transform: translateX(4px); 
}


/* ===== PLACES GRID ===== */
.dest-places-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}


/* ===== PLACE CARD STYLING ===== */
.dest-pcard {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--r-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-dark);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dest-pcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(232, 87, 26, 0.3);
}

.dest-pcard-img {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: #E2E8F0;
  flex-shrink: 0;
}

.dest-pcard-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.dest-pcard:hover .dest-pcard-img img { 
  transform: scale(1.06); 
}

.dest-pcard-noimg {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  background: linear-gradient(135deg, var(--cream), #E2E8F0);
}

.dest-pcard-cat {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.dest-pcard-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.dest-pcard-body h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text-dark);
  line-height: 1.35;
}

.dest-pcard-body p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.5;
  margin: 0 0 14px;
  flex: 1;
}

.dest-pcard-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.dest-pcard-meta span {
  font-size: 11px;
  color: var(--text-mid);
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 12px;
}

.dest-pcard-cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--mmtorange);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}

.dest-pcard-cta span { 
  transition: transform 0.2s ease; 
}

.dest-pcard:hover .dest-pcard-cta span { 
  transform: translateX(4px); 
}


/* ===== EMPTY & NO RESULTS STATES ===== */
.dest-empty-area {
  background: var(--white);
  border: 2px dashed var(--border);
  border-radius: var(--r-md);
  padding: 32px;
  text-align: center;
  color: var(--text-mid);
  font-size: 14px;
}

.dest-no-results {
  text-align: center;
  padding: 60px 20px;
}

.dest-no-results-inner span { 
  font-size: 48px; 
  display: block; 
  margin-bottom: 16px; 
}

.dest-no-results-inner h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 8px;
}

.dest-no-results-inner p {
  color: var(--text-mid);
  margin: 0 0 20px;
  font-size: 14px;
}

.dest-no-results-inner button {
  background: var(--mmtorange);
  color: var(--white);
  border: none;
  padding: 10px 28px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.dest-no-results-inner button:hover { 
  background: var(--mmtorange-d); 
}


/* ===== RESPONSIVE MEDIA QUERIES ===== */
@media (max-width: 768px) {

  .dest-district-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .dest-district-link {
    align-self: flex-start;
  }

  .dest-places-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
  }

  .dest-pcard-img {
    height: 160px;
  }
}

@media (max-width: 480px) {
  
  .dest-places-grid {
    grid-template-columns: 1fr;
  }

  .dest-pcard-img {
    height: 180px;
  }
}

/* =============================================================
   SEARCH FIELD NORMALIZATION
   Prevent Astra/WordPress global input styles from creating a
   white inner field inside the hero glass search control.
   ============================================================= */

.dest-search-box,
.dest-search-box input {
  box-sizing: border-box !important;
}

.dest-search-box {
  background: rgba(255, 255, 255, 0.10) !important;
}

.dest-search-box input,
.dest-search-box input[type="text"],
.dest-search-box input[type="search"] {
  min-width: 0 !important;
  width: 100% !important;
  height: 42px !important;
  padding: 0 !important;

  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;

  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;

  -webkit-appearance: none !important;
  appearance: none !important;

  color: #FFFFFF !important;
  caret-color: #FFFFFF !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
  font-weight: 500 !important;
}

.dest-search-box input:focus,
.dest-search-box input:active {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.dest-search-box input::placeholder {
  color: rgba(255, 255, 255, 0.72) !important;
  opacity: 1 !important;
}

.dest-search-box input:-webkit-autofill,
.dest-search-box input:-webkit-autofill:hover,
.dest-search-box input:-webkit-autofill:focus {
  -webkit-text-fill-color: #FFFFFF !important;
  -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
  box-shadow: 0 0 0 1000px transparent inset !important;
}