/* =========================
BASE TYPOGRAPHY
========================= */

body{
  font-family: Calibri, sans-serif;
  color:#000;
}

h1,h2,h3,h4,h5,h6{
  font-family: Cambria, serif;
  color:#000 !important;
}

h3,h4{
  font-size:26px;
}

/* =========================
LINKS
========================= */

a{
  color:#0000EE;
}

a:hover,
a:focus{
  color:#0000CC;
}

/* =========================
READABILITY
========================= */

p,
li{
  font-size:18px;
  line-height:1.75;
  margin-bottom:1.2em;
}

/* =========================
CONTENT WIDTH
========================= */

.entry-content,
.site-content,
.wp-block-post-content{
  max-width:900px;
  margin:auto;
}

/* =========================
SECTION SPACING
========================= */

h2{
  margin-top:1.8em;
  margin-bottom:.6em;
}

h3{
  margin-top:1.4em;
  margin-bottom:.4em;
}

/* =========================
IMAGES
========================= */

img{
  border:1px solid #084d50;
  max-width:100%;
  height:auto;
  display:block;
}

/* =========================
TABLES
========================= */

table{
  width:100%;
  border-collapse:collapse;
  margin:20px 0;
}

th,
td{
  padding:10px;
}

/* =========================
FIX GUTENBERG COLOR CLASSES
========================= */

.entry-content,
.wp-block-post-content{
  color:#000 !important;
}

.entry-content *,
.wp-block-post-content *{
  color:inherit !important;
}


/* ensure headings never turn blue */
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.wp-block-post-content h2,
.wp-block-post-content h3,
.wp-block-post-content h4,
.wp-block-post-content h5,
.wp-block-post-content h6{
  color:#000 !important;
}

/* Keep links blue */
.entry-content a,
.wp-block-post-content a{
  color:#0000EE !important;
}

.entry-content a:hover,
.wp-block-post-content a:hover{
  color:#0000CC !important;
}

/* Remove conflicting block backgrounds */
.entry-content .has-background-color,
.wp-block-post-content .has-background-color{
  background:transparent !important;
}

/* =========================
HOMEPAGE TITLE FIX
========================= */

.hide-homepage-title .entry-header,
.hide-homepage-title .entry-title,
.hide-homepage-title .page-title,
.hide-homepage-title .wp-block-post-title{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
}

/* =========================
OLD HOMEPAGE (page ID 19)
========================= */

/* body text white */
/* Old homepage links should be blue */

body.page-id-19 .entry-content a,
body.page-id-19 .wp-block-post-content a{
  color:#0000EE !important;
}

body.page-id-19 .entry-content a:hover,
body.page-id-19 .entry-content a:focus,
body.page-id-19 .wp-block-post-content a:hover,
body.page-id-19 .wp-block-post-content a:focus{
  color:#0000CC !important;
}


/* links white */
body.page-id-19 .entry-content a,
body.page-id-19 .wp-block-post-content a{
  color:#fff !important;
}

body.page-id-19 .entry-content a:hover,
body.page-id-19 .wp-block-post-content a:hover{
  color:#e0e0e0 !important;
}

/* H1 black */
body.page-id-19 h1,
body.page-id-19 .entry-title{
  color:#000 !important;
}

/* H2-H6 white */
body.page-id-19 h2,
body.page-id-19 h3,
body.page-id-19 h4,
body.page-id-19 h5,
body.page-id-19 h6,
body.page-id-19 .wp-block-heading{
  color:#fff !important;
}
/* Force ALL text inside content to white */
body.page-id-701 .entry-content,
body.page-id-701 .entry-content p,
body.page-id-701 .entry-content li,
body.page-id-701 .entry-content span,
body.page-id-701 .entry-content div,
body.page-id-701 .entry-content strong,
body.page-id-701 .entry-content em,
body.page-id-701 .entry-content blockquote {
    color: #ffffff !important;
}
/* Page 19: kill dark overlays and force light background */
body.page-id-19,
body.page-id-19 .wp-site-blocks,
body.page-id-19 main,
body.page-id-19 article,
body.page-id-19 .entry-content,
body.page-id-19 .wp-block-post-content,
body.page-id-19 .wp-block-group,
body.page-id-19 .wp-block-cover,
body.page-id-19 .wp-block-cover__inner-container {
    background: #f5f5f5 !important;
    background-color: #f5f5f5 !important;
    background-image: none !important;
}

