/*
Theme Name: ListingHive Child
Theme URI: https://hivepress.io/themes/listinghive/
Description: Child theme for ListingHive
Author: Your Name
Author URI: https://xn--markt-iua.at/
Template: listinghive
Version: 1.0.0
Text Domain: listinghive-child
*/

.hp-listing__actions .hp-form--listing-buy .hp-form__footer .hp-field--submit {
    display: none !important;
}

/* Remove balance card */
.hp-stats,
.hp-stats__item,
.hp-dashboard__stats {
    display: none !important;
}

/* Remove charts */
.hp-chart,
.hp-dashboard__chart {
    display: none !important;
}

/* Remove revenue/order tables */
.hp-dashboard__table {
    display: none !important;
}

/* Container của form fields */
.hp-form--listing-submit .hp-form__field.hp-form__field--textarea {
    margin-top: 20px;
}

/* Category - Subcategory - Service */
.omarkt-cat,
.omarkt-sub,
.omarkt-service{
    flex:1 1 calc(33.33% - 10px);
}

/* Location state + city */
.omarkt-state,
.omarkt-district{
    flex:1 1 calc(50% - 10px);
}

/* Select style */
.omarkt-cat,
.omarkt-sub,
.omarkt-service{
    width:32%;
    margin-right: 1%;
    padding:10px;
    border-radius:6px;
}

/* Mobile */
@media (max-width:768px){

    .omarkt-cat,
    .omarkt-sub,
    .omarkt-service{
        width:100%;
        margin-right: 0;
        margin-bottom: 8px;
    }

    .hp-field--location {
        display: flex;
        flex-direction: column;
    }

}

.omarkt-offer-label {
  display: inline;
  color: #d62828;
  font-weight: 700;
  margin-right: 4px;
}

.omarkt-offer-separator {
  color: #d62828;
  font-weight: 700;
  margin-left: 2px;
  margin-right: 4px;
}

/* fix color yellow to red */
.hp-listing__images-carousel .slick-current img {
    border-color: #e02023;
}

.hp-listing--view-block .hp-listing__categories a:hover, .hp-listing--view-page .hp-listing__categories a:hover {
    background-color: #e02023;
    color: #fff;
}

.omarkt-category-search-placeholder {
	margin-top: 24px;
}

.omarkt-category-search-form {
	max-width: 760px;
	margin: 0 auto;
}

.omarkt-category-search-row {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
}

.omarkt-category-search-row input {
	min-width: 220px;
	padding: 12px 14px;
	border: 1px solid #d9d9d9;
	border-radius: 4px;
	background: #fff;
	color: #222 !important;
	caret-color: #222;
}

.omarkt-category-search-row input::placeholder {
	color: #8a8f98;
	opacity: 1;
}

.omarkt-category-search-row input:focus {
	outline: none;
	border-color: #c9c9c9;
	background: #fff;
	color: #222 !important;
}

.omarkt-category-search-row select {
	min-width: 220px;
	padding: 12px 14px;
	border: 1px solid #d9d9d9;
	border-radius: 4px;
	background: #fff;
	color: #222 !important;
}

.omarkt-category-search-row .omarkt-category-search-state,
.omarkt-category-search-row .omarkt-category-search-district {
	min-width: 220px;
}

.omarkt-category-search-button {
	padding: 12px 18px;
	border: 0;
	border-radius: 4px;
	cursor: pointer;
}

@media (max-width: 768px) {
	.omarkt-category-search-row {
		flex-direction: column;
		align-items: stretch;
	}

	.omarkt-category-search-row input,
	.omarkt-category-search-button {
		width: 100%;
	}
}

/* ==========================================
   Hide default HivePress sidebar filter
   only on listing category archive
========================================== */
.tax-hp_listing_category .hp-page__sidebar .hp-form--listing-filter,
.tax-hp_listing_category .hp-page__sidebar .widget_hivepress_listing_filter_form,
.tax-hp_listing_category .hp-page__sidebar .widget_hivepress_filter_form {
    display: none !important;
}

.omarkt-custom-sidebar-filter {
    background: #fff;
    padding: 28px;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 30px;
}

.omarkt-custom-sidebar-filter .widget__title {
    margin-bottom: 24px;
}

