/* =========================
   Home Page Styles
   ========================= */

/* Hero Section */
.hero-banner {
  margin-bottom: 28px;
  border-radius: 28px;
  overflow: hidden;
  min-height: 360px;
  background: linear-gradient(90deg, rgba(7, 36, 20, 0.55), rgba(7, 36, 20, 0.15)), var(--bg-image) center/cover;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: stretch;
  box-shadow: var(--shadow);
}

.nav-home .hero-banner {
  min-height: clamp(460px, calc(100vh - 220px), 620px);
  grid-template-rows: 1fr;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  column-gap: 24px;
}

.nav-home .hero-banner-content {
  max-width: none;
}

.nav-home .hero-card.overlay {
  width: min(560px, calc(100% - 44px));
  margin: 0 28px 0 0;
  justify-self: end;
}

@media (max-width: 980px) {
  .nav-home .hero-banner {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    align-items: stretch;
  }

  .nav-home .hero-card.overlay {
    width: min(1100px, calc(100% - 56px));
    margin: 0 auto 22px;
    justify-self: center;
  }
}

.hero-banner-content {
  color: #fff;
  padding: 44px;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-banner-content h1 {
  font-family: var(--font-heading);
  font-size: 54px;
  margin: 0 0 12px;
}

.hero-banner-content p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.85);
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin: 24px 0 32px;
}

.hero-trust {
  display: flex;
  gap: 32px;
  align-items: center;
  margin-top: auto;
  padding: 10px 0 0;
}

.hero-trust .stat {
  font-size: 20px;
  font-weight: 700;
  display: block;
}

.hero-card {
  background: var(--card);
  padding: 24px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-card.overlay {
  position: static;
  width: min(1100px, calc(100% - 56px));
  margin: 0 auto 22px;
  justify-self: center;
  z-index: 1;
  backdrop-filter: blur(6px);
}

/* Tabs */
.tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.tab {
  border: 1px solid #d7e3d4;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
}

.tab.active {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* Premium Widget Styling */
body.nav-home {
  background:
    radial-gradient(1200px 520px at 6% -10%, rgba(164, 198, 57, 0.18), transparent 55%),
    radial-gradient(980px 540px at 110% 0%, rgba(11, 106, 60, 0.14), transparent 50%),
    linear-gradient(180deg, #f7f8f6 0%, #f2f5f2 100%);
}

/* =========================
   WIDGETS SECTION (Complete)
   ========================= */

.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 48px 0 80px;
}

@media (max-width: 980px) {
  .highlights {
    grid-template-columns: 1fr;
  }
}

/* Base Card Style */
.highlight {
  background: #fff;
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 380px;
  /* Default Shadow */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.highlight:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 50px rgba(11, 106, 60, 0.15);
  z-index: 2;
}

/* Widget Headers */
.widget-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.widget-head h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  margin: 0;
  letter-spacing: -0.01em;
}

/* =============================================
   1. WORLD WEATHER (Deep Forest & Glass Theme)
   ============================================= */
.widget-weather-world {
  /* Dark Green Gradient Background */
  background: linear-gradient(145deg, #0b3f26 0%, #082a1a 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.widget-weather-world .widget-head h3 {
  color: #fff;
}

/* Pulse Animation */
.pulse-dot {
  width: 8px;
  height: 8px;
  background: #a4c639;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(164, 198, 57, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(164, 198, 57, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(164, 198, 57, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(164, 198, 57, 0);
  }
}

/* Destination List Container */
.destinations-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* Edge Case: Scrollable if too many items */
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.destinations-list::-webkit-scrollbar {
  width: 4px;
}

.destinations-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

/* Individual Destination Item (Glassmorphism) */
.dest-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
  /* Glass Effect */
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.dest-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Active State */
.dest-item.active {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dest-icon {
  font-size: 20px;
}

.dest-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.dest-info .city {
  font-weight: 700;
  color: #fff;
  font-size: 15px;
}

.dest-info .condition {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
}

.dest-temp {
  font-family: var(--font-heading);
  font-size: 22px;
  color: #a4c639;
  /* Pop of Green */
  font-weight: 600;
}

/* =============================================
   2. CURRENCY (Clean Mint & Gold Theme)
   ============================================= */
.rate-info{
    margin-top: auto;
    text-align: center;
    border: none;
    padding: 14px;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}


.widget-currency-clean {
  background: #fff;
  /* Top Accent Border */
  border-top: 4px solid #a4c639;
}

.widget-currency-clean .widget-head h3 {
  color: #0b3f26;
}

.widget-currency-clean .currency-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fcfdfc;
  border-radius: 16px;
  border: 1px solid #eef2ef;
  overflow: hidden;
  margin-bottom: 20px;
}

.currency-row {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background 0.2s;
}

.currency-row:hover {
  background: #f2f7f4;
}

.currency-row label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #88928d;
  font-weight: 700;
}

