/**
 * SuperControl Property Manager - Front-end Styles
 *
 * @package SuperControl_Property_Manager
 * @version 1.0.0
 */

/* =============================================
   General / Reset
   ============================================= */
.scpm-container {
    box-sizing: border-box;
    font-family: inherit;
}

.scpm-container *,
.scpm-container *::before,
.scpm-container *::after {
    box-sizing: inherit;
}

.scpm-clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* =============================================
   Search Form
   ============================================= */
.sc-main-search-outer {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    width: 100%;
    max-width: 1080px;
    background-color: var(--color-charcoal-grey);
    border-radius: 6px;
    padding: 1.25rem 2rem;
}

.sc-main-search-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 0;
}

.sc-search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.sc-search-row-main .sc-search-field {
    flex: 1 1 160px;
    display: flex;
    flex-direction: column;
}

.sc-search-row-main .sc-search-submit {
    flex: 0 0 auto;
}

.sc-main-search-form label {
    margin-bottom: 5px;
    color: var(--color-white);
    font-family: var(--font-secondary);
    font-size: var(--font-size-h4);
}

.sc-main-search-form input[type="text"],
.sc-main-search-form select {
    padding: 11px 18px;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 16px;
    background: #fff;
    border: 1px solid var(--color-light-beige);
    width: 100%;
}

.sc-main-search-form input[type="text"]:focus,
.sc-main-search-form select:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 1px #0073aa;
}

.sc-main-search-form input[name="arrival"]::after {
    content: "";
    background-image: url("../svg/calendar-icon.svg");
    height: 30px;
    width: 30px;
    background-size: 16px;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.sc-main-search-form select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.sc-main-search-form .sc-search-button {
    padding: 11px 45px;
    background: var(--color-golden-amber);
    color: #fff;
    border: 1px solid var(--color-golden-amber);
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    letter-spacing: 0.5px;
    white-space: nowrap;
    font-family: var(--primary-font);
    margin-left: 100px;
}

.sc-main-search-form .sc-search-button:hover {
    background-color: transparent;
}

/* Filter checkboxes row */
.sc-search-row-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    align-items: center;
    padding: 10px 0 0;
}

.sc-filter-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    white-space: nowrap;
    text-transform: none;
    letter-spacing: 0;
}

.sc-filter-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: #0073aa;
}

/* Double datepicker */
.sc-double-selector-datepicker {
    cursor: pointer;
}

/* =============================================
   Price Range Slider
   ============================================= */
.sc-price-range-container {
    margin: 10px 0 20px;
}

.sc_search_price_range {
    margin: 10px 0;
}

.sc_search_price_range_display {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-top: 8px;
}

.ui-slider-horizontal {
    height: 8px;
    border-radius: 4px;
    background: #e0e0e0;
    border: none;
}

.ui-slider-horizontal .ui-slider-range {
    background: #0073aa;
    border-radius: 4px;
}

.ui-slider-horizontal .ui-slider-handle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #0073aa;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    top: -8px;
    cursor: pointer;
}

.ui-slider-horizontal .ui-slider-handle:focus {
    outline: none;
}

/* =============================================
   Variable / Filter Dropdowns
   ============================================= */
.sc-variable-category-dropdown {
    position: relative;
}

.sc-variable-category-dropdown-trigger {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
}

.sc-variable-category-dropdown-trigger.has-locations-selected {
    border-color: #0073aa;
    color: #0073aa;
}

.sc-variable-category-dropdown-inner {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
}

.sc-variable-category-dropdown-item {
    margin: 5px 0;
}

.sc-variable-category-dropdown-close {
    text-align: center;
    padding: 8px;
    cursor: pointer;
    color: #0073aa;
    font-size: 13px;
    border-top: 1px solid #eee;
    margin-top: 10px;
}

/* Filter overlay */
.filter-overlay {
    cursor: pointer;
    color: #0073aa;
    font-weight: 600;
    font-size: 14px;
}

.filter-overlay:hover {
    text-decoration: underline;
}

.variable-overlay {
    display: none;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #eee;
    margin: 10px 0;
}

.overlay-variables {
    margin: 4px 8px 4px 0;
}

.variable-selected {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    margin: 3px 3px 3px 0;
    transition: background 0.2s;
}

.variable-selected:hover {
    background: #c0392b;
}

