/*
Theme Name: Homey Child
Theme URI: http://themeforest.net/user/favethemes/
Author: Favethemes
Author URI: http://themeforest.net/user/favethemes/
Description: Homey is a powerful booking platform that lets you run a residential or commercial
rental business online with no hassle
Version: 1.0.0
Tags: right-sidebar, left-sidebar, custom-colors, custom-menu, featured-images, post-formats, theme-options, translation-ready
License: GNU General Public License version 3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: homey
Template: homey
*/

/* Keep the featured badge visually associated with the listing title without
 * including it in the page's H1 text. */
.iturist-listing-title-row {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 3px 0 10px;
	width: 85%;
}

.iturist-listing-title-row .listing-title {
	margin: 0;
	width: auto;
}

.iturist-listing-title-row > .label-featured {
	flex: 0 0 auto;
}

@media (max-width: 480px) {
	.iturist-listing-title-row {
		width: 100%;
	}
}

/* iTurist does not use Homey's Experiences product on public host profiles. */
.host-profile .host-profile-tabs .nav-tabs > li:has(> a[href="#experiences"]),
.host-profile .host-profile-tabs .nav-tabs a[href="#experiences"],
.host-profile .host-profile-tabs #experiences {
	display: none !important;
}

/* Homey exposes the secondary/emergency contact block to administrators on
 * public author profiles. Keep it out of the public-profile interface. */
.host-profile > .container > .host-section > .row > div:first-child > .block + .block {
	display: none !important;
}


/* Your CSS code goes here
-------------------------------------- */

/* Native homepage: Homey components without a page-builder wrapper. */
.home .search-banner .iturist-picker-control {
	position: relative;
}

.home .search-banner .iturist-picker-control > .animated-label {
	display: none !important;
}

