/* /staging/css/clubstyle-inside.css
   Styling for non-condo inside pages (location, etc.)
   Features slideshow that goes behind header like index page
*/

:root{
  --cg-ocean:#0b2b33;
  --cg-teal:#0f738a;
  --cg-bg:#eef4f7;
  --cg-card:#ffffff;
  --cg-text:#0b2b33;
  --cg-muted: rgba(11,43,51,.68);
  --cg-border: rgba(0,0,0,.10);
  --cg-subtitle: #036f9d;
}

*{ box-sizing:border-box; }

html, body{ 
  margin:0; 
  padding:0;
  height: 100%;
  background: transparent !important;
}

body.cg-inside{
  font-family: 'Raleway', sans-serif;
  color: var(--cg-text);
  background: transparent !important;
  line-height: 1.6;
}

/* ==========================================================
   SLIDESHOW HERO - Goes behind header like index page
   Height controlled by aspect-ratio in location.php inline styles
   ========================================================== */
.cg-hero-behind{
  position: relative;
  width: 100%;
  max-width: 1060px;
  margin: -36px auto 0;
  overflow: hidden;
  padding: 0;
  z-index: 1;
  background: rgba(238, 244, 247, 0.5);
}

.cg-hero-behind .cg-slideshow {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: transparent;
}

/* ------------------------------------------------------------
   HERO SLIDESHOW — LUXURY TIMING
   Calm, premium crossfade with clear dwell time
------------------------------------------------------------ */

.cg-hero-behind .cg-slideshow .cg-slideimg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  opacity: 0;

  /* Luxury fade: slow, smooth, intentional */
  transition: opacity 1.4s ease-in-out;

  /* Avoid flicker / repaint issues */
  will-change: opacity;
}

.cg-hero-behind .cg-slideshow .cg-slideimg.active {
  opacity: 1;
}

.cg-hero-behind > * {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Header sits on top of slideshow - transparent with blur like index */
.cg-header-band{
  position: relative;
  z-index: 100;
  background: rgba(255, 255, 255, 0.40);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--cg-teal);
}

.cg-header-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

.cg-logo-crest img{ 
  display: block; 
}

.cg-logo-crest,
.logo-crest {
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.40));
  will-change: filter;
}

.cg-brand-center{
  text-align: center;
  min-width: 0;
}

.cg-brand-image{
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

.cg-brand-tagline{
  margin-top: 6px;
  font-size: 14px;
  color: var(--cg-teal);
  font-family: 'Manrope', sans-serif;
}

.cg-header-right{
  text-align: right;
  white-space: nowrap;
  font-size: 13px;
  color: var(--cg-teal);
  font-family: 'Manrope', sans-serif;
}

/* ==========================================================
   NAVIGATION
   ========================================================== */
.cg-nav-band{
  background: var(--cg-teal);
  position: relative;
  z-index: 99;
}

.cg-nav-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.cg-nav{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
  align-items: center;
  font-family: 'Manrope', sans-serif;
}

.cg-nav a{
  display: block;
  padding: 12px 8px;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
}

.cg-nav a:hover{ 
  text-decoration: underline; 
}

.cg-has-sub{ 
  position: relative; 
}

.cg-subnav{
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: #ffffff;
  border: 1px solid var(--cg-border);
  border-radius: 10px;
  padding: 8px 0;
  min-width: 240px;
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
  z-index: 50;
}

.cg-subnav a{
  color: var(--cg-text);
  padding: 10px 14px;
}

.cg-has-sub:hover .cg-subnav{ 
  display: block; 
}

/* ==========================================================
   MAIN CONTENT WRAPPER
   ========================================================== */
.cg-wrap{
  max-width: 1060px;
  margin: 0 auto 0 auto;
  padding: 32px 36px 36px 36px;
  background: rgba(238, 244, 247, 0.5);
}

/* Page title - Raleway teal */
.cg-page-title {
  font-family: 'Raleway', sans-serif;
  font-size: 42px;
  font-weight: 300;
  color: var(--cg-teal);
  margin: 0 0 12px 0;
  text-align: center;
  line-height: 1.3;
}

/* Page subtitle - Manrope blue */
.cg-page-subtitle {
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  line-height: 1.5;
  margin: 0 0 10px 0;
  font-weight: 400;
  letter-spacing: 0.2px;
  color: var(--cg-subtitle);
  text-align: center;
}

/* BODY TEXT — Manrope */
.cg-page-body {
  font-family: 'Manrope', sans-serif !important;
  font-size: 18px;
  line-height: 2 !important;
  margin: 0;
  text-align: justify;
  font-weight: 300;
  letter-spacing: 0.2px;
  color: #4a4a4a;
}

/* ==========================================================
   CONTENT LAYOUT - Two column grid
   ========================================================== */
.cg-content-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 24px;
}

