/*
Theme Name: BALIVI VILLA BULANAN – Tropical Reference Design
Theme URI: https://balivillainternational.com/
Author: BALIVI
Author URI:
Description: Power by Bootstrap v.4.5
License URI: https://balivillainternational.com/
Text Domain: Bali Villa International
Domain Path: /languages/
Tags: two-columns, right-sidebar
This theme built with Twitter Bootstrap v.4. It is basic theme with basic style for build new theme with Bootstrap.
*/

/*
Required WordPress CSS
*/

/* Menimpa lebar container global Bootstrap */
.container {
  max-width: 900px !important; /* Mengatur lebar container menjadi 780px */
}

.aligncenter {
	display: block;
	margin-right: auto;
	margin-left: auto;
}
.alignleft {
	display: inline;
	float: left;
	margin-right: 1.5em;
}
.alignright {
	display: inline;
	float: right;
	margin-left: 1.5em;
}
.bypostauthor {
}
/* WordPress gallery */
.gallery-caption {
}
.gallery {
	margin-bottom: 1.6em;
}
.gallery-item {
	display: inline-block;
	padding: 1.79104477%;
	text-align: center;
	vertical-align: top;
	width: 100%;
}
.gallery-columns-2 .gallery-item {
	max-width: 50%;
}
.gallery-columns-3 .gallery-item {
	max-width: 33.33%;
}
.gallery-columns-4 .gallery-item {
	max-width: 25%;
}
.gallery-columns-5 .gallery-item {
	max-width: 20%;
}
.gallery-columns-6 .gallery-item {
	max-width: 16.66%;
}
.gallery-columns-7 .gallery-item {
	max-width: 14.28%;
}
.gallery-columns-8 .gallery-item {
	max-width: 12.5%;
}
.gallery-columns-9 .gallery-item {
	max-width: 11.11%;
}
.gallery-icon img {
	margin: 0 auto;
}
.gallery-caption {
	color: #707070;
	color: rgba(51, 51, 51, 0.7);
	display: block;
	font-family: "Noto Sans", sans-serif;
	font-size: 12px;
	font-size: 1.2rem;
	line-height: 1.5;
	padding: 0.5em 0;
}
.gallery-columns-6 .gallery-caption, .gallery-columns-7 .gallery-caption, .gallery-columns-8 .gallery-caption, .gallery-columns-9 .gallery-caption {
	display: none;
}
.sticky {
}
.wp-caption {
	border: 1px solid #ccc;
	margin-bottom: 1.5em;
	max-width: 100%;
}
.wp-caption img[class*="wp-image-"] {
	display: block;
	margin: 1.2% auto 0;
	max-width: 98%;
}
.wp-caption-text {
	text-align: center;
}
.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}
/* Text meant only for screen readers. */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}
.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-size: 0.875rem;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000; /* Above WP toolbar. */
}




/* ==========================================================
   VISUAL DESIGN LAYER ADAPTED FROM BALIVI MASTER THEME
   Original Villa Bulanan PHP templates and functionality retained.
   ========================================================== */
/* ==========================================================
   BALIVI VILLA RENTAL — BRIGHT TROPICAL CSS PALETTE
   CSS ONLY. No PHP, JS, HTML, template or feature changes.
   Palette: airy white, tropical teal, coral and warm sand.
   ========================================================== */
:root {
  --bvi-primary: #087f8c;
  --bvi-primary-dark: #066572;
  --bvi-primary-soft: #e8f6f5;
  --bvi-accent: #ff8066;
  --bvi-accent-dark: #ed684f;
  --bvi-sun: #f5c85b;
  --bvi-sand: #fff8ec;
  --bvi-ink: #243746;
  --bvi-body: #526473;
  --bvi-muted: #7b8994;
  --bvi-line: #e7edf0;
  --bvi-white: #ffffff;
  --bvi-shadow: 0 10px 28px rgba(27, 59, 72, .08);
}

/* Base and typography */
html, body {
  background: var(--bvi-white) !important;
  color: var(--bvi-body) !important;
}
body {
  background-image: none;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6,
.entry-title, .page-title, .balivi-section-title,
.villa-title, .balivi-villa-title,
.related-villa-title, .location-card h3 {
  color: var(--bvi-ink) !important;
}
p, li, .entry-content, .villapage,
.villa-description, .balivi-description,
.related-villa-excerpt {
  color: var(--bvi-body);
}
a, .entry-content a, .villapage a {
  color: var(--bvi-primary);
  transition: color .2s ease, background-color .2s ease;
}
a:hover, .entry-content a:hover, .villapage a:hover {
  color: var(--bvi-accent-dark);
  text-decoration-color: currentColor;
}

/* Airy white page surfaces */
.container, .container-fluid, .site-content,
.entry-content, .villapage, .villa-content,
.villapage-content, .balivi-full-description,
.calendar-wrapper, .rate-detail {
  color: var(--bvi-body);
}
.villapage, .villa-content, .entry-content {
  background-color: var(--bvi-white);
  border-color: var(--bvi-line) !important;
}
hr, .villa-divider {
  border-color: var(--bvi-line) !important;
}

/* Main navigation: white and fresh tropical accent */
.menu-bar, .balivi-nav, .navbar-light,
.navbar.navbar-light, .navbar.navbar-dark {
  background: var(--bvi-white) !important;
  border-color: var(--bvi-line) !important;
  box-shadow: 0 3px 16px rgba(27, 59, 72, .045);
}
.balivi-nav .navbar-nav .nav-link,
.navbar-light .navbar-nav .nav-link,
.navbar-dark .navbar-nav .nav-link,
.navbar .navbar-brand {
  color: var(--bvi-ink) !important;
  font-weight: 600;
}
.balivi-nav .nav-link:hover,
.navbar .nav-link:hover,
.navbar-light .navbar-nav .active > .nav-link,
.navbar .nav-item.active > .nav-link {
  color: var(--bvi-primary) !important;
}
.navbar-toggler {
  border-color: #cfe2e5 !important;
  background: var(--bvi-primary-soft) !important;
}
.dropdown-menu {
  background: var(--bvi-white) !important;
  border: 1px solid var(--bvi-line) !important;
  border-radius: 12px !important;
  box-shadow: var(--bvi-shadow);
}
.dropdown-item {
  color: var(--bvi-ink) !important;
}
.dropdown-item:hover, .dropdown-item:focus {
  color: var(--bvi-primary) !important;
  background: var(--bvi-primary-soft) !important;
}

/* Villa cards and location tiles */
.balivi-villa-card, .related-villa-card,
.location-card, .testimonial-card,
.related-posts, .card, .sidebar-kanan .card {
  background: var(--bvi-white) !important;
  border: 1px solid var(--bvi-line) !important;
  border-radius: 15px !important;
  box-shadow: var(--bvi-shadow) !important;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}
.balivi-villa-card:hover, .related-villa-card:hover,
.location-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 34px rgba(27, 59, 72, .13) !important;
}
.balivi-villa-content, .related-villa-content,
.card-body {
  background: var(--bvi-white) !important;
}
.balivi-villa-title, .related-villa-title {
  color: var(--bvi-ink) !important;
  font-weight: 700;
}
.balivi-meta, .balivi-description,
.related-villa-excerpt, .text-muted {
  color: var(--bvi-muted) !important;
}
.balivi-category, .balivi-tag, .related-villa-category {
  display: inline-block;
  background: var(--bvi-primary-soft) !important;
  color: var(--bvi-primary-dark) !important;
  border-radius: 30px;
  padding: 4px 10px;
}
.balivi-photo-label {
  background: var(--bvi-accent) !important;
  color: #fff !important;
}
.balivi-image-overlay {
  background: linear-gradient(180deg, transparent 45%, rgba(15, 37, 45, .48)) !important;
}
.balivi-card-footer {
  border-top: 1px solid var(--bvi-line);
}