/* Clear button */
.sc-overlay-clear-button {
    display: inline-block;
    padding: 8px 16px;
    background: #e74c3c;
    color: #fff;
    border: 0;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    margin-top: 10px;
}

.sc-overlay-clear-button:hover {
    background: #c0392b;
}

/* =============================================
   Guest Quantity +/- Buttons
   ============================================= */
.sc-overlay-amounts {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 5px 10px 5px 0;
}

.sc-overlay-amounts label {
    font-size: 13px;
    font-weight: 600;
    min-width: 60px;
}

.change-qty {
    width: 30px;
    height: 30px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.change-qty:hover {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.item_qty {
    width: 40px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 4px;
}

.item_qty_span {
    font-size: 14px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

/* =============================================
   Calendar
   ============================================= */
.sc_calendar_container {
    margin: 20px 0;
}

.sc_calendar_outer {
    display: none;
}

.sc_calendar_loading {
    text-align: center;
    padding: 40px;
}

.sc_calendar_loading img {
    width: 40px;
    height: 40px;
}

.sc_custom_calendar {
    width: 100%;
    border-collapse: collapse;
}

.sc_custom_calendar th {
    background: #f5f5f5;
    padding: 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid #e0e0e0;
}

.sc_custom_calendar td.calendar-day {
    padding: 8px;
    text-align: center;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.sc_custom_calendar td.calendar-day:hover {
    background: #e8f4fd;
}

.sc_custom_calendar td.calendar-day .day-number {
    font-size: 14px;
    font-weight: 500;
}

.sc_custom_calendar td.calendar-day .day-price {
    font-size: 11px;
    color: #666;
    display: block;
}

.sc_custom_calendar td.sc_calendar-arrive {
    background: #d4edda;
    cursor: pointer;
}

.sc_custom_calendar td.sc_calendar_depart {
    background: #fff3cd;
    cursor: pointer;
}

.sc_custom_calendar td.sc_calendar-selected {
    background: #0073aa !important;
    color: #fff;
}

.sc_custom_calendar td.sc_calendar-selected .day-price {
    color: #cce5ff;
}

.sc_custom_calendar td.sc_calendar-selected-arrive {
    background: #0073aa !important;
    color: #fff;
    border-radius: 4px 0 0 4px;
}

.sc_custom_calendar td.sc_calendar-selected-depart {
    background: #005177 !important;
    color: #fff;
    border-radius: 0 4px 4px 0;
}

.sc_custom_calendar td.blocked {
    background: #f8d7da;
    color: #999;
    cursor: not-allowed;
}

.sc_custom_calendar td.sc_shortbreaks {
    border-bottom: 3px solid #ffc107;
}

/* Calendar navigation */
.sc_calendar_month_select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    min-width: 180px;
}

.sc_cal_prev,
.sc_cal_next {
    display: inline-block;
    padding: 8px 14px;
    background: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

.sc_cal_prev:hover,
.sc_cal_next:hover {
    background: #e0e0e0;
}

/* Calendar guests/nights */
.sc_guest_select,
.sc_calendar_guests,
.sc_night_select {
    display: none;
}

.sc_night_select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    min-width: 140px;
}

.sc_chosen_date {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    padding: 8px 0;
}

.sc_calendar_reset {
    display: inline-block;
    padding: 8px 16px;
    background: #e74c3c;
    color: #fff;
    border: 0;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    margin-top: 10px;
}

.sc_calendar_reset:hover {
    background: #c0392b;
}

/* Calendar instructions */
.sc-calendar-instructions-1,
.sc-calendar-instructions-2 {
    font-size: 14px;
    color: #666;
    padding: 8px 0;
    font-style: italic;
}

.sc-calendar-instructions-2 {
    display: none;
}

/* =============================================
   Property Gallery
   ============================================= */
.single-property-image {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 20px;
}

.single-property-image .slickslider {
    display: none;
}

.single-property-image .slides img {
    width: 100%;
    height: auto;
}

.single-property-image-prev,
.single-property-image-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.2s;
}

.single-property-image-prev:hover,
.single-property-image-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.single-property-image-prev {
    left: 10px;
}

.single-property-image-next {
    right: 10px;
}

/* Gallery overlay */
.sc-slick-overlay,
.sc-overlay-gallery,
.single-property-overlay-3d {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    padding: 30px;
    overflow-y: auto;
}

.sc-overlay-gallery-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.gallery-column-one {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.gallery-column-one img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: border-color 0.2s;
}

.gallery-column-one img.active,
.gallery-column-one img:hover {
    border-color: #0073aa;
}

.gallery-column-two {
    text-align: center;
}

.gallery-column-two .bigun {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 4px;
}

/* Gallery links */
.slick-gallery-link,
.slick-3d-link {
    position: absolute;
    bottom: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    z-index: 10;
    text-decoration: none;
}

.slick-gallery-link {
    right: 12px;
}

.slick-3d-link {
    right: 120px;
}

.slick-gallery-link:hover,
.slick-3d-link:hover {
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
}

/* View All / Show Less gallery */
.single-property-page-gallery {
    max-height: 200px;
    overflow: hidden;
    transition: max-height 0.4s;
}

.single-property-page-gallery-all {
    max-height: none;
}

.single-property-page-gallery-view-all {
    display: inline-block;
    color: #0073aa;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
}

.gallery-show-less {
    display: none;
}

/* =============================================
   Property Archive Header
   ============================================= */
.scpm-type-archive-header {
    position: relative;
    margin-top: calc(var(--header-height) * -1);
}

.scpm-type-archive-header-image {
    width: 100%;
    max-height: 85vh;
    object-fit: cover;
}

.scpm-type-archive-header h1 {
    position: absolute;
    color: #fff;
    bottom: 7.5%;
    font-weight: normal;
    left: 50%;
    translate: -50% 0%;
    font-size: 3rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

.scpm-type-archive-header-spacer {
    height: 15vh;
    width: 100%;
    background-color: var(--color-pale-beige);
}

/* =============================================
   Property Archive Grid
   ============================================= */
.sc-property-archive {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 20px 0;
}

.single-property {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s;
    position: relative;
}

.single-property:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Archive Images */
.sc-archive-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

.sc-archive-image .loadthumbs,
.sc-archive-image .sc-archive-first-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.sc-archive-image .slick-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    padding: 0 5px;
}

.sc-archive-image .slick-arrows button {
    pointer-events: all;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
}

.sc-archive-image .slick-arrows button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.sc-archive-image .slide {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.sc-archive-image .nav-dummy {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    padding: 0 5px;
    pointer-events: none;
}

/* Archive text content */
.sc-archive-property-details {
    padding: 15px;
}

.sc-archive-property-details h3 {
    margin: 0 0 5px;
    font-size: 18px;
}

.sc-archive-property-details h3 a {
    color: #333;
    text-decoration: none;
}

.sc-archive-property-details h3 a:hover {
    color: #0073aa;
}

.sc-archive-location {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}

.sc-archive-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 10px;
}

.sc-archive-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.sc-archive-meta span i {
    margin-right: 3px;
    color: #999;
}

.sc-archive-price {
    font-size: 16px;
    font-weight: 700;
    color: #27ae60;
}

.sc-archive-price small {
    font-size: 12px;
    font-weight: 400;
    color: #999;
}

/* =============================================
   Google Map
   ============================================= */
#map-landing {
    width: 100%;
    height: 400px;
    border-radius: 4px;
}

.map-view {
    display: none;
}

.sc-map-button {
    display: inline-block;
    padding: 8px 16px;
    background: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    margin: 10px 0;
}

.sc-map-button:hover {
    background: #e0e0e0;
}

.show-map-text {
    display: inline;
}

.hide-map-text {
    display: none;
}

/* =============================================
   Booking Info Overlay
   ============================================= */
.sc-booking-info-overlay-outer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    justify-content: center;
    align-items: center;
}

