/* Modern CSS Refresh for PropertyShopGC */
/* Layered on top of existing theme - no structural changes */

/* =============================================
   GLOBAL REFINEMENTS
   ============================================= */

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smoother transitions */
a, button, .wpresidence_button, .property_listing,
.menu-item a, input, select, .adv_search_tab_item {
    transition: all 0.25s ease;
}

/* =============================================
   SECTION HEADINGS
   ============================================= */

.uvc-main-heading h2 {
    text-transform: none !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
    font-size: 32px !important;
}

/* =============================================
   PROPERTY CARDS
   ============================================= */

.property_listing {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.05);
    background: #fff;
}

.property_listing:hover {
    box-shadow: 0 12px 28px rgba(0,0,0,0.10), 0 4px 10px rgba(0,0,0,0.04);
    transform: translateY(-4px);
}

.listing_wrapper {
    margin-bottom: 30px;
}

/* Image container */
.property_listing .listing-unit-img-wrapper {
    overflow: hidden;
}

.property_listing .listing-unit-img-wrapper img {
    transition: transform 0.5s ease;
}

.property_listing:hover .listing-unit-img-wrapper img {
    transform: scale(1.05);
}

/* Empty image placeholder */
.property_unit_custom_element.customunitimg:empty {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.property_unit_custom_element.customunitimg:empty::after {
    content: '\f015';
    font-family: 'Font Awesome 5 Free', 'FontAwesome';
    font-weight: 900;
    font-size: 48px;
    color: #94a3b8;
    opacity: 0.5;
}

/* ---- Row 1: Price padding ---- */

/* Price row - proper spacing below image */
.property_unit_custom_element.property_price.unit_element_65896 {
    padding: 14px 18px 0 !important;
    margin-bottom: 0 !important;
}

/* Favorite icon next to price */
.property_unit_custom_element.favorite.unit_element_83288 {
    padding: 14px 18px 0 0 !important;
}

/* ---- Row 1: Image overlay elements ---- */

/* Status badge (sold, etc) */
.property_unit_custom_element.property_status.unit_element_72485 {
    border-radius: 6px !important;
    padding: 5px 12px !important;
    font-size: 10px !important;
    letter-spacing: 0.08em !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
}

/* Price - larger, bolder */
.property_unit_custom_element.property_price {
    font-weight: 800 !important;
    font-size: 18px !important;
    color: #16446f !important;
    letter-spacing: -0.01em;
}

.property_unit_custom_element.property_price .price_label {
    font-weight: 400;
}

/* Favorite icon */
.property_unit_custom_element.favorite .icon-fav {
    opacity: 0.5;
    transition: all 0.2s ease;
}

.property_unit_custom_element.favorite .icon-fav:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* Featured ribbon - modern badge instead of diagonal ribbon */
.tokyo_featured {
    background: linear-gradient(135deg, #16446f, #1e5a8e) !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    padding: 4px 12px !important;
    border-radius: 0 0 6px 0 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    -webkit-transform: none !important;
    -ms-transform: none !important;
    z-index: 99;
}

/* ---- Row 2: Title ---- */
.property_unit_custom_element.title {
    padding: 14px 18px 4px !important;
}

.property_unit_custom_element.title h4 {
    margin: 0;
}

.property_unit_custom_element.title h4 a {
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: #1a2a3a !important;
}

.property_unit_custom_element.title h4 a:hover {
    color: #16446f !important;
}

/* ---- Row 3: Category line (Category: Houses in Sales) ---- */
.property_unit_custom.row_no_3 {
    padding: 0 18px !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 3px !important;
    margin-top: 2px !important;
}

/* "Category:" label */
.property_unit_custom_element.text.unit_element_95889 {
    font-size: 12px !important;
    color: #8896a6 !important;
    font-weight: 400 !important;
}

/* Category links (Houses, duplex, etc) */
.property_unit_custom_element.property_category a {
    font-size: 12px !important;
    color: #16446f !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}

/* "in" text */
.property_unit_custom_element.text.unit_element_72627 {
    font-size: 12px !important;
    color: #8896a6 !important;
    font-weight: 400 !important;
    margin: 0 1px !important;
}

/* Action category (Sales) */
.property_unit_custom_element.property_action_category a {
    font-size: 12px !important;
    background: #e8f0f8 !important;
    color: #16446f !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}

/* ---- Row 4: Description ---- */
.property_unit_custom.row_no_4 {
    padding: 0 18px !important;
}

.property_unit_custom_element.description {
    font-size: 13px !important;
    line-height: 1.6 !important;
    color: #5a6a7a !important;
    margin-top: 8px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.property_unit_custom_element.description .unit_more_x {
    color: #16446f !important;
    font-weight: 600 !important;
}

/* ---- Row 5: Separator ---- */
.custom_separator {
    border-top: 1px solid #eef2f6 !important;
    margin: 12px 18px !important;
    opacity: 1 !important;
    background: none !important;
}

/* ---- Row 6: Location & share ---- */
.property_unit_custom.row_no_6 {
    padding: 0 18px 16px !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

.property_unit_custom_element.icon .fa-map-marker {
    color: #16446f !important;
    font-size: 13px !important;
}

.property_unit_custom_element.property_area a,
.property_unit_custom_element.property_city a,
.property_unit_custom_element.property_address {
    font-size: 12px !important;
    color: #8896a6 !important;
    text-decoration: none !important;
}

.property_unit_custom_element.property_area a:hover,
.property_unit_custom_element.property_city a:hover {
    color: #16446f !important;
}

/* Share icon */
.share_list {
    opacity: 0.4;
    transition: opacity 0.2s ease;
}

.share_list:hover {
    opacity: 1;
}

/* =============================================
   BUTTONS
   ============================================= */

.wpresidence_button {
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 10px 24px;
    text-transform: none;
}

.wpresidence_button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* =============================================
   HEADER
   ============================================= */

.master_header {
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

#access ul.menu > li > a {
    font-weight: 500;
    letter-spacing: 0.01em;
}

#access ul.sub-menu {
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.06);
    overflow: hidden;
}

/* =============================================
   SEARCH BAR
   ============================================= */

.search_wrapper .form-control,
.search_wrapper input[type="text"],
.search_wrapper select {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.search_wrapper .form-control:focus,
.search_wrapper input[type="text"]:focus {
    border-color: #16446f;
    box-shadow: 0 0 0 3px rgba(22,68,111,0.1);
    outline: none;
}

.adv_search_tab_item {
    border-radius: 8px !important;
}

/* =============================================
   FORM INPUTS
   ============================================= */

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
    border-color: #16446f;
    box-shadow: 0 0 0 3px rgba(22,68,111,0.1);
    outline: none;
}

/* =============================================
   FOOTER
   ============================================= */

.widget-title-footer {
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.widget-title-footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #FF3B3D;
    border-radius: 2px;
}

/* =============================================
   GENERAL POLISH
   ============================================= */

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Mobile header */
.mobile_header {
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.snap-drawer {
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
}

/* Bootstrap select dropdowns */
.bootstrap-select .dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.06);
}

/* Login form */
.login_form {
    border-radius: 12px;
}

/* =============================================
   SINGLE PROPERTY PAGE
   ============================================= */

/* Hide the sticky top navigation bar on scroll */
.wpestate_top_property_navigation {
    display: none !important;
}

/* Hide Page Views Statistics section */
#accordion_property_page_views {
    display: none !important;
}

/* Price spacing - add space between currency and amount */
.property_unit_custom_element.property_price {
    word-spacing: 0.15em;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 767px) {
    .property_listing {
        border-radius: 10px;
    }

    .listing_wrapper {
        margin-bottom: 20px;
    }

    .property_unit_custom_element.title {
        padding: 12px 14px 4px !important;
    }

    .property_unit_custom.row_no_3,
    .property_unit_custom.row_no_4,
    .property_unit_custom.row_no_6 {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .custom_separator {
        margin: 10px 14px !important;
    }
}
