/* Old Town Quito Suites: adjustments so WordPress block markup looks like the static site.
   site.css is the static site's stylesheet, untouched; everything WordPress-specific lives here. */

/* Layout wrappers added by WordPress must not add space or width limits */
.wp-site-blocks, .otqs-header-part, .otqs-footer-part, .otqs-main, .otqs-content { margin: 0; padding: 0; }
.otqs-content > .alignwide, .otqs-content > .alignfull { max-width: none; }
body .is-layout-constrained > * { max-width: none; }

/* Text links and buttons kept inside paragraphs */
p.otqs-link { margin: 0; }
p.cta-actions .btn + .btn { margin-left: 0; }
p.tour-teaser-actions { margin-top: 32px; }

/* Photos as image blocks: same 3:2 frame as .figure-media */
.wp-block-image.otqs-photo { margin: 0; }
.wp-block-image.otqs-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--color-sand);
}
.wp-block-image.otqs-photo figcaption, .wp-block-image.otqs-photo .wp-element-caption {
  margin: 14px 0 0;
  text-align: left;
  font-size: 15px;
  color: var(--color-ink-soft);
}
.details-grid .wp-block-image.otqs-photo .wp-element-caption,
.guest-photos .wp-block-image.otqs-photo .wp-element-caption { font-size: 14px; line-height: 1.7; }
.then-now > .then-now-item:first-child img { filter: sepia(.15); }
.location-photo.wp-block-image { margin-top: 32px; }

/* Footer logo as an image block */
.wp-block-image.footer-logo { margin: 0 0 22px; }
.wp-block-image.footer-logo img { width: 170px; height: auto; }

/* Perk number: a paragraph now, so keep its own size inside .perk p */
.perk p.perk-number { font: italic 400 22px/28.9px var(--font-serif); color: var(--color-accent); }

/* Key facts and landmarks as table blocks (were <dl> and a list) */
.wp-block-table.facts-table, .wp-block-table.landmarks-table { margin: 0; overflow: visible; }
.wp-block-table.facts-table table, .wp-block-table.landmarks-table table { width: 100%; border-collapse: collapse; }
.wp-block-table.facts-table th, .wp-block-table.facts-table td,
.wp-block-table.landmarks-table td { border: 0; border-bottom: 1px solid var(--color-line); padding: 12px 0; text-align: left; vertical-align: top; }
.wp-block-table.facts-table tr:last-child th, .wp-block-table.facts-table tr:last-child td { border-bottom: 0; }
.wp-block-table.facts-table th { width: 120px; padding-right: 14px; font-weight: 400; font-size: 15px; color: var(--color-muted); }
.wp-block-table.facts-table td { font-size: 15px; color: var(--color-ink); }
.wp-block-table.landmarks-table td { font-size: 16px; }
.wp-block-table.landmarks-table td:last-child { text-align: right; white-space: nowrap; font-size: 14px; color: var(--color-muted); }
@media (max-width: 680px) {
  .wp-block-table.facts-table th, .wp-block-table.facts-table td { display: block; width: auto; }
  .wp-block-table.facts-table th { border-bottom: 0; padding-bottom: 2px; }
  .wp-block-table.facts-table td { padding-top: 0; }
}

/* FAQ: details blocks */
.faq-list .wp-block-details { margin: 0; }

/* Suite, tours and FAQ pages (tools/html_to_blocks.py): dt/dd text is a paragraph inside the dt/dd */
p.otqs-dl-text { margin: 0; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; }
/* Hidden tours (filter buttons) */
.tour-row[hidden] { display: none; }

/* Address paragraph */
p.address { margin-top: 26px; }

/* Pages that are not the homepage (404, archives) */
.otqs-plain { padding-top: var(--header-h); }