.home .search-banner .iturist-picker-control .form-control {
	padding: 0 34px 0 48px !important;
	line-height: normal;
	text-align: left;
	pointer-events: auto;
	cursor: pointer !important;
	caret-color: transparent !important;
	-webkit-user-select: none;
	user-select: none;
	transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.home .search-banner .iturist-picker-control .form-control:focus-visible {
	outline: 3px solid rgba(84, 196, 217, 0.45);
	outline-offset: -3px;
}

.home .search-banner .iturist-picker-control:hover .form-control {
	background-color: #f7fbfc;
	border-color: #54c4d9;
}

.home .search-banner .iturist-picker-control:focus-within .form-control {
	background-color: #fff;
	border-color: #54c4d9;
	box-shadow: 0 0 0 3px rgba(84, 196, 217, 0.2);
	outline: none;
}

.home .search-banner .iturist-picker-control__leading,
.home .search-banner .iturist-picker-control__trailing {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	transform: translateY(-50%);
	color: #4f5964;
}

.home .search-banner .iturist-picker-control__leading {
	left: 15px;
	font-size: 18px;
}

.home .search-banner .iturist-picker-control__trailing {
	right: 13px;
	font-size: 12px;
	transition: transform 160ms ease;
}

.home .search-banner .iturist-picker-control .form-control[aria-expanded="true"] ~ .iturist-picker-control__trailing {
	transform: translateY(-50%) rotate(180deg);
}

.home .search-banner .main-search-calendar-wrap li:not(.day-disabled),
.home .search-banner .main-search-calendar-wrap li:not(.day-disabled) * {
	cursor: pointer !important;
}

.home .search-banner .main-search-calendar-wrap li.day-disabled,
.home .search-banner .main-search-calendar-wrap li.day-disabled * {
	cursor: default !important;
}

.iturist-home-section {
	padding: 50px 0 20px;
}

.iturist-home-section + .iturist-home-section {
	padding-top: 48px;
}

.iturist-home-section--destinations,
.iturist-home-section--journal {
	background: #fff;
}

.iturist-home-section--types {
	background: #f1f2f3;
	padding-bottom: 80px;
}

.iturist-home-section--testimonials {
	padding-bottom: 50px;
}

.iturist-home-section .property-module-by-id + .property-module-by-id {
	margin-top: 16px;
}

/* Homey's legacy by-ID shortcode forces display: inherit !important, which
 * disables the grid used by the current CardView/GridView templates. */
.iturist-homepage .property-module-by-id .listing-wrap > .row {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.iturist-home-action {
	display: flex;
	justify-content: center;
	margin-top: 8px;
}

.iturist-homepage .iturist-home-action .btn-primary-outlined,
.iturist-homepage .iturist-home-heading-row .btn-primary-outlined {
	background-color: transparent !important;
	border-color: #000 !important;
	color: #000 !important;
}

.iturist-homepage .iturist-home-action .btn-primary-outlined:hover,
.iturist-homepage .iturist-home-action .btn-primary-outlined:focus,
.iturist-homepage .iturist-home-heading-row .btn-primary-outlined:hover,
.iturist-homepage .iturist-home-heading-row .btn-primary-outlined:focus {
	background-color: #54c4d9 !important;
	border-color: #54c4d9 !important;
	color: #fff !important;
}

.iturist-home-heading-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 30px;
}

.iturist-home-heading-row .module-title {
	margin-bottom: 0;
}

/* Article cards: keep category and excerpt, omit date and author metadata. */
.iturist-homepage .iturist-home-section--journal .item-blog-footer {
	display: none;
}

@media (max-width: 767px) {
	.iturist-homepage .property-module-by-id .listing-wrap > .row {
		grid-template-columns: minmax(0, 1fr);
	}

	.iturist-home-section,
	.iturist-home-section + .iturist-home-section {
		padding-top: 36px;
	}

	.iturist-home-section--types {
		padding-bottom: 48px;
	}

	.iturist-home-heading-row {
		align-items: flex-start;
		flex-direction: column;
		gap: 16px;
	}
}

@media (min-width: 768px) and (max-width: 991px) {
	.iturist-homepage .property-module-by-id .listing-wrap > .row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
/* AJAX city search used by the homepage and search results. */
.iturist-city-ajax {
    position: relative;
    width: 100%;
    height: 100%;
}

.iturist-city-ajax .iturist-city-query {
    width: 100%;
    height: 100%;
    cursor: text;
}

.iturist-city-results {
    position: absolute;
    z-index: 10020;
    top: calc(100% + 6px);
    left: 0;
    width: max(100%, min(320px, calc(100vw - 24px)));
    max-height: 320px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid #d8dce1;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(40, 48, 56, 0.16);
}

.iturist-city-results[hidden] {
    display: none;
}

.iturist-city-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #4b535b;
    text-align: left;
}

.iturist-city-option__copy {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 2px;
}

.iturist-city-option__label {
    font-weight: 600;
    line-height: 1.35;
}

.iturist-city-option__type {
    flex: 0 0 auto;
    color: #7b858e;
    font-size: 12px;
    font-weight: 500;
}

.iturist-city-results__group {
    padding: 8px 12px 5px;
    color: #69737d;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.iturist-city-results__group:not(:first-child) {
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid #edf0f2;
}

.iturist-city-results__options.is-types {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 3px 8px 8px;
}

.iturist-city-results__options.is-types .iturist-city-option {
    width: auto;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid #dfe4e7;
    border-radius: 999px;
    background: #f7f9fa;
    color: #3f4851;
    font-size: 12px;
}

.iturist-city-results__options.is-types .iturist-city-option:hover,
.iturist-city-results__options.is-types .iturist-city-option.is-active,
.iturist-city-results__options.is-types .iturist-city-option:focus-visible {
    border-color: #54c4d9;
    background: #eef9fb;
    box-shadow: 0 2px 8px rgba(40, 48, 56, 0.08);
    color: #303840;
}

.iturist-city-results__options.is-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 3px 8px 8px;
}

.iturist-city-results__options.is-areas .iturist-city-option {
    width: auto;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid #e3e7ea;
    border-radius: 999px;
    background: #fff;
    color: #59636d;
    font-size: 12px;
}

.iturist-city-results__options.is-areas .iturist-city-option:hover,
.iturist-city-results__options.is-areas .iturist-city-option.is-active,
.iturist-city-results__options.is-areas .iturist-city-option:focus-visible {
    border-color: #8ed7e4;
    background: #f3fbfc;
    box-shadow: 0 2px 7px rgba(40, 48, 56, 0.06);
    color: #303840;
}

.iturist-city-results.is-featured .iturist-city-option__type {
    display: none;
}

.iturist-city-results.is-featured {
    max-height: min(460px, calc(100vh - 220px));
}

/* Homey's hero search gives every nested button the 56px field height.
   Keep that sizing on the form controls, but not on autocomplete chips. */
.home .search-banner .iturist-city-results .iturist-city-option {
    height: auto !important;
    min-height: 32px !important;
    padding: 6px 10px !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
}

.home .search-banner .iturist-city-query {
    height: 56px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 56px !important;
}

.iturist-city-option:hover,
.iturist-city-option.is-active,
.iturist-city-option:focus-visible {
    outline: none;
    background: #eef9fb;
    color: #303840;
}