@media (min-width: 900px){
  .cg-content-grid{
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* Content text styling */
.cg-prose{
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--cg-text);
}

.cg-prose p{
  margin: 0 0 16px 0;
  text-align: justify;
}

.cg-prose p:last-child{
  margin-bottom: 0;
}

.cg-prose img{
  max-width: 100%;
  height: auto;
  display: block;
  margin: 16px 0;
}

/* Map container */
.cg-map-container{
  margin: 16px 0;
}

.cg-map-container iframe{
  max-width: 600px;
  max-height: 900px;
  border: 1px solid var(--cg-border);
  border-radius: 8px;
}



/* ==========================================================
   FOOTER 
   ========================================================== */
.footer {
  width: 100%;
  height: auto;
  padding: 32px 16px;

  /* Subtle Cayman-style gradient (lighter at top) */
  background: linear-gradient(
    180deg,
    rgba(24,142,165,0.95) 0%,
    rgba(15,115,138,0.92) 35%,
    rgba(9,85,104,0.92) 100%
  );

  /* Default footer text */
  color: #a6fcff;

  /* Typography */
  font-family: 'Manrope', sans-serif;
  font-size: 14.5px;
  line-height: 1.75;
  letter-spacing: 0.25px;
  font-weight: 400;
}

/* Centered footer content + prevent layout bleed */
.footer > div[align="center"] {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;

  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* Prevent any container/card styles from leaking in */
.footer * {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* Footer links (clean + modern) */
.footer a,
.footer .footlinks a {
  color: rgba(255,255,255,0.96) !important;
  text-decoration: none;
  font-weight: 500;
}

.footer a:hover,
.footer .footlinks a:hover {
  color: #b8fee2 !important;
  text-decoration: underline;
}

/* Footer link row */
.footlinks,
.footlinks a {
  font-size: 13.5px;
}

/* Secondary footer lines */
.footlines {
  font-size: 12.5px;
  opacity: 0.95;
}

/* Images in footer */
.footer img {
  max-width: 100%;
  height: auto;
}

/* ==========================================================
   FULL-BLEED FOOTER
   ========================================================== */
.cg-footer-wrap[data-bleed="1"] {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

/* Spread footer content wider */
.cg-footer-wrap[data-bleed="1"] .cg-footer-card {
  max-width: 1430px !important;
  margin: 0 auto !important;
}

/* Right-align contact column */
.cg-footer-wrap[data-bleed="1"] .cg-footer-col-contact {
  text-align: right !important;
}

.cg-footer-wrap[data-bleed="1"] .cg-footer-col-contact ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}


/* ==========================================================
   LOCATION PAGE SPECIFIC STYLES
   ========================================================== */

/* No gap before footer but keep internal padding */
body.page-location .cg-wrap {
  margin-bottom: 0 !important;
  padding-bottom: 36px !important;
}

body.page-location .cg-wrap > :last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* ==========================================================
   LOCATION PAGE HEADER & NAVIGATION
   ========================================================== */

/* Remove body background to prevent white fade at top */
body.cg-inside.page-location {
  background: transparent !important;
}

/* Add background image to entire page */
body.cg-inside.page-location::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/location/background-pastel-1920x1080.jpg') center center / cover no-repeat fixed;
  z-index: -1;
}

/* Remove gap between navbar and slideshow */
body.cg-inside.page-location .rowcont {
  margin: 0;
  padding: 0;
  clear: both;
  position: relative;
  z-index: 1000000;
}

/* Header wrapper - absolutely positioned over slideshow */
body.cg-inside.page-location .cg-header-nav-wrapper {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: 100%;
  max-width: 1060px;
}

/* Header styling matching condo pages */
body.cg-inside.page-location .header {
  padding: 14px 24px 8px 24px;
  height: auto;
  display: grid;
  grid-template-columns: 140px 1fr 200px;
  column-gap: 24px;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.40);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--cg-teal);
  position: relative;
  z-index: 5;
}