/* Buttons and booking calls-to-action */
button, .button, .btn, input[type="submit"],
input[type="button"], .wp-element-button,
.btn-book, .balivi-location-button,
.menu-button, .findvilla-btn {
  background-color: var(--bvi-primary) !important;
  border-color: var(--bvi-primary) !important;
  color: #fff !important;
  border-radius: 9px !important;
  font-weight: 600;
  box-shadow: none;
  transition: background-color .2s ease, transform .2s ease;
}
button:hover, .button:hover, .btn:hover,
input[type="submit"]:hover, input[type="button"]:hover,
.btn-book:hover, .balivi-location-button:hover,
.menu-button:hover, .findvilla-btn:hover {
  background-color: var(--bvi-primary-dark) !important;
  border-color: var(--bvi-primary-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
}
.btn-gold, .jumbotron-gold .btn,
.load-more-wrapper .btn {
  background: var(--bvi-accent) !important;
  border-color: var(--bvi-accent) !important;
  color: #fff !important;
}
.btn-gold:hover, .jumbotron-gold .btn:hover,
.load-more-wrapper .btn:hover {
  background: var(--bvi-accent-dark) !important;
  border-color: var(--bvi-accent-dark) !important;
}
.btn-outline-secondary {
  color: var(--bvi-primary) !important;
  border-color: #b8dadd !important;
  background: #fff !important;
}
.btn-outline-secondary:hover {
  color: #fff !important;
  background: var(--bvi-primary) !important;
}

/* Inputs and villa search forms */
input, select, textarea, .form-control,
.search-field, .input-group-text {
  color: var(--bvi-ink) !important;
  background: var(--bvi-white) !important;
  border: 1px solid #dce6e9 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}
input:focus, select:focus, textarea:focus, .form-control:focus {
  border-color: var(--bvi-primary) !important;
  box-shadow: 0 0 0 3px rgba(8, 127, 140, .12) !important;
  outline: 0;
}
input::placeholder, textarea::placeholder {
  color: #9aa7af !important;
}
.search-submit {
  background: var(--bvi-accent) !important;
  border-color: var(--bvi-accent) !important;
}

/* Villa details, rates and availability */
.jumbotron, .jumbotron-gold {
  background: var(--bvi-sand) !important;
  color: var(--bvi-ink) !important;
  border: 1px solid #f5ebd8;
  border-radius: 16px;
}
.table-price, .table, table {
  background: var(--bvi-white) !important;
  color: var(--bvi-body) !important;
  border-color: var(--bvi-line) !important;
}
.table thead th, table thead th, .table-price th {
  background: var(--bvi-primary-soft) !important;
  color: var(--bvi-primary-dark) !important;
  border-color: var(--bvi-line) !important;
}
.table td, .table th, table td, table th {
  border-color: var(--bvi-line) !important;
}
.rate-detail {
  background: #fff !important;
  border-color: var(--bvi-line) !important;
}
.calendar-wrapper {
  background: #fff !important;
  border: 1px solid var(--bvi-line);
  border-radius: 12px;
}

/* Breadcrumbs, badges and labels */
.breadcrumb, .tag-title-wrapper {
  background: #f8fbfb !important;
  border-color: var(--bvi-line) !important;
}
.badge, .badge-info {
  background: var(--bvi-primary-soft) !important;
  color: var(--bvi-primary-dark) !important;
}
.badge-warning {
  background: #fff2cf !important;
  color: #805d16 !important;
}
.badge-success {
  background: #e7f6ed !important;
  color: #216b45 !important;
}

/* Testimonials and content sections */
.guest-testimonials, .testimonial-list {
  background: #f8fbfb !important;
}
.testimonial-card {
  padding: 20px;
}
.balivi-section-title, .related-section-title {
  color: var(--bvi-ink) !important;
}
.custom-quote {
  background: var(--bvi-sand) !important;
  border-left: 4px solid var(--bvi-sun) !important;
  color: var(--bvi-ink) !important;
}

/* Modals */
.modal-content {
  background: #fff !important;
  color: var(--bvi-body) !important;
  border: 1px solid var(--bvi-line) !important;
  border-radius: 16px !important;
  box-shadow: 0 18px 55px rgba(20, 44, 55, .18);
}
.modal-header {
  background: #f8fbfb !important;
  border-bottom: 1px solid var(--bvi-line) !important;
}
.modal-title {
  color: var(--bvi-ink) !important;
}

/* Footer */
.page-footer, footer.page-footer {
  background: #f3f8f8 !important;
  color: var(--bvi-body) !important;
  border-top: 1px solid var(--bvi-line) !important;
}
.page-footer a, footer.page-footer a,
.page-footer h1, .page-footer h2, .page-footer h3,
.page-footer h4, footer.page-footer h1,
footer.page-footer h2, footer.page-footer h3,
footer.page-footer h4 {
  color: var(--bvi-primary-dark) !important;
}
.page-footer .btn, footer.page-footer .btn,
.page-footer .wa-button, footer.page-footer .wa-button {
  color: #fff !important;
}

/* Keep photo-led areas vivid; do not apply opaque overlays to images */
img, .balivi-card-image, .related-villa-image {
  max-width: 100%;
}
@media (max-width: 767px) {
  .balivi-villa-card, .related-villa-card,
  .location-card, .testimonial-card {
    border-radius: 13px !important;
  }
  .balivi-villa-content, .related-villa-content {
    padding: 15px !important;
  }
}


/* ==========================================================
   BALIVI REFINED LIGHT LAYOUT — CSS OVERRIDES ONLY
   Corrects dark outer wrappers visible on villa detail pages.
   Keeps existing HTML, PHP, JavaScript and functionality intact.
   ========================================================== */
:root {
  --bvi-page-bg: #f5f8f7;
  --bvi-panel-bg: #ffffff;
  --bvi-ink: #243746;
  --bvi-body: #526473;
  --bvi-primary: #087f8c;
  --bvi-primary-dark: #066572;
  --bvi-primary-soft: #e8f6f5;
  --bvi-coral: #f47b62;
  --bvi-gold: #e5b943;
  --bvi-border: #e5eceb;
}

/* Replace charcoal page and content shells with a light canvas */
html, body {
  background: var(--bvi-page-bg) !important;
  color: var(--bvi-body) !important;
}
body, #page, #wrapper, #main, #content,
.site, .site-wrapper, .site-main, .site-content,
#primary, #secondary, main, article,
.container, .container-fluid,
.content-wrapper, .main-wrapper, .page-wrapper,
.villapage, .villa-page, .villa-detail,
.single, .single-post, .single-villa,
.entry-content, .post-content, .content-area,
.row, [class*="content-wrap"], [class*="main-wrap"] {
  background-color: var(--bvi-panel-bg) !important;
  color: var(--bvi-body) !important;
}

/* A subtle warm tint behind the centered site content */
body {
  background: var(--bvi-page-bg) !important;
}
#page, #wrapper, .site, .site-wrapper {
  box-shadow: 0 8px 32px rgba(31, 57, 64, .045);
}

/* Header and logo area */
header, #header, .site-header, .header,
.logo-area, .header-wrapper, .top-header,
.header-container {
  background: #ffffff !important;
  color: var(--bvi-ink) !important;
  border-color: var(--bvi-border) !important;
}
header a, #header a, .site-header a, .header a {
  color: var(--bvi-ink) !important;
}
header a:hover, #header a:hover, .site-header a:hover {
  color: var(--bvi-primary) !important;
}

/* Navigation: crisp white bar with clear active state */
nav, .navbar, .navbar-light, .navbar-dark,
.navbar-expand, .menu-bar, .main-navigation,
.primary-navigation, .navigation, .nav-container {
  background: #ffffff !important;
  color: var(--bvi-ink) !important;
  border-color: var(--bvi-border) !important;
}
.navbar .nav-link, .navbar-nav .nav-link,
.navbar-light .navbar-nav .nav-link,
.navbar-dark .navbar-nav .nav-link,
.main-navigation a, .primary-navigation a,
nav a {
  color: var(--bvi-ink) !important;
}
.navbar .nav-link:hover, .navbar .nav-link:focus,
.navbar .active > .nav-link,
.main-navigation a:hover, .primary-navigation a:hover,
nav a:hover {
  color: var(--bvi-primary) !important;
}
.navbar .active > .nav-link::after,
.current-menu-item > a::after {
  background: var(--bvi-gold) !important;
}

/* Villa detail title and section headings */
h1, h2, h3, h4, h5, h6,
.entry-title, .post-title, .villa-title,
.page-title, .entry-content h1, .entry-content h2,
.entry-content h3, .villapage h1, .villapage h2,
.villapage h3 {
  color: var(--bvi-ink) !important;
}
p, li, .entry-content, .villapage,
.entry-content p, .villapage p {
  color: var(--bvi-body);
}

/* Hero image: retain the image itself, soften its frame */
.featured-image, .post-thumbnail, .villa-featured-image,
.hero-image, .entry-image {
  background: #ffffff !important;
  border-radius: 0 0 14px 14px;
  overflow: hidden;
}
.featured-image img, .post-thumbnail img,
.villa-featured-image img, .hero-image img {
  display: block;
}

/* Admin/editor excerpt: preserve its pale-yellow notice styling */
.excerpt-admin, .admin-excerpt, .editor-excerpt,
[class*="excerpt-admin"], [class*="admin-excerpt"] {
  background: #fffbd1 !important;
  color: #344452 !important;
  border: 1px dashed #e6d98a !important;
  border-radius: 0 0 10px 10px;
}
.excerpt-admin *, .admin-excerpt *, .editor-excerpt *,
[class*="excerpt-admin"] *, [class*="admin-excerpt"] * {
  color: #344452;
}

/* Search controls and buttons */
input, select, textarea, .form-control {
  background: #ffffff !important;
  color: var(--bvi-ink) !important;
  border: 1px solid #dce7e7 !important;
}
button, .btn, .button, input[type="submit"],
input[type="button"], .wp-element-button {
  background: var(--bvi-primary) !important;
  border-color: var(--bvi-primary) !important;
  color: #ffffff !important;
}
button:hover, .btn:hover, .button:hover,
input[type="submit"]:hover, input[type="button"]:hover {
  background: var(--bvi-primary-dark) !important;
  border-color: var(--bvi-primary-dark) !important;
}
.btn-outline, .btn-outline-primary {
  background: #ffffff !important;
  color: var(--bvi-primary) !important;
  border-color: var(--bvi-primary) !important;
}

/* Footer and separators */
footer, .site-footer, #footer, .page-footer {
  background: #f0f6f5 !important;
  color: var(--bvi-body) !important;
  border-top: 1px solid var(--bvi-border) !important;
}
footer h1, footer h2, footer h3, footer h4,
footer a, .site-footer a, #footer a, .page-footer a {
  color: var(--bvi-primary-dark) !important;
}
hr, .divider, .separator {
  border-color: var(--bvi-border) !important;
}

/* Avoid turning photo-led sections into solid white blocks */
img, picture, video, iframe {
  background-color: transparent;
}
@media (max-width: 767px) {
  body {
    background: #ffffff !important;
  }
  #page, #wrapper, .site, .site-wrapper {
    box-shadow: none;
  }
}


/* ==========================================================
   BALIVI READABILITY + HEADER LIGHT FIX
   CSS ONLY — stronger overrides for headings, text and header.
   ========================================================== */
:root {
  --bvi-heading-readable: #172f40;
  --bvi-text-readable: #405363;
  --bvi-muted-readable: #657786;
  --bvi-header-light: #ffffff;
  --bvi-header-border: #e4ecee;
  --bvi-teal-readable: #087f8c;
}

/* Force readable text colors throughout villa pages */
html body,
html body p,
html body li,
html body span,
html body label,
html body td,
html body th,
html body .entry-content,
html body .entry-content p,
html body .entry-content li,
html body .villapage,
html body .villapage p,
html body .villa-description,
html body .description,
html body .excerpt,
html body .post-content,
html body .content,
html body .card-text,
html body .text-muted {
  color: var(--bvi-text-readable) !important;
}

