/* 
Theme Name:		 RentalHive Child
Theme URI:		 http://childtheme-generator.com/
Description:	 RentalHive Child is a child theme of RentalHive, created by ChildTheme-Generator.com
Author:			 Solve BC
Author URI:		 http://childtheme-generator.com/
Template:		 rentalhive
Version:		 1.0.3
Text Domain:	 rentalhive-child
*/


/*
    Add your custom styles here
*/



.hp-membership-plan__price {
    display: none;
}
.ui-datepicker {
    z-index: 99999 !important;
}

.acf-field-date-picker .acf-input input[type="text"] {
    width: 100%;
    padding: 8px 12px;
}
.gm-style-iw-chr {
    position: absolute;
    top: -14px;
    right: 0px;
}
.gm-style-iw-d {
    padding: 10px 30px 0px 0px;
}

/* ============================================================
   PAGE LAYOUT — sidebar + main two-column
   ============================================================ */

.io-listings-page .hp-row {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	-webkit-box-align: start;
	-ms-flex-align: start;
	align-items: flex-start;
	gap: 0;
}

.io-listings-page .hp-page__sidebar {
	position: -webkit-sticky;
	position: sticky;
	top: 80px; /* adjust to your header height */
	overflow-y: auto;
	overflow-x: hidden;
	padding-right: 20px;

	/* thin scroll bar */
	scrollbar-width: thin;
	scrollbar-color: #ddd transparent;
}
.io-listings-page .hp-page__sidebar::-webkit-scrollbar { width: 4px; }
.io-listings-page .hp-page__sidebar::-webkit-scrollbar-track { background: transparent; }
.io-listings-page .hp-page__sidebar::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }

/* ============================================================
   MAP
   ============================================================ */

.io-map-wrap {
	position: -webkit-sticky;
	position: sticky;
	top: 80px; /* match header height */
	z-index: 10;
	margin-bottom: 20px;
}

/* Force GridBuilder map facet to full width */
.io-map-wrap .wpgb-facet--map,
.io-map-wrap .wpgb-map-container {
	width: 100% !important;
	height: 420px !important; /* adjust to taste */
	border-radius: 8px;
	overflow: hidden;
}

/* ============================================================
   FACET WIDGETS IN SIDEBAR
   ============================================================ */

.io-listings-sidebar .io-facet-wrap .wpgb-facet{
border-bottom: 1px solid #f0f0f0;
    padding: 40px 0 0;
}
.hp-section:not(:last-child), .hp-widget:not(:last-child) {
    margin-bottom: 0rem;
}
.io-facet-wrap:first-child { padding-top: 0; }
.io-facet-wrap:last-child  { border-bottom: none; }

/* GridBuilder renders facet labels — harmonise with HP style */
.io-facet-wrap .wpgb-facet__heading {
	font-size: 14px;
	font-weight: 600;
	color: #1a1a1a;
	margin-bottom: 10px;
	text-transform: uppercase;
	letter-spacing: .04em;
}

/* Checkboxes */
.io-facet-wrap .wpgb-checkbox-facet__item {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	gap: 8px;
	padding: 4px 0;
	cursor: pointer;
}

/* Range slider */
.io-facet-wrap .wpgb-range-facet__slider {
	margin-top: 10px;
}

/* Geolocation input */
.io-facet-wrap--geolocation .wpgb-geolocation-facet__input {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
}

/* Reset button */
.io-facet-wrap--reset .wpgb-reset-facet__button {
	width: 100%;
	padding: 10px;
	margin-top: 4px;
	background: transparent;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #555;
	cursor: pointer;
	-webkit-transition: all .15s;
	transition: all .15s;
}
.io-facet-wrap--reset .wpgb-reset-facet__button:hover {
	background: #f5f5f5;
	color: #1a1a1a;
}

/* ============================================================
   RESULTS TOOLBAR
   ============================================================ */

.io-results-toolbar {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: justify;
	-ms-flex-pack: justify;
	justify-content: space-between;
	padding: 10px 0 12px;
	font-size: 13px;
	color: #666;
}

/* ============================================================
   GRID CARDS — override GridBuilder defaults to match HP cards
   ============================================================ */

/* Ensure 2-col or 3-col grid depending on viewport */
.io-listings-page .wpgb-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}

