/*
Theme Name: Ragnarsson
Description: Ett eget mobilanpassat tema för Ragnarsson Fastigheter.
Version: 0.11.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: ragnfast
License: GPL-2.0-or-later
*/

:root {
  --rf-bg: #fffdfa;
  --rf-surface: #ffffff;
  --rf-tint: #f6f4ef;
  --rf-hero: #fcfaf5;
  --rf-blue: #0033a0;
  --rf-blue-deep: #002678;
  --rf-ink: #121b27;
  --rf-muted: #53616b;
  --rf-line: #e2e0d9;
  --rf-radius: 1.375rem;
  --rf-max: 76rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--rf-bg); color: var(--rf-ink); font: 1rem/1.58 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--rf-blue); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid #a34300; outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { color: var(--rf-ink); line-height: 1.1; letter-spacing: -.035em; font-weight: 750; }
h1 { font-size: clamp(2.25rem, 6vw, 4.25rem); margin: .3em 0 .5em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.85rem); margin: 0 0 1rem; }
h3 { font-size: 1.2rem; margin: 0 0 .6rem; letter-spacing: -.02em; }
p { margin: 0 0 1.25rem; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
.rf-wrap { width: min(var(--rf-max), calc(100% - 3rem)); margin-inline: auto; }
.rf-narrow { max-width: 48rem; }
.rf-skip { position: fixed; z-index: 100; left: 1rem; top: -10rem; padding: .75rem 1rem; background: var(--rf-blue); color: white; }
.rf-skip:focus { top: 1rem; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); position: absolute !important; width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }

/* A short, sticky header leaves room for the mobile page. Navigation stays
   visible without JS; its disclosure enhancement never hides the login status. */
.rf-site-header { position: sticky; top: 0; z-index: 30; background: rgb(255 255 255 / 98%); border-bottom: 1px solid var(--rf-line); }
.rf-header-inner { width: min(var(--rf-max), calc(100% - 2rem)); }
.rf-header-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 78px; padding-block: .75rem; }
.rf-brand { display: block; max-width: 11rem; color: var(--rf-blue-deep); font-size: .95rem; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; text-decoration: none; }
.rf-brand--logo { width: 12rem; max-width: 12rem; min-width: 0; }
.rf-brand--logo .custom-logo-link { display: flex; align-items: center; min-height: 46px; }
.rf-brand img { width: 100%; height: auto; max-height: 60px; object-fit: contain; }
.rf-header-actions { display: flex; flex-shrink: 0; align-items: center; gap: .5rem; }
.rf-login { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; min-height: 46px; padding: .5rem 1rem; border-radius: 2rem; background: var(--rf-blue); color: white; font-size: .83rem; font-weight: 750; text-decoration: none; line-height: 1.2; white-space: nowrap; }
.rf-login:hover { background: var(--rf-blue-deep); }
.rf-login--pending { background: var(--rf-blue-deep); }
.rf-login small { font-size: .59rem; font-weight: 500; margin-top: .2rem; }
.rf-menu-toggle { display: none; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: var(--rf-blue-deep); color: white; }
.rf-menu-icon, .rf-menu-icon::before, .rf-menu-icon::after { display: block; width: 18px; height: 2px; background: currentColor; }
.rf-menu-icon { position: relative; }
.rf-menu-icon::before, .rf-menu-icon::after { content: ""; position: absolute; left: 0; }
.rf-menu-icon::before { top: -6px; }
.rf-menu-icon::after { top: 6px; }
.rf-menu-toggle[aria-expanded="true"] .rf-menu-icon { background: transparent; }
.rf-menu-toggle[aria-expanded="true"] .rf-menu-icon::before { top: 0; transform: rotate(45deg); }
.rf-menu-toggle[aria-expanded="true"] .rf-menu-icon::after { top: 0; transform: rotate(-45deg); }
.rf-navigation ul { display: grid; list-style: none; margin: 0; padding: .25rem 0 1rem; }
.rf-navigation li { margin: 0; }
.rf-navigation a { display: flex; align-items: center; min-height: 48px; padding: .7rem .25rem; border-bottom: 1px solid var(--rf-line); color: var(--rf-ink); font-weight: 650; text-decoration: none; }
.rf-navigation a:hover, .rf-navigation .current-menu-item > a { color: var(--rf-blue); text-decoration: underline; }
@media (max-width: 1099px) {
  .rf-js .rf-menu-toggle { display: inline-flex; }
  .rf-js .rf-navigation { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: .5rem 1rem; background: var(--rf-bg); border-bottom: 1px solid var(--rf-line); box-shadow: 0 16px 22px rgb(18 27 39 / 9%); max-height: calc(100dvh - 100px); overflow-y: auto; }
  .rf-js .rf-navigation.is-open { display: block; }
  .rf-js .rf-navigation ul { max-width: var(--rf-max); margin-inline: auto; }
}

.rf-button, .wp-element-button, .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 52px; padding: .8rem 1.3rem; border: 1px solid var(--rf-blue); border-radius: 2rem; background: var(--rf-blue); color: white; font-size: .95rem; font-weight: 750; line-height: 1.35; text-decoration: none; text-align: center; cursor: pointer; }
.rf-button:hover, .wp-element-button:hover, .wp-block-button__link:hover { background: var(--rf-blue-deep); color: white; }
.rf-button--quiet { background: transparent; color: var(--rf-blue); }
.rf-button--quiet:hover { background: var(--rf-surface); color: var(--rf-blue-deep); }
.rf-actions { display: grid; gap: .65rem; margin-top: 1.5rem; }
.rf-eyebrow { margin-bottom: .7rem; color: var(--rf-blue); font-size: .69rem; font-weight: 800; text-transform: uppercase; letter-spacing: .105em; }
.rf-lead { max-width: 38rem; color: var(--rf-muted); font-size: 1.02rem; }
.rf-text-link { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding-block: .5rem; font-size: .92rem; font-weight: 750; }
.rf-external-icon { display: inline-block; width: 1em; height: 1em; flex-shrink: 0; vertical-align: -.1em; }
.rf-home-hero { background: var(--rf-hero); }
.rf-hero { display: grid; gap: 1.75rem; padding-block: 2.5rem; align-items: center; }
.rf-hero h1 { max-width: 12ch; font-size: clamp(2.35rem, 10vw, 3.5rem); line-height: 1.12; letter-spacing: -.035em; margin: .65rem 0 1.25rem; overflow-wrap: anywhere; text-wrap: balance; }
.rf-hero .rf-actions { align-items: center; }
.rf-hero-secondary { justify-self: center; justify-content: center; padding-inline: .5rem; }
.rf-hero-figure { min-width: 0; margin: 0; }
.rf-hero-photo, .rf-hero-art { width: 100%; height: 274px; border-radius: var(--rf-radius); object-fit: cover; }
.rf-hero-photo { height: auto; max-height: 420px; aspect-ratio: 6 / 5; object-position: 45% center; }
.rf-hero-art { position: relative; overflow: hidden; isolation: isolate; background: #e9eff2; }
.rf-hero-art::before { content: ""; position: absolute; width: 54%; height: 78%; bottom: 0; left: 7%; background: #b9cdda; clip-path: polygon(0 16%, 50% 0, 100% 16%, 100% 100%, 0 100%); }
.rf-hero-art::after { content: ""; position: absolute; width: 42%; height: 67%; bottom: 0; right: 6%; background: #7f9fb6; clip-path: polygon(0 15%, 50% 0, 100% 15%, 100% 100%, 0 100%); }
.rf-art-lines { position: absolute; inset: 42% 21% 10%; z-index: 1; opacity: .85; background: repeating-linear-gradient(to right, transparent 0, transparent 19%, #ffffff 19%, #ffffff 25%); }
.rf-art-caption { color: var(--rf-muted); font-size: .72rem; padding-top: .5rem; }
.rf-section { padding-block: 3.5rem; }
.rf-section-intro { max-width: 42rem; margin-bottom: 1.6rem; }
.rf-section-intro > p:last-child { color: var(--rf-muted); margin-bottom: 0; }
.rf-section-heading { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.6rem; }
.rf-section-heading h2 { margin-bottom: 0; }
.rf-home-objects { background: var(--rf-tint); }
.rf-home-properties { background: var(--rf-tint); }

/* A real horizontal scroll area, visible hints and buttons. The dedicated
   search/archive pages are an alternative to discovering the swipe gesture. */
.rf-carousel { min-width: 0; }
.rf-carousel-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .85rem; }
.rf-swipe-hint { color: var(--rf-blue-deep); font-size: .78rem; font-weight: 700; margin: 0; }
.rf-carousel-buttons { display: none; gap: .5rem; }
.rf-js .rf-carousel-buttons { display: flex; }
.rf-scroll-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid #9bafb9; border-radius: 50%; background: transparent; color: var(--rf-blue-deep); font-size: 1.2rem; }
.rf-scroll-button:hover:enabled { background: var(--rf-surface); }
.rf-scroll-button:disabled { opacity: .4; }
.rf-object-track, .rf-property-track { display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: .1rem; padding: .35rem .15rem .9rem; scrollbar-width: thin; scrollbar-color: #8aa1af transparent; }
.rf-object-track > *, .rf-property-track > * { flex: 0 0 85%; min-width: 0; scroll-snap-align: start; }
.rf-object-card { display: flex; flex-direction: column; min-height: 250px; padding: 1.4rem; border-radius: var(--rf-radius); background: var(--rf-surface); }
.rf-object-card--featured { color: white; background: var(--rf-blue); }
.rf-object-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 1.4rem; border: 1px solid currentColor; border-radius: 50%; font-size: 1.1rem; }
.rf-object-card h3 { font-size: 1.3rem; color: inherit; }
.rf-object-card p { font-size: .92rem; margin-bottom: 1rem; }
.rf-object-card a, .rf-object-pending { margin-top: auto; font-size: .85rem; font-weight: 750; }
.rf-object-card a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; color: inherit; }
.rf-object-pending { padding-top: .7rem; font-weight: 500; }
.rf-home-objects .rf-text-link { margin-top: 1rem; }
.rf-steps ol { list-style: none; display: grid; padding: 0; margin: 0; }
.rf-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 1rem; padding-block: 1.4rem; border-top: 1px solid var(--rf-line); }
.rf-steps li > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--rf-tint); color: var(--rf-blue); font-weight: 750; }
.rf-steps h3 { font-size: 1.08rem; margin-top: .2rem; }
.rf-steps p { color: var(--rf-muted); font-size: .95rem; margin: 0; }
.rf-home-lifestyle { background: var(--rf-hero); }
.rf-lifestyle { display: grid; gap: 1.75rem; align-items: center; }
.rf-lifestyle-copy p:last-child { color: var(--rf-muted); margin-bottom: 0; }
.rf-lifestyle-image { min-width: 0; margin: 0; }
.rf-lifestyle-photo { width: 100%; height: 260px; object-fit: cover; object-position: 47% center; border-radius: var(--rf-radius); }
.rf-lifestyle-image figcaption { padding-top: .7rem; color: #3d505b; font-size: .72rem; }
.rf-tenant-band { padding-block: 3.5rem; background: var(--rf-blue-deep); color: white; }
.rf-tenant-inner { display: grid; gap: 1.5rem; }
.rf-tenant-band h2 { color: white; }
.rf-tenant-band .rf-eyebrow { color: #a3caff; }
.rf-tenant-links { display: grid; }
.rf-tenant-links a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 58px; padding-block: 1rem; border-top: 1px solid #53749e; color: white; font-weight: 650; text-decoration: none; }
.rf-tenant-links a:hover { text-decoration: underline; }

/* Shared page, property and contact templates retain their existing classes. */
.rf-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.rf-card { min-width: 0; overflow: hidden; border-radius: var(--rf-radius); background: var(--rf-surface); border: 1px solid var(--rf-line); }
.rf-card-image { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.rf-card-content { padding: 1.4rem; }
.rf-card :is(h2, h3) { margin: 0 0 .6rem; font-size: 1.2rem; letter-spacing: -.02em; }
.rf-card :is(h2, h3) a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.rf-card :is(h2, h3) a:hover { text-decoration: underline; }
.rf-card p:last-child { margin-bottom: 0; }
.rf-card-meta { color: var(--rf-muted); font-size: .9rem; }
.rf-card--address { border-top: 4px solid var(--rf-blue); }
.rf-card--address .rf-card-content { min-height: 220px; }
.rf-address-lines { white-space: pre-line; }
.rf-property-facts > div { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.rf-link-card { display: flex; flex-direction: column; align-items: flex-start; min-height: 180px; padding: 1.5rem; border: 1px solid var(--rf-line); border-radius: var(--rf-radius); color: var(--rf-ink); background: var(--rf-surface); text-decoration: none; }
.rf-link-card:hover { border-color: var(--rf-blue); background: var(--rf-hero); }
.rf-link-card strong { color: var(--rf-blue); font-size: 1.2rem; margin-bottom: .6rem; }
.rf-link-card span { font-size: .95rem; }
.rf-link-card .rf-arrow { margin-top: auto; padding-top: 1rem; color: var(--rf-blue); }
.rf-service-section { margin-block: .5rem 3.5rem; }
.rf-service-grid { grid-template-columns: minmax(0,1fr); }
.rf-service-grid + .rf-content { margin-top: 2.5rem; }
.rf-content .wp-block-details { border-bottom: 1px solid var(--rf-line); padding-block: .6rem; }
.rf-content .wp-block-details summary { padding-block: .65rem; min-height: 48px; color: var(--rf-blue-deep); font-weight: 650; cursor: pointer; }
.rf-content .wp-block-details[open] summary { margin-bottom: .5rem; }
.rf-empty { max-width: 48rem; padding: 1.5rem; border: 1px solid var(--rf-line); border-radius: var(--rf-radius); color: var(--rf-muted); }
.rf-empty p:last-child { margin: 0; }
.rf-page-header { padding-block: 2.5rem 1.5rem; }
.rf-page-header h1 { max-width: 50rem; overflow-wrap: anywhere; }
.rf-breadcrumb { font-size: .85rem; color: var(--rf-muted); margin-bottom: 1rem; }
.rf-breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; }
.rf-content { padding-bottom: 2.5rem; overflow-wrap: anywhere; }
.rf-content > * { max-width: 48rem; }
.rf-content .alignwide, .rf-content .alignfull { max-width: 100%; }
.rf-content h2 { margin-top: 2rem; }
.rf-content h3 { margin-top: 1.75rem; }
.rf-content ul, .rf-content ol { padding-left: 1.4rem; }
.rf-content .wp-block-gallery { margin-inline: 0; }
.single-rf_property .rf-content { max-width: 60rem; margin-inline: auto; }
.single-rf_property .wp-block-gallery.has-nested-images { --wp--style--unstable-gallery-gap: 1.25rem; max-width: 100%; gap: 1.25rem; margin-bottom: 2.5rem; }
.single-rf_property .wp-block-gallery.columns-1 { max-width: 45rem; margin-inline: auto; }
.single-rf_property .wp-block-gallery.has-nested-images figure.wp-block-image { flex-grow: 0; }
.single-rf_property .wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: var(--rf-radius); height: auto; object-fit: contain; }
@media (max-width: 599px) {
  .single-rf_property .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { width: 100%; }
}
.rf-content .wp-block-image figcaption { color: var(--rf-muted); font-size: .9rem; }
.rf-content .wp-block-columns { gap: 1.5rem; }
.rf-properties-intro { max-width: 44rem; color: var(--rf-muted); }
.rf-filter { display: flex; align-items: stretch; flex-wrap: wrap; gap: 1rem; margin-block: 1.5rem 2rem; }
.rf-field { display: flex; flex-direction: column; gap: .4rem; width: 100%; }
.rf-field label { font-size: .9rem; font-weight: 650; }
.rf-field select { min-height: 48px; padding: .65rem 2.5rem .65rem .8rem; border: 1px solid #8198a8; border-radius: .65rem; color: var(--rf-ink); background: var(--rf-surface); width: 100%; }
.rf-filter .rf-button { flex: 1; }
.rf-pagination { margin-block: 2rem; }
.rf-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: .35rem .75rem; border-radius: .5rem; }
.rf-pagination .current { color: white; background: var(--rf-blue); }
.rf-property-facts { display: flex; flex-wrap: wrap; gap: 1rem 2rem; padding-block: 1.25rem; margin-block: 1.5rem 2rem; border-block: 1px solid var(--rf-line); }
.rf-property-facts div { min-width: 9rem; }
.rf-property-facts dt { font-size: .8rem; color: var(--rf-muted); }
.rf-property-facts dd { margin: 0; font-weight: 650; }
.rf-property-cover { width: 100%; max-width: 60rem; height: auto; object-fit: contain; border-radius: var(--rf-radius); margin: 0 auto 2rem; }
.rf-contact-grid { display: grid; gap: 1.5rem; margin-block: 1rem 3rem; }
.rf-contact-block { padding: 1.5rem; border: 1px solid var(--rf-line); border-radius: var(--rf-radius); background: var(--rf-surface); }
.rf-contact-block h2 { font-size: 1.5rem; }
.rf-contact-block a { display: inline-flex; align-items: center; min-height: 44px; }
.rf-emergency { border-left: 3px solid var(--rf-blue); padding-left: 1.25rem; }
.rf-site-footer { padding-block: 3rem 2rem; background: var(--rf-surface); color: #40505c; }
.rf-footer-main { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 2rem; }
.rf-footer-title { max-width: 23rem; margin-bottom: .7rem; color: var(--rf-blue-deep); font-size: 1.05rem; font-weight: 750; }
.rf-footer-links { display: flex; flex-direction: column; align-items: flex-start; }
.rf-footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding-block: .4rem; color: inherit; }
.rf-footer-small { margin-top: 2rem; font-size: .8rem; }
.rf-footer-small p { margin-bottom: .35rem; }
.rf-development-banner { padding-block: .65rem; border-bottom: 1px solid #b8cad7; background: #d5e0e6; color: #203748; font-size: .78rem; line-height: 1.5; }
.rf-development-note { border-top: 1px dashed var(--rf-line); margin-top: 1.5rem; padding-top: 1rem; color: var(--rf-muted); font-size: .85rem; }
.wp-block-separator { border: 0; border-top: 1px solid var(--rf-line); margin-block: 2rem; }
.wp-block-quote { border-left: 3px solid var(--rf-line); margin-inline: 0; padding-left: 1.25rem; }
.wp-block-table { overflow-x: auto; }
.wp-block-table table { border-collapse: collapse; width: 100%; }
.wp-block-table th, .wp-block-table td { padding: .65rem; border-bottom: 1px solid var(--rf-line); text-align: left; }
@media (min-width: 600px) {
  .rf-wrap { width: min(var(--rf-max), calc(100% - 4rem)); }
  .rf-actions { display: flex; flex-wrap: wrap; }
  .rf-actions .rf-button { flex: 0 1 auto; }
  .rf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rf-service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rf-object-track > *, .rf-property-track > * { flex-basis: 46%; }
  .rf-section-heading { flex-direction: row; align-items: end; justify-content: space-between; }
  .rf-section-heading > .rf-text-link { flex-shrink: 0; }
  .rf-field { width: auto; min-width: 14rem; }
  .rf-filter { align-items: end; }
  .rf-filter .rf-button { flex: 0 1 auto; }
}
@media (min-width: 900px) {
  .rf-hero { grid-template-columns: 1.05fr .95fr; gap: 3rem; padding-block: 4rem; }
  .rf-hero h1 { font-size: clamp(2.6rem, 4.5vw, 4.25rem); }
  .rf-hero-photo, .rf-hero-art { height: 470px; }
  .rf-hero-photo { max-height: none; }
  .rf-section { padding-block: 5rem; }
  .rf-lifestyle { grid-template-columns: .8fr 1.2fr; gap: 3rem; }
  .rf-lifestyle-photo { height: 400px; }
  .rf-steps ol { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
  .rf-steps li { grid-template-columns: 1fr; }
  .rf-tenant-band { padding-block: 4.5rem; }
  .rf-tenant-inner { grid-template-columns: 1fr 1fr; align-items: start; gap: 4rem; }
  .rf-contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rf-service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (min-width: 1100px) {
  .rf-header-inner { display: flex; align-items: center; gap: 2rem; min-height: 88px; }
  .rf-header-top { display: contents; }
  .rf-brand { flex-shrink: 0; order: 1; max-width: 12rem; }
  .rf-brand--logo { width: 14rem; max-width: 14rem; }
  .rf-navigation { order: 2; margin-left: auto; }
  .rf-navigation ul { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; padding: 0; }
  .rf-navigation a { border: 0; font-size: .9rem; }
  .rf-header-actions { order: 3; }
  .rf-carousel-toolbar { display: none; }
  .rf-object-track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; }
  .rf-property-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .rf-object-card { padding: 1.25rem; }
  .rf-page-header { padding-top: 4rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rf-object-track, .rf-property-track { scroll-behavior: auto; }
}

.rf-social-links { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem 1.25rem; margin-block:1.5rem; }
.rf-social-links p { margin:0; font-weight:700; }
.rf-social-links a { display:inline-flex; align-items:center; min-height:44px; }

.rf-social-links .rf-social-icon { width:48px; height:48px; min-height:48px; justify-content:center; border-radius:50%; background:var(--rf-blue); color:white; border:1px solid transparent; }
.rf-social-icon svg { width:22px; height:22px; fill:currentColor; }
.rf-social-links .rf-social-icon:hover { background:var(--rf-blue-deep); }
.rf-social-links .rf-social-icon:focus-visible { outline:3px solid var(--rf-blue); outline-offset:4px; }
.rf-social-links p { flex-basis:100%; }

.rf-lifestyle-photo { object-position:38% center; }

.rf-property-next { margin-block:2rem 3rem; padding:1.5rem; border:1px solid var(--rf-line); border-radius:var(--rf-radius); background:var(--rf-hero); }
.rf-property-next h2 { margin-block:.5rem 1rem; }
.rf-property-next > p:not(.rf-eyebrow) { max-width:44rem; color:var(--rf-muted); }
.rf-property-next .rf-text-link { justify-content:center; }
@media (min-width:600px) { .rf-property-next { padding:2rem; } .rf-property-next .rf-actions { display:flex; flex-wrap:wrap; align-items:center; gap:1rem 1.5rem; } }

.rf-town-card { display:flex; flex-direction:column; gap:.75rem; padding:1.5rem; border:1px solid var(--rf-line); border-radius:var(--rf-radius); background:white; color:var(--rf-ink); text-decoration:none; }
.rf-town-card h3 { color:var(--rf-blue); margin:0; font-size:1.6rem; }
.rf-town-card .rf-text-link { margin-top:auto; color:var(--rf-blue); }
.rf-town-card:hover { border-color:var(--rf-blue); background:var(--rf-hero); }
.rf-town-areas ul { display:flex; flex-wrap:wrap; gap:.75rem; list-style:none; padding:0; }
.rf-town-areas li { padding:.55rem 1rem; border-radius:2rem; background:var(--rf-hero); border:1px solid var(--rf-line); }
.rf-towns { clear:both; }
@media (min-width:768px) { .rf-town-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }

.rf-wrap > .rf-towns { padding-inline:0; }

.rf-footer-towns { display:flex; gap:.75rem 1.5rem; flex-wrap:wrap; margin-top:1rem; }
.rf-footer-towns a { display:inline-flex; align-items:center; min-height:44px; }

/* Review revision: compact search choices and photographic town entrances. */
.rf-town-card { padding:0;overflow:hidden;display:flex;flex-direction:column;gap:0; }
.rf-town-copy { padding:1.4rem;flex:1; }
.rf-town-copy p { margin:.25rem 0 1rem; }
.rf-town-actions { display:grid;gap:.4rem; }
.rf-town-actions a { display:inline-flex;align-items:center;gap:.45rem;min-height:44px;width:fit-content; }
.rf-town-photo { width:100%;aspect-ratio:2/1;object-fit:cover;object-position:50% 55%; }
.rf-town-photo--pending { min-height:140px;background:linear-gradient(135deg,#dfe9e5,#c6d5e8);display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--rf-blue-deep); }
.rf-town-photo--pending span { font-size:1.8rem;letter-spacing:.08em; }
.rf-town-photo--pending small { font-size:.75rem; }
.rf-search-header { padding-block:2rem 1rem; }
.rf-search-header .rf-eyebrow { margin-bottom:.35rem; }
.rf-search-header h1 { margin:.15em 0 .4em; }
.rf-search-header .rf-lead { max-width:42rem;color:var(--rf-muted);font-size:1rem;line-height:1.6; }
.rf-search-page .rf-service-section { margin:0 0 1.75rem; }
.rf-search-types { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem; }
.rf-search-type { display:flex;flex-direction:column;align-items:flex-start;gap:.35rem;min-width:0;min-height:132px;padding:1rem;border:1px solid var(--rf-line);border-radius:1rem;background:var(--rf-surface);color:var(--rf-ink);text-decoration:none; }
.rf-search-type:hover { border-color:#b3b9be;background:var(--rf-hero); }
.rf-search-type strong { font-size:1rem;line-height:1.3;font-weight:650;letter-spacing:-.01em;color:inherit; }
.rf-search-type-description { color:var(--rf-muted);font-size:.85rem;line-height:1.45; }
.rf-search-type .rf-text-link { font-size:.85rem;line-height:1.4;font-weight:600;margin-top:auto;display:inline-flex;align-items:center;gap:.4rem;min-height:30px;padding:.35rem 0 0;color:var(--rf-blue);text-decoration:underline; }
.rf-search-arrow { width:18px;height:18px;flex-shrink:0; }
.rf-emergency-phone { display:flex;flex-wrap:wrap;align-items:baseline;gap:.2rem .5rem; }
.rf-emergency-phone>a, .rf-emergency-label { white-space:nowrap; }
.rf-search-interest { margin:0 0 .5rem;padding:1.25rem 0;border-top:1px solid var(--rf-line); }
.rf-search-interest p { margin-bottom:.6rem;color:var(--rf-ink);font-size:.9rem; }
.rf-search-interest strong { display:block;font-size:1rem; }
.rf-search-interest>.rf-text-link { display:inline-flex;align-items:center;gap:.4rem;min-height:44px;font-size:.9rem; }
.rf-guide-grid { margin:0 0 1.5rem; }
.rf-guide-card { overflow:hidden;border:1px solid var(--rf-line);border-radius:1.25rem;background:var(--rf-surface); }
.rf-guide-picture { position:relative;margin:0;aspect-ratio:3/2;overflow:hidden;background:var(--rf-tint); }
.rf-guide-picture img { width:100%;height:100%;object-fit:cover; }
.rf-guide-atlas img { position:absolute;width:302%;max-width:none;height:302%;left:calc(var(--x)*-101%);top:calc(var(--y)*-101%);object-fit:fill; }
.rf-guide-picture-link { display:block; }
.rf-guide-card-copy { padding:1.25rem; }
.rf-guide-card h2 { font-size:1.4rem;line-height:1.2;letter-spacing:-.02em;margin:0 0 .6rem; }
.rf-guide-card h2 a { color:var(--rf-ink);text-decoration:none; }
.rf-guide-card p { font-size:.95rem;color:var(--rf-muted); }
.rf-guide-card .rf-text-link { display:inline-flex;gap:.5rem;min-height:44px;align-items:center; }
.rf-guide>.rf-guide-picture { max-width:48rem; }
.rf-image-note { color:var(--rf-muted);font-size:.75rem;margin:.75rem 0 2rem; }
.rf-guide-help { padding:2rem 0 3rem;border-top:1px solid var(--rf-line); }
.rf-guide-help h2 { font-size:1.6rem; }
@media(min-width:700px){ .rf-search-types{grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}.rf-search-type{min-height:138px;padding:1.25rem}.rf-search-interest{display:flex;align-items:center;justify-content:space-between;gap:1.5rem}.rf-search-interest p{margin:0}.rf-search-interest>.rf-text-link{flex-shrink:0} }