/* Headings: explicitly override inherited white/light text */
html body h1,
html body h2,
html body h3,
html body h4,
html body h5,
html body h6,
html body .entry-title,
html body .entry-content h1,
html body .entry-content h2,
html body .entry-content h3,
html body .entry-content h4,
html body .villapage h1,
html body .villapage h2,
html body .villapage h3,
html body .villapage h4,
html body .villa-title,
html body .post-title,
html body .page-title,
html body .section-title,
html body .card-title,
html body .related-villa-title,
html body .balivi-villa-title,
html body .elementor-heading-title {
  color: var(--bvi-heading-readable) !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

/* Links and secondary information */
html body a,
html body .entry-content a,
html body .villapage a {
  color: var(--bvi-teal-readable) !important;
}
html body a:hover,
html body .entry-content a:hover,
html body .villapage a:hover {
  color: #e86f57 !important;
}
html body small,
html body .small,
html body .meta,
html body .post-meta,
html body .villa-meta,
html body .text-secondary,
html body .text-muted {
  color: var(--bvi-muted-readable) !important;
}

/* Remove dark/black header strips and header containers */
html body header,
html body #header,
html body #masthead,
html body .site-header,
html body .header,
html body .header-wrapper,
html body .header-container,
html body .top-header,
html body .logo-area,
html body .navbar,
html body .navbar-expand,
html body .navbar-light,
html body .navbar-dark,
html body .main-navigation,
html body .primary-navigation,
html body .menu-bar,
html body .nav-container,
html body .header-inner,
html body .header-top,
html body .header-bottom,
html body .site-branding {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: var(--bvi-heading-readable) !important;
  border-color: var(--bvi-header-border) !important;
  box-shadow: none !important;
}

/* Header pseudo elements sometimes create black bars */
html body header::before,
html body header::after,
html body #header::before,
html body #header::after,
html body #masthead::before,
html body #masthead::after,
html body .site-header::before,
html body .site-header::after,
html body .header-wrapper::before,
html body .header-wrapper::after,
html body .header-container::before,
html body .header-container::after,
html body .top-header::before,
html body .top-header::after,
html body .menu-bar::before,
html body .menu-bar::after {
  background: #ffffff !important;
  background-color: #ffffff !important;
}

/* Header navigation text and active state */
html body header a,
html body #header a,
html body #masthead a,
html body .site-header a,
html body .navbar a,
html body .main-navigation a,
html body .primary-navigation a,
html body .menu-bar a,
html body .nav-link,
html body .navbar-nav .nav-link {
  color: var(--bvi-heading-readable) !important;
  opacity: 1 !important;
}
html body header a:hover,
html body .site-header a:hover,
html body .navbar a:hover,
html body .main-navigation a:hover,
html body .primary-navigation a:hover,
html body .nav-link:hover,
html body .navbar-nav .active > .nav-link {
  color: var(--bvi-teal-readable) !important;
}

/* Ensure logo/header region stays light without affecting logo image */
html body .site-branding,
html body .custom-logo-link,
html body .logo-area,
html body .logo-container {
  background: #ffffff !important;
}
html body .site-branding img,
html body .custom-logo,
html body .custom-logo-link img,
html body .logo-area img,
html body .logo-container img {
  background: transparent !important;
}

/* Main page wrappers: no charcoal canvas around villa content */
html body,
html body #page,
html body #wrapper,
html body #main,
html body #content,
html body .site,
html body .site-wrapper,
html body .site-main,
html body .site-content,
html body #primary,
html body main,
html body article,
html body .content-wrapper,
html body .main-wrapper,
html body .page-wrapper,
html body .villa-detail,
html body .single-villa {
  background-color: #ffffff !important;
  color: var(--bvi-text-readable) !important;
}

/* Do not dim headings or descriptions inside cards and hero details */
html body .card *,
html body .villa-card *,
html body .villa-detail *,
html body .entry-content *,
html body .villapage * {
  text-shadow: none;
}


/* ==========================================================
   BALIVI OFFICIAL LOGO PALETTE — CSS ONLY
   Sampled from the supplied logo:
   Navy #003380 | Gold #FEB00D | Ivory #EFEADE | White #FFFFFF
   ========================================================== */
:root {
  --balivi-navy: #003380;
  --balivi-navy-deep: #00265f;
  --balivi-gold: #feb00d;
  --balivi-gold-soft: #fff4d5;
  --balivi-ivory: #efeade;
  --balivi-white: #ffffff;
  --balivi-body: #425166;
  --balivi-muted: #687789;
  --balivi-border: #e8e5dc;
}

/* Overall light travel canvas */
html, body,
#page, #wrapper, #main, #content,
.site, .site-wrapper, .site-main, .site-content,
#primary, main, article, .container, .container-fluid,
.content-wrapper, .main-wrapper, .page-wrapper,
.villapage, .villa-detail, .entry-content {
  background-color: #ffffff !important;
  color: var(--balivi-body) !important;
}

/* Header and logo surround */
header, #header, #masthead, .site-header, .header,
.header-wrapper, .header-container, .top-header,
.logo-area, .header-inner, .site-branding,
.balivi-header-bg, .balivi-header-bg.container {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  color: var(--balivi-navy) !important;
  border-color: var(--balivi-border) !important;
}

/* Main navigation */
nav, .navbar, .navbar-light, .navbar-dark,
.menu-bar, .main-navigation, .primary-navigation,
.nav-container, .balivi-nav, .container-fluid.menu-bar {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  border-color: var(--balivi-border) !important;
  box-shadow: 0 4px 16px rgba(0, 51, 128, .055) !important;
}
.navbar a, .navbar .nav-link, .navbar-nav .nav-link,
.navbar-light .navbar-nav .nav-link,
.navbar-dark .navbar-nav .nav-link,
nav a, .menu-bar a, .balivi-nav a,
.main-navigation a, .primary-navigation a {
  color: var(--balivi-navy) !important;
  font-weight: 600;
}
.navbar a:hover, .navbar .nav-link:hover,
nav a:hover, .menu-bar a:hover, .balivi-nav a:hover,
.main-navigation a:hover, .primary-navigation a:hover,
.navbar .active > .nav-link {
  color: var(--balivi-navy-deep) !important;
}
.navbar .active > .nav-link::after,
.current-menu-item > a::after,
.balivi-nav .nav-link::after {
  background: var(--balivi-gold) !important;
}

/* Logo-compatible headings and copy */
h1, h2, h3, h4, h5, h6,
.entry-title, .page-title, .entry-content h1,
.entry-content h2, .entry-content h3,
.villapage h1, .villapage h2, .villapage h3,
.villa-title, .post-title, .section-title,
.card-title, .balivi-villa-title,
.balivi-section-title, .elementor-heading-title {
  color: var(--balivi-navy) !important;
  opacity: 1 !important;
  text-shadow: none !important;
}
body p, body li, body label, body td,
body .entry-content, body .villapage,
body .villa-description, body .description,
body .card-text, body .balivi-description {
  color: var(--balivi-body) !important;
}
small, .small, .text-muted, .text-secondary,
.post-meta, .villa-meta {
  color: var(--balivi-muted) !important;
}
a, .entry-content a, .villapage a {
  color: var(--balivi-navy) !important;
}
a:hover, .entry-content a:hover, .villapage a:hover {
  color: #a96c00 !important;
}

/* Primary actions: navy with golden hover/focus detail */
button, .btn, .button, input[type="submit"],
input[type="button"], .wp-element-button,
.menu-button, .balivi-button, .balivi-location-button,
#load-more, .load-more-button, .findvilla-btn {
  background: var(--balivi-navy) !important;
  border-color: var(--balivi-navy) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}
button:hover, .btn:hover, .button:hover,
input[type="submit"]:hover, input[type="button"]:hover,
.menu-button:hover, .balivi-button:hover,
.balivi-location-button:hover, #load-more:hover,
.load-more-button:hover, .findvilla-btn:hover {
  background: var(--balivi-navy-deep) !important;
  border-color: var(--balivi-gold) !important;
  color: #ffffff !important;
}
.btn-outline, .btn-outline-primary,
.balivi-more-info, .btn-outline-secondary {
  background: #ffffff !important;
  color: var(--balivi-navy) !important;
  border: 1px solid var(--balivi-gold) !important;
}
.btn-outline:hover, .btn-outline-primary:hover,
.balivi-more-info:hover, .btn-outline-secondary:hover {
  background: var(--balivi-gold) !important;
  color: var(--balivi-navy) !important;
  border-color: var(--balivi-gold) !important;
}

/* Search fields and forms */
input, select, textarea, .form-control,
.search-field, .sf-input-text, .sf-input-select {
  background: #ffffff !important;
  color: var(--balivi-navy) !important;
  border: 1px solid #dededb !important;
}
input:focus, select:focus, textarea:focus,
.form-control:focus {
  border-color: var(--balivi-gold) !important;
  box-shadow: 0 0 0 3px rgba(254, 176, 13, .17) !important;
}
input::placeholder, textarea::placeholder {
  color: #929ba5 !important;
}

/* Cards, villa listings and content surfaces */
.card, .balivi-villa-card, .related-villa-card,
.location-card, .testimonial-card,
.balivi-location-cards .location-card,
.balivi-main-categories .main-card,
.balivi-property-categories .property-card {
  background: #ffffff !important;
  color: var(--balivi-body) !important;
  border: 1px solid var(--balivi-border) !important;
  box-shadow: 0 8px 24px rgba(0, 51, 128, .075) !important;
}
.card-title, .balivi-villa-title,
.related-villa-title, .location-card h3,
.balivi-location-cards h3,
.balivi-main-categories h3,
.balivi-property-categories h3 {
  color: var(--balivi-navy) !important;
}
.card-text, .balivi-description,
.related-villa-excerpt, .location-card p {
  color: var(--balivi-body) !important;
}

/* Tags and category chips */
.badge, .balivi-category, .balivi-tag,
.related-villa-category, .meta-pill {
  background: var(--balivi-ivory) !important;
  color: var(--balivi-navy) !important;
  border: 1px solid #e6ddc8 !important;
  border-radius: 30px !important;
}
.badge-warning, .price-badge, .balivi-price-label {
  background: var(--balivi-gold-soft) !important;
  color: var(--balivi-navy) !important;
}

/* Logo gold used as a restrained accent */
hr, .divider, .separator {
  border-color: var(--balivi-border) !important;
}
.navbar .active > .nav-link,
.current-menu-item > a {
  text-decoration-color: var(--balivi-gold) !important;
}
.custom-quote, .jumbotron, .jumbotron-gold,
.balivi-highlight-box {
  background: var(--balivi-ivory) !important;
  color: var(--balivi-navy) !important;
  border-color: #e6ddc8 !important;
}
.custom-quote {
  border-left: 4px solid var(--balivi-gold) !important;
}