body.cg-inside.page-location .header .logo-crest {
  justify-self: start;
  align-self: center;
}

body.cg-inside.page-location .header .logo-crest img {
  width: 110px;
  height: auto;
  display: block;
  vertical-align: top;
}

body.cg-inside.page-location .header .headimgs {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  grid-column: 2;
  position: relative;
  z-index: 5;
}

body.cg-inside.page-location .header .logo-text {
  max-width: 475px;
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

body.cg-inside.page-location .header .cg-location-label {
  margin-top: 0px;
  font-family: "Garamond", "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 38px;
  letter-spacing: 0.2px;
  line-height: 1.00;
  color: #0f738a;
}

body.cg-inside.page-location .header .headtopright {
  justify-self: end;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding: 0;
  margin: 0;
  text-align: right;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: 18px;
  line-height: 17px;
  color: var(--cg-teal);
  font-style: italic;
  height: 100%;
}

/* Navigation matching condo pages */
body.cg-inside.page-location .nbarcont {
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  height: 40px;
  line-height: 36px;
  background: linear-gradient(180deg, #26a8c1 0%, #219ebb 55%, #1b86a0 78%, #166a80 100%);
  padding: 2px 0;
  display: block;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  outline: none !important;
}

body.cg-inside.page-location .nbar {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  position: relative;
  z-index: 1000000;
}

body.cg-inside.page-location .nbar > li {
  position: relative;
  margin: 0;
  padding: 0;
  float: none;
  list-style: none;
}

body.cg-inside.page-location .nbar li {
  list-style: none;
}

body.cg-inside.page-location .nbar li a,
body.cg-inside.page-location .nbar li li a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  letter-spacing: 0.2px;
  color: rgba(255,255,255,0.96);
  font-weight: 600;
  font-size: 13px;
  padding: 0 20px;
  height: 32px;
  line-height: 32px;
}

body.cg-inside.page-location .nbar li a:hover,
body.cg-inside.page-location .nbar li li a:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
}

body.cg-inside.page-location .nbar > li > a {
  position: relative;
}

body.cg-inside.page-location .nbar > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 14px;
}

body.cg-inside.page-location .nbar > li > ul {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% - 2px);
  background: linear-gradient(180deg, #26a8c1 0%, #219ebb 55%, #1b86a0 78%, #166a80 100%);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  padding: 6px 0;
  min-width: 9em;
  box-shadow: 0 14px 26px rgba(0,0,0,0.22);
  z-index: 1100000;
  list-style: none;
  margin: 0;
  overflow: hidden;
}

body.cg-inside.page-location .nbar > li:hover > ul,
body.cg-inside.page-location .nbar > li.hover > ul,
body.cg-inside.page-location .nbar > li > ul:hover {
  display: block;
  visibility: visible;
  opacity: 1;
}

body.cg-inside.page-location .nbar > li > ul a {
  padding: 9px 12px;
  white-space: nowrap;
  color: rgba(255,255,255,0.98);
  border-radius: 0;
  background: transparent;
  height: auto;
  justify-content: flex-start;
}