.iturist-city-empty {
    padding: 10px 12px;
    color: #626b74;
}

/* Search-results toolbar: restore Homey's control rhythm after replacing the
   Bootstrap Select markup and keep the primary action on the same row. */
.half-map-search .iturist-city-ajax,
.half-map-search .iturist-city-query {
    height: 46px;
}

.half-map-search .iturist-city-query {
    padding: 0 16px !important;
    border: 1px solid #d8dce1;
    border-radius: 4px;
    background: #fff;
    color: #4b535b;
    line-height: 44px;
    text-align: left;
}

.half-map-search .iturist-city-query:focus {
    border-color: #54c4d9;
    box-shadow: 0 0 0 3px rgba(84, 196, 217, 0.18);
    outline: none;
}

@media (min-width: 1201px) {
    .half-map-search form.clearfix {
        display: flex;
        align-items: center;
        gap: 6px !important;
    }

    .half-map-search .half-map-search-inner-wrap {
        display: flex;
        flex: 1 1 auto;
        gap: 6px !important;
        width: auto;
        min-width: 0;
    }

    .half-map-search .half-map-search-inner-wrap > .search-destination {
        flex: 0 1 26%;
        width: auto !important;
        min-width: 0;
        margin: 0 !important;
        padding: 0 !important;
    }

    .half-map-search .half-map-search-inner-wrap > .search-date-range {
        display: flex;
        flex: 0 1 50%;
        gap: 6px !important;
        width: auto !important;
        min-width: 0;
        margin: 0 !important;
        padding: 0 !important;
    }

    .half-map-search .half-map-search-inner-wrap > .search-guests {
        flex: 0 1 24%;
        width: auto !important;
        min-width: 0;
        margin: 0 0 0 3px !important;
        padding: 0 !important;
    }

    .half-map-search .search-date-range-arrive,
    .half-map-search .search-date-range-depart {
        float: none;
        flex: 0 0 calc(50% - 3px) !important;
        width: calc(50% - 3px) !important;
        min-width: 0;
        padding: 0 !important;
        box-sizing: border-box;
    }

    .half-map-search .search-date-range-depart {
        margin-left: 0 !important;
    }

    .half-map-search .search-date-range-arrive::after,
    .half-map-search .search-date-range-depart::after,
    .half-map-search .search-guests::after {
        left: 20px;
    }

    .half-map-search .search-date-range input,
    .half-map-search .search-guests > input {
        padding-left: 50px;
        padding-right: 10px;
    }

    .half-map-search .search-date-range input,
    .half-map-search .search-guests input {
        min-width: 0;
    }

    .half-map-search .half-map-search-buttons {
        position: static !important;
        top: auto !important;
        flex: 0 0 auto;
        clear: none;
        margin: 0 !important;
        white-space: nowrap;
    }

    .half-map-search .half-map-search-buttons .btn-primary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 46px;
        margin-left: 0 !important;
    }
}

@media (min-width: 1201px) and (max-width: 1439px) {
    .half-map-search .search-date-range input,
    .half-map-search .search-guests input,
    .half-map-search .iturist-city-query {
        font-size: 13px;
    }

}

/* Map listing popup — compact Grid View v2 treatment with only price + name. */
.leaflet-popup-content-wrapper {
    overflow: hidden;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 8px;
    background: transparent !important;
    box-shadow: 0 14px 36px rgba(32, 42, 51, 0.22) !important;
}

.leaflet-popup-content {
    width: 300px !important;
    margin: 0 !important;
}

.leaflet-popup-content #google-maps-info-window,
.leaflet-popup-content #google-maps-info-window .item-wrap,
.leaflet-popup-content #google-maps-info-window .property-item,
.leaflet-popup-content #google-maps-info-window .media-left,
.leaflet-popup-content #google-maps-info-window .item-media,
.leaflet-popup-content #google-maps-info-window .hover-effect {
    width: 100%;
    height: 200px;
}

.leaflet-popup-content #google-maps-info-window {
    border-radius: 8px;
    overflow: hidden;
}

.leaflet-popup-content #google-maps-info-window .item-wrap {
    padding: 0;
    border-radius: 8px;
    background: transparent;
}

.leaflet-popup-content #google-maps-info-window .property-item {
    position: relative;
    display: block;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
}

.leaflet-popup-content #google-maps-info-window .media-left,
.leaflet-popup-content #google-maps-info-window .item-media,
.leaflet-popup-content #google-maps-info-window .hover-effect {
    display: block;
    padding: 0;
}