/* Admin/editor-only excerpt stays readable and distinct */
.excerpt-admin, .admin-excerpt, .editor-excerpt,
[class*="excerpt-admin"], [class*="admin-excerpt"] {
  background: #fffbdc !important;
  color: var(--balivi-navy) !important;
  border-color: #ead58a !important;
}

/* Footer and modals */
footer, .site-footer, #footer, .page-footer {
  background: #f7f5ef !important;
  color: var(--balivi-body) !important;
  border-top: 1px solid var(--balivi-border) !important;
}
footer h1, footer h2, footer h3, footer h4,
footer a, .site-footer a, #footer a, .page-footer a {
  color: var(--balivi-navy) !important;
}
.modal-content {
  background: #ffffff !important;
  color: var(--balivi-body) !important;
  border: 1px solid var(--balivi-border) !important;
}
.modal-header, .modal-footer {
  background: #f7f5ef !important;
  border-color: var(--balivi-border) !important;
}
.modal-title {
  color: var(--balivi-navy) !important;
}

/* =========================================================
   BALIVI VILLA CARD — FEATURE IMAGE CLARITY
   Keep villa photos fully visible; remove dark/faded overlays.
   Applied to archive, homepage, search, AJAX and related cards.
   ========================================================= */
.balivi-villa-card .balivi-villa-image,
.balivi-villa-card .balivi-image-link,
.related-villa-card .related-villa-image,
.related-villa-card .related-villa-image a {
    opacity: 1 !important;
    filter: none !important;
}

.balivi-villa-card img.balivi-card-image,
.related-villa-card .related-villa-image img {
    opacity: 1 !important;
    filter: none !important;
    visibility: visible !important;
    mix-blend-mode: normal !important;
    -webkit-filter: none !important;
}

.balivi-villa-card .balivi-image-overlay {
    background: transparent !important;
    opacity: 0 !important;
    filter: none !important;
}

.balivi-villa-card:hover img.balivi-card-image,
.related-villa-card:hover .related-villa-image img {
    opacity: 1 !important;
    filter: none !important;
}

/* BALIVI: use the original full-resolution featured image in every villa list card. */
.balivi-villa-card .balivi-villa-image,
.balivi-villa-card .balivi-image-link {
    opacity: 1 !important;
    filter: none !important;
    -webkit-filter: none !important;
}
.balivi-villa-card img.balivi-card-image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
    -webkit-filter: none !important;
    mix-blend-mode: normal !important;
}
.balivi-villa-card .balivi-image-overlay {
    display: none !important;
}


/* ==========================================================
   BALIVI GLOBAL PAGE CANVAS — MATCH INDEX ON EVERY TEMPLATE
   Keep body background consistent across all page templates.
   Content cards/sections retain their own individual surfaces.
   ========================================================== */