.sc-booking-info-overlay-outer.active {
    display: flex;
}

.sc-booking-info-overlay-inner {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close-booking-info {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.close-booking-info:hover {
    color: #333;
}

.sc-booking-info-button {
    display: inline-block;
    padding: 10px 20px;
    background: #f39c12;
    color: #fff;
    border: 0;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}

.sc-booking-info-button:hover {
    background: #e67e22;
    color: #fff;
}

/* =============================================
   Accordion (Special Offers)
   ============================================= */
.sc-accordion {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 8px;
}

.accordion-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f5f5f5;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
}

.accordion-title:hover {
    background: #eee;
}

.accordion-content {
    display: none;
    padding: 16px;
    border-top: 1px solid #e0e0e0;
}

.accordion-title .fa-chevron-up {
    display: none;
}

/* Offers */
.archive-offers-more {
    color: #0073aa;
    cursor: pointer;
    font-size: 13px;
}

.archive-offers-more:hover {
    text-decoration: underline;
}

.single-archive-offers-hidden {
    display: none;
}

/* =============================================
   Testimonials / Reviews
   ============================================= */
.single-property-testimonials-hidden,
.single-property-reviews-hidden {
    display: none;
}

.single-property-page-testimonials-view-all,
.single-property-page-reviews-view-all {
    display: inline-block;
    color: #0073aa;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
}

.testimonials-show-less,
.reviews-show-less {
    display: none;
}

/* =============================================
   Sleeps Overlay
   ============================================= */
.sleeps-overlay {
    cursor: pointer;
    color: #0073aa;
    font-size: 13px;
}

.sleeps-overlay-inner {
    display: none;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 10px;
    margin-top: 5px;
    font-size: 13px;
}

/* =============================================
   Region Dropdown
   ============================================= */
.sc-region-dropdown-input {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    font-size: 14px;
    cursor: pointer;
    background: #fff;
}

.sc-region-dropdown-container {
    display: none;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin-top: 5px;
    z-index: 100;
    position: relative;
}

.sc-region-dropdown-parent {
    display: inline-block;
    padding: 6px 14px;
    margin: 3px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
}

.sc-region-dropdown-parent.active {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.sc-region-drodown-group {
    display: none;
    padding: 10px 0;
}

.sc-region-drodown-group.active {
    display: block;
}

.sc-region-dropdown-option,
.sc-region-dropdown-column-parent {
    display: inline-block;
    padding: 6px 12px;
    margin: 3px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.sc-region-dropdown-option:hover {
    background: #e8f4fd;
    border-color: #0073aa;
}

/* =============================================
   Copy Link
   ============================================= */
.sc-copy-link {
    color: #0073aa;
    cursor: pointer;
    font-size: 13px;
}

.sc-copy-link:hover {
    text-decoration: underline;
}

.sc-copy-link.sc-copied {
    color: #27ae60;
}

/* =============================================
   Tooltip / Question Icon
   ============================================= */
.sc-question {
    display: inline-block;
    position: relative;
    cursor: help;
    color: #0073aa;
    font-size: 14px;
}

.sc-question span {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10;
}

/* =============================================
   Autocomplete Overrides
   Autocomplete Overrides
   ============================================= */
.ui-autocomplete {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #ccc;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000 !important;
}

.ui-autocomplete .ui-menu-item {
    padding: 8px 12px;
    font-size: 14px;
}

.ui-autocomplete .ui-menu-item .ui-menu-item-wrapper:hover,
.ui-autocomplete .ui-menu-item .ui-state-active {
    background: #e8f4fd;
    color: #333;
    border: none;
}

.ui-autocomplete-category {
    padding: 8px 12px !important;
    font-weight: 700 !important;
    font-size: 13px;
    color: #0073aa;
    background: #f5f5f5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.autocomplete-property,
.autocomplete-pages {
    color: #333;
    text-decoration: none;
    display: block;
}

.autocomplete-property:hover,
.autocomplete-pages:hover {
    color: #0073aa;
}

/* WP search autocomplete */
.sc-wp-autocomplete {
    padding: 0 !important;
}

.sc-wp-autocomplete-container {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

/* Search working indicator */
.search-working {
    background-image: none !important;
    position: relative !important;
}

.search-working::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    border: 2px solid #ddd;
    border-top-color: #3498db;
    border-radius: 50%;
    animation: scpm-spin 0.6s linear infinite;
}

/* CSS loading spinner */
.scpm-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #e0e0e0;
    border-top-color: #3498db;
    border-radius: 50%;
    animation: scpm-spin 0.6s linear infinite;
}

.sc_calendar_loading .scpm-spinner,
.sc-multi-cal-loading .scpm-spinner,
.sc-search-loading .scpm-spinner {
    width: 32px;
    height: 32px;
}

@keyframes scpm-spin {
    to {
        transform: rotate(360deg);
    }
}

/* =============================================
   Sort Dropdown
   ============================================= */
#sort-by,
#sort-by-linked {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 768px) {
    .sc-search-row-main {
        flex-direction: column;
    }

    .sc-search-row-main .sc-search-field {
        flex: 1 1 100%;
    }

    .sc-search-row-filters {
        flex-direction: column;
        align-items: flex-start;
    }

    .sc-property-archive {
        grid-template-columns: 1fr;
    }

    #map-landing {
        height: 250px;
    }

    .gallery-column-one img {
        width: 60px;
        height: 45px;
    }
}

@media (max-width: 480px) {

    .sc_custom_calendar th,
    .sc_custom_calendar td.calendar-day {
        padding: 4px;
        font-size: 12px;
    }

    .sc_custom_calendar td.calendar-day .day-price {
        font-size: 10px;
    }
}

/* =============================================
   Single Property — Shared Parts (v2 templates)
   ============================================= */

/* Layout wrapper */
.scpm-single-property {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.scpm-property-body {
    padding: 30px 0;
}

/* Header */
.scpm-property-title {
    font-size: 2rem;
    margin: 0 0 8px;
    font-weight: 700;
    line-height: 1.2;
}

.scpm-property-subcaption {
    font-size: 1.1rem;
    color: #666;
    margin: 0 0 12px;
}

.scpm-property-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 24px;
}

.scpm-location-badge,
.scpm-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.scpm-location-badge {
    background: #f0f4f8;
    color: #334155;
}

.scpm-type-badge {
    background: #e0e7ff;
    color: #3730a3;
}

/* Key details grid */
.scpm-key-details {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 30px;
    padding: 20px;
    background: #fafbfc;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.scpm-detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 80px;
    text-align: center;
}

.scpm-detail-item svg {
    color: #6366f1;
}

.scpm-detail-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.scpm-detail-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}