.omarkt-sidebar-filter-form .omarkt-filter-field {
    margin-bottom: 20px;
}

.omarkt-sidebar-filter-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: #666;
}

.omarkt-sidebar-filter-form input,
.omarkt-sidebar-filter-form select {
    width: 100%;
}

.omarkt-filter-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.omarkt-filter-actions .button,
.omarkt-filter-actions button,
.omarkt-filter-actions input[type="submit"],
.omarkt-filter-actions input[type="reset"],
.omarkt-filter-actions a {
    flex: 1 1 140px;
    min-width: 0;
    box-sizing: border-box;
}

.omarkt-custom-sidebar-filter,
.omarkt-sidebar-filter-form {
    overflow: hidden;
}

.omarkt-sidebar-filter-form * {
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .omarkt-filter-actions {
        flex-direction: column;
        gap: 10px;
    }

    .omarkt-filter-actions .button,
    .omarkt-filter-actions button,
    .omarkt-filter-actions input[type="submit"],
    .omarkt-filter-actions input[type="reset"],
    .omarkt-filter-actions a {
        width: 100%;
        flex: 0 0 100%;
    }
}


/* Disable sticky sidebar on listing category archive */
.tax-hp_listing_category .hp-page__sidebar .is-affixed,
.tax-hp_listing_category .hp-page__sidebar .inner-wrapper-sticky {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    transform: none !important;
}

.tax-hp_listing_category .hp-page__sidebar .is-affixed {
    height: auto !important;
}

.tax-hp_listing_category .hp-page__sidebar {
    overflow: visible !important;
}

.flatpickr-calendar {
    z-index: 99999 !important;
}

/** search homepage **/
.omarkt-home-search-wrap {
    max-width: 1280px;
    margin: 20px auto 60px;
    padding: 0 16px;
}

.omarkt-home-search-form {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #fff;
    border: 1px solid #e8ebf0;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.omarkt-home-search-field {
    flex: 1 1 0;
    min-width: 0;
}

.omarkt-home-search-field--keyword {
    flex: 1.8 1 0;
}

.omarkt-home-search-field--subcategory,
.omarkt-home-search-field--district {
    display: none;
}

.omarkt-home-search-actions {
    flex: 0 0 auto;
}

.omarkt-home-search-form input[type="text"],
.omarkt-home-search-form select {
    width: 100%;
    min-height: 58px;
    margin: 0;
    padding: 0 18px;
    border: 1px solid #d9dee8;
    border-radius: 12px;
    background: #fff;
    color: #1f2937;
    box-shadow: none;
}

.omarkt-home-search-form input[type="text"]::placeholder {
    color: #6b7280;
    opacity: 1;
}

.omarkt-home-search-form input[type="text"]:focus,
.omarkt-home-search-form select:focus {
    border-color: #c8d0dd;
    outline: none;
}

.omarkt-home-search-button {
    min-width: 150px;
    min-height: 58px;
    border: 0;
    background: #ef3d3d;
    color: #fff;
    padding: 0 24px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.omarkt-home-search-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(239, 61, 61, 0.18);
}