.input-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.input-group input {
  border: none;
  background: transparent;
  font-family: var(--font-heading);
  font-size: 26px;
  color: #0b3f26;
  width: 60%;
  padding: 0;
  outline: none;
  font-weight: 700;
  text-align: left;
}

.curr-code,
.input-group select {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  color: #0b3f26;
  border: none;
  background: transparent;
  outline: none;
  cursor: pointer;
  text-align: right;
}

.exchange-divider {
  height: 1px;
  background: #eef2ef;
  position: relative;
  margin: 0 16px;
}

.rate-pill {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 1px solid #e1e8e4;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  color: #5d6360;
  white-space: nowrap;
}

/* Button */
.btn-refresh {
  margin-top: auto;
  background: #0b3f26;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(11, 106, 60, 0.2);
}

.btn-refresh:hover {
  background: #0d4a2d;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 106, 60, 0.3);
}

/* =============================================
   3. WORLD CLOCK (Dark Premium Theme)
   ============================================= */
.widget-clock-pro {
  background: #0b3f26;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.widget-clock-pro .widget-head h3 {
  color: #fff;
}

.widget-bg-texture {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
  pointer-events: none;
}

.date-badge {
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.clock-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 10px;
  position: relative;
  z-index: 1;
}

/* Main Clock */
.clock-single {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

.time-big {
  font-family: var(--font-heading);
  font-size: 52px;
  line-height: 1;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.meridiem {
  font-size: 16px;
  opacity: 0.6;
  margin-left: 4px;
  font-family: var(--font-body);
}

.city-label {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 12px;
  color: #a4c639;
  margin-top: 12px;
  font-weight: 800;
}

/* Secondary Clocks */
.clock-mini-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
  /* Edge Case: Scrollable if too many clocks */
  max-height: 156px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.clock-mini-list::-webkit-scrollbar {
  width: 4px;
}

.clock-mini-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.clock-mini {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.clock-mini .city {
  font-size: 14px;
  opacity: 0.8;
  font-weight: 600;
}

.clock-mini .time {
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

/* widget finished  */
/* Other Home Sections */
.hero-visual {
  margin: 48px 0;
}

.hero-image {
  background: linear-gradient(120deg, rgba(11, 106, 60, 0.75), rgba(164, 198, 57, 0.65)), var(--bg-image) center/cover;
  color: #fff;
  background-attachment: fixed;
  padding: 44px;
  border-radius: 28px;
  box-shadow: var(--shadow);
  min-height: 240px;
  display: grid;
  align-items: end;
}

.hero-image h2,
.hero-image h3 {
  margin: 0 0 8px;
  font-family: var(--font-heading);
}

.hero-image .eyebrow {
  margin-bottom: 8px;
  display: block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  opacity: 0.9;
}

/* Deals */
.deals {
  margin-bottom: 48px;
}

.deal-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.deal-card {
  padding: 24px;
  border-radius: 20px;
  color: #fff;
  font-weight: 600;
  min-height: 160px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  position: relative;
  overflow: hidden;
}

.deal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 58px rgba(12, 38, 24, 0.14);
  border-color: rgba(11, 106, 60, 0.18);
}

.photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 46, 27, 0.05) 0%, rgba(7, 28, 18, 0.65) 70%);
  z-index: -1;
}

.photo > * {
  position: relative;
  z-index: 1;
}

.photo {
  background: var(--bg-image) center/cover;
  isolation: isolate;
}

/* Call to Action */
.cta {
  background: var(--primary);
  color: white;
  padding: 60px;
  border-radius: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-content: center;
  margin-bottom: 60px;
  box-shadow: var(--shadow);
}

.cta h2 {
  font-family: var(--font-heading);
  margin: 0 0 12px;
  font-size: 32px;
  color: white;
  /* Ensure text is white */
}

.cta p {
  margin: 0;
  opacity: 0.9;
  font-size: 18px;
  color: white;
}

.cta .btn.primary {
  background: white;
  color: var(--primary);
}

/* Map */
.map {
  margin-bottom: 60px;
}

.map-frame {
  width: 100%;
  height: 400px;
  border-radius: 24px;
  border: 0;
  box-shadow: var(--shadow);
}

/* Gallery Base Styles */
.gallery-grid {
  display: grid;
  gap: 16px;
}

.gallery-card {
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: #fff;
  font-weight: 600;
  transition: transform 220ms ease, box-shadow 220ms ease;
  isolation: isolate;
}

.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 58px rgba(12, 38, 24, 0.14);
}

.gallery-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
  z-index: -1;
}

.gallery-card * {
  position: relative;
  z-index: 1;
}

/* Gallery Grid (Home Specific) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}

/* Gallery Card sizing overrides */
.gallery-card.large {
  grid-column: span 2;
  grid-row: span 2;
}

/* =========================
   Responsive Adjustments
   ========================= */

@media (max-width: 980px) {
  .hero-banner-content {
    padding: 32px;
  }

  .hero-banner-content h1 {
    font-size: 42px;
  }

  .highlights {
    grid-template-columns: 1fr;
    /* Stack widgets */
    gap: 24px;
  }

  .deal-grid {
    grid-template-columns: repeat(3, 1fr);
    /* 3 cols on tablet */
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .gallery-card.large {
    grid-column: span 2;
    grid-row: span 2;
  }
}

@media (max-width: 600px) {

  /* Hero Section */
  .hero-banner {
    min-height: auto;
    display: flex;
    flex-direction: column;
  }

  .nav-home .hero-banner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .hero-banner-content {
    padding: 24px 20px;
    max-width: 100%;
    text-align: center;
    align-items: center;
  }

  .hero-banner-content h1 {
    font-size: 32px;
    /* Smaller headline */
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-trust {
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
  }

  .nav-home .hero-card.overlay {
    width: calc(100% - 24px);
    /* Full width minus padding */
    margin: 0 auto 24px;
    padding: 20px;
  }

  /* Tabs Scrollable */
  .tabs {
    overflow-x: auto;
    padding-bottom: 8px;
    /* space for scrollbar if visible */
    margin-bottom: 16px;
    /* Hide scrollbar for cleaner look */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tab {
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Forms */
  .form-grid {
    grid-template-columns: 1fr;
    /* Stack form fields */
    gap: 12px;
  }

  /* Visual Hero */
  .hero-image {
    padding: 24px;
    min-height: 200px;
  }

  .hero-image h2 {
    font-size: 24px;
  }

  /* Deals Grid */
  .deal-grid {
    grid-template-columns: 1fr;
    /* Single column deals */
    gap: 16px;
  }

  .deal-card {
    min-height: 140px;
  }

  /* Gallery Grid */
  .gallery-grid {
    grid-template-columns: 1fr;
    /* Single column gallery */
    grid-auto-rows: 200px;
  }

  .gallery-card.large {
    grid-column: span 1;
    grid-row: span 1;
  }

  /* CTA */
  .cta {
    flex-direction: column;
    text-align: center;
    padding: 32px 20px;
    gap: 24px;
  }

  .cta h2 {
    font-size: 26px;
  }

  /* Widgets */
  .highlight {
    padding: 24px;
  }

  .widget-head h3 {
    font-size: 20px;
  }

  .clock-single .time-big {
    font-size: 42px;
  }
}