/* At Green Gallery – styles shared by every page (header, bottom menu, footer, colours, language). */

/* header */
      .header {
        background-color: rgba(0, 0, 0, 0);
        border: none;
        position: fixed;
        width: 100%;
        z-index: 99;
        margin-top: 5px;
      }
      .back-icon {
        height: 35px;
        margin-left: 10px;
        vertical-align: middle;
        display: inline-block;
      }
      .at-green-logo-box {
        text-align: center;
      }
      .at-green-logo {
        height: 45px;
        vertical-align: middle;
        display: inline-block;
        margin: auto;
      }
      .book-now-button {
        display: inline-block;
        width: 24%;
        color: white;
        background-color: rgba(7, 103, 77, 0.6);
        text-align: center;
        border-radius: 50px;
        font-size: 12px;
        margin-right: 5px;
        margin-top: 5px;
        width: 100px;
        height: 20px;
      }

      .language {
        margin-right: 5px;
        float: right;
      }
      .language-switch-bar {
        width: 100px;
      }

      /* menu bottom */
      .icon-bar {
        width: 100%;
        background-color: white;
        overflow: auto;
        position: fixed;
        bottom: 0;
        z-index: 80;
        -webkit-box-shadow: 0 0 15px 5px rgba(0, 0, 0, 0.2);
        box-shadow: 0 0 15px 5px rgba(0, 0, 0, 0.2);
        border-top: solid 1px rgba(0, 0, 0, 0.03);
        border-bottom: solid 1px rgba(0, 0, 0, 0.08);
      }
      .icon-bar a {
        float: left;
        width: 20%;
        text-align: center;
        padding: 4px 0;
        transition: all 0.3s ease;
        color: black;
        font-size: 12px;

        text-decoration: none;
        border-left: solid 1px rgba(0, 0, 0, 0.15);
      }
      .icon-bar a:hover {
        background-color: rgba(7, 103, 77, 1);
        color: white;
      }

      .active {
        background-color: rgba(7, 103, 77, 1);
        color: white;
      }
      .active span {
        color: white;
      }
      .active i {
        color: white;
      }

      /* footer */
      .ag-footer-container {
        background-color: #202020;
        padding-top: 10px;
        text-align: center;
      }
      .ag-footer-container span {
        font-size: 14px;
        color: white;
      }
      .ag-footer-container a {
        font-size: 14px;
        color: white;
      }
      .ag-footer-word {
        display: flex;
        flex-direction: row;
      }
      .ag-footer-word-left {
        text-align: right;
        flex: 0 50%;
        padding: 10px;
      }
      .ag-footer-word-right {
        text-align: left;
        flex: 0 50%;
        padding: 10px;
      }

      /* font */
      body {
        font-family: "Kanit", sans-serif;
      }

      /* main */
      :root {
        --main-green-color: rgba(7, 103, 77, 1);
        /* #07674d */
        --main-green-color-opacity: rgba(7, 103, 77, 0.7);
        --main-gold-color: #be965b;
        --main-brown-color: #653a2a;
        --main-dark-blue-color: rgb(41, 49, 88);
      }
      .main-top-container {
        background: url("../includes-image/main/swimming-pool.jpg");
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center center;
        background-attachment: fixed;
        width: 100%;
        height: 120px;
        display: flex;
      }
      .main-top-container-box {
        background-color: var(--main-green-color);
        height: 40px;
        width: 80%;
        padding: 5px;
        align-items: center;
        justify-content: center;
        margin-top: 55px;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        border-radius: 25px;
      }
      .main-top-container-box h1 {
        font-size: 20px;
        color: white;
      }

      /* change language */
      .thai {
        display: inline;
      }
      .english {
        display: none;
      }

/* ---------- added by the 2026 clean-up ---------- */

/* intrinsic width/height attributes reserve space; CSS still controls the size */
:where(img[width][height]) {
  height: auto;
}

/* language: html.lang-en is set in <head> before first paint.
   !important so page rules like `.life-style-title-box h3 { display: inline-block }`
   can't show the hidden language */
html:not(.lang-en) .english {
  display: none !important;
}
html.lang-en .thai {
  display: none !important;
}
html.lang-en .english {
  display: inline !important;
}

/* back button (was an <img onclick>) */
.back-btn {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* home-page review cards are now real links */
.card-link,
.card-link:hover {
  color: inherit;
  text-decoration: none;
}
.card-link .button {
  display: inline-block;
}

/* Messenger button (replaces the retired Facebook Customer Chat plugin) */
.chat-fab {
  position: fixed;
  right: 14px;
  bottom: 72px;
  z-index: 90;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--main-green-color);
  color: #fff;
  font-size: 26px;
  line-height: 52px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.chat-fab:hover,
.chat-fab:focus {
  color: #fff;
  background: #0a8a67;
}

.ag-footer-links {
  padding: 0 10px 10px;
  font-size: 13px;
}
.ag-footer-container .ag-footer-links a {
  font-size: 13px;
  color: #ddd;
}

:focus-visible {
  outline: 2px solid var(--main-gold-color);
  outline-offset: 2px;
}

/* the header .row sits outside a .container, so cancel Bootstrap's negative gutters
   (they made the page 15px wider than the phone screen) */
.header > .row {
  margin-left: 0;
  margin-right: 0;
}