@media (max-width: 1024px) {
    .omarkt-home-search-form {
        flex-wrap: wrap;
    }

    .omarkt-home-search-field {
        flex: 1 1 calc(50% - 6px);
    }

    .omarkt-home-search-field--keyword,
    .omarkt-home-search-actions {
        flex: 1 1 100%;
    }

    .omarkt-home-search-actions {
        display: flex;
    }

    .omarkt-home-search-button {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .omarkt-home-search-wrap {
        padding: 0 12px;
    }

    .omarkt-home-search-form {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px;
        border-radius: 16px;
    }

    .omarkt-home-search-field,
    .omarkt-home-search-field--keyword,
    .omarkt-home-search-actions {
        flex: 0 0 100%;
        width: 100%;
    }

    .omarkt-home-search-button {
        width: 100%;
    }
}

/* search results layout hompeage */
.omarkt-search-results-page {
    max-width: 1280px;
    margin: 40px auto;
}

.omarkt-search-results-header {
    margin-bottom: 24px;
}

.omarkt-search-results-count {
    margin: 0;
    font-size: 14px;
    color: #7f8897;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.omarkt-search-results-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.omarkt-search-card {
    background: #fff;
    border: 1px solid rgba(7, 36, 86, 0.075);
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 2px 4px 0 rgba(7, 36, 86, 0.075);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.omarkt-search-card:hover {
    box-shadow: 0 8px 16px 0 rgba(7, 36, 86, 0.125);
}

.omarkt-search-card__image {
    display: block;
    aspect-ratio: 4 / 3;
    background: #f5f5f5;
    overflow: hidden;
}

.omarkt-search-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.omarkt-search-card__content {
    padding: 20px 20px 12px;
}

.omarkt-search-card__offer {
    margin-bottom: 10px;
    font-weight: 700;
    color: #ef3d3d;
}

.omarkt-search-card__title {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.35;
}

.omarkt-search-card__title a {
    color: inherit;
    text-decoration: none;
}

.omarkt-search-card__location,
.omarkt-search-card__date {
    font-size: 14px;
    color: #7f8897;
    margin-bottom: 8px;
}

.omarkt-search-results-pagination {
    margin-top: 30px;
}

.omarkt-search-results-empty {
    background: #fff;
    border: 1px solid #eee;
    padding: 30px;
}

@media (max-width: 767px) {
    .omarkt-search-results-grid {
        grid-template-columns: 1fr;
    }
}

/* Hide default HivePress category results block to avoid flash */
.tax-hp_listing_category .hp-page__content .hp-message,
.tax-hp_listing_category .hp-page__content .hp-no-results,
.tax-hp_listing_category .hp-page__content .hp-listings,
.tax-hp_listing_category .hp-page__content .hp-grid {
    display: none !important;
}

.tax-hp_listing_category .hp-page__content .omarkt-category-custom-results {
    display: block !important;
}

.tax-hp_listing_category .omarkt-search-results-grid {
    display: grid !important;
}

.tax-hp_listing_category .hp-page__content .hp-page__topbar {
    display: none !important;
}

.omarkt-results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.omarkt-results-toolbar__count {
    font-size: 14px;
    color: #7f8897;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.omarkt-results-toolbar__sort {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #7f8897;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.omarkt-results-toolbar__sort select {
    min-width: 110px;
    height: 40px;
}

@media (max-width: 767px) {
    .omarkt-results-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Results cards - closer to ListingHive demo */
.omarkt-search-card {
    background: #fff;
    border: 1px solid #e6e8ec;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.omarkt-search-card__image {
    display: block;
    overflow: hidden;
}

.omarkt-search-card__image img {
    display: block;
    width: 100%;
    height: auto;
}

.omarkt-search-card__content {
    padding: 22px 22px 12px;
}

.omarkt-search-card__offer {
    margin-bottom: 14px;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 500;
    color: #ef3d32;
}

.omarkt-search-card__title {
    margin: 0 0 14px;
    font-size: 21px;
    line-height: 1.28;
    font-weight: 500;
    color: #2f3b52;
}

.omarkt-search-card__title a {
    color: inherit;
    text-decoration: none;
}

.omarkt-search-card__title a:hover {
    color: #ef3d32;
}

.omarkt-search-card__location,
.omarkt-search-card__date {
    font-size: 14px;
    line-height: 1.6;
    color: #8d97a8;
}

.omarkt-search-card__location {
    margin-bottom: 2px;
}

.omarkt-search-card__footer {
    padding: 16px 22px 16px;
    margin-top: auto;
    border-top: 1px solid #f1f1f1;
}

.omarkt-search-card__price {
    display: inline-block;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 400;
    color: #5d6778;
}

.omarkt-results-toolbar__count,
.omarkt-results-toolbar__sort {
    font-size: 13px;
    color: #9aa3b2;
    letter-spacing: 0.06em;
}

.omarkt-results-toolbar__sort select {
    min-width: 120px;
    height: 44px;
    border-color: #e6e8ec;
    color: #7f8897;
}

.omarkt-search-card__location {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
    font-size: 14px;
    line-height: 1.6;
    color: #8d97a8;
}

.omarkt-search-card__location i {
    color: #ef3d32;
    font-size: 14px;
    line-height: 1;
    flex: 0 0 auto;
}

.omarkt-search-card__location span {
    display: inline-block;
}

.omarkt-search-card__category {
    margin-bottom: 14px;
}

.omarkt-search-card__category a,
.omarkt-search-card__category span {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 18px;
    background: #f1f3f7;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #9aa3b2;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.omarkt-search-card__category a:hover {
    background: #ee2023;
    color: #ffffff;
}

.omarkt-home-search-row {
    display: flex;
    gap: 16px;
}

.omarkt-home-search-row--top {
    display: block;
}

.omarkt-home-search-row--top input {
    width: 100%;
}

.omarkt-home-search-row--categories,
.omarkt-home-search-row--locations {
    align-items: stretch;
}

.omarkt-home-search-row--categories .omarkt-home-search-field,
.omarkt-home-search-row--locations .omarkt-home-search-field {
    flex: 0 0 calc(50% - 8px);
    max-width: calc(50% - 8px);
    min-width: 0;
}

.omarkt-home-search-row--categories .omarkt-home-search-field select,
.omarkt-home-search-row--locations .omarkt-home-search-field select {
    width: 100%;
}

.omarkt-home-search-field--subcategory,
.omarkt-home-search-field--district {
    display: none;
}

@media (max-width: 767px) {
    .omarkt-home-search-row {
        flex-direction: column;
        gap: 12px;
    }

    .omarkt-home-search-row--categories .omarkt-home-search-field,
    .omarkt-home-search-row--locations .omarkt-home-search-field {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }
}

.omarkt-filter-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.omarkt-filter-actions .button,
.omarkt-filter-actions button,
.omarkt-filter-actions input[type="submit"],
.omarkt-filter-actions a {
    width: 100%;
    flex: 0 0 100%;
    box-sizing: border-box;
    text-align: center;
}

/* Subcategory in category page search */
.omarkt-subcategory-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.omarkt-subcategory-navigation__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 1px solid #e6e8ec;
    background: #fff;
    color: #2f3b52;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.omarkt-subcategory-navigation__item:hover {
    border-color: #ef3d32;
    background: #ef3d32;
    color: #fff;
}

@media (max-width: 767px) {
    .omarkt-subcategory-navigation {
        flex-direction: column;
    }

    .omarkt-subcategory-navigation__item {
        width: 100%;
        justify-content: flex-start;
    }
}

/* =========================================================
   OMARKT RED ACTIVE / HOVER / FOCUS STATES
   Replace blue highlight accents with red where possible
   ========================================================= */

/* Brand color */
:root {
    --omarkt-red: #ef3d3d;
    --omarkt-red-dark: #d92f2f;
    --omarkt-red-ring: rgba(239, 61, 61, 0.18);
}

/* Homepage search fields */
.omarkt-home-search-keyword,
.omarkt-home-search-form select,
.omarkt-home-search-form input {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.omarkt-home-search-button:hover,
.omarkt-home-search-button:focus {
    background: var(--omarkt-red-dark) !important;
    outline: none !important;
}

/* Add listing form custom category/location selects */
.omarkt-category-wrap select,
.omarkt-location-wrap select {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Selected / checked controls */
input[type="checkbox"]:checked,
input[type="radio"]:checked {
    accent-color: var(--omarkt-red);
}

/* Buttons */
.button:hover,
.button:focus,
.hp-button:hover,
.hp-button:focus,
button:hover,
button:focus,
input[type="submit"]:hover,
input[type="submit"]:focus {
    outline: none;
}

/* Native select dropdown option styling
   Note: browser support is limited for native option states */
select option:hover,
select option:focus {
    background: var(--omarkt-red) !important;
    color: #fff !important;
}

/* Firefox selected option support */
select:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 #2f3b52;
}

select option {
    background-color: #ffffff;
    color: #2f3b52;
}

select option:hover,
select option:focus,
select option:active {
    background: linear-gradient(#ef3d3d, #ef3d3d) !important;
    background-color: #ef3d3d !important;
    color: #fff !important;
}

.hp-listing__location a {
    pointer-events: none;
    cursor: default;
}

.hp-listing__location a:hover {
    color: inherit;
    text-decoration: none;
}