/* 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; }
.suite-grid-two + p.otqs-link > .text-link { margin-top: 44px; }

/* 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: 134px; 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; }

/* Guides (blog): index cards and article */
.guide-meta { margin-top: 14px; font-size: 14px; color: var(--color-muted); }
.guide-top .eyebrow { margin-bottom: 4px; }
.guide-list-wrap { margin-top: 16px; margin-bottom: var(--section-space); }
.guide-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; list-style: none; margin: 0; padding: 0; }
.guide-card { margin: 0; }
.guide-card .wp-block-post-featured-image { margin: 0 0 20px; background: var(--color-sand); }
.guide-card .wp-block-post-featured-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.guide-card-title { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; margin: 0 0 10px; }
.guide-card-title a { text-decoration: none; }
.guide-card-title a:hover { color: var(--color-accent); }
.guide-card-excerpt p { margin: 0; color: var(--color-ink-soft); font-size: 16px; }
@media (max-width: 960px) { .guide-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .guide-list { grid-template-columns: 1fr; } }

.guide-cover .wp-block-post-featured-image { margin: 0; max-width: 760px; }
.guide-cover .wp-block-post-featured-image img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--color-sand); }
.guide-content .wp-block-table { overflow-x: auto; }
.guide-content .wp-block-table thead { border-bottom: 0; }
.guide-body { margin-top: 48px; margin-bottom: var(--section-space); }
.guide-content { max-width: 760px; font-size: 18px; line-height: 1.75; color: var(--color-ink); }
.guide-content > * + * { margin-top: 1.1em; }
.guide-content h2 { font-size: clamp(30px, 3.2vw, 40px); line-height: 1.15; margin-top: 2em; }
.guide-content h3 { font-size: clamp(23px, 2.2vw, 27px); line-height: 1.25; margin-top: 1.6em; }
.guide-content ul, .guide-content ol { padding-left: 1.3em; }
.guide-content ul { list-style: disc; }
.guide-content ol { list-style: decimal; }
.guide-content li::marker { color: var(--color-accent); }
.guide-content li + li { margin-top: .4em; }
.guide-content a { color: var(--color-accent); text-underline-offset: 3px; }
.guide-content figure { margin: 2em 0; }
.guide-content figure img { display: block; width: 100%; height: auto; }
.guide-content figcaption { margin-top: 10px; font-size: 14px; color: var(--color-muted); text-align: left; }
.guide-content blockquote { margin: 2em 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--color-gold); font: italic 400 24px/1.45 var(--font-serif); color: var(--color-ink-soft); }
.guide-content .wp-block-table table { width: 100%; border-collapse: collapse; font-size: 16px; }
.guide-content .wp-block-table th, .guide-content .wp-block-table td { border: 0; border-bottom: 1px solid var(--color-line); padding: 10px 12px 10px 0; text-align: left; vertical-align: top; }
.guide-content .wp-block-table th { font-weight: 500; color: var(--color-muted); }
.guide-content .wp-block-details { border-top: 1px solid var(--color-line); padding: 14px 0; }
.guide-content .wp-block-details summary { cursor: pointer; font-weight: 500; }
.guide-content .guide-note { padding: 22px 24px; background: var(--color-ivory); border-left: 2px solid var(--color-gold); font-size: 16px; }

/* Suite comparison table headings: darker grey for AA contrast on the sand background (was 4.2:1) */
table.compare-table th[scope="col"] { color: var(--color-ink-soft); }

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

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