body.cg-inside.page-location .nbar > li > ul a:hover {
  background: rgba(255,255,255,0.14);
}

body.cg-inside.page-location .nbar > li > ul li + li a {
  border-top: 1px solid rgba(255,255,255,0.70);
}

/* Weather and phone styling */
body.cg-inside.page-location .weathert {
  margin: 0;
  border-collapse: collapse;
  font-size: 12.5px;
  line-height: 1.30;
  border: 0;
}

body.cg-inside.page-location .weathert td {
  padding: 0 6px 0 0;
  vertical-align: top;
  text-align: left;
  font-size: 12px;
  font-style: normal;
  font-family: verdana, arial, sans-serif;
}

body.cg-inside.page-location .weathert div {
  font-weight: 700;
  margin: 0;
  line-height: 1.30;
}

body.cg-inside.page-location .weathert span {
  display: inline-block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.30;
}

body.cg-inside.page-location .cg-phone,
body.cg-inside.page-location .style12aqua {
  margin: 0;
  font-weight: 400;
  text-align: right;
  line-height: 1.2;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: var(--cg-teal);
  font-style: normal;
}

body.cg-inside.page-location .headtopright .cg-phone {
  margin-top: auto;
}

/* Responsive header */
@media (max-width: 980px) {
  body.cg-inside.page-location .header {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    row-gap: 12px;
    padding: 14px 18px;
  }
  
  body.cg-inside.page-location .header .logo-crest {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
  }
  
  body.cg-inside.page-location .header .headimgs {
    grid-column: 1;
    grid-row: 2;
  }
  
  body.cg-inside.page-location .header .headtopright {
    grid-column: 1;
    grid-row: 3;
    justify-self: center;
    align-items: center;
    text-align: center;
  }
  
  body.cg-inside.page-location .cg-phone {
    text-align: center;
  }
  
  body.cg-inside.page-location .headtopright table {
    margin: 0 auto;
  }
}

/* ==========================================================
   DIVING PAGE (moved from inline <style> in diving.php)
   ========================================================== */
/* Zoom wrapper for scroll zoom effect */
  body.cg-inside.page-diving .cg-zoom-wrap,
  body.cg-inside.page-tennis .cg-zoom-wrap,
  body.cg-inside.page-gym .cg-zoom-wrap {
  width: 100%;
  
  margin: 30px 0;
  overflow: hidden;
  border-radius: 8px;
}

/* Amenity card slideshow */
  body.cg-inside.page-diving .cg-amenity-slideshow,
  body.cg-inside.page-tennis .cg-amenity-slideshow,
  body.cg-inside.page-gym .cg-amenity-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

  body.cg-inside.page-diving .cg-amenity-slideshow .cg-slide,
  body.cg-inside.page-tennis .cg-amenity-slideshow .cg-slide,
  body.cg-inside.page-gym .cg-amenity-slideshow .cg-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  transition: opacity 1s ease-in-out;
}

  body.cg-inside.page-diving .cg-amenity-slideshow .cg-slide.active,
  body.cg-inside.page-tennis .cg-amenity-slideshow .cg-slide.active,
  body.cg-inside.page-gym .cg-amenity-slideshow .cg-slide.active {
  opacity: 1;
  position: relative;
}

  body.cg-inside.page-diving .cg-amenity-slideshow .cg-slide:not(.active),
  body.cg-inside.page-tennis .cg-amenity-slideshow .cg-slide:not(.active),
  body.cg-inside.page-gym .cg-amenity-slideshow .cg-slide:not(.active) {
  position: absolute;
}





/* Feature lists styling */
  body.cg-inside.page-diving .cg-features-grid,
  body.cg-inside.page-tennis .cg-features-grid,
  body.cg-inside.page-gym .cg-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin: 30px 0;
}

