/* WordPress content, apartment pages and MotoPress Hotel Booking styling. */

/* ---------- WordPress basics ---------- */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; position: absolute; } }

/* Line icons inside fixed-size slots */
.icon-btn svg, .slide-pause svg { width: 18px; height: 18px; }
.slide-pause svg { width: 16px; height: 16px; }
.finder svg.icon-line { width: 18px; height: 18px; stroke-width: 2; }
.finder svg.i-chev { width: 16px; height: 16px; }
.svc-tab svg.chev { width: 20px; height: 20px; }
.details .icon svg { width: 18px; height: 18px; }

/* Inner pages without a hero */
.page-plain { padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 clamp(72px, 9vw, 120px); }
.page-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.page-head p { margin: 0; }
.actions-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 40px; }
.page-content { max-width: 820px; }

/* Hero variants */
.hero.hero-natural .hero-media img { filter: none; }
.hero.hero-natural .hero-media::after { display: none; }
.hero.hero-natural::after {
  background: linear-gradient(180deg, rgba(4,22,46,0.5) 0%, rgba(4,22,46,0.08) 35%, rgba(4,22,46,0.15) 55%, rgba(4,22,46,0.82) 100%);
}
.hero.hero-tall { min-height: min(88vh, 860px); padding-bottom: clamp(96px, 14vh, 150px); }
.hero .display.article-title { max-width: 18em; }

/* ---------- Search form ---------- */
.search-form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 560px; margin-bottom: 40px; }
.search-form input[type="search"] {
  flex: 1 1 240px;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid #cbd2d9;
  border-radius: 999px;
  font: inherit;
}

/* ---------- Pagination ---------- */
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
}
.pagination .page-numbers.current { background: var(--metal-btn); border-color: transparent; color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Article content (block editor output) ---------- */
.prose img { height: auto; border-radius: 12px; }
.prose .wp-block-image, .prose .wp-caption { margin: 2em 0; }
.prose .wp-element-caption, .prose .wp-caption-text { margin-top: 10px; font-size: 0.875rem; color: var(--muted); }
.prose .alignwide { margin-left: -6vw; margin-right: -6vw; max-width: none; }
.prose .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.prose .alignfull img { border-radius: 0; }
.prose .alignleft { float: left; margin: 0.4em 1.6em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: 0.4em 0 1em 1.6em; max-width: 50%; }
.prose blockquote {
  margin: 2em 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--blue);
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--ink);
}
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose .wp-block-table { overflow-x: auto; }
.prose .wp-block-gallery { gap: 10px; }
.prose .wp-block-gallery img { border-radius: 8px; cursor: zoom-in; }
.prose .wp-block-separator { border: 0; height: 6px; width: 72px; background: var(--silver); margin: 2.4em 0; }
.prose .wp-block-button__link { display: inline-flex; min-height: 52px; align-items: center; padding: 0 28px; border-radius: 999px; background: var(--metal-btn); color: #fff; text-decoration: none; }

/* FAQ written as Details blocks */
.prose details { border-bottom: 1px solid var(--line); margin: 0; }
.prose details + details { margin-top: 0; }
.prose summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-family: var(--display);
  font-size: 1.3125rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.prose summary::-webkit-details-marker { display: none; }
.prose summary::after { content: "+"; color: var(--blue); font-family: var(--body); font-size: 1.5rem; line-height: 1; }
.prose details[open] summary::after { content: "\2013"; }
.prose details > :not(summary) { margin: 0 0 20px; }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; }
.post-tags a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--graphite); font-size: 0.875rem; text-decoration: none; }
.post-tags a:hover { border-color: var(--blue); color: var(--blue); }
.page-links { margin-top: 32px; display: flex; gap: 10px; }

