/* ==========================================================================
   Property Photo Correction — shared site header with dropdown mega-menus.
   Used by the home pages (/, /es/) and every landing page / guide.
   Works without JavaScript (hover + :focus-within); site.js adds click,
   keyboard and aria-expanded support.
   ========================================================================== */

.pnav {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid #e8eef6;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pnav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1200px;
  height: 64px;
  margin: 0 auto;
  padding: 0 20px;
}

.pnav__brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.pnav__brand img { display: block; width: auto; height: 34px; }

.pnav__menu {
  display: none;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pnav__item { position: relative; }

.pnav__link,
.pnav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #475569;
  font: inherit;
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.pnav__link:hover,
.pnav__trigger:hover,
.pnav__item:focus-within > .pnav__trigger,
.pnav__item.is-open > .pnav__trigger {
  background: #f1f5fb;
  color: #0f172a;
}

.pnav__link.is-current,
.pnav__item.is-current > .pnav__trigger { color: #2f6bff; }

.pnav__chev {
  font-size: 9px;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.pnav__item.is-open > .pnav__trigger .pnav__chev,
.pnav__item:hover > .pnav__trigger .pnav__chev { transform: rotate(180deg); }

/* Dropdown panel */
.pnav__panel {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 70;
  padding-top: 10px; /* hover bridge between trigger and panel */
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s linear 0.16s;
}

.pnav__item:hover > .pnav__panel,
.pnav__item:focus-within > .pnav__panel,
.pnav__item.is-open > .pnav__panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s;
}

.pnav__item.is-closed > .pnav__panel { opacity: 0; visibility: hidden; }

.pnav__card {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid #e3e9f2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.18), 0 4px 12px rgba(15, 23, 42, 0.05);
}

.pnav__card--wide { grid-template-columns: minmax(0, 1fr) 248px; gap: 10px; width: 660px; }
.pnav__card--mid { width: 400px; }

.pnav__list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }

.pnav__entry {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition: background 0.14s ease;
}

.pnav__entry:hover,
.pnav__entry:focus-visible { background: #f4f7fd; outline: none; }
.pnav__entry.is-current { background: #eef3ff; }

.pnav__icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: #eef3ff;
  color: #2f6bff;
  font-size: 15px;
}

.pnav__entry-title {
  display: block;
  color: #0f172a;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
}

.pnav__entry-desc {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 12.5px;
  line-height: 1.45;
}

.pnav__promo {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  background: #0f172a;
  color: #fff;
  text-decoration: none;
}

.pnav__promo img { display: block; width: 100%; height: 132px; object-fit: cover; }
.pnav__promo-body { padding: 14px 16px 16px; }
.pnav__promo-title { display: block; font-size: 14px; font-weight: 700; line-height: 1.3; }
.pnav__promo-text { display: block; margin-top: 4px; color: rgba(255, 255, 255, 0.7); font-size: 12.5px; line-height: 1.45; }
.pnav__promo-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: #8fb0ff; font-size: 12.5px; font-weight: 650; }

.pnav__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 0;
  padding: 10px 12px 4px;
  border-top: 1px solid #eef2f7;
  font-size: 12.5px;
  color: #64748b;
}

.pnav__foot a { color: #2f6bff; font-weight: 600; text-decoration: none; }

/* Right side actions */
.pnav__actions { display: flex; align-items: center; gap: 8px; }

.pnav__login {
  display: none;
  height: 40px;
  align-items: center;
  padding: 0 10px;
  color: #475569;
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
}

.pnav__login:hover { color: #0f172a; }

.pnav__cta {
  display: inline-flex;
  height: 40px;
  align-items: center;
  gap: 6px;
  padding: 0 18px;
  border-radius: 999px;
  background: #2f6bff;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(47, 107, 255, 0.25);
  transition: background 0.15s ease;
}

.pnav__cta:hover { background: #1d4ed8; color: #fff; }

.pnav__toggle {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e3e9f2;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
}

/* Mobile drawer (uses <details> so it also works without JS) */
.pnav__drawer {
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  padding: 6px 20px 20px;
  border-top: 1px solid #e8eef6;
  background: #fff;
}

.pnav__drawer[hidden] { display: none; }

.pnav__group { border-bottom: 1px solid #eef2f7; }

.pnav__group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 2px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}

.pnav__group > summary::-webkit-details-marker { display: none; }
.pnav__group[open] > summary .pnav__chev { transform: rotate(180deg); }
.pnav__group .pnav__list { padding-bottom: 10px; }
.pnav__group .pnav__entry { padding: 8px; }

.pnav__drawer-link {
  display: block;
  padding: 14px 2px;
  border-bottom: 1px solid #eef2f7;
  color: #0f172a;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}

.pnav__drawer-lang { display: flex; gap: 8px; padding: 14px 2px 4px; }

.pnav__drawer-lang a {
  padding: 6px 12px;
  border: 1px solid #e3e9f2;
  border-radius: 999px;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.pnav__drawer-lang a.is-active { border-color: #bcd0ff; background: #eef3ff; color: #2f6bff; }

.pnav__drawer-cta {
  display: flex;
  height: 46px;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  border-radius: 999px;
  background: #2f6bff;
  color: #fff;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}

@media (min-width: 640px) {
  .pnav__login { display: inline-flex; }
}

@media (min-width: 1040px) {
  .pnav__bar { height: 72px; }
  .pnav__brand img { height: 38px; }
  .pnav__menu { display: flex; }
  .pnav__toggle, .pnav__drawer { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .pnav__panel, .pnav__chev { transition: none; }
}

