/* ============================================
   partner.css - unlisted pages shared with partners
   (layouts/partner.html.erb). Everything is scoped
   under body.partner-page because :app bundles all CSS.
   ============================================ */

.partner-page {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.partner-page a { color: var(--amber-deep); }

/* Hero */
.pt-hero {
  background: linear-gradient(135deg, #b45309 0%, #d97706 55%, #f59e0b 100%);
  color: #fff;
  padding: 48px 24px 40px;
}

.pt-hero__inner,
.pt-main,
.pt-footer {
  max-width: 1240px;
  margin: 0 auto;
}

.pt-eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.92;
}

.pt-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.pt-lede {
  margin: 0 0 22px;
  max-width: 740px;
  font-size: 17px;
  line-height: 1.55;
}

.pt-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
}

.pt-stats li {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 14px;
}

.pt-stats strong {
  font-family: var(--font-display);
  font-size: 19px;
}

.pt-legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.pt-dot {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.pt-dot--ours { background: #d97706; }
.pt-dot--theirs { background: #1f6f74; margin-left: 12px; }

/* Page switch inside the hero */
.pt-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.pt-nav a {
  padding: 9px 16px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}

.pt-nav a:hover { background: rgba(255, 255, 255, 0.14); }

.pt-nav a.is-current {
  background: #fff;
  border-color: #fff;
  color: var(--amber-deep);
}

/* Sections */
.pt-main { padding: 36px 24px 48px; }

.pt-section + .pt-section { margin-top: 56px; }

.pt-section__title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.1;
}

.pt-count {
  padding: 2px 11px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
}

.pt-section__note {
  margin: 0 0 20px;
  max-width: 740px;
  color: var(--ink-soft);
}

/* Table of cards */
.pt-table { --pt-cols: 1.3fr 1fr 1fr 300px; }

.pt-head {
  display: grid;
  grid-template-columns: var(--pt-cols);
  gap: 24px;
  padding: 0 20px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.pt-row {
  display: grid;
  grid-template-columns: var(--pt-cols);
  gap: 24px;
  padding: 20px;
  background: var(--paper-card);
  border: 1px solid var(--ink-line);
  border-radius: 10px;
  box-shadow: var(--shadow-warm);
}

.pt-row + .pt-row { margin-top: 12px; }

.pt-place__name {
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 23px;
  line-height: 1.15;
}

.pt-place__town {
  margin: 0 0 8px;
  font-weight: 600;
  color: var(--ink-soft);
}

.pt-place__alias,
.pt-place__addr {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--ink-soft);
}

.pt-chip {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--ink-line);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.pt-chip--member {
  background: #d6ecec;
  color: #1f6f74;
}

.pt-side {
  align-self: start;
  padding-left: 14px;
  border-left: 4px solid;
}

.pt-side--ours { border-color: #d97706; }
.pt-side--theirs { border-color: #1f6f74; }

.pt-side__label { display: none; }

.pt-coords {
  margin: 0 0 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 600;
}

.pt-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.pt-links a {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(156, 74, 19, 0.08);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.pt-links a:hover { background: rgba(156, 74, 19, 0.16); }

.pt-side--theirs .pt-links a { background: rgba(31, 111, 116, 0.1); color: #1f6f74; }
.pt-side--theirs .pt-links a:hover { background: rgba(31, 111, 116, 0.2); }

.pt-side__meta {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.pt-map {
  height: 210px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--ink-line);
  background: #e8dfcb;
}

.pt-gap {
  margin: 8px 0 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--amber-deep);
}

/* Details page: place beside a table of what we have */
.pt-table--updates { --pt-cols: 1fr 2.3fr; }

.pt-links--row {
  flex-direction: row;
  flex-wrap: wrap;
  margin-top: 4px;
}

.pt-place__twice {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.pt-place__twice .pt-tag { margin: 0 4px 0 0; }

.pt-links a.pt-links__theirs { background: rgba(31, 111, 116, 0.1); color: #1f6f74; }
.pt-links a.pt-links__theirs:hover { background: rgba(31, 111, 116, 0.2); }

.pt-offers {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  align-self: start;
}

.pt-offers__head th {
  padding: 0 10px 8px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.pt-offers__head th:nth-child(2) { color: #1f6f74; }
.pt-offers__head th:nth-child(3) { color: var(--amber-deep); }

.pt-offer th,
.pt-offer td {
  padding: 9px 10px;
  border-top: 1px solid var(--ink-line);
  vertical-align: top;
  text-align: left;
  overflow-wrap: anywhere;
}

.pt-offer__label {
  width: 150px;
  font-weight: 700;
  white-space: nowrap;
}

.pt-offer__theirs { color: var(--ink-soft); width: 34%; }

.pt-offer__ours {
  font-weight: 600;
  background: rgba(217, 119, 6, 0.07);
}

.pt-offer__more {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
}

.pt-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 2px;
}

.pt-tag--new { background: #d6ecec; color: #1f6f74; }
.pt-tag--diff { background: rgba(217, 119, 6, 0.16); color: var(--amber-deep); }

.pt-instep {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 6px 20px;
  margin: 0;
  padding: 0;
  font-size: 15px;
}

.pt-instep li { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.pt-instep a { font-weight: 600; text-decoration: none; }
.pt-instep span { font-size: 13px; color: var(--ink-soft); white-space: nowrap; }

/* Change log: a day, then one line per change */
.pt-day + .pt-day { margin-top: 36px; }

.pt-day__title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.1;
}

.pt-day__title .pt-count { font-size: 13px; }

.pt-log-place {
  padding: 16px 20px;
  background: var(--paper-card);
  border: 1px solid var(--ink-line);
  border-radius: 10px;
  box-shadow: var(--shadow-warm);
}

.pt-log-place + .pt-log-place { margin-top: 10px; }

.pt-log-place__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 0 0 8px;
}

.pt-log-place__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.15;
}

.pt-log-place__town { color: var(--ink-soft); font-weight: 600; }

.pt-log-place__head a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.pt-log-place__head a.pt-links__theirs { color: #1f6f74; }

.pt-log-changes {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
}

.pt-log-change {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  padding: 7px 0;
  border-top: 1px solid var(--ink-line);
  overflow-wrap: anywhere;
}

.pt-log-change__label { font-weight: 700; min-width: 86px; }

.pt-log-change .pt-tag { margin: 0; min-width: 72px; text-align: center; }

.pt-tag--added { background: #d6ecec; color: #1f6f74; }
.pt-tag--updated { background: rgba(217, 119, 6, 0.16); color: var(--amber-deep); }
.pt-tag--removed { background: rgba(156, 74, 19, 0.12); color: #9c4a13; }

.pt-log-change__from { color: var(--ink-soft); text-decoration: line-through; }
.pt-log-change__arrow { color: var(--ink-soft); }
.pt-log-change__to { font-weight: 600; }

.pt-json {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  padding: 7px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.pt-json code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--amber-deep);
}

.pt-empty {
  padding: 48px 24px;
  text-align: center;
  background: var(--paper-card);
  border: 1px solid var(--ink-line);
  border-radius: 10px;
}

.pt-empty h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 30px;
}

.pt-empty p { margin: 0; color: var(--ink-soft); }

.pt-footer {
  padding: 24px 24px 56px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
}

/* Narrow screens: place on top, the two sides beside each other, map below */
@media (max-width: 1023px) {
  .pt-table { --pt-cols: 1fr 1fr; }
  .pt-table--updates { --pt-cols: 1fr; }
  .pt-head { display: none; }
  .pt-place,
  .pt-mapcol { grid-column: 1 / -1; }
  .pt-side__label {
    display: block;
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }
}

@media (max-width: 560px) {
  .pt-table { --pt-cols: 1fr; }
  .pt-offers__head { display: none; }
  .pt-offer { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--ink-line); padding: 8px 0; }
  .pt-offer th, .pt-offer td { border-top: none; padding: 2px 0; }
  .pt-offer__label { width: auto; white-space: normal; }
  .pt-offer__theirs { width: auto; }
  .pt-offer__theirs--none { display: none; }
  .pt-offer__theirs::before { content: "BookAlbergue: "; font-size: 12px; font-weight: 700; color: #1f6f74; }
  .pt-offer__ours { padding: 4px 8px; border-radius: 6px; }
  .pt-instep { grid-template-columns: 1fr; }
  .pt-hero { padding: 32px 16px 28px; }
  .pt-main { padding: 24px 16px 40px; }
  .pt-row { padding: 16px; gap: 16px; }
  .pt-section__title { font-size: 26px; }
}