/* Card wrapper */
.io-listings-page .wpgb-card {
	border-radius: 8px;
	overflow: visable;
	-webkit-box-shadow: 0 1px 4px rgba(0,0,0,.08);
	box-shadow: 0 1px 4px rgba(0,0,0,.08);
	-webkit-transition: -webkit-box-shadow .2s, -webkit-transform .2s;
	transition: -webkit-box-shadow .2s, -webkit-transform .2s;
	transition: box-shadow .2s, transform .2s;
	transition: box-shadow .2s, transform .2s, -webkit-box-shadow .2s, -webkit-transform .2s;
	background: #fff;
}
.io-listings-page .wpgb-card:hover {
	-webkit-box-shadow: 0 4px 16px rgba(0,0,0,.13);
	box-shadow: 0 4px 16px rgba(0,0,0,.13);
	-webkit-transform: translateY(-2px);
	transform: translateY(-2px);
}

/* Featured image */
.io-listings-page .wpgb-card .wpgb-card__media img {
	width: 100%;
	height: 200px;
	-o-object-fit: cover;
	object-fit: cover;
	display: block;
}

/* Card body */
.io-listings-page .wpgb-card .wpgb-card__body {
	padding: 12px 14px;
}

/* Title */
.io-listings-page .wpgb-card .wpgb-card__title,
.io-listings-page .wpgb-card .wpgb-card__title a {
	font-size: 15px;
	font-weight: 600;
	color: #1a1a1a;
	text-decoration: none;
	line-height: 1.3;
}
.io-listings-page .wpgb-card .wpgb-card__title a:hover {
	color: var(--hp-c-primary, #1a73e8);
}

/* ============================================================
   PAGINATION
   ============================================================ */

.io-pagination-wrap {
	padding: 24px 0;
	text-align: center;
}

/* Load more button */
.io-pagination-wrap .wpgb-load-more-facet__button {
	padding: 12px 32px;
	background: var(--hp-c-primary, #1a73e8);
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	-webkit-transition: background .15s;
	transition: background .15s;
}
.io-pagination-wrap .wpgb-load-more-facet__button:hover {
	background: var(--hp-c-primary-dark, #1558b0);
}

/* ============================================================
   GUEST "MORE FILTERS" NOTICE (injected via JS)
   ============================================================ */

.io-more-filters-note {
	padding: 12px 14px;
	background: #f0f7ff;
	border: 1px solid #cce0ff;
	border-radius: 6px;
	font-size: 13px;
	color: #333;
	line-height: 1.5;
	margin-top: 12px;
}
.io-more-filters-note .hp-link {
	color: var(--hp-c-primary, #1a73e8);
	font-weight: 600;
	text-decoration: none;
}

/* ============================================================
   MOBILE — stack sidebar above map/results
   ============================================================ */

@media (max-width: 991px) {
	.io-listings-page .hp-page__sidebar {
		position: static;
		max-height: none;
		overflow: visible;
		padding-right: 0;
		margin-bottom: 24px;
	}

	.io-map-wrap {
		position: static;
	}

	.io-map-wrap .wpgb-map-container {
		height: 300px !important;
	}

	.io-listings-page .wpgb-grid {
		grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	}
}

.wpgb-facet .wpgb-facet-title{
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.6875rem !important;
    font-family: Inter, sans-serif;
}

.wpgb-facet-14.wpgb-facet fieldset:last-child {
    margin-bottom: 0px !important;
}
.wpgb-facet-3.wpgb-facet fieldset:last-child {
    margin-bottom: 0px !important;
}

.wpgb-facet.wpgb-facet-14.wpgb-style-1 select.wpgb-select {
    height: 43px;
}
.wpgb-facet.wpgb-facet-14.wpgb-style-1 span.wpgb-select-separator {
    display: none;
}

.hp-form--primary {
    padding: 10px 20px !important;
}

/* ============================================================
   WPGB + HIVEPRESS CARD INTEGRATION
   ============================================================ */

.wpgb-card .wpgb-card-body,
.wpgb-card .wpgb-block-1 {
    padding: 0 !important;
    margin: 0 !important;
}

.wpgb-card .hp-listing--view-block {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0 !important;
}

/* Image */
.wpgb-card .hp-listing__image {
    position: relative;
    margin-bottom: 0 !important;
}

.wpgb-card .hp-listing__image a {
    display: block;
}
.wpgb-card .hp-listing__image,
.wpgb-card .hp-listing__image a {
    display: block;
    height: 300px;  /* fixed — WPGB will measure this consistently */
}
.wpgb-card .hp-listing__image img {
    width: 100%;
    height: 300px;
    -o-object-fit: cover;
    object-fit: cover;
    display: block;
}

/* Category badge overlaid on image */
.wpgb-card .hp-listing--view-block .hp-listing__categories {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 2;
    margin: 0;
}

.wpgb-card .hp-listing--view-block .hp-listing__categories a {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.6875rem !important;
    background-color: #f1bd6c;
    background-image: -webkit-gradient(linear, left top, right top, from(rgba(255, 255, 255, 0)), to(rgba(255, 255, 255, 0.2))) !important;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.2)) !important;
    color: #fff !important;
    -webkit-transition: color 0.25s, background-color 0.25s;
    transition: color 0.25s, background-color 0.25s;
    border-radius: 9999px;
    padding: 0.375rem 0.75rem !important;
    position: relative;
    background-color: rgba(255, 255, 255, 0.35) !important;
    background-image: none;
}

/* Content */
.wpgb-card .hp-listing__content {
    padding: 14px 16px 0;
}

.wpgb-card .hp-listing__title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 6px !important;
    line-height: 1.3;
}

.wpgb-card .hp-listing__title a {
    color: #1a1a1a;
    text-decoration: none;
}

.wpgb-card .hp-listing__details--primary {
    margin-bottom: 0 !important;
}

.wpgb-card .hp-listing__location {
    font-size: 13px;
    color: #666;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 5px;
}

.wpgb-card .hp-listing__location a {
    color: #666;
    text-decoration: none;
}

.wpgb-card .hp-listing__location .hp-icon {
    font-size: 24px;
    color: var(--hp-c-primary, #f2896e);
}

/* Footer */
.wpgb-card .hp-listing__footer {
    padding: 10px 16px 14px;
    border-top: 1px solid #f0f0f0;
    margin-top: 10px !important;
}

/* Price */
.wpgb-card .hp-listing__attribute--price {
    font-size: 15px;
    font-weight: 600;
    color: var(--hp-c-primary, #f2896e);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 2px;
}


/* Actions */
.wpgb-card .hp-listing__action {
    font-size: 16px;
    opacity: 0.4;
    -webkit-transition: opacity 0.15s;
    transition: opacity 0.15s;
    color: #1a1a1a;
}
.wpgb-card [class*=wpgb-block-] {
    white-space: normal !important;
}

.wpgb-card .hp-listing__action:hover,
.wpgb-card .hp-listing__action[data-state="active"] {
    opacity: 1;
}

/* Kill extra spacing GridBuilder adds between sections */
.wpgb-card .hp-listing--view-block .hp-listing__header:not(:last-child),
.wpgb-card .hp-listing--view-block .hp-listing__content:not(:last-child),
.wpgb-card .hp-listing--view-block .hp-listing__footer:not(:last-child) {
    margin-bottom: 0 !important;
}

/* Card shell */
.wpgb-card .hp-listing--view-block {
    border-radius: 12px;
    -webkit-box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    overflow: hidden;
    background: #fff;
}

/* Content padding */
.wpgb-card .hp-listing__content {
    padding: 14px 16px 0 16px !important;
}

.wpgb-card .hp-listing__title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px !important;
}

.wpgb-card .hp-listing__footer {
    padding: 10px 16px 16px 16px !important;
}

/* Card wrapper needs padding to show the shadow */
.wpgb-card .wpgb-card-wrapper {
    padding: 4px;
}

/* Ensure the card inner has the shadow and rounding */
.wpgb-card .wpgb-card-inner {
    border-radius: 12px !important;
    -webkit-box-shadow: 0 2px 12px rgba(0,0,0,0.10) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10) !important;
    overflow: hidden;
    background: #fff;
}

/* Image rounded top corners */
.wpgb-card .hp-listing__image img {
    border-radius: 12px 12px 0 0;
}

/* Title bolder */
.wpgb-card .hp-listing__title a {
    color: rgba(15, 23, 39, .85) !important;
    font-weight: 600 !important;
    font-size: 1.3125rem !important;
    line-height: 1.3 !important;
}

.wpgb-card .hp-listing--view-block .hp-listing__title:not(:last-child) {
    margin-bottom: 0.75rem !important;
}

/* Content left padding bump */
.wpgb-card .hp-listing__content {
    padding-left: 16px !important;
    padding-right: 16px !important;
}
.hp-listing--view-block .hp-listing__footer{
    margin: 0px !important;
}
.wp-grid-builder .wpgb-card .wpgb-card-body{
    background: none;
}
.wpgb-block-1 {
    height: 100% !important;
}
article.hp-listing.hp-listing--view-block {
    height: 100%;
}
.io-listings-page .wpgb-card:hover {
    -webkit-box-shadow: 0 4px 16px rgba(0, 0, 0, .13);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .13);
    -webkit-transform: translateY(-0px) !important;
    transform: translateY(0px) !important;
}
.hp-listing--view-block:hover {
    -webkit-transform: translateY(0px) !important;
    transform: translateY(0px) !important;
}
.hp-listing__attribute.hp-listing__attribute--price {
    font-size: 15px !important;
    display: inline-block;
}

