/*
Theme Name: w88
Theme URI: http://www.holiday-homes.org/
Author: Bunree Holidays
Description: Recreation of the Bunree Holiday Cottages & Apartments website (July 2019).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: w88
*/

:root {
  --w88-navy: #314966;
  --w88-page: #c2c1ba;
  --w88-gold: #e6d165;
  --w88-cream: #ebe2cd;
  --w88-muted: #a7abb1;
  --w88-ink: #444444;
  --w88-site: 1140px;
  --w88-font: "Open Sans", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { background: var(--w88-page); }

body {
  margin: 0;
  background: var(--w88-page);
  color: var(--w88-ink);
  font-family: var(--w88-font);
  font-size: 14px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }

a { color: var(--w88-cream); }

button,
input,
select,
textarea { font-family: inherit; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.w88-site {
  width: var(--w88-site);
  max-width: calc(100% - 28px);
  margin: 0 auto;
}

.w88-panel { background: var(--w88-navy); color: #fff; }

.w88-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 86px;
  padding: 4px 8px 4px 0;
  background: var(--w88-navy);
}

.admin-bar .w88-header { top: 32px; }

.w88-logo { display: block; line-height: 0; flex: 0 0 auto; }
.w88-logo img { display: block; height: 78px; width: auto; }

.w88-burger {
  display: none;
  width: 42px;
  height: 42px;
  margin-right: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.w88-burger span {
  display: block;
  height: 2px;
  margin: 6px 8px;
  background: var(--w88-gold);
}

.w88-nav { margin-left: auto; }
.w88-menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.w88-menu > li { position: relative; display: flex; align-items: center; }
.w88-menu > li + li::before {
  content: "|";
  color: var(--w88-gold);
  font-weight: 400;
  opacity: 0.85;
}
.w88-menu > li > a {
  display: block;
  padding: 10px 11px;
  color: var(--w88-gold);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.w88-menu > li > a:hover,
.w88-menu > li.current-menu-item > a,
.w88-menu > li.current_page_item > a,
.w88-menu > li.current-menu-ancestor > a,
.w88-menu > li.current-menu-parent > a {
  color: #fff;
}

.w88-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 10px;
  z-index: 50;
  min-width: 230px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #24384d;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}
.w88-menu li:hover > .sub-menu,
.w88-menu li:focus-within > .sub-menu { display: block; }
.w88-menu .sub-menu a {
  display: block;
  padding: 8px 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
}
.w88-menu .sub-menu a:hover,
.w88-menu .sub-menu .current-menu-item > a { color: var(--w88-gold); }

.w88-search-item { position: relative; }
.w88-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-left: 2px;
  border: 0;
  background: transparent;
  color: var(--w88-gold);
  cursor: pointer;
}
.w88-search-btn svg { width: 16px; height: 16px; fill: currentColor; }
.w88-searchform {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  width: 230px;
  padding: 8px;
  background: #24384d;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}
.w88-search-item.is-open .w88-searchform { display: block; }
.w88-searchform input[type="search"] {
  width: 100%;
  padding: 8px 10px;
  border: 0;
  background: #fff;
  color: #222;
  font-size: 13px;
}

.w88-body { display: flex; align-items: stretch; }
.w88-main {
  flex: 1 1 auto;
  min-width: 0;
  padding: 22px 28px 40px 32px;
  border-right: 1px solid rgba(255, 255, 255, 0.45);
}
.w88-rail { flex: 0 0 23%; }

.w88-main h1 {
  margin: 16px 0 12px;
  color: var(--w88-cream);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}
.w88-main h2,
.w88-main h3 {
  color: var(--w88-cream);
  font-weight: 700;
}
.w88-main p,
.w88-main li {
  margin: 0 0 14px;
  color: #fff;
  font-size: 14px;
  line-height: 1.75;
}
.w88-main ul { margin: 0 0 14px; padding-left: 22px; }
.w88-main li { margin-bottom: 6px; }
.w88-rates {
  width: 100%;
  margin: 0 0 18px;
  border-collapse: collapse;
  color: #fff;
}
.w88-rates caption {
  caption-side: top;
  margin: 0 0 12px;
  color: var(--w88-cream);
  font-size: 20px;
  font-weight: 700;
  text-align: left;
}
.w88-rates td {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  text-align: center;
  vertical-align: top;
  line-height: 1.45;
}
.w88-rates tr:first-child td,
.w88-rates tr:last-child td { font-weight: 700; color: var(--w88-cream); }
.w88-rates td:first-child { text-align: left; }

.w88-main a { color: var(--w88-cream); }
.w88-main a:hover { color: #fff; }
.w88-main strong { font-weight: 700; }

.w88-slider {
  position: relative;
  margin: 0 0 18px;
  background: #24384d;
  overflow: hidden;
}
.w88-slide { display: none; position: relative; }
.w88-slide.is-active { display: block; }
.w88-slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 845 / 321;
  object-fit: cover;
}
.w88-caption {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  max-width: 86%;
  padding: 10px 18px 12px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  text-align: center;
}
.w88-caption h2 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
}
.w88-caption p {
  margin: 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
}
.w88-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.w88-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}
.w88-dot.is-active { background: #fff; }

.w88-split {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.w88-split > * { flex: 1 1 0; min-width: 0; }
.w88-map iframe {
  display: block;
  width: 100%;
  height: 350px;
  border: 0;
  background: #d9d6cc;
}
.w88-map small { display: block; margin-top: 6px; font-size: 12px; }

.w88-comments {
  width: var(--w88-site);
  max-width: calc(100% - 28px);
  margin: 26px auto 8px;
  padding: 0 8px 8px 6px;
  color: var(--w88-ink);
}
.w88-comments h3 {
  margin: 0 0 12px;
  color: var(--w88-ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.w88-quote {
  min-height: 72px;
  margin: 0;
  padding: 0 0 0 16px;
  border: 0;
  border-left: 7px solid #6d6246;
  color: var(--w88-ink);
  font-size: 15.5px;
  line-height: 1.45;
}
.w88-quote p { margin: 0; }
.w88-quote .who {
  display: block;
  margin-top: 10px;
  color: #6d5d86;
  font-size: 13px;
}
.w88-tcontrols { margin-top: 8px; }
.w88-tcontrols button {
  margin-right: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: #6d5d86;
  font-size: 13px;
  cursor: pointer;
}
.w88-tcontrols button:hover { text-decoration: underline; }

.w88-footer {
  width: var(--w88-site);
  max-width: calc(100% - 28px);
  margin: 22px auto 0;
  min-height: 300px;
  padding: 42px 48px 48px;
  background: #b7b4a4 url("assets/images/footer_beige48391.jpg") center center / cover no-repeat;
  color: var(--w88-navy);
}
.w88-footer p { margin: 0 0 2px; font-size: 14px; line-height: 1.45; color: var(--w88-navy); }
.w88-footer a { color: var(--w88-navy); }
.w88-footer .w88-footer-name { font-weight: 700; }
.w88-footer .w88-footer-mail { display: inline-block; margin-top: 16px; }

.w88-socket {
  width: var(--w88-site);
  max-width: calc(100% - 28px);
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: var(--w88-navy);
  color: var(--w88-muted);
  font-size: 11px;
}
.w88-socket a { color: var(--w88-muted); font-size: 12px; text-decoration: none; }
.w88-socket a:hover { color: #fff; }
.w88-socket-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.w88-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  width: 36px;
  height: 36px;
  border: 0;
  background: #8d8d8d;
  color: #fff;
  font-size: 18px;
  line-height: 36px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
}
.w88-top.is-on { opacity: 1; pointer-events: auto; }

.w88-form h3 {
  margin: 0 0 14px;
  color: var(--w88-cream);
  font-size: 18px;
}
.w88-field { margin: 0 0 12px; }
.w88-field label {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 13px;
}
.w88-field abbr { text-decoration: none; color: var(--w88-gold); }
.w88-field input[type="text"],
.w88-field input[type="email"],
.w88-field select,
.w88-field textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #c5c1b4;
  background: #fff;
  color: #222;
  font-size: 14px;
}
.w88-field textarea { min-height: 110px; resize: vertical; }
.w88-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.w88-checks {
  display: flex;
  gap: 18px;
  margin: 4px 0 12px;
  color: #fff;
  font-size: 14px;
}
.w88-checks label { display: flex; align-items: center; gap: 6px; }
.w88-submit {
  display: inline-block;
  margin-top: 6px;
  padding: 9px 16px;
  border: 0;
  background: var(--w88-cream);
  color: var(--w88-navy);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.w88-submit:hover { background: #fff; }
.w88-note {
  margin: 0 0 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.w88-hp { position: absolute; left: -9999px; }

.w88-main .w88-search-page input[type="search"] {
  width: min(100%, 420px);
  padding: 8px 10px;
  border: 0;
  color: #222;
}
.w88-main .w88-results article { margin: 0 0 22px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.2); }
.w88-main .w88-results h2 { margin: 0 0 6px; font-size: 18px; }
.w88-main .w88-results h2 a { text-decoration: none; }

@media (max-width: 900px) {
  .w88-burger { display: block; }
  .w88-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #24384d;
    padding: 8px 0 14px;
  }
  .w88-header.is-open .w88-nav { display: block; }
  .w88-menu { display: block; }
  .w88-menu > li { display: block; }
  .w88-menu > li + li::before { content: none; }
  .w88-menu .sub-menu { position: static; display: block; box-shadow: none; background: transparent; min-width: 0; }
  .w88-menu .sub-menu a { padding-left: 28px; color: var(--w88-gold); }
  .w88-searchform { position: static; width: auto; margin: 6px 12px 0; }
  .w88-search-item.is-open .w88-searchform,
  .w88-searchform { display: block; }
  .w88-rail { display: none; }
  .w88-main { border-right: 0; padding: 18px 16px 32px; }
  .w88-split,
  .w88-form-grid,
  .w88-socket { display: block; }
  .w88-socket-menu { margin-top: 8px; }
  .w88-logo { max-width: calc(100% - 56px); }
  .w88-logo img { height: 56px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
  .w88-caption h2 { font-size: 18px; }
  .admin-bar .w88-header { top: 46px; }
}