/* Remove image/video/dim overlays */
body.page-id-19 .wp-block-cover__image-background,
body.page-id-19 .wp-block-cover__video-background,
body.page-id-19 .wp-block-cover__background,
body.page-id-19 .wp-block-cover::before,
body.page-id-19 .wp-block-cover::after,
body.page-id-19 .wp-block-group::before,
body.page-id-19 .wp-block-group::after,
body.page-id-19 main::before,
body.page-id-19 main::after,
body.page-id-19 article::before,
body.page-id-19 article::after {
    background: transparent !important;
    background-image: none !important;
    opacity: 0 !important;
    display: none !important;
    content: none !important;
}

/* Keep text readable */
body.page-id-19,
body.page-id-19 p,
body.page-id-19 li,
body.page-id-19 span,
body.page-id-19 div,
body.page-id-19 h1,
body.page-id-19 h2,
body.page-id-19 h3,
body.page-id-19 h4,
body.page-id-19 h5,
body.page-id-19 h6 {
    color: #000 !important;
}
/* Page 19: make headings black */
body.page-id-19 h1,
body.page-id-19 h2,
body.page-id-19 h3,
body.page-id-19 h4,
body.page-id-19 h5,
body.page-id-19 h6,
body.page-id-19 .wp-block-heading {
    color: #000000 !important;
}

/* Page 19: make links blue */
body.page-id-19 a {
    color: #1e73be !important; /* clean WP blue */
    text-decoration: underline;
}

/* Optional: hover state */
body.page-id-19 a:hover {
    color: #0d5ea8 !important;
}/* Page 19: FORCE all links to blue */
body.page-id-19 a,
body.page-id-19 a:link,
body.page-id-19 a:visited,
body.page-id-19 .entry-content a,
body.page-id-19 .wp-block-post-content a,
body.page-id-19 .wp-block-group a,
body.page-id-19 .wp-block-column a,
body.page-id-19 .wp-block-paragraph a,
body.page-id-19 .wp-block-heading a {
    color: #1e73be !important;
    text-decoration: underline !important;
}

/* Hover state */
body.page-id-19 a:hover,
body.page-id-19 .entry-content a:hover {
    color: #0d5ea8 !important;
}
.main-navigation ul.sub-menu a,
.main-navigation ul ul a,
.main-navigation .sub-menu a {
    color: #ffffff !important;
}
.main-navigation ul ul a {
    color: #ffffff !important;
}

.main-navigation ul ul a[href*="rentals"],
.main-navigation ul ul a[href*="hotels"] {
    color: #ffd700 !important;
    font-weight: 600;
}
.main-navigation ul ul a[href*="rentals"],
.main-navigation ul ul a[href*="hotels"],
.main-navigation ul ul a[href*="beach-houses"] {
    color: #ffd700 !important;
    font-weight: 600;
}

.main-navigation ul ul a[href*="rentals"]:hover,
.main-navigation ul ul a[href*="hotels"]:hover,
.main-navigation ul ul a[href*="beach-houses"]:hover {
    color: #ffd700 !important;
}
/* ===== GRID SYSTEM ===== */
.eb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 15px;
}

/* ===== BUTTON STYLE ===== */
.eb-button {
  display: block;
  text-align: center;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  text-decoration: none;
  color: #1e3a5f;
  font-weight: 600;
  transition: all 0.2s ease;
}

/* ===== HOVER EFFECT ===== */
.eb-button:hover {
  background: #1e3a5f;
  color: #ffffff;
  transform: translateY(-2px);
}