/* ---------- Comments ---------- */
.comments { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.comment-list { margin: 24px 0 40px; padding: 0; list-style: none; }
.comment-list .comment { padding: 20px 0; border-bottom: 1px solid var(--line); }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-author img { border-radius: 50%; vertical-align: middle; margin-right: 10px; }
.comment-meta { font-size: 0.875rem; color: var(--muted); }
.comment-form p { margin: 0 0 16px; display: grid; gap: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea { width: 100%; padding: 12px 16px; border: 1px solid #cbd2d9; border-radius: 10px; font: inherit; }

/* Note for administrators on the Apartments page */
.admin-hint {
  max-width: 760px;
  margin: 0 auto 40px;
  padding: 14px 18px;
  border: 1px dashed #9aa4af;
  border-radius: 12px;
  background: #fffbe6;
  color: var(--graphite);
  font-size: 0.875rem;
  text-align: center;
}

/* ---------- Single apartment ---------- */
.apt-single { padding-bottom: 0; }
.apt-single > .wrap { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(64px, 8vw, 110px); }
.apt-title-link { color: inherit; text-decoration: none; }
.apt-title-link:hover { color: var(--blue); }
.apt-price { margin: 18px 0 0; font-family: var(--display); font-size: 1.375rem; font-weight: 500; color: var(--blue); }

.apt-strip {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
  height: clamp(280px, 40vw, 480px);
  margin-bottom: clamp(40px, 6vw, 72px);
}
.apt-strip-item {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--graphite);
  cursor: zoom-in;
}
.apt-strip-item:first-child { grid-row: 1 / -1; }
.apt-strip-item img { width: 100%; height: 100%; object-fit: cover; }
.apt-strip-item:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.apt-strip-more {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(4, 22, 46, 0.55);
  color: #fff;
  font-family: var(--display);
  font-size: 1.5rem;
}
@media (prefers-reduced-motion: no-preference) {
  .apt-strip-item img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
  .apt-strip-item:hover img { transform: scale(1.05); }
}

.apt-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.apt-main .prose { max-width: none; }
.apt-sub { margin: 40px 0 12px; }
.apt-booking { position: sticky; top: calc(var(--header-h) + 24px); }
.apt-booking-card {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 24px 50px rgba(7, 47, 95, 0.1);
}
.apt-booking-card h2 { margin: 0; }
.apt-booking-card .apt-price { margin: 6px 0 20px; }
.apt-booking-card .apt-enquire { width: 100%; margin-top: 16px; }

@media (max-width: 960px) {
  .apt-layout { grid-template-columns: minmax(0, 1fr); }
  .apt-booking { position: static; }
  .apt-strip { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; height: clamp(300px, 70vw, 520px); }
  .apt-strip-item:first-child { grid-column: 1 / -1; grid-row: auto; }
  .apt-strip-item:nth-child(n+4) { display: none; }
}

/* ---------- MotoPress Hotel Booking ---------- */
/* Forms and calendars rendered by the plugin's shortcodes, wrapped in .fa-mphb,
   and the plugin's own pages (search results, checkout) shown with page.php. */
.fa-mphb + .fa-mphb { margin-top: 24px; }
.fa-mphb form p,
.page-content .mphb_sc_search-form p,
.page-content .mphb_sc_checkout-form p { margin: 0 0 14px; }
.fa-mphb label,
.page-content [class*="mphb"] label { display: block; margin-bottom: 6px; font-size: 0.875rem; font-weight: 400; color: var(--graphite); }
.fa-mphb input[type="text"],
.fa-mphb input[type="email"],
.fa-mphb input[type="tel"],
.fa-mphb input[type="number"],
.fa-mphb select,
.fa-mphb textarea,
.page-content [class*="mphb"] input[type="text"],
.page-content [class*="mphb"] input[type="email"],
.page-content [class*="mphb"] input[type="tel"],
.page-content [class*="mphb"] input[type="number"],
.page-content [class*="mphb"] select,
.page-content [class*="mphb"] textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid #cbd2d9;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.fa-mphb input:focus-visible,
.fa-mphb select:focus-visible,
.page-content [class*="mphb"] input:focus-visible,
.page-content [class*="mphb"] select:focus-visible { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.fa-mphb input[type="submit"],
.fa-mphb button[type="submit"],
.fa-mphb .button,
.page-content [class*="mphb"] input[type="submit"],
.page-content [class*="mphb"] button[type="submit"],
.page-content [class*="mphb"] .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--metal-btn);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 6px 16px rgba(21,24,29,0.18);
  color: #fff;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}
.fa-mphb input[type="submit"]:hover,
.fa-mphb button[type="submit"]:hover,
.page-content [class*="mphb"] input[type="submit"]:hover,
.page-content [class*="mphb"] button[type="submit"]:hover { background: linear-gradient(180deg, var(--blue-bright) 0%, var(--blue) 60%, #0a4588 100%); }
.fa-mphb .mphb-required-fields-tip,
.page-content .mphb-required-fields-tip { font-size: 0.8125rem; color: var(--muted); }
.fa-mphb table,
.page-content [class*="mphb"] table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.fa-mphb th, .fa-mphb td,
.page-content [class*="mphb"] th,
.page-content [class*="mphb"] td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }

/* Availability calendar: keep it inside the card and on brand */
.fa-mphb-calendar { overflow-x: auto; }
.fa-mphb-calendar table { min-width: 260px; }
.fa-mphb-calendar a { color: var(--blue); }
.fa-mphb-calendar [class*="unavailable"],
.fa-mphb-calendar [class*="booked"] { color: var(--muted); text-decoration: line-through; }