.scpm-detail-yes {
    color: #059669;
}

.scpm-detail-no {
    color: #dc2626;
}

/* Sections */
.scpm-section-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 40px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.scpm-subsection-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 20px 0 12px;
    color: #374151;
}

/* Description */
.scpm-property-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 30px;
}

.scpm-second-description {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

/* Features */
.scpm-features-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
}

.scpm-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f9fafb;
    border-radius: 8px;
    font-size: 0.9rem;
}

.scpm-feature-item svg {
    color: #059669;
    flex-shrink: 0;
}

/* Rooms grid */
.scpm-rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.scpm-room-card {
    padding: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.scpm-room-card h3,
.scpm-room-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 6px;
}

.scpm-room-type,
.scpm-bed-type {
    display: inline-block;
    font-size: 0.8rem;
    padding: 2px 8px;
    background: #e0e7ff;
    border-radius: 4px;
    color: #3730a3;
    margin-bottom: 6px;
}

.scpm-room-desc {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 6px 0 0;
}

/* Policies grid */
.scpm-policies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.scpm-policy-item {
    padding: 12px 16px;
    background: #fef3c7;
    border-radius: 8px;
    font-size: 0.9rem;
}

.scpm-policy-item strong {
    color: #92400e;
}

/* Map */
.scpm-map-section {
    margin-top: 20px;
}

