/* ══════════════════════════════════════════════════
   iLAND — Marketplace Patterns (Discovered Locations, Tools & Insights)
   ══════════════════════════════════════════════════ */

.market-section {
  padding: 80px 5%;
  background: #ffffff;
  position: relative;
}

.market-section.alt {
  background: #f7faf8;
  border-top: 1px solid #e7efe9;
  border-bottom: 1px solid #e7efe9;
}

.market-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  gap: 20px;
}

.market-heading .eyebrow {
  font-size: 11px;
  letter-spacing: 2.5px;
  font-weight: 700;
  color: #C9963F;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.market-heading h2 {
  font: 700 36px/1.2 'Playfair Display', serif;
  color: #1240AB;
  margin: 0;
}

.market-heading p {
  font-size: 14px;
  color: #5C6E87;
  margin: 8px 0 0;
  max-width: 600px;
}

.market-heading .text-link {
  color: #1240AB;
  font-size: 13px;
  font-weight: 700;
  background: #fff;
  border: 1px solid #d4e0ee;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all .2s ease;
  white-space: nowrap;
}

.market-heading .text-link:hover {
  background: #1240AB;
  color: #fff;
  border-color: #1240AB;
  transform: translateX(3px);
}

/* Location Grid */
.location-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.location-tile {
  height: 200px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0,0,0,0.06);
  text-align: left;
  color: #fff;
  padding: 20px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(18,64,171,0.08);
  transition: all .3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
}

.location-tile:nth-child(1) {
  background: linear-gradient(135deg, rgba(18,64,171,0.7) 0%, rgba(10,38,104,0.9) 100%),
              url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=600&q=80') center/cover;
}
.location-tile:nth-child(2) {
  background: linear-gradient(135deg, rgba(14,58,158,0.7) 0%, rgba(37,99,235,0.9) 100%),
              url('https://images.unsplash.com/photo-1592595896551-12b371d546d5?auto=format&fit=crop&w=600&q=80') center/cover;
}
.location-tile:nth-child(3) {
  background: linear-gradient(135deg, rgba(10,38,104,0.75) 0%, rgba(59,130,246,0.9) 100%),
              url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=600&q=80') center/cover;
}
.location-tile:nth-child(4) {
  background: linear-gradient(135deg, rgba(18,64,171,0.7) 0%, rgba(217,162,50,0.85) 100%),
              url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=600&q=80') center/cover;
}

.location-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(7,21,54,0.88) 100%);
  transition: background .3s ease;
}

.location-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(18,64,171,0.22);
}

.location-tile:hover::before {
  background: linear-gradient(180deg, rgba(217,162,50,0.2) 0%, rgba(7,21,54,0.94) 100%);
}

.location-tile-content {
  position: relative;
  z-index: 2;
}

.location-tile .loc-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 8px;
}

.location-tile b {
  display: block;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 4px;
  color: #fff;
}

.location-tile small {
  font-size: 12px;
  color: rgba(255,255,255,0.88);
  display: flex;
  align-items: center;
  gap: 5px;
}

.location-tile .arrow-indicator {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: all .25s ease;
  z-index: 2;
}

.location-tile:hover .arrow-indicator {
  background: #C9963F;
  color: #fff;
  transform: scale(1.1);
}

/* Land Buying Tools Grid */
.land-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.land-tool {
  background: #fff;
  border: 1px solid #e1e8f2;
  border-radius: 16px;
  padding: 30px;
  text-align: left;
  transition: all .25s ease;
  box-shadow: 0 4px 16px rgba(18,64,171,0.04);
  display: flex;
  flex-direction: column;
}

.land-tool:hover {
  border-color: #1240AB;
  transform: translateY(-5px);
  box-shadow: 0 16px 30px rgba(18,64,171,0.12);
}

.land-tool-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: #fff8e8;
  color: #D9A232;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.land-tool h5 {
  font-size: 18px;
  font-weight: 700;
  color: #0F1C33;
  margin: 0 0 10px;
}

.land-tool p {
  font-size: 13px;
  color: #5C6E87;
  line-height: 1.6;
  margin: 0 0 22px;
  flex: 1;
}

.land-tool .tool-btn {
  border: 1px solid #1240AB;
  background: transparent;
  color: #1240AB;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .2s ease;
  align-self: flex-start;
}

.land-tool .tool-btn:hover {
  background: #1240AB;
  color: #fff;
}

/* Insight / Articles Grid */
.insight-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 24px;
}

.insight {
  border: 1px solid #e1e8f2;
  border-radius: 16px;
  padding: 28px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(18,64,171,0.04);
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
}

.insight:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(18,64,171,0.10);
  border-color: #d9a232;
}

.insight.featured {
  background: linear-gradient(155deg, #071536 0%, #0E3486 100%);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
}

.insight .tag {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #D9A232;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.insight h5 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 12px;
  color: #0F1C33;
}

.insight.featured h5 {
  color: #fff;
  font-size: 22px;
}

.insight p {
  font-size: 13px;
  line-height: 1.6;
  color: #5C6E87;
  margin: 0 0 20px;
  flex: 1;
}

.insight.featured p {
  color: rgba(255,255,255,0.85);
}

.insight a, .insight .insight-link {
  font-size: 12px;
  color: #1240AB;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: color .2s ease;
}

.insight.featured a, .insight.featured .insight-link {
  color: #e8bf6a;
}

.insight a:hover, .insight .insight-link:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .location-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .land-tool-grid {
    grid-template-columns: 1fr;
  }
  .insight-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .market-section {
    padding: 50px 5%;
  }
  .market-heading {
    flex-direction: column;
    align-items: flex-start;
  }
  .location-grid {
    grid-template-columns: 1fr;
  }
}
