/* Container wrapper for centering the button */
.cta-wrapper {
  text-align: center;
  margin: 20px 0;
}

/* The yellow clickable button */
.cta-button {
  display: inline-block;
  background-color: #f7b733;
  color: white;
  padding: 16px 24px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  cursor: pointer;
  max-width: 90%;
}

/* Hover state — gives visual feedback */
.cta-button:hover {
  background-color: #e09e2d;
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}
/* Fix HivePress RentalHive grid issue on mobile when slider is off */
ul.hp-listings.hp-listing--grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap: 1.5rem !important;
  flex-wrap: wrap !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
  width: 100% !important;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

ul.hp-listings.hp-listing--grid > li.hp-listing {
  display: block;
  margin: 0 auto;
}
/* === WP-Polls Styling Upgrade: Pubs of Ireland 2025 === */


/* === WP-Polls Styling Upgrade: Pubs of Ireland 2025 === */

/* Two-column layout for poll options */
.wp-polls-ul {
  columns: 2;
  -webkit-columns: 2;
  -moz-columns: 2;
  column-gap: 40px;
  list-style-type: none;
  padding: 0;
  margin: 20px 0;
}

.wp-polls-ul li {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 500;
  color: #222;
}

/* Poll question styling */
.wp-polls h3 {
  font-size: 1.3em;
  padding: 10px 15px;
  background-color: #f9f9f9;
  border-left: 5px solid #007b55;
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: bold;
}

/* Vote button styling */
.wp-polls .Buttons {
  background: linear-gradient(135deg, #007b55 0%, #00996b 100%);
  border: none;
  color: white;
  padding: 10px 18px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 25px;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 10px;
}

.wp-polls .Buttons:hover {
  background: linear-gradient(135deg, #00684c 0%, #007f58 100%);
}

/* Guinness-style progress bar */
.wp-polls .pollbar {
  background: linear-gradient(to bottom, #f3e5ab 0%, #f3e5ab 10%, #1b1b1b 10%, #1b1b1b 100%);
  height: 24px;
  border-radius: 6px;
  margin-bottom: 10px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
  border: 1px solid #333;
  position: relative;
  overflow: hidden;
}

/* Head bubbles on top of Guinness bar */
.wp-polls .pollbar::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 5px;
  width: 90%;
  height: 4px;
  background: radial-gradient(circle, #ffffff 10%, transparent 10%) repeat-x;
  background-size: 6px 4px;
  opacity: 0.4;
}

/* Align result text above bar */
.wp-polls-ans {
  font-weight: 500;
  margin-bottom: 5px;
  color: #333;
}

/* Tighter spacing under poll */
.wp-polls {
  margin-bottom: 30px;
}

/* Total voters text cleanup */
.wp-polls-totalvotes {
  font-size: 14px;
  font-style: italic;
  color: #666;
  margin-top: 10px;
}
/* Mobile-friendly fix for WP-Polls two-column layout */
@media (max-width: 768px) {
  .wp-polls-ul {
    columns: 1 !important;
    -webkit-columns: 1 !important;
    -moz-columns: 1 !important;
  }

  .wp-polls-ul li {
    padding-bottom: 12px;
    border-bottom: 1px dashed #ccc;
    margin-bottom: 12px;
  }

  .wp-polls .Buttons {
    width: 100%;
    font-size: 18px;
    padding: 12px;
    border-radius: 8px;
  }

  .wp-polls h3 {
    font-size: 1.1rem;
    text-align: center;
  }
}

/* Center Nextend Social Login buttons site-wide */
.nsl-container .nsl-container-buttons{
  display:flex !important;
  justify-content:center !important;
}
.nsl-container .nsl-button{
  float:none !important;
  margin:0 auto !important;
}
/* Make the entire RentalHive header stick to the top */
.site-header{
  position: sticky;        /* modern browsers */
  position: -webkit-sticky;
  top: 0;                  /* pin to very top */
  z-index: 9999;           /* above page content & menus */
  background: #fff;        /* set your header bg so content doesn't bleed under */
  width: 100%;
}

/* If you're logged into WP, account for the admin bar height */
.admin-bar .site-header{ top: 32px; }
@media (max-width: 782px){
  .admin-bar .site-header{ top: 46px; }
}

/* Optional: add a subtle shadow when stuck */
.site-header.is-stuck,
.site-header{
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
/* Ensure blog post content always displays on mobile */
@media (max-width: 768px) {
  .entry-content, 
  .post-content, 
  .single-post .entry-content {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: none !important;
    overflow: visible !important;
  }
}
html, body { scroll-behavior: auto !important; }
/* Rounded corners for the hero Cover block on ALL screens */
.hero-rounded {
  border-radius: 20px;
  overflow: hidden;            /* clips child background on mobile */
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Apply radius to the dim overlay and background image/video */
.hero-rounded:before,
.hero-rounded .wp-block-cover__image-background,
.hero-rounded img,
.hero-rounded video {
  border-radius: 20px;
}

/* If the image still bleeds past the radius on some phones */
.hero-rounded .wp-block-cover__image-background {
  overflow: hidden;
  display: block;
}
/* REMOVE location block from homepage cards (not just hide visually) */
.home .hp-listing__location,
.home .hp-listing__location .hp-icon,
.home .hp-listing__location .hp-meta {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}