.scpm-map-embed {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 12px;
}

.scpm-map-static {
    margin-top: 12px;
}

.scpm-map-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 20px;
    background: #4f46e5;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
}

.scpm-map-link:hover {
    background: #4338ca;
    color: #fff;
}

.scpm-location-text {
    color: #6b7280;
    font-style: italic;
    margin-bottom: 8px;
}

.scpm-address {
    font-size: 0.9rem;
    color: #374151;
    margin-bottom: 8px;
}

/* Booking section */
.scpm-booking-section {
    margin-top: 20px;
}

/* Actions */
.scpm-property-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.scpm-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.15s;
}

.scpm-share-btn:hover {
    background: #e5e7eb;
}

.scpm-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    transition: background 0.15s, color 0.15s;
}

.scpm-btn-primary {
    background: #4f46e5;
    color: #fff;
}

.scpm-btn-primary:hover {
    background: #4338ca;
    color: #fff;
}

.scpm-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.scpm-btn-secondary:hover {
    background: #e5e7eb;
}

/* Mobile CTA */
.scpm-mobile-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 16px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
    gap: 8px;
}

/* Gallery slider */
.scpm-gallery-slider {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #f3f4f6;
    aspect-ratio: 16 / 9;
}

.scpm-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.scpm-slide.active {
    display: block;
}