.wpgb-facet.wpgb-facet-15.wpgb-style-1 .wpgb-input, .wpgb-facet.wpgb-facet-15.wpgb-style-1 select.wpgb-select{
    font-size: 12px;
}
.hp-page__topbar label.hp-field__label.hp-form__label, .wpgb-facet.wpgb-facet-15.wpgb-style-1{
    display: inline-block;
}


.wpgb-facet.wpgb-facet-15.wpgb-style-1>fieldset:last-child{
    margin-bottom: 0px;
}
.io-facet-wrap.io-facet-wrap--reset.headerreset {
    padding: 0px;
    text-align: center;
}
.io-facet-wrap.io-facet-wrap--reset.headerreset button.wpgb-button.wpgb-reset {
    margin: 0px 0px 10px 0px !important;
}
.hp-page__header:not(:last-child) {
    margin-bottom: 2rem;
}
.wpgb-hp-popup__body a, .wpgb-hp-popup__location{
    white-space: normal;
}
.wpgb-hp-popup__location svg{
display: none;
}
.io-filter-toggle {
    display: none;
}

@media (max-width: 1199px) {

    .io-filter-toggle {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        gap: 8px;
        width: 100%;
        padding: 12px 20px;
        margin-bottom: 16px;
        background: #f2896e;
        border: 0px solid #e0e0e0;
        border-radius: 30px;
        font-size: 14px;
        color: #fff;
        cursor: pointer;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
    }

    .io-listings-sidebar {
        display: none;
        margin-bottom: 20px;
    }

    .io-listings-sidebar.is-open {
        display: block;
    }
}
@media (max-width: 1199px) {
    .io-listings-sidebar {
        display: none !important;
    }

    .io-listings-sidebar.is-open {
        display: block !important;
    }

    .io-filter-toggle {
        display: -webkit-box !important;
        display: -ms-flexbox !important;
        display: flex !important;
    }
}