.leaflet-popup-content #google-maps-info-window .item-media::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    content: "";
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(18, 24, 29, 0) 35%, rgba(18, 24, 29, 0.82) 100%);
}

.leaflet-popup-content #google-maps-info-window .item-media-thumb img {
    display: block;
    width: 100%;
    max-width: none;
    height: 200px;
    opacity: 1 !important;
    visibility: visible !important;
    object-fit: cover;
    object-position: center;
}

.leaflet-popup-content #google-maps-info-window .item-media-price {
    z-index: 2;
    right: 18px;
    bottom: 47px;
    left: 18px;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.leaflet-popup-content #google-maps-info-window .item-media-price .item-price {
    color: #fff;
    font-size: 23px;
    font-weight: 400;
    line-height: 1.1;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.34);
}

.leaflet-popup-content #google-maps-info-window .item-body {
    position: absolute;
    z-index: 2;
    right: 18px;
    bottom: 16px;
    left: 18px;
    display: block;
    width: auto;
    padding: 0;
    background: transparent;
    pointer-events: none;
}

.leaflet-popup-content #google-maps-info-window .title-head-left,
.leaflet-popup-content #google-maps-info-window .item-title-head {
    float: none;
    width: 100%;
}

.leaflet-popup-content #google-maps-info-window .title-head-left .title {
    overflow: hidden;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leaflet-popup-content #google-maps-info-window .title-head-left .title a {
    display: block;
    overflow: hidden;
    color: inherit;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: auto;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.34);
}

.leaflet-popup-content #google-maps-info-window .item-address,
.leaflet-popup-content #google-maps-info-window .item-amenities {
    display: none;
}

.leaflet-container .leaflet-popup a.leaflet-popup-close-button {
    top: 10px !important;
    right: 10px !important;
    z-index: 4;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94) !important;
    color: #4f5962 !important;
    font-size: 24px !important;
    line-height: 29px !important;
    text-align: center;
    box-shadow: 0 4px 14px rgba(23, 31, 38, 0.18);
}

.leaflet-container .leaflet-popup a.leaflet-popup-close-button:hover,
.leaflet-container .leaflet-popup a.leaflet-popup-close-button:focus-visible {
    background: #fff;
    color: #303840;
}

.leaflet-container a.leaflet-popup-close-button:focus-visible,
.leaflet-popup-content #google-maps-info-window a:focus-visible {
    outline: 3px solid rgba(84, 196, 217, 0.7);
    outline-offset: 2px;
}

@media (max-width: 479px) {
    .leaflet-popup-content {
        width: 270px !important;
    }

    .leaflet-popup-content #google-maps-info-window,
    .leaflet-popup-content #google-maps-info-window .item-wrap,
    .leaflet-popup-content #google-maps-info-window .property-item,
    .leaflet-popup-content #google-maps-info-window .media-left,
    .leaflet-popup-content #google-maps-info-window .item-media,
    .leaflet-popup-content #google-maps-info-window .hover-effect,
    .leaflet-popup-content #google-maps-info-window .item-media-thumb img {
        height: 180px;
    }
}

/* Account navigation: these sections are not part of the current iTurist
 * account experience. Keep their pages intact, but remove the entries from
 * the desktop dropdown, mobile user menu and dashboard sidebar. */
.account-dropdown li:has(> a[href*="/favorites"]),
.account-dropdown li:has(> a[href*="/invoices"]),
#user-nav li:has(> a[href*="/favorites"]),
#user-nav li:has(> a[href*="/invoices"]),
.board-panel-menu li:has(> a[href*="/favorites"]),
.board-panel-menu li:has(> a[href*="/invoices"]) {
    display: none !important;
}

/* Payment settings apply only to hosts who own an Extra listing. */
body:not(.iturist-has-extra-listing) .board-panel-menu li:has(> a[href*="dpage=payment-method"]) {
    display: none !important;
}

.iturist-extra-payment-settings .block-body {
    max-width: 820px;
}

.iturist-extra-payment-settings label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.iturist-extra-payment-settings .form-group {
    margin-bottom: 24px;
}

.iturist-extra-payment-settings [hidden] {
    display: none !important;
}

.iturist-extra-payment-settings #iturist-save-payment-settings {
    min-width: 180px;
}

@media (min-width: 992px) {
    .iturist-has-extra-listing .dashboard-with-sidebar .dashboard-content-area:has(.iturist-extra-payment-settings) {
        width: 100%;
    }

    .iturist-has-extra-listing .dashboard-with-sidebar:has(.iturist-extra-payment-settings) .dashboard-sidebar {
        display: none;
    }
}