.scpm-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scpm-slider-prev,
.scpm-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    border: none;
    font-size: 1.5rem;
    padding: 8px 14px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    transition: background 0.15s;
}

.scpm-slider-prev {
    left: 12px;
}

.scpm-slider-next {
    right: 12px;
}

.scpm-slider-prev:hover,
.scpm-slider-next:hover {
    background: rgba(255, 255, 255, 1);
}

.scpm-slider-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Gallery overlay */
.scpm-gallery-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scpm-overlay-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10001;
}

.scpm-overlay-slider {
    position: relative;
    width: 90vw;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
}

.scpm-overlay-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.scpm-overlay-slide.active {
    display: block;
}

.scpm-overlay-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.scpm-overlay-prev,
.scpm-overlay-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 1.8rem;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 50%;
}

.scpm-overlay-prev {
    left: -50px;
}

.scpm-overlay-next {
    right: -50px;
}

.scpm-overlay-counter {
    text-align: center;
    color: #fff;
    margin-top: 12px;
    font-size: 0.9rem;
}

/* =============================================
   Type-Specific Styles
   ============================================= */

/* Cottage */
.scpm-property-cottage .scpm-type-badge {
    background: #fef3c7;
    color: #92400e;
}

.scpm-cottage-credentials {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.scpm-credential {
    padding: 6px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #166534;
}

/* Farmhouse */
.scpm-property-farmhouse .scpm-type-badge {
    background: #ecfdf5;
    color: #065f46;
}

.scpm-farmhouse-location-highlight {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #f0fdf4;
    border-left: 4px solid #059669;
    border-radius: 0 8px 8px 0;
    margin-bottom: 24px;
}

.scpm-location-intro {
    flex: 1;
    margin: 0;
    color: #065f46;
    font-style: italic;
}

.scpm-area-badge {
    padding: 4px 12px;
    background: #059669;
    color: #fff;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Apartment */
.scpm-property-apartment .scpm-type-badge {
    background: #ede9fe;
    color: #5b21b6;
}

.scpm-apartment-quickinfo {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 16px 20px;
    background: #fafbfc;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    margin-bottom: 24px;
}

.scpm-qi-item {
    font-size: 0.95rem;
    color: #374151;
}

.scpm-qi-item strong {
    font-size: 1.3rem;
    color: #111827;
}

/* Premium Room */
.scpm-property-premium-room .scpm-type-badge {
    background: #fdf2f8;
    color: #9d174d;
}

.scpm-premium-stay-panel {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #fdf2f8, #fce7f3);
    border-radius: 12px;
    margin-bottom: 24px;
}

.scpm-stay-times {
    display: flex;
    gap: 30px;
}

.scpm-stay-time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scpm-stay-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9d174d;
}

.scpm-stay-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #831843;
}

.scpm-stay-capacity {
    display: flex;
    gap: 16px;
    font-size: 0.9rem;
    color: #6b7280;
}

.scpm-stay-capacity strong {
    color: #111827;
}

/* Garden Pod */
.scpm-property-garden-pod .scpm-type-badge {
    background: #d1fae5;
    color: #065f46;
}

.scpm-pod-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.scpm-pod-spec {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 24px;
    font-size: 0.9rem;
    color: #166534;
}

.scpm-pod-spec svg {
    color: #059669;
}

.scpm-pod-spec-highlight {
    background: #059669;
    color: #fff;
    border-color: #059669;
}

.scpm-pod-spec-highlight svg {
    color: #fff;
}

/* =============================================
   Responsive — Type Templates
   ============================================= */

@media (max-width: 768px) {
    .scpm-property-title {
        font-size: 1.5rem;
    }

    .scpm-key-details {
        gap: 12px;
        padding: 14px;
    }

    .scpm-features-list {
        grid-template-columns: 1fr;
    }

    .scpm-rooms-grid {
        grid-template-columns: 1fr;
    }

    .scpm-policies-grid {
        grid-template-columns: 1fr;
    }

    .scpm-gallery-slider {
        border-radius: 0;
        aspect-ratio: 4 / 3;
    }

    .scpm-mobile-cta {
        display: flex;
    }

    .scpm-premium-stay-panel {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .scpm-overlay-prev {
        left: 8px;
    }

    .scpm-overlay-next {
        right: 8px;
    }

    .scpm-overlay-slider {
        width: 95vw;
    }
}



/* =============================================
   Sections
   ============================================= */
.sc-content-container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}