html,
body {
  background-color: #ffffff !important;
  background-image: none !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
  color: var(--balivi-body, #425166);
}
body {
  min-height: 100%;
}



/* ==========================================================
   BALIVI BRAND POLISH — MORE INFO BUTTON + VILLA TITLES
   Logo palette: navy #003399, blue #076FAB, gold #FEAF0E
   ========================================================== */
html body a.balivi-more-info,
html body a.balivi-more-info:link,
html body a.balivi-more-info:visited,
html body a.related-more-info,
html body a.related-more-info:link,
html body a.related-more-info:visited {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  padding: 9px 15px !important;
  border: 1px solid #FEAF0E !important;
  border-radius: 8px !important;
  background: #003399 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  text-decoration-line: none !important;
  text-decoration-thickness: 0 !important;
  text-underline-offset: 0 !important;
  box-shadow: 0 2px 5px rgba(0, 51, 153, .12) !important;
  transition: background-color .2s ease, border-color .2s ease,
              color .2s ease, box-shadow .2s ease, transform .2s ease !important;
}
html body a.balivi-more-info:hover,
html body a.balivi-more-info:focus,
html body a.balivi-more-info:active,
html body a.related-more-info:hover,
html body a.related-more-info:focus,
html body a.related-more-info:active {
  background: #076FAB !important;
  border-color: #FEAF0E !important;
  color: #ffffff !important;
  text-decoration: none !important;
  text-decoration-line: none !important;
  box-shadow: 0 3px 9px rgba(0, 51, 153, .2) !important;
}
html body a.balivi-more-info *,
html body a.related-more-info * {
  color: inherit !important;
  text-decoration: none !important;
  text-decoration-line: none !important;
}
html body a.balivi-more-info .balivi-arrow,
html body a.related-more-info span {
  color: inherit !important;
  text-decoration: none !important;
}

/* Villa/listing headings follow the BALIVI logo navy */
html body .balivi-villa-title,
html body .balivi-villa-title a,
html body .related-villa-title,
html body .related-villa-title a,
html body .villa-title,
html body h1.villa-title,
html body .entry-title,
html body .post-title {
  color: #003399 !important;
  text-decoration: none !important;
  text-shadow: none !important;
}
html body .balivi-villa-title a:hover,
html body .related-villa-title a:hover,
html body .villa-title a:hover,
html body .entry-title a:hover,
html body .post-title a:hover {
  color: #076FAB !important;
  text-decoration: none !important;
}




/* ==========================================================
   BALIVI SOFT PAGE CANVAS + SUBTLE SIDE FRAME
   Keeps content cards white while the website canvas is soft grey.
   ========================================================== */
html {
  background: #e9edf2 !important;
  background-color: #e9edf2 !important;
}
html body {
  width: 100% !important;
  max-width: 1440px !important;
  min-height: 100vh !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  background: #f1f3f6 !important;
  background-color: #f1f3f6 !important;
  border-left: 1px solid #dfe5ec !important;
  border-right: 1px solid #dfe5ec !important;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.72),
    0 8px 32px rgba(24, 43, 70, .075) !important;
  color: #425166;
}
@media (max-width: 767px) {
  html {
    background: #f1f3f6 !important;
  }
  html body {
    border-left: 0 !important;
    border-right: 0 !important;
    box-shadow: none !important;
  }
}




/* BALIVI FINAL CANVAS: one uniform background color, no split frame */
html,
html body {
  background: #F1F3F6 !important;
  background-color: #F1F3F6 !important;
  background-image: none !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
}
html body {
  width: 100% !important;
  max-width: none !important;
  min-height: 100vh !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}
@media (max-width: 767px) {
  html,
  html body {
    background: #F1F3F6 !important;
    background-color: #F1F3F6 !important;
  }
}


/* ==========================================================
   BALIVI MODAL VISIBILITY FIX
   Bootstrap controls modal visibility through the .show class.
   This guard also prevents custom mobile CSS from forcing the
   search modal to remain visible when it is closed.
   ========================================================== */
@media (max-width: 767.98px) {
    .modal:has(form.icp-search-form):not(.show) {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .modal:has(form.icp-search-form).show {
        display: block !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
}


/* Header and search controls: visual-only adaptation */
.balivi-header-bg {
  background: linear-gradient(135deg, #ffffff 0%, #f3fbfa 100%) !important;
}
form.searchandfilter {
  background: #ffffff !important;
  color: #243746 !important;
  border: 1px solid #e7edf0;
  box-shadow: 0 10px 28px rgba(27, 59, 72, .08) !important;
}
form.searchandfilter label { color: #243746 !important; }
form.searchandfilter .sf-input-text,
form.searchandfilter .sf-input-select,
form.searchandfilter .form-control {
  background: #fff !important;
  color: #243746 !important;
  border: 1px solid #dce7e9 !important;
}
form.searchandfilter .sf-field-submit input[type="submit"],
form.searchandfilter .btn-secondary {
  background: #087f8c !important;
  color: #fff !important;
  border: 0 !important;
}
form.searchandfilter .sf-field-submit input[type="submit"]:hover,
form.searchandfilter .btn-secondary:hover {
  background: #066572 !important;
}


/* Pagination appearance adapted from the master BALIVI theme */
/* =========================================================
   PAGINATION
   ========================================================= */

.text-center.my-4:has(.page-numbers) {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    margin: 32px 0 !important;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    margin: 0 !important;
    padding: 0 15px;
    border: 1px solid #e5e9ec;
    border-radius: 999px;
    background: #ffffff;
    color: #344054 !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    box-shadow: 0 2px 7px rgba(20, 35, 45, 0.05);
    transition: background-color .25s ease, color .25s ease,
                border-color .25s ease, box-shadow .25s ease,
                transform .25s ease;
}

.page-numbers:hover {
    background: #eaf5f5;
    border-color: #087f8c;
    color: #087f8c !important;
    box-shadow: 0 4px 12px rgba(8, 127, 140, 0.12);
    transform: translateY(-2px);
}

.page-numbers.current {
    background: #087f8c !important;
    border-color: #087f8c !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(8, 127, 140, 0.22);
}

.page-numbers.dots {
    min-width: 32px;
    padding: 0 5px;
    border-color: transparent;
    background: transparent;
    color: #98a2b3 !important;
    box-shadow: none;
}

.page-numbers.dots:hover {
    transform: none;
    border-color: transparent;
    background: transparent;
    color: #98a2b3 !important;
    box-shadow: none;
}

@media (max-width: 480px) {
    .text-center.my-4:has(.page-numbers) {
        gap: 6px;
    }

    .page-numbers {
        min-width: 36px;
        height: 36px;
        padding: 0 11px;
        font-size: 13px;
    }
}




/* ==========================================================
   VILLA BULANAN LIST CARD — BALIVI MASTER CARD VISUAL
   CSS-only adaptation. Existing PHP/HTML card structure,
   fields, links and booking functions remain untouched.
   ========================================================== */
.villa-item.card {
    display: block !important;
    width: 100%;
    margin: 0 0 28px !important;
    padding: 0 !important;
    overflow: hidden;
    background: #fff !important;
    border: 1px solid #e5eceb !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 24px rgba(27, 59, 72, .08) !important;
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.villa-item.card:hover {
    transform: translateY(-3px);
    border-color: #b9dddd !important;
    box-shadow: 0 14px 35px rgba(27, 59, 72, .13) !important;
}
.villa-item.card > .row {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    margin: 0 !important;
}
.villa-item.card > .row > .col-md-5 {
    flex: 0 0 42%;
    max-width: 42%;
    min-height: 300px;
    padding: 0 !important;
    overflow: hidden;
    background: #173c49;
}
.villa-item.card > .row > .col-md-5 > a {
    display: block;
    width: 100%;
    height: 100%;
}
.villa-item.card > .row > .col-md-5 img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-height: 300px;
    max-height: none !important;
    object-fit: cover;
    object-position: center;
    border-radius: 0 !important;
    transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.villa-item.card:hover > .row > .col-md-5 img {
    transform: scale(1.055);
}
.villa-item.card > .row > .col-md-7 {
    flex: 0 0 58%;
    max-width: 58%;
    min-width: 0;
    padding: 0 !important;
}
.villa-item.card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 28px 30px 24px !important;
    background: #fff !important;
}
.villa-item.card .card-title {
    margin: 0 0 16px !important;
    padding: 0;
    color: #172f40 !important;
    font-size: 25px !important;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.02em;
}
.villa-item.card .card-title a {
    color: #172f40 !important;
    text-decoration: none !important;
    transition: color .25s ease;
}
.villa-item.card .card-title a:hover {
    color: #087f8c !important;
}
.villa-item .balivi-info-box {
    margin: 0 !important;
    padding: 16px 0 0 !important;
    border: 0 !important;
    border-top: 1px solid #e5eceb !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #526473;
    font-size: 13.5px;
    line-height: 1.7;
}
.villa-item .balivi-info-box .info-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin: 0 0 11px !important;
}
.villa-item .balivi-info-box .info-value {
    min-width: 0;
    color: #526473 !important;
    line-height: 1.7;
}
.villa-item .balivi-info-box .badge-warning {
    display: inline-block;
    padding: 7px 13px !important;
    border: 0 !important;
    border-radius: 30px !important;
    background: #fff3d7 !important;
    color: #172f40 !important;
    font-size: 14px !important;
    font-style: normal !important;
    font-weight: 700;
}
.villa-item .balivi-info-box .badge-tag,
.villa-item .balivi-info-box .badge-location {
    display: inline-flex;
    align-items: center;
    margin: 0 6px 6px 0 !important;
    padding: 5px 10px !important;
    border: 1px solid #c8e2e2 !important;
    border-radius: 20px !important;
    background: #e8f6f5 !important;
    color: #087f8c !important;
    font-size: 11px !important;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none !important;
}
.villa-item .balivi-info-box .badge-tag {
    background: #f4f7f7 !important;
    border-color: #e1e9e9 !important;
    color: #526473 !important;
}
.villa-item .balivi-info-box small.text-muted {
    color: #87949b !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.villa-item .balivi-btn-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 44px;
    height: 42px;
    padding: 0 16px !important;
    border: 1px solid #087f8c !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #087f8c !important;
    box-shadow: none !important;
    text-decoration: none !important;
    transition: background .25s ease, color .25s ease, transform .25s ease;
}
.villa-item .balivi-btn-icon:hover {
    transform: translateX(3px);
    border-color: #087f8c !important;
    background: #087f8c !important;
    color: #fff !important;
}
.villa-item .text-center.mt-3 {
    display: flex;
    justify-content: flex-end;
    margin-top: auto !important;
    padding-top: 18px;
}

/* Tablet and mobile: image above the card details, matching BALIVI */
@media (max-width: 767px) {
    .villa-item.card {
        margin-bottom: 22px !important;
        border-radius: 12px !important;
    }
    .villa-item.card > .row {
        display: block;
    }
    .villa-item.card > .row > .col-md-5,
    .villa-item.card > .row > .col-md-7 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }
    .villa-item.card > .row > .col-md-5 {
        height: 230px;
        min-height: 230px;
    }
    .villa-item.card > .row > .col-md-5 img {
        height: 230px !important;
        min-height: 230px;
    }
    .villa-item.card .card-body {
        height: auto;
        padding: 20px 18px 18px !important;
    }
    .villa-item.card .card-title {
        margin-bottom: 13px !important;
        font-size: 20px !important;
        line-height: 1.3;
    }
    .villa-item .balivi-info-box {
        padding-top: 13px !important;
        font-size: 13px;
    }
    .villa-item .text-center.mt-3 {
        justify-content: flex-start;
        padding-top: 12px;
    }
}
@media (max-width: 480px) {
    .villa-item.card > .row > .col-md-5,
    .villa-item.card > .row > .col-md-5 img {
        height: 210px;
        min-height: 210px;
    }
}


/* ==========================================================
   EXACT BALIVI MASTER VILLA LIST CARD LOOK
   Visual-only CSS: no PHP/HTML, query, ACF or booking code changed.
   ========================================================== */
body .villa-item.card {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    margin: 0 0 26px !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #fff !important;
    border: 1px solid #e1e9e9 !important;
    border-radius: 15px !important;
    box-shadow: 0 5px 18px rgba(27, 59, 72, .07) !important;
    transition: box-shadow .28s ease, transform .28s ease !important;
}
body .villa-item.card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 28px rgba(27, 59, 72, .12) !important;
}
body .villa-item.card > .row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    margin: 0 !important;
}
body .villa-item.card > .row > .col-md-5 {
    position: relative !important;
    flex: 0 0 42% !important;
    width: 42% !important;
    max-width: 42% !important;
    min-height: 360px !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #e8eeee !important;
}
body .villa-item.card > .row > .col-md-5 > a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}
body .villa-item.card > .row > .col-md-5 img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 360px !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
    border: 0 !important;
    border-radius: 0 !important;
    transition: transform .55s ease !important;
}
body .villa-item.card:hover > .row > .col-md-5 img {
    transform: scale(1.035) !important;
}
body .villa-item.card > .row > .col-md-7 {
    flex: 0 0 58% !important;
    width: 58% !important;
    max-width: 58% !important;
    min-width: 0 !important;
    padding: 0 !important;
}
body .villa-item.card > .row > .col-md-7 > .card-body {
    position: static !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 360px !important;
    height: 100% !important;
    padding: 28px 30px 23px !important;
    background: #fff !important;
}
body .villa-item.card .card-title {
    margin: 0 0 17px !important;
    padding: 0 !important;
    color: #073c9d !important;
    font-size: 25px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: -.025em !important;
}
body .villa-item.card .card-title a {
    color: #073c9d !important;
    text-decoration: none !important;
}
body .villa-item.card .card-title a:hover {
    color: #087f8c !important;
}
body .villa-item.card .balivi-info-box {
    position: static !important;
    flex: 1 1 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #526473 !important;
    font-size: 13.5px !important;
    line-height: 1.7 !important;
}
body .villa-item.card .balivi-info-box .info-row {
    display: block !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
}
body .villa-item.card .balivi-info-box .info-value {
    display: block;
    color: #526473 !important;
    line-height: 1.7 !important;
}
body .villa-item.card .balivi-info-box .badge-warning {
    display: inline-block !important;
    margin: 0 0 10px !important;
    padding: 7px 12px !important;
    border: 0 !important;
    border-radius: 20px !important;
    background: #fff3d7 !important;
    color: #263746 !important;
    font-size: 14px !important;
    font-style: normal !important;
    font-weight: 700 !important;
}
body .villa-item.card .balivi-info-box .badge-tag,
body .villa-item.card .balivi-info-box .badge-location {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 5px 7px 0 !important;
    padding: 5px 11px !important;
    border: 1px solid #c7e3e4 !important;
    border-radius: 20px !important;
    background: #eaf6f6 !important;
    color: #087f8c !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
}
/* Put the existing category link on top of the feature image, like BALIVI */
body .villa-item.card .balivi-info-box .badge-location {
    position: absolute !important;
    left: 18px !important;
    bottom: 17px !important;
    z-index: 8 !important;
    margin: 0 !important;
    padding: 7px 15px !important;
    border: 0 !important;
    border-radius: 30px !important;
    background: #087f8c !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
    box-shadow: 0 3px 9px rgba(0,0,0,.12) !important;
}
body .villa-item.card .balivi-info-box .badge-location:hover {
    background: #066d78 !important;
    color: #fff !important;
}
body .villa-item.card .balivi-info-box .text-muted {
    color: #87949b !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
}
body .villa-item.card .balivi-btn-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 112px !important;
    height: 42px !important;
    padding: 0 17px !important;
    border: 1px solid #ffd000 !important;
    border-radius: 9px !important;
    background: #073c9d !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    box-shadow: 0 3px 8px rgba(7,60,157,.15) !important;
}
body .villa-item.card .balivi-btn-icon:hover {
    transform: translateY(-2px) !important;
    background: #062f7b !important;
    color: #fff !important;
}
body .villa-item.card .text-center.mt-3 {
    display: flex !important;
    justify-content: flex-end !important;
    margin-top: auto !important;
    padding-top: 15px !important;
    border-top: 1px solid #e7ecee !important;
}

/* Responsive card layout */
@media (max-width: 767px) {
    body .villa-item.card > .row {
        display: block !important;
    }
    body .villa-item.card > .row > .col-md-5,
    body .villa-item.card > .row > .col-md-7 {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    body .villa-item.card > .row > .col-md-5 {
        height: 245px !important;
        min-height: 245px !important;
    }
    body .villa-item.card > .row > .col-md-5 img {
        height: 245px !important;
        min-height: 245px !important;
    }
    body .villa-item.card > .row > .col-md-7 > .card-body {
        min-height: 0 !important;
        padding: 20px 18px 18px !important;
    }
    body .villa-item.card .card-title {
        font-size: 21px !important;
        line-height: 1.3 !important;
    }
    body .villa-item.card .balivi-info-box .badge-location {
        left: 14px !important;
        bottom: auto !important;
        top: 205px !important;
    }
    body .villa-item.card .text-center.mt-3 {
        padding-top: 13px !important;
    }
}
@media (max-width: 480px) {
    body .villa-item.card > .row > .col-md-5,
    body .villa-item.card > .row > .col-md-5 img {
        height: 220px !important;
        min-height: 220px !important;
    }
    body .villa-item.card .balivi-info-box .badge-location {
        top: 180px !important;
    }
}


/* Load More replaces numbered pagination on villa listing templates */
body:has(#load-more-villas) .pagination.pagination-lg{display:none!important}


/* ==========================================================
   FINAL BALIVI DETAIL POLISH — HERO + FEATURE IMAGE CATEGORY
   ========================================================== */
.balivibulanan-hero {
    background: #fff !important;
    background-image: none !important;
    border: 1px solid #edf0ed !important;
    border-radius: 18px !important;
    box-shadow: 0 8px 28px rgba(30, 49, 58, .045) !important;
    color: #52616b !important;
    padding: 30px 34px !important;
    margin-top: 14px !important;
    margin-bottom: 24px !important;
}
.balivibulanan-hero h1, .balivibulanan-hero h2, .balivibulanan-hero h3 { color: #203746 !important; }
.balivibulanan-hero p, .balivibulanan-hero small { color: #63717b !important; }
.balivibulanan-hero hr { border-top: 1px solid #e5e9e7 !important; }
.villa-item.card > .row > .col-md-5 { position: relative !important; overflow: hidden !important; }
.villa-item.card > .row > .col-md-5 > a:first-child { display: block; height: 100%; }
.villa-item.card > .row > .col-md-5 img { display: block; width: 100% !important; height: 100% !important; min-height: 300px; object-fit: cover !important; }
.balivibulanan-photo-label {
    position: absolute !important; left: 18px !important; bottom: 17px !important; z-index: 5 !important;
    display: inline-flex !important; align-items: center; max-width: calc(100% - 36px); padding: 9px 16px !important;
    overflow: hidden; border: 0 !important; border-radius: 30px !important; background: #078b98 !important;
    color: #fff !important; font-size: 11px !important; font-weight: 800 !important; line-height: 1.2 !important;
    letter-spacing: .035em; text-decoration: none !important; text-overflow: ellipsis; text-transform: uppercase;
    white-space: nowrap; box-shadow: 0 4px 12px rgba(0, 70, 78, .2);
}
.balivibulanan-photo-label:hover { background: #066d78 !important; color: #fff !important; }
@media (max-width: 767px) {
    .balivibulanan-hero { padding: 22px 19px !important; border-radius: 14px !important; margin-top: 10px !important; }
    .villa-item.card > .row > .col-md-5 img { min-height: 230px; }
    .balivibulanan-photo-label { left: 14px !important; bottom: 14px !important; padding: 8px 13px !important; font-size: 10px !important; }
}


/* ==========================================================
   SINGLE VILLA DETAILS — PREMIUM CLEAN SPECIFICATION TABLES
   Visual-only CSS: single.php markup, ACF fields and PHP logic
   remain unchanged.
   ========================================================== */
.container.border.bg-white .container.mt-3 {
    margin-top: 1.5rem !important;
    margin-bottom: 1.35rem;
}
.container.border.bg-white .container.mt-3 > .row {
    align-items: stretch;
}
.container.border.bg-white .container.mt-3 .col-md-6,
.container.border.bg-white .container.mt-3 .col-12 {
    min-width: 0;
}
.container.border.bg-white .container.mt-3 table.table {
    width: 100%;
    margin: 0 0 1.15rem !important;
    border: 1px solid #e7ecec !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 12px !important;
    overflow: hidden;
    background: #fff !important;
    box-shadow: 0 4px 16px rgba(23, 47, 64, .045);
}
.container.border.bg-white .container.mt-3 table.table tbody {
    background: #fff !important;
}
.container.border.bg-white .container.mt-3 table.table tr {
    background: #fff !important;
    transition: background-color .2s ease;
}
.container.border.bg-white .container.mt-3 table.table tr:hover {
    background: #f8fbfb !important;
}
.container.border.bg-white .container.mt-3 table.table td {
    height: auto;
    padding: 15px 17px !important;
    vertical-align: middle !important;
    border: 0 !important;
    border-bottom: 1px solid #edf1f1 !important;
    background: transparent !important;
    color: #526473;
    font-size: 15px;
    line-height: 1.55;
}
.container.border.bg-white .container.mt-3 table.table tr:last-child td {
    border-bottom: 0 !important;
}
.container.border.bg-white .container.mt-3 table.table td:first-child {
    width: 42% !important;
    color: #263e4b !important;
    font-weight: 700 !important;
    letter-spacing: .005em;
}
.container.border.bg-white .container.mt-3 table.table td.text-center {
    width: 26px !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
    color: #a4b2b6 !important;
    font-weight: 400;
}
.container.border.bg-white .container.mt-3 table.table td:last-child {
    color: #087f8c !important;
    font-weight: 500;
    overflow-wrap: anywhere;
}
.container.border.bg-white .container.mt-3 table.table td .text-primary {
    color: #087f8c !important;
}
.container.border.bg-white .container.mt-3 table.table tr:first-child td:first-child {
    border-top-left-radius: 11px;
}
.container.border.bg-white .container.mt-3 table.table tr:first-child td:last-child {
    border-top-right-radius: 11px;
}
.container.border.bg-white .container.mt-3 table.table tr:last-child td:first-child {
    border-bottom-left-radius: 11px;
}
.container.border.bg-white .container.mt-3 table.table tr:last-child td:last-child {
    border-bottom-right-radius: 11px;
}
/* Amenities row has two columns rather than label / colon / value */
.container.border.bg-white .container.mt-3 .col-12 table.table td:first-child {
    width: 30% !important;
    white-space: nowrap;
}
.container.border.bg-white .container.mt-3 .col-12 table.table td:last-child {
    width: 70%;
    line-height: 1.8;
}
/* Remove Bootstrap's grey hover/striped treatment if enabled by other styles */
.container.border.bg-white .container.mt-3 .table-hover tbody tr:hover td {
    background: #f8fbfb !important;
}
@media (max-width: 767px) {
    .container.border.bg-white .container.mt-3 {
        width: 100%;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-top: 1.1rem !important;
    }
    .container.border.bg-white .container.mt-3 > .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .container.border.bg-white .container.mt-3 .col-md-6 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .container.border.bg-white .container.mt-3 table.table {
        margin-bottom: 14px !important;
        border-radius: 10px !important;
        box-shadow: 0 3px 12px rgba(23, 47, 64, .04);
    }
    .container.border.bg-white .container.mt-3 table.table td {
        padding: 13px 12px !important;
        font-size: 14px;
        line-height: 1.5;
    }
    .container.border.bg-white .container.mt-3 table.table td:first-child {
        width: 42% !important;
    }
    .container.border.bg-white .container.mt-3 table.table td.text-center {
        width: 20px !important;
    }
    .container.border.bg-white .container.mt-3 .col-12 table.table td:first-child {
        width: 31% !important;
        white-space: normal;
    }
    .container.border.bg-white .container.mt-3 .col-12 table.table td:last-child {
        width: 69%;
    }
}


/* CATEGORY PILL — anchor precisely to the lower-left of the feature image */
.villa-item.card > .row > .col-md-5 {
    position: relative !important;
    isolation: isolate;
}
.villa-item.card > .row > .col-md-5 > a {
    position: relative;
    z-index: 1;
}
.villa-item.card > .row > .col-md-5 > .balivibulanan-photo-label {
    position: absolute !important;
    left: 18px !important;
    bottom: 18px !important;
    top: auto !important;
    right: auto !important;
    z-index: 10 !important;
    display: inline-flex !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 16px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #078b98 !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: .025em !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    box-shadow: 0 3px 10px rgba(0, 70, 78, .20) !important;
}
.villa-item.card > .row > .col-md-5 > .balivibulanan-photo-label:hover,
.villa-item.card > .row > .col-md-5 > .balivibulanan-photo-label:focus {
    background: #066d78 !important;
    color: #ffffff !important;
}
@media (max-width: 767px) {
    .villa-item.card > .row > .col-md-5 > .balivibulanan-photo-label {
        left: 14px !important;
        bottom: 14px !important;
        padding: 8px 14px !important;
        font-size: 10px !important;
    }
}


/* =========================================================
   MONTHLY & YEARLY RENTALS SECTION HEADING
   Aligned with the villa listing card edges.
   ========================================================= */
.balivibulanan-section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    width: auto;
    margin: 0 15px 12px;
    padding: 11px 15px;
    box-sizing: border-box;
    background: linear-gradient(110deg, #f7fbfb 0%, #ffffff 78%);
    border: 1px solid #e1ebeb;
    border-left: 3px solid #0b8792;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(29, 66, 75, .045);
}
.balivibulanan-section-title {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 10px;
    margin: 0 !important;
    padding: 0 !important;
    color: #314958 !important;
    font-family: inherit;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    letter-spacing: .1px;
}
.balivibulanan-section-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 3px 9px;
    border: 1px solid #f0d99b;
    border-radius: 999px;
    background: #fff6dc;
    color: #98711d;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .35px;
}
.balivibulanan-section-rule {
    display: block;
    flex: 1 1 auto;
    height: 1px;
    min-width: 20px;
    background: linear-gradient(90deg, #dce9e9 0%, rgba(220,233,233,0) 100%);
}
@media (max-width: 767px) {
    .balivibulanan-section-heading {
        gap: 9px;
        margin: 0 10px 10px;
        padding: 10px 12px;
        border-radius: 9px;
    }
    .balivibulanan-section-title {
        gap: 8px;
        font-size: 14px !important;
    }
    .balivibulanan-section-badge {
        min-height: 20px;
        padding: 3px 8px;
        font-size: 9px;
    }
}


/* ==========================================================
   FULL-RESOLUTION VILLA FEATURE IMAGES
   Use original WordPress attachment source in listing cards.
   ========================================================== */
body #villa-posts .villa-item.card .balivibulanan-card-image {
    position: relative !important;
    overflow: hidden !important;
    background: #f4f7f7;
}
body #villa-posts .villa-item.card .balivulanan-image-link,
body #villa-posts .villa-item.card .balivibulanan-image-link {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 320px;
    overflow: hidden !important;
}
body #villa-posts .villa-item.card img.balivibulanan-full-resolution-image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 320px !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    image-rendering: auto !important;
    filter: none !important;
    transform: none !important;
    backface-visibility: visible !important;
}
@media (max-width: 767px) {
    body #villa-posts .villa-item.card .balivibulanan-image-link {
        min-height: 250px;
    }
    body #villa-posts .villa-item.card img.balivibulanan-full-resolution-image {
        min-height: 250px !important;
    }
}

/* Keep one visible label only: HTML provides 'More Info' and the arrow icon. */
body .villa-item.card .balivi-btn-icon::before { content: none !important; display: none !important; }


/* ==========================================================
   PREMIUM HOME HERO — BALIVI MONTHLY & YEARLY VILLA RENTALS
   ========================================================== */
body .balivibulanan-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 18px 0 22px !important;
    padding: clamp(22px, 4vw, 42px) !important;
    border: 1px solid #e8e5dc !important;
    border-radius: 22px !important;
    background:
        radial-gradient(ellipse at 100% 0%, rgba(245, 207, 117, .16), transparent 38%),
        linear-gradient(145deg, #ffffff 0%, #fcfcf9 58%, #f8faf9 100%) !important;
    box-shadow: 0 14px 42px rgba(30, 48, 58, .075), 0 2px 7px rgba(30, 48, 58, .025) !important;
    color: #465866 !important;
}
.balivibulanan-hero-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 17px;
    border-bottom: 1px solid #e9ece8;
}
.balivibulanan-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #183b54;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.55px;
}
.balivibulanan-hero-kicker i {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #c99b35;
}
.balivibulanan-hero-since {
    color: #8a969b;
    font-size: 11px;
    letter-spacing: .25px;
}
.balivibulanan-hero-copy {
    max-width: 740px;
    padding: clamp(25px, 4vw, 39px) 0 24px;
}
.balivibulanan-hero .balivibulanan-hero-eyebrow {
    margin: 0 0 11px !important;
    color: #a27a2b !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 2px;
    line-height: 1.4;
}
.balivibulanan-hero h1#balivibulanan-hero-title {
    margin: 0 0 13px !important;
    color: #18364b !important;
    font-size: clamp(31px, 4.5vw, 48px) !important;
    font-weight: 750 !important;
    letter-spacing: -1.5px;
    line-height: 1.12 !important;
}
.balivibulanan-hero h1#balivibulanan-hero-title em {
    color: #0b8290;
    font-style: normal;
}
.balivibulanan-hero h2 {
    margin: 0 0 12px !important;
    color: #314c5c !important;
    font-size: clamp(17px, 2vw, 21px) !important;
    font-weight: 650 !important;
    line-height: 1.4 !important;
}
.balivibulanan-hero .balivibulanan-hero-description {
    max-width: 690px;
    margin: 0 !important;
    color: #687780 !important;
    font-size: 15px !important;
    font-weight: 400;
    line-height: 1.8 !important;
}
.balivibulanan-hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}
.balivibulanan-hero-highlights span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid #e5eae5;
    border-radius: 999px;
    background: rgba(255,255,255,.82);
    color: #536773;
    font-size: 12px;
    font-weight: 600;
}
.balivibulanan-hero-highlights b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #e7f3ef;
    color: #16806e;
    font-size: 11px;
    line-height: 1;
}
.balivibulanan-hero-visual {
    position: relative;
    overflow: hidden;
    margin: 0 !important;
    border-radius: 15px;
    background: #e9efed;
    box-shadow: 0 10px 26px rgba(28, 48, 55, .12);
}
.balivibulanan-hero-visual::after {
    content: "";
    position: absolute;
    inset: 35% 0 0;
    background: linear-gradient(180deg, transparent 0%, rgba(8, 27, 36, .52) 100%);
    pointer-events: none;
}
.balivibulanan-hero-visual > img {
    display: block;
    width: 100% !important;
    height: auto !important;
    max-height: 440px;
    object-fit: cover;
    object-position: center 48%;
    transition: transform .7s ease;
}
.balivibulanan-hero-visual:hover > img {
    transform: scale(1.015);
}
.balivibulanan-hero-visual figcaption {
    position: absolute;
    z-index: 2;
    right: 20px;
    bottom: 19px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 11px;
    color: #fff;
}
.balivibulanan-hero-caption-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    border: 1px solid rgba(255,255,255,.58);
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: #fff;
    font-family: Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}
.balivibulanan-hero-visual figcaption strong,
.balivibulanan-hero-visual figcaption small {
    display: block;
    color: #fff !important;
    text-shadow: 0 1px 5px rgba(0,0,0,.2);
}
.balivibulanan-hero-visual figcaption strong {
    font-size: 14px;
    font-weight: 750;
    letter-spacing: .2px;
}
.balivibulanan-hero-visual figcaption small {
    margin-top: 2px;
    font-size: 11px;
    opacity: .9;
}
@media (max-width: 767px) {
    body .balivibulanan-hero {
        margin: 12px 0 18px !important;
        padding: 20px 17px !important;
        border-radius: 16px !important;
    }
    .balivibulanan-hero-topline {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
        padding-bottom: 13px;
    }
    .balivibulanan-hero-kicker {
        font-size: 10px;
        letter-spacing: 1.25px;
    }
    .balivibulanan-hero-copy {
        padding: 23px 0 19px;
    }
    .balivibulanan-hero h1#balivibulanan-hero-title {
        font-size: clamp(29px, 8vw, 38px) !important;
        letter-spacing: -1px;
    }
    .balivibulanan-hero h2 {
        font-size: 17px !important;
    }
    .balivibulanan-hero .balivibulanan-hero-description {
        font-size: 14px !important;
        line-height: 1.7 !important;
    }
    .balivibulanan-hero-highlights {
        gap: 7px;
        margin-top: 16px;
    }
    .balivibulanan-hero-highlights span {
        padding: 7px 10px;
        font-size: 11px;
    }
    .balivibulanan-hero-visual {
        border-radius: 11px;
    }
    .balivibulanan-hero-visual figcaption {
        right: 12px;
        bottom: 12px;
        left: 12px;
    }
    .balivibulanan-hero-caption-mark {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .balivibulanan-hero-visual > img { transition: none; }
}



/* BALIVI V27 — jQuery UI datepicker popup is appended to <body>, not inside #bookingModal.
   Target the real popup element so month/year sizing actually takes effect. */
#ui-datepicker-div,
body #ui-datepicker-div.ui-datepicker {
    box-sizing: border-box !important;
    width: 260px !important;
    max-width: calc(100vw - 28px) !important;
    padding: 7px !important;
    font-size: 11px !important;
    z-index: 2100 !important;
}
#ui-datepicker-div .ui-datepicker-title {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
}
#ui-datepicker-div select.ui-datepicker-month,
#ui-datepicker-div select.ui-datepicker-year {
    display: inline-block !important;
    box-sizing: border-box !important;
    height: 19px !important;
    min-height: 19px !important;
    margin: 0 !important;
    padding: 0 13px 0 4px !important;
    border: 1px solid #dce5e3 !important;
    border-radius: 5px !important;
    background-color: #fff !important;
    color: #29465a !important;
    font-family: inherit !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 17px !important;
    box-shadow: none !important;
    vertical-align: middle !important;
}
#ui-datepicker-div select.ui-datepicker-month {
    width: 82px !important;
    min-width: 82px !important;
    max-width: 82px !important;
}
#ui-datepicker-div select.ui-datepicker-year {
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
}
#ui-datepicker-div .ui-datepicker-header {
    min-height: 29px !important;
    padding: 2px 27px !important;
}
#ui-datepicker-div .ui-datepicker-prev,
#ui-datepicker-div .ui-datepicker-next {
    top: 4px !important;
    width: 21px !important;
    height: 21px !important;
}
@media (max-width: 575.98px) {
    #ui-datepicker-div,
    body #ui-datepicker-div.ui-datepicker {
        width: 244px !important;
        max-width: calc(100vw - 24px) !important;
        padding: 6px !important;
        font-size: 10px !important;
    }
    #ui-datepicker-div select.ui-datepicker-month,
    #ui-datepicker-div select.ui-datepicker-year {
        height: 18px !important;
        min-height: 18px !important;
        padding: 0 11px 0 3px !important;
        font-size: 9px !important;
        line-height: 16px !important;
    }
    #ui-datepicker-div select.ui-datepicker-month {
        width: 76px !important;
        min-width: 76px !important;
        max-width: 76px !important;
    }
    #ui-datepicker-div select.ui-datepicker-year {
        width: 48px !important;
        min-width: 48px !important;
        max-width: 48px !important;
    }
    #ui-datepicker-div .ui-datepicker-title {
        gap: 3px !important;
        font-size: 9px !important;
    }
}



/* BALIVI V30 — keep the page canvas white flush to the bottom edge */
html,
body {
    background-color: #ffffff !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}


/* BALIVI V31 — shared header dimensions and white page canvas */
html, body {
  background: #ffffff !important;
  background-image: none !important;
}
body { border-top: 0 !important; }
.balivi-header-bg.container {
  width: 900px !important;
  max-width: calc(100% - 30px) !important;
  margin: 0 auto !important;
  padding: 0 10px !important;
  background: #fff !important;
  box-sizing: border-box !important;
}
.balivi-header-bg img {
  width: 140px !important;
  height: 137px !important;
  object-fit: contain !important;
}
.container-fluid.menu-bar {
  width: 900px !important;
  max-width: calc(100% - 30px) !important;
  margin: 0 auto !important;
  padding: 0 10px !important;
  background: #fff !important;
  box-sizing: border-box !important;
}
.container-fluid.menu-bar > nav.balivi-nav {
  width: 100% !important;
  margin: 0 auto !important;
  background: #fff !important;
  border: 1px solid #e5eceb !important;
  box-shadow: 0 4px 16px rgba(27,59,72,.05) !important;
}
.container-fluid.menu-bar > nav.balivi-nav > .container {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 10px !important;
}
.balivi-nav .nav-link { color: #243746 !important; font-weight: 600 !important; }
.balivi-nav-indicator { color: #657786 !important; }
.balivi-nav-indicator strong { color: #087f8c !important; }
.balivi-nav-indicator .dot { background: #f47b62 !important; }
@media (max-width: 767px) {
  .balivi-header-bg.container, .container-fluid.menu-bar {
    width: calc(100% - 20px) !important;
    max-width: 900px !important;
  }
  .balivi-header-bg img { width: 120px !important; height: 117px !important; }
}


/* BALIVI V32 shared clean header */


/* BALIVI V32 — cleaner, lighter shared header across every template */
.balivi-header-bg.container {
    width: 900px !important;
    max-width: calc(100% - 30px) !important;
    margin: 0 auto !important;
    padding: 5px 0 0 !important;
    background: #fff !important;
    border: 0 !important;
    box-shadow: none !important;
}
.balivi-header-bg .row {
    margin: 0 !important;
}
.balivi-header-bg .col-12 {
    padding: 0 !important;
    line-height: 0 !important;
}
.balivi-header-bg img {
    display: inline-block !important;
    width: 130px !important;
    height: 130px !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    vertical-align: middle !important;
}
.container-fluid.menu-bar {
    width: 900px !important;
    max-width: calc(100% - 30px) !important;
    margin: 0 auto !important;
    padding: 0 0 8px !important;
    background: #fff !important;
    border: 0 !important;
    box-shadow: none !important;
}
.container-fluid.menu-bar > nav.balivi-nav {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    background-image: none !important;
    border: 0 !important;
    border-top: 1px solid #edf1f0 !important;
    border-bottom: 1px solid #e7edeb !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.container-fluid.menu-bar > nav.balivi-nav > .container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 10px 12px 8px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}
.balivi-nav .navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 4px 24px !important;
}
.balivi-nav .nav-item {
    margin: 0 !important;
    padding: 0 !important;
}
.balivi-nav .nav-link {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    min-height: 28px !important;
    padding: 3px 0 !important;
    color: #263b49 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    letter-spacing: .1px !important;
    text-decoration: none !important;
    transition: color .2s ease !important;
}
.balivi-nav .nav-link::before {
    height: 1px !important;
    background: #e9efed !important;
}
.balivi-nav .nav-link::after {
    height: 2px !important;
    bottom: -1px !important;
    background: #078895 !important;
    transition: width .22s ease !important;
}
.balivi-nav .nav-link:hover,
.balivi-nav .nav-link:focus {
    color: #078895 !important;
}
.balivi-nav-indicator {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 5px 0 0 !important;
    padding: 0 !important;
    color: #788791 !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    letter-spacing: .1px !important;
}
.balivi-nav-indicator strong {
    color: #078895 !important;
    font-weight: 600 !important;
}
.balivi-nav-indicator .dot {
    width: 6px !important;
    height: 6px !important;
    flex: 0 0 6px !important;
    background: #f18470 !important;
    box-shadow: none !important;
}
@media (max-width: 767px) {
    .balivi-header-bg.container {
        width: calc(100% - 20px) !important;
        max-width: 900px !important;
        padding-top: 4px !important;
    }
    .balivi-header-bg img {
        width: 112px !important;
        height: 112px !important;
    }
    .container-fluid.menu-bar {
        width: calc(100% - 20px) !important;
        max-width: 900px !important;
        padding-bottom: 6px !important;
    }
    .container-fluid.menu-bar > nav.balivi-nav > .container {
        padding: 8px 8px 7px !important;
    }
    .balivi-nav .navbar-nav {
        gap: 3px 17px !important;
    }
    .balivi-nav .nav-link {
        min-height: 26px !important;
        font-size: 13px !important;
    }
    .balivi-nav-indicator {
        margin-top: 4px !important;
        font-size: 10px !important;
        white-space: normal !important;
        text-align: center !important;
    }
}





/* BALIVI V33 — one shared content width, using Home as the master reference */
:root {
  --balivi-home-box-width: 900px;
  --balivi-page-gutter: 15px;
}

/* Main page shell: Home, single villa, archive, search, tag, pages and 404 */
.container.border.bg-white,
body.balivi-single-body > .balivi-single-wrap,
.balivi-single-body .balivi-single-wrap {
  display: block !important;
  width: var(--balivi-home-box-width) !important;
  max-width: calc(100% - 30px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* Keep nested content wrappers inside the same outer frame */
.container.border.bg-white > .container,
.container.border.bg-white > .balivi-single-inner,
.container.border.bg-white > .container-fluid,
.container.border.bg-white .balivi-single-inner,
.container.border.bg-white .balivi-single-content-wrap {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Header, navigation and footer inner content use the same Home width */
.balivi-header-bg.container,
.container-fluid.menu-bar,
footer.page-footer.balivi-footer > .container,
footer.page-footer.balivi-footer > .container.py-4 {
  width: var(--balivi-home-box-width) !important;
  max-width: calc(100% - 30px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* Preserve the shared mobile gutter and prevent horizontal overflow */
@media (max-width: 767.98px) {
  .container.border.bg-white,
  body.balivi-single-body > .balivi-single-wrap,
  .balivi-single-body .balivi-single-wrap,
  .balivi-header-bg.container,
  .container-fluid.menu-bar,
  footer.page-footer.balivi-footer > .container,
  footer.page-footer.balivi-footer > .container.py-4 {
    width: calc(100% - 20px) !important;
    max-width: 900px !important;
  }

  .container.border.bg-white > .container,
  .container.border.bg-white > .balivi-single-inner,
  .container.border.bg-white > .container-fluid,
  .container.border.bg-white .balivi-single-inner,
  .container.border.bg-white .balivi-single-content-wrap {
    width: 100% !important;
    max-width: 100% !important;
  }
}




/* BALIVI V34 — match the Home page canvas across every template */
html,
html body,
html body.balivi-single-body {
  background: #f1f3f6 !important;
  background-color: #f1f3f6 !important;
  background-image: none !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
}

/* Keep the page frame and all primary content panels clean white */
body .container.border.bg-white,
body .balivi-single-wrap,
body .balivi-header-bg,
body .container-fluid.menu-bar,
body footer.page-footer.balivi-footer {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
}

/* The outer page canvas must remain visible around the centered white frame */
body {
  color: #425166;
}




/* BALIVI V36 — reduce booking calendar month/year fields by 20% */
html body #ui-datepicker-div select.ui-datepicker-month,
html body #ui-datepicker-div select.ui-datepicker-year,
html body #bookingModal .ui-datepicker select.ui-datepicker-month,
html body #bookingModal .ui-datepicker select.ui-datepicker-year {
    box-sizing: border-box !important;
    height: 15px !important;
    min-height: 15px !important;
    padding: 0 9px 0 3px !important;
    font-size: 8px !important;
    line-height: 13px !important;
    border-radius: 4px !important;
}
html body #ui-datepicker-div select.ui-datepicker-month,
html body #bookingModal .ui-datepicker select.ui-datepicker-month {
    width: 66px !important;
    min-width: 66px !important;
    max-width: 66px !important;
}
html body #ui-datepicker-div select.ui-datepicker-year,
html body #bookingModal .ui-datepicker select.ui-datepicker-year {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
}
html body #ui-datepicker-div .ui-datepicker-title,
html body #bookingModal .ui-datepicker .ui-datepicker-title {
    gap: 3px !important;
    font-size: 9px !important;
}
@media (max-width: 575.98px) {
    html body #ui-datepicker-div select.ui-datepicker-month,
    html body #bookingModal .ui-datepicker select.ui-datepicker-month {
        width: 61px !important;
        min-width: 61px !important;
        max-width: 61px !important;
    }
    html body #ui-datepicker-div select.ui-datepicker-year,
    html body #bookingModal .ui-datepicker select.ui-datepicker-year {
        width: 38px !important;
        min-width: 38px !important;
        max-width: 38px !important;
    }
    html body #ui-datepicker-div select.ui-datepicker-month,
    html body #ui-datepicker-div select.ui-datepicker-year,
    html body #bookingModal .ui-datepicker select.ui-datepicker-month,
    html body #bookingModal .ui-datepicker select.ui-datepicker-year {
        height: 14px !important;
        min-height: 14px !important;
        padding: 0 8px 0 2px !important;
        font-size: 7.5px !important;
        line-height: 12px !important;
    }
}




/* BALIVI V37 — actual Flatpickr month/year controls (verified DOM selectors) */
html body .flatpickr-calendar .flatpickr-current-month {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    font-size: 14px !important;
    line-height: 1 !important;
    padding-top: 0 !important;
}

html body .flatpickr-calendar .flatpickr-current-month .flatpickr-monthDropdown-months {
    display: inline-block !important;
    box-sizing: border-box !important;
    width: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;
    height: 20px !important;
    min-height: 20px !important;
    margin: 0 !important;
    padding: 0 16px 0 5px !important;
    border: 1px solid #dce5e3 !important;
    border-radius: 6px !important;
    background-color: #fff !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 18px !important;
    vertical-align: middle !important;
}

html body .flatpickr-calendar .flatpickr-current-month .numInputWrapper {
    display: inline-flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    height: 20px !important;
    margin: 0 !important;
}

html body .flatpickr-calendar .flatpickr-current-month input.numInput.cur-year {
    display: block !important;
    box-sizing: border-box !important;
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    height: 20px !important;
    min-height: 20px !important;
    margin: 0 !important;
    padding: 0 11px 0 4px !important;
    border: 1px solid #dce5e3 !important;
    border-radius: 6px !important;
    background: #fff !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 18px !important;
    text-align: center !important;
}

html body .flatpickr-calendar .flatpickr-current-month .numInputWrapper span.arrowUp,
html body .flatpickr-calendar .flatpickr-current-month .numInputWrapper span.arrowDown {
    width: 10px !important;
    right: 1px !important;
}

@media (max-width: 575.98px) {
    html body .flatpickr-calendar .flatpickr-current-month {
        gap: 3px !important;
        font-size: 13px !important;
    }

    html body .flatpickr-calendar .flatpickr-current-month .flatpickr-monthDropdown-months {
        width: 86px !important;
        min-width: 86px !important;
        max-width: 86px !important;
        height: 19px !important;
        min-height: 19px !important;
        font-size: 13px !important;
        line-height: 17px !important;
    }

    html body .flatpickr-calendar .flatpickr-current-month .numInputWrapper,
    html body .flatpickr-calendar .flatpickr-current-month input.numInput.cur-year {
        width: 48px !important;
        min-width: 48px !important;
        max-width: 48px !important;
        height: 19px !important;
        min-height: 19px !important;
    }

    html body .flatpickr-calendar .flatpickr-current-month input.numInput.cur-year {
        font-size: 13px !important;
        line-height: 17px !important;
    }
}