/* Amenity highlight card */
  body.cg-inside.page-diving .cg-amenity-card,
  body.cg-inside.page-tennis .cg-amenity-card,
  body.cg-inside.page-gym .cg-amenity-card {
  background: rgba(247, 252, 254, 0.8);
  border: 1px solid var(--cg-border);
  border-radius: 12px;
  padding: 10px;
  margin: 30px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 768px) {
  body.cg-inside.page-diving .cg-amenity-card,
  body.cg-inside.page-tennis .cg-amenity-card,
  body.cg-inside.page-gym .cg-amenity-card {
    grid-template-columns: 500px 1fr;
  }
  
  body.cg-inside.page-diving .cg-amenity-card:has(.cg-amenity-card-img-placeholder),
  body.cg-inside.page-tennis .cg-amenity-card:has(.cg-amenity-card-img-placeholder),
  body.cg-inside.page-gym .cg-amenity-card:has(.cg-amenity-card-img-placeholder) {
    grid-template-columns: 1fr;
  }
}

  body.cg-inside.page-diving .cg-amenity-card-img,
  body.cg-inside.page-tennis .cg-amenity-card-img,
  body.cg-inside.page-gym .cg-amenity-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

  body.cg-inside.page-diving .cg-amenity-card-img-placeholder,
  body.cg-inside.page-tennis .cg-amenity-card-img-placeholder,
  body.cg-inside.page-gym .cg-amenity-card-img-placeholder {
  display: none;
}

  body.cg-inside.page-diving .cg-amenity-card-content,
  body.cg-inside.page-tennis .cg-amenity-card-content,
  body.cg-inside.page-gym .cg-amenity-card-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: left;
}

/* Center title and subtitle for cards without images */
.cg-amenity-card:has(.cg-amenity-card-img-placeholder) .cg-amenity-card-content h3,
  body.cg-inside.page-diving .cg-amenity-card:has(.cg-amenity-card-img-placeholder) .cg-amenity-card-content .cg-amenity-subtitle,
  body.cg-inside.page-tennis .cg-amenity-card:has(.cg-amenity-card-img-placeholder) .cg-amenity-card-content .cg-amenity-subtitle,
  body.cg-inside.page-gym .cg-amenity-card:has(.cg-amenity-card-img-placeholder) .cg-amenity-card-content .cg-amenity-subtitle {
  text-align: center;
  width: 100%;
}

  body.cg-inside.page-diving .cg-amenity-card-content h3,
  body.cg-inside.page-tennis .cg-amenity-card-content h3,
  body.cg-inside.page-gym .cg-amenity-card-content h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 38px;
  font-weight: 400;
  color: var(--cg-teal);
  margin: 0 0 12px 0;
  line-height: 1.4;
}

  body.cg-inside.page-diving .cg-amenity-card-content .cg-amenity-subtitle,
  body.cg-inside.page-tennis .cg-amenity-card-content .cg-amenity-subtitle,
  body.cg-inside.page-gym .cg-amenity-card-content .cg-amenity-subtitle {
  font-family: 'Manrope', sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--cg-subtitle);
  margin: 0 0 12px 0;
  line-height: 1.6;
}

  body.cg-inside.page-diving .cg-amenity-card-content .cg-amenity-body,
  body.cg-inside.page-tennis .cg-amenity-card-content .cg-amenity-body,
  body.cg-inside.page-gym .cg-amenity-card-content .cg-amenity-body {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: #6b5d54;
  margin: 0;
  line-height: 1.7;
}

  body.cg-inside.page-diving .cg-amenity-card-content .cg-amenity-body p,
  body.cg-inside.page-tennis .cg-amenity-card-content .cg-amenity-body p,
  body.cg-inside.page-gym .cg-amenity-card-content .cg-amenity-body p {
  color: #6b5d54;
  margin: 0 0 15px 0;
}

  body.cg-inside.page-diving .cg-amenity-card-content .cg-amenity-body p:last-child,
  body.cg-inside.page-tennis .cg-amenity-card-content .cg-amenity-body p:last-child,
  body.cg-inside.page-gym .cg-amenity-card-content .cg-amenity-body p:last-child {
  margin-bottom: 0;
}

