/*
Theme Name: Best E Villas
Description: The approved Best E Villas design, with editable WordPress content and media.
Author: Ninja Tech Sol
Template: astra
Version: 1.0.0
Text Domain: bestevillas
*/

/* The original, page-specific design is enqueued before this small WP adapter. */
body.bev-site { min-width: 0; }
body.bev-site #wpadminbar img { width: auto; }
body.bev-site img { max-width: 100%; }
body.bev-site .rich-text > :first-child { margin-top: 0; }
body.bev-site .rich-text > :last-child { margin-bottom: 0; }
body.bev-site .gallery-main-frame { position: relative; }
body.bev-site .gallery-status {
  position: absolute; inset: auto 12px 12px; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 12px 16px; border-radius: 10px; background: #fff; color: #12373d;
  box-shadow: 0 2px 18px rgb(0 0 0 / 16%); font-size: 14px; line-height: 1.5;
}
body.bev-site .gallery-status[hidden], body.bev-site [data-gallery-retry][hidden] { display: none; }
body.bev-site [data-gallery-retry] {
  border: 1px solid currentColor; border-radius: 6px; background: #12373d; color: #fff;
  padding: 9px 14px; min-height: 44px; cursor: pointer; font: inherit;
}
body.bev-site [data-gallery-retry]:focus-visible { outline: 3px solid var(--coral, #ed8163); outline-offset: 3px; }
body.bev-site .gallery-thumbnail[aria-busy="true"]::after { border-color: var(--teal); }
body.bev-site .carousel-status {
  position: absolute; bottom: calc(100% + 10px); right: 0; width: min(280px, calc(100vw - 32px));
  padding: 10px 14px; border-radius: 10px; background: #fff; color: #12373d;
  box-shadow: 0 2px 18px rgb(0 0 0 / 16%); font-size: 14px; line-height: 1.5;
}
body.bev-site .carousel-status[hidden] { display: none; }
body.bev-site .property-facts li:nth-child(4n) { border-right: 0; }
body.bev-site .property-facts li:nth-child(n + 5) { border-top: 1px solid var(--line); }
@media (max-width: 740px) {
  body.bev-site .property-facts li { border-bottom: 0; }
  body.bev-site .property-facts li:nth-child(2n) { border-right: 0; }
  body.bev-site .property-facts li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
body.bev-site .guest-review-success,
body.bev-site .guest-review-alert { scroll-margin-top: calc(var(--header-height, 100px) + 24px); }
body.bev-site .screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
body.bev-site.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  body.bev-site.admin-bar .site-header { top: 46px; }
}
@media (max-width: 600px) {
  body.bev-site.admin-bar .site-header { top: 0; }
}