/* =============================================
   Section — Other Accommodation Types
   ============================================= */
.sc-accommodation-type-slider {
    background-color: var(--color-white);
    padding: 40px 20px;

    @media (width >=768px) {
        padding: 60px 20px 80px 20px;
    }
}

.sc-section-title {
    text-align: center;
    font-weight: normal;
    line-height: normal;
}

.sc-section-description {
    color: var(--color-text);
    text-align: center;
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 24px;
    max-width: 692px;
    margin: 22px auto 0 auto;
}

.sc-accommodation-slider-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;

    @media (width >=768px) {
        flex-direction: row;
        gap: 20px;
    }
}

.sc-accommodation-slider-item {
    --i: 0;
    will-change: flex, transform;
    position: sticky;
    top: calc(20px + var(--i) * 20px);
    z-index: calc(var(--i) + 1);
    cursor: pointer;
    overflow: hidden;
    border-radius: 6px;
    width: 100%;
    flex: 1 1 0%;
    transition: flex 500ms ease-in-out;
    border-top: 2px solid #fff;

    @media (width >=768px) {
        position: relative;
        top: 0;
        z-index: auto;
        flex: 0 0 75px;
    }

    @media (width >=1024px) {
        flex: 0 0 100px;
    }

    @media (width >=1100px) {
        flex: 0 0 140px;
    }
}

.sc-accommodation-slider-item.active {
    flex: 1 1 0%;
}

.sc-accommodation-slider-item img {
    width: 100%;
    height: 100%;
    min-height: 655px;
    object-fit: cover;
    object-position: center;
    transition: scale ease-in-out 250ms;
}

.sc-accommodation-slider-item:hover img {
    @media (width >=768px) {
        scale: 1.01;
    }
}

.sc-accommodation-item-content {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: var(--color-white);
    bottom: 13px;
    left: 13px;
    padding: 17px;
    border-radius: 6px;
    max-width: 480px;
    min-height: 220px;
    opacity: 1;
    margin-right: 13px;
    transition: opacity 0s;

    @media (width >=768px) {
        opacity: 0;
        padding: 17px 28px;
        left: 26px;
        margin-right: 26px;
        bottom: 31px;
    }
}

.sc-accommodation-slider-item.active .sc-accommodation-item-content {
    opacity: 1;
    transition: opacity 400ms 400ms ease-in-out;
}

.sc-accommodation-slider-item:not(.active) .sc-accommodation-item-content {
    opacity: 1;
    transition: opacity 200ms;

    @media(width >=768px) {
        opacity: 0;
    }
}

.sc-accommodation-item-title {
    font-weight: normal;
    color: var(--color-charcoal-grey);
    font-size: 28px;
    margin: unset;

    @media (width >=768px) {
        font-size: 32px;
    }
}

.sc-accommodation-item-description {
    color: var(--color-text);
}

.sc-accommodation-item-link {
    display: block;
    margin-top: auto;
    color: var(--color-burnt-orange);
    text-transform: uppercase;
}

/* =============================================
   Section — Wine Bar & Tapas
   ============================================= */

.wine-bar-tapas-full-width {
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.wine-bar-tapas-featured-image {
    display: block;
    height: 100%;
    min-height: 550px;
    max-height: 960px;
    object-fit: cover;
    object-position: center;
    /* -webkit-mask-image: linear-gradient(to right, transparent 0%, black 100%); */
    /* mask-image: linear-gradient(to right, transparent 0%, black 100%); */
    mask-image: linear-gradient(black, transparent);

    @media (width >=1000px) {
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 80%);
        mask-image: linear-gradient(to right, transparent 0%, black 80%);
        object-fit: unset;
        margin-left: auto;
    }

    @media (width >=1300px) {
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 50%);
        mask-image: linear-gradient(to right, transparent 0%, black 50%);
    }
}

.wine-bar-tapas-content {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(0%, -50%);
    color: #fff;
    padding: 0 20px;
    max-width: 630px;
    margin-left: max(20px, calc((100vw - 1500px) / 2));
    z-index: 2;
}

.wine-bar-tapas-title {
    color: var(--color-white);
    max-width: 520px;
}

.wine-bar-tapas-body {
    color: var(--color-white);
}

.wine-bar-tapas-cta-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}