/* Ensure all page body text uses brownish color */
.cg-page-body,
  body.cg-inside.page-diving .cg-page-body p,
  body.cg-inside.page-tennis .cg-page-body p,
  body.cg-inside.page-gym .cg-page-body p {
  color: #6b5d54;
}

/* Link styling - no underlines, color change on hover */
.cg-amenity-card-content .cg-amenity-body a,
  body.cg-inside.page-diving .cg-page-body a,
  body.cg-inside.page-tennis .cg-page-body a,
  body.cg-inside.page-gym .cg-page-body a {
  color: var(--cg-teal);
  text-decoration: none;
  transition: color 0.3s ease;
}

.cg-amenity-card-content .cg-amenity-body a:hover,
  body.cg-inside.page-diving .cg-page-body a:hover,
  body.cg-inside.page-tennis .cg-page-body a:hover,
  body.cg-inside.page-gym .cg-page-body a:hover {
  color: #2ba3b8;
  text-decoration: none;
}

@media (max-width: 767px) {
  body.cg-inside.page-diving .cg-amenity-card-img,
  body.cg-inside.page-tennis .cg-amenity-card-img,
  body.cg-inside.page-gym .cg-amenity-card-img {
    height: 250px;
  }
}

@media (min-width: 768px) {
  body.cg-inside.page-diving .cg-features-grid,
  body.cg-inside.page-tennis .cg-features-grid,
  body.cg-inside.page-gym .cg-features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

  body.cg-inside.page-diving .cg-feature-box,
  body.cg-inside.page-tennis .cg-feature-box,
  body.cg-inside.page-gym .cg-feature-box {
  background: rgba(255, 255, 255, 0.6);
  border: none;
  border-radius: 8px;
  padding: 20px;
}

  body.cg-inside.page-diving .cg-feature-box h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--cg-teal);
  margin: 0 0 15px 0;
}

  body.cg-inside.page-diving .cg-feature-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

  body.cg-inside.page-diving .cg-feature-box li {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #6b5d54;
  padding-left: 20px;
  position: relative;
}

  body.cg-inside.page-diving .cg-feature-box li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--cg-teal);
  font-weight: bold;
}

  body.cg-inside.page-diving .cg-services-section {
  background: rgba(247, 252, 254, 0.8);
  border: none;
  border-radius: 8px;
  padding: 25px;
  margin: 30px 0;
}

  body.cg-inside.page-diving .cg-services-section h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--cg-teal);
  margin: 0 0 20px 0;
  text-decoration: underline;
}

  body.cg-inside.page-diving .cg-services-section p {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--cg-text);
  margin: 0 0 15px 0;
}

  body.cg-inside.page-diving .cg-services-section p:last-child {
  margin-bottom: 0;
}

  body.cg-inside.page-diving .cg-services-section a {
  color: var(--cg-teal);
  text-decoration: none;
}

  body.cg-inside.page-diving .cg-services-section a:hover {
  text-decoration: underline;
}

/* Image grid for features */
  body.cg-inside.page-diving .cg-img-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 20px 0;
}

@media (min-width: 768px) {
  body.cg-inside.page-diving .cg-img-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

  body.cg-inside.page-diving .cg-img-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: none;
}

/* ------------------------------------------------------------
   4-piece assemble on scroll (scoped + stable)
   - Real quadrants (no clip-path)
   - Driven by CSS var --p (0..1)
------------------------------------------------------------ */
  body.cg-inside.page-diving .cg-assemble-wrap {
  position: relative;
  width: 100%;
  max-width: 1080px;
  aspect-ratio: 1080 / 720;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  --p: 0;
}