/* ===== PRIMARY BUTTON ===== */
.eb-button-primary {
  background: #1e3a5f;
  color: #ffffff;
  border: none;
}

.eb-button-primary:hover {
  background: #16324d;
}
/* ===== SECTION HEADER ===== */
.eb-grid-title {
  text-align: center;
  font-size: 22px;
  margin-top: 30px;
}
@media (max-width: 768px) {
  img {
    float: none !important;
    display: block;
    margin: 10px auto;
    width: 100%;
    height: auto;
  }
}
@media (max-width: 768px) {
  .wp-element-caption {
    display: none;
  }
}
@media (max-width: 768px) {

  /* =========================
     TEXT & UX IMPROVEMENTS
     ========================= */

  p {
    font-size: 17px;
    line-height: 1.65;
  }

  h2, h3 {
    line-height: 1.25;
    margin-top: 28px;
    margin-bottom: 12px;
  }

  a.wp-block-button__link,
  .wp-block-button__link {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 18px;
    margin-bottom: 10px;
  }

  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }

  li {
    margin-bottom: 8px;
    line-height: 1.55;
  }

  iframe {
    max-width: 100%;
  }


  /* =========================
     IMAGE & LAYOUT FIXES
     ========================= */

  img {
    float: none !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    height: auto;
  }

  .alignleft,
  .alignright {
    float: none !important;
    display: block !important;
    margin: 10px auto !important;
  }

  .wp-block-columns {
    display: block !important;
  }

  .wp-block-column {
    width: 100% !important;
    margin-bottom: 15px;
  }

  .wp-block-media-text {
    display: block !important;
  }

  .wp-block-media-text__media {
    margin-bottom: 10px;
  }

}
@media (max-width: 768px) {
  .wp-element-caption {
    display: none;
  }
}
/* Hide ALL image captions on mobile */
@media screen and (max-width: 768px) {

    figcaption,
    .wp-caption-text,
    .wp-element-caption,
    .blocks-gallery-caption,
    .gallery-caption,
    .wp-block-image figcaption,
    .wp-block-gallery figcaption {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

}
/* Sullivan's Island mobile menu visibility fix */
@media screen and (max-width: 768px) {

  .main-navigation,
  .main-navigation ul,
  .main-navigation li,
  .main-navigation ul ul,
  .main-navigation ul ul li,
  .menu,
  .menu-item {
    background: #ffffff !important;
  }

  .main-navigation a,
  .main-navigation a:link,
  .main-navigation a:visited,
  .main-navigation a:not(:hover),
  .main-navigation ul a,
  .main-navigation ul a:link,
  .main-navigation ul a:visited,
  .main-navigation ul ul a,
  .main-navigation ul ul a:link,
  .main-navigation ul ul a:visited,
  .menu a,
  .menu a:link,
  .menu a:visited,
  .menu-item a,
  .menu-item a:link,
  .menu-item a:visited {
    color: #1e3a5f !important;
    -webkit-text-fill-color: #1e3a5f !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: #ffffff !important;
  }

  .main-navigation a:hover,
  .main-navigation a:focus,
  .main-navigation a:active,
  .menu a:hover,
  .menu a:focus,
  .menu a:active {
    color: #1e3a5f !important;
    -webkit-text-fill-color: #1e3a5f !important;
    background: #ffffff !important;
  }
}
/* Gold mobile money links */
@media screen and (max-width: 768px) {

  .main-navigation ul ul a[href*="hotels"],
  .main-navigation ul ul a[href*="rentals"],
  .main-navigation ul ul a[href*="vacation-rentals"],
  .main-navigation ul ul a[href*="beach-houses"],
  .main-navigation ul ul a[href*="weddings"],
  .main-navigation ul ul a[href*="where-to-get-married"] {

    color: #b8860b !important;
    -webkit-text-fill-color: #b8860b !important;
    font-weight: 600;
  }

}