@media only screen and (max-width: 47.99em) {
    .io-listings-sidebar .hp-widget--listing-filter,
    .io-listings-sidebar .hp-widget--vendor-filter {
        display: block !important;
    }
}

.hp-page__topbar .wpgb-facet.wpgb-facet-15.wpgb-style-1 {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 8px;
}

.hp-page__topbar .hp-form__fields h4.wpgb-facet-title{
    margin: 0;
    white-space: nowrap;
    font-size: 13px;
    color: rgba(15,23,39,.45);
}

.wpgb-facet.wpgb-style-1 button.wpgb-button {
    padding: 10px;
    font-size: 12px;
    background: #f2896e;
}
button.wpgb-button.wpgb-reset{
    width: 100%;
    margin-bottom: 10px;
}
button#io-filter-toggle:hover{
    background: #0f1727;
}
button.wpgb-button.wpgb-reset{
            border-radius: 30px !important;
}
#io-map-section .wpgb-map-facet .gm-style .gm-style-iw-d+button, #io-map-section .wpgb-map-facet .leaflet-popup-close-button, #io-map-section .wpgb-map-facet .mapboxgl-popup-close-button {
    background: #f2896e !important;
    line-height: 1 !important;
    color: white !important;
}

.wpgb-facet .wpgb-reset[disabled] {
    visibility: hidden !important;
    pointer-events: none !important;
}

.wpgb-facet .wpgb-reset:not([disabled]) {
    visibility: visible !important;
}
.wpgb-card,
.wpgb-card-inner {
    height: auto !important;
    min-height: unset !important;
}

.wpgb-grid .wpgb-column {
    height: auto !important;
}

/* ---- Mobile overlap fix ---- */
@media (max-width: 767px) {
    .wpgb-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        height: auto !important;
        position: static !important;
    }

    .wpgb-grid .wpgb-column {
        position: static !important;
        float: none !important;
        width: 100% !important;
        left: auto !important;
        top: auto !important;
        -webkit-transform: none !important;
        transform: none !important;
        height: auto !important;
    }
}