/* ===================================================================
   PHAROS 7-DAY REGIONAL WEATHER & SMART TOUR MATCHER (v10.0)
   Bespoke Caspian-Gold planner widget — crisp on desktop & 60 FPS mobile
   =================================================================== */

.ph-weather-sec {
  padding-block: clamp(44px, 6vw, 76px);
}
.ph-weather-shell {
  border-radius: 28px;
  padding: clamp(20px, 3.2vw, 34px);
  background:
    radial-gradient(65% 80% at 100% 0%, rgba(244, 182, 92, 0.14), transparent 62%),
    radial-gradient(55% 75% at 0% 100%, rgba(12, 107, 120, 0.22), transparent 64%),
    linear-gradient(155deg, #041921 0%, #062530 58%, #03151b 100%);
  border: 1px solid rgba(244, 182, 92, 0.30);
  box-shadow: 0 24px 64px rgba(3, 21, 27, 0.28);
  color: #e9f2f0;
  position: relative;
  overflow: hidden;
}

.ph-weather-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}
.ph-weather-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f4b65c;
  margin-bottom: 8px;
}
.ph-weather-beta {
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(244, 182, 92, 0.18);
  border: 1px solid rgba(244, 182, 92, 0.42);
  color: #ffd596;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
}
.ph-weather-head h2 {
  font-family: 'Montserrat', sans-serif !important;
  font-size: clamp(1.38rem, 3vw, 2.05rem) !important;
  font-weight: 800 !important;
  color: #ffffff;
  margin: 0 0 6px;
  line-height: 1.15;
}
.ph-weather-head p {
  margin: 0;
  font-size: 0.9rem;
  color: #b4cbcf;
  max-width: 620px;
}

.ph-weather-loc-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(244, 182, 92, 0.30);
  font-size: 0.78rem;
  font-weight: 700;
  color: #e9f2f0;
  white-space: nowrap;
}
.ph-weather-gps-btn {
  border: none;
  background: rgba(244, 182, 92, 0.18);
  color: #ffd596;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.ph-weather-gps-btn:hover {
  background: #f4b65c;
  color: #03151b;
}

/* Region Selector Chips */
.ph-weather-regions {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.ph-weather-regions::-webkit-scrollbar { display: none; }
.ph-w-reg-btn {
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  padding: 8px 14px;
  border-radius: 99px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.ph-w-reg-btn:hover {
  border-color: rgba(244, 182, 92, 0.5);
  color: #ffd596;
}
.ph-w-reg-btn.is-active {
  background: linear-gradient(135deg, #f4b65c, #c8872b);
  border-color: #f4b65c;
  color: #03151b;
  font-weight: 800;
}

/* 7-Day Interactive Strip */
.ph-weather-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(105px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  margin-bottom: 20px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.ph-weather-days::-webkit-scrollbar { display: none; }

.ph-w-day {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 18px;
  padding: 13px 10px;
  text-align: center;
  cursor: pointer;
  color: #e9f2f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.ph-w-day:hover {
  border-color: rgba(244, 182, 92, 0.48);
  background: rgba(244, 182, 92, 0.07);
}
.ph-w-day.is-selected {
  background: linear-gradient(160deg, rgba(244, 182, 92, 0.22), rgba(12, 74, 88, 0.45));
  border-color: #f4b65c;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
  transform: translateY(-2px);
}
.ph-w-day-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #f4b65c;
}
.ph-w-day-date {
  font-size: 0.70rem;
  color: #8fa9ad;
}
.ph-w-day-ico {
  font-size: 1.65rem;
  line-height: 1.1;
  margin: 2px 0;
}
.ph-w-day-temp {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.96rem;
  font-weight: 800;
  color: #ffffff;
}
.ph-w-day-temp span {
  font-weight: 600;
  color: #8fa9ad;
  font-size: 0.78rem;
  margin-left: 3px;
}
.ph-w-day-meta {
  font-size: 0.68rem;
  color: #9bb5ba;
  display: flex;
  gap: 6px;
  justify-content: center;
}

/* Recommendation Stage */
.ph-weather-stage {
  border-radius: 20px;
  padding: 18px;
  background: rgba(2, 13, 18, 0.56);
  border: 1px solid rgba(244, 182, 92, 0.22);
}
.ph-w-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ph-w-summary-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.96rem;
  font-weight: 800;
  color: #ffd596;
  margin: 0 0 4px;
}
.ph-w-summary-advice {
  font-size: 0.84rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.45;
}
.ph-w-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ph-w-pill {
  padding: 5px 11px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.74rem;
  font-weight: 700;
  color: #e9f2f0;
}

.ph-w-tours-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.ph-w-tour {
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.ph-w-tour:hover {
  border-color: rgba(244, 182, 92, 0.50);
}
.ph-w-tour-img {
  position: relative;
  height: 138px;
  overflow: hidden;
  background: #03151b;
}
.ph-w-tour-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ph-w-match-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(3, 21, 27, 0.88);
  border: 1px solid rgba(244, 182, 92, 0.55);
  color: #ffd596;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
}
.ph-w-tour-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.ph-w-tour-body h4 {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.94rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
}
.ph-w-tour-reason {
  font-size: 0.79rem;
  color: #b4cbcf;
  line-height: 1.45;
  margin: 0;
  flex: 1;
}
.ph-w-tour-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}
.ph-w-tour-actions .btn {
  padding: 9px 10px !important;
  font-size: 0.70rem !important;
  min-height: 36px !important;
  text-align: center;
  border-radius: 10px !important;
}

@media (max-width: 900px) {
  .ph-w-tours-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .ph-weather-shell {
    border-radius: 22px;
    padding: 16px 14px;
  }
  .ph-weather-days {
    grid-template-columns: repeat(7, 94px);
    gap: 8px;
  }
  .ph-w-day {
    padding: 10px 7px;
    border-radius: 14px;
  }
  .ph-weather-stage {
    padding: 14px 12px;
  }
}
