/* Tenderling Craft theme (Wilshire Skyline, The Line Collection) — shared corrections */

/* The logo link had no height, so its focus ring drew around nothing */
.site--header .logo .link { display: inline-block; }

/* Property tiles, gallery and accommodation captions appear only on mouse hover;
   they now also appear when a keyboard user tabs onto them (WCAG 2.4.7 / 1.4.13) */
.page--properties .grid-nav .grid-item.button-block .pattern .circle-button:focus,
.page--properties .grid-nav .grid-item.button-block .pattern .circle-button:focus-visible { opacity: 1; }
.page--gallery .gallery-photos .items .item:focus-within .overlay,
.comp--accommodation-display .accommodations .accommodation:focus-within .overlay { opacity: 1; pointer-events: auto; }

/* "Site by" credit: #426d87 on #d9e1e7 was 4.2:1 -> #3e667f = 4.65:1 */
.h-type .footer-credit, .h-type .footer-credit a { color: #3e667f; }

/* Header "Locations" dropdown opens on hover only; it now also opens while a keyboard user is inside it */
.site--header .desktop .nav .dropdown:focus-within { opacity: 1; pointer-events: auto; }

/* Carousel arrows: the carousel script removes their focus outline */
.slick-prev:focus-visible, .slick-next:focus-visible { outline: 3px solid #fff !important; box-shadow: 0 0 0 6px #1a1a1a !important; }

/* Phone width: the decorative lines either side of section headings reach 72px beyond the heading and
   made the page scroll sideways at 320px (WCAG 1.4.10). Hidden below 600px; the heading is unchanged. */
@media (max-width: 600px) { .h-type h2:before, .h-type h2:after, .h-type .h2:before, .h-type .h2:after, .h-type > h2:last-child:after, .h-type > .h2:last-child:after { display: none !important; width: 0 !important; left: auto !important; right: auto !important; } }
/* On small screens the tile name must wrap inside its tile even with wide text spacing (WCAG 1.4.12) */
@media (max-width: 600px) { .page--properties .button-block .circle-button > span { font-size: .95rem; letter-spacing: .02em; line-height: 1.3; padding: .25em .5em; max-width: 96%; overflow-wrap: anywhere; } }
@media (max-width: 600px) { .page--properties .button-block .circle-button { padding: 0 !important; } .page--properties .button-block .circle-button > span { font-size: .82rem; letter-spacing: 0; padding: .2em .4em; } }

/* Phones: the policy, Do Not Sell and Cookie Settings links are kept on small screens; spaced so they do not run together */
@media screen and (max-width: 63.99em) {
  .site--footer .nav .list { gap: .35rem 1.1rem; align-items: center; }
  .site--footer .nav .list .item.keep-on-mobile .footer-nav:after { content: none; }
  .site--footer .nav .list .item.keep-on-mobile .link { display: inline-block; padding: .3rem 0; }
}

/* Home tiles (Properties, Partnerships, Investors, About Us): on hover the text went #426d87 on #d9e1e7,
   4.21:1 -> #3e667f = 4.65:1, the same fix as the footer credit */
.page--home .grid-nav .grid-item.button-block .pattern .circle-button:hover { color: #3e667f; }

/* Contact form "May we publish your comments?": the theme hid the YES/NO radios with display:none, so the
   keyboard could not reach or change them (WCAG 2.1.1). They are now visually hidden but focusable (Tab to the
   group, arrow keys choose); the YES/NO boxes look as before and show the site's focus ring. */
.comp--contact-form .radio-group label { position: relative; }
.comp--contact-form input[type="radio"] { display: block; position: absolute; top: 0; left: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
.comp--contact-form input[type="radio"]:focus-visible + .box { outline: 3px solid #ffffff; outline-offset: 2px; box-shadow: 0 0 0 6px #1a1a1a; }
/* YES/NO text was #61b7bc on white, and white on #61b7bc once chosen: 2.33:1 -> #377d81 (same hue) = 4.76:1 */
.comp--contact-form .box span { color: #377d81; }
.comp--contact-form input[type="radio"]:checked + .box { background-color: #377d81; }

/* Hover and focus gold. The theme turns links gold #b29041 on hover (3.01:1 on white) and buttons gold
   with white text (3.01:1). The same gold, darker (#806428), passes on white and on the light panels:
   5.57:1 on white, 4.99:1 on #f4f2f0. */
.comp--body a:hover, .comp--small-text a:hover,
.daterangepicker .cancelBtn:focus, .daterangepicker .cancelBtn:hover, .daterangepicker .cancelBtn:active,
.featherlight .featherlight-close-icon:hover,
.site--header .desktop .nav .dropdown .dropdown-link:hover { color: #806428; }
.daterangepicker .applyBtn:focus, .daterangepicker .applyBtn:hover, .daterangepicker .applyBtn:active { background-color: #806428; }
/* Buttons (e.g. "See the LA Times Feature Story") turned light teal #61b7bc on hover with white text
   (2.33:1); a deeper teal of the same hue passes (5.35:1). */
.h-type .button:hover { background-color: #2b7579; }

/* footer: menu links (with Contact) on the first row, the policy links start a new row (Kenia, 9 Nov) */
.site--footer .nav .list .a11y-row-break { display: none; }
@media screen and (min-width: 64em) { .site--footer .nav .list .a11y-row-break { display: block; flex-basis: 100%; height: 0; margin-bottom: -.35rem; } }