/* Each tile is a quadrant using the same background image */
  body.cg-inside.page-diving .cg-assemble-tile {
  position: absolute;
  width: 50%;
  height: 50%;
  background-image: var(--img);
  background-size: 200% 200%;
  background-repeat: no-repeat;
  will-change: transform;
  will-change: transform;

  transform: translate3d(0,0,0) scale(0.92);
  opacity: 1;
}

/* Real 2x2 quadrants */
.cg-assemble-tile.t1{ top:0;   left:0;   background-position:   0%   0%; }
.cg-assemble-tile.t2{ top:0;   left:50%; background-position: 100%   0%; }
.cg-assemble-tile.t3{ top:50%; left:0;   background-position:   0% 100%; }
.cg-assemble-tile.t4{ top:50%; left:50%; background-position: 100% 100%; }

/* Animate in: diagonal assemble + subtle scale + fade */
  body.cg-inside.page-diving .cg-assemble-wrap .t1 {
  transform: translate(calc(-80px * (1 - var(--p))), calc(-80px * (1 - var(--p)))) scale(calc(0.92 + 0.08 * var(--p)));
}
  body.cg-inside.page-diving .cg-assemble-wrap .t2 {
  transform: translate(calc(80px * (1 - var(--p))), calc(-80px * (1 - var(--p)))) scale(calc(0.92 + 0.08 * var(--p)));
}
  body.cg-inside.page-diving .cg-assemble-wrap .t3 {
  transform: translate(calc(-80px * (1 - var(--p))), calc(80px * (1 - var(--p)))) scale(calc(0.92 + 0.08 * var(--p)));
}
  body.cg-inside.page-diving .cg-assemble-wrap .t4 {
  transform: translate(calc(80px * (1 - var(--p))), calc(80px * (1 - var(--p)))) scale(calc(0.92 + 0.08 * var(--p)));
}

/* Mobile: simplify (show fully assembled) */
@media (max-width: 720px){
  .cg-assemble-wrap{ --p: 1 !important; }
  .cg-assemble-tile{ opacity: 1; transform: none !important; }
}

/* Reduced motion: show fully assembled */
@media (prefers-reduced-motion: reduce){
  .cg-assemble-wrap{ --p: 1 !important; }
  .cg-assemble-tile{ opacity: 1; transform: none !important; }
}

/* ==========================================================
   MOBILE AUTO-SCALE TWEAKS (DIVING, TENNIS & GYM)
   ========================================================== */
@media (max-width: 720px){
  body.cg-inside.page-diving .cg-wrap,
  body.cg-inside.page-tennis .cg-wrap,
  body.cg-inside.page-gym .cg-wrap{ padding: 22px 18px 26px 18px; }
  body.cg-inside.page-diving .cg-page-title,
  body.cg-inside.page-tennis .cg-page-title,
  body.cg-inside.page-gym .cg-page-title{ font-size: 32px; }
  body.cg-inside.page-diving .cg-page-subtitle,
  body.cg-inside.page-tennis .cg-page-subtitle,
  body.cg-inside.page-gym .cg-page-subtitle{ font-size: 18px; }
  body.cg-inside.page-diving .cg-zoom-wrap,
  body.cg-inside.page-tennis .cg-zoom-wrap,
  body.cg-inside.page-gym .cg-zoom-wrap{ margin: 18px 0; }
  body.cg-inside.page-diving .cg-features-grid,
  body.cg-inside.page-tennis .cg-features-grid,
  body.cg-inside.page-gym .cg-features-grid{ gap: 18px; }
  body.cg-inside.page-diving .cg-amenity-card,
  body.cg-inside.page-tennis .cg-amenity-card,
  body.cg-inside.page-gym .cg-amenity-card{ padding: 10px; }
  body.cg-inside.page-diving img,
  body.cg-inside.page-tennis img,
  body.cg-inside.page-gym img{ max-width: 100%; height: auto; }
}
