/*
Theme Name: Tila Master Child
Theme URI: https://tila.so
Description: Tila Master Child Theme for Houzez
Author: Tila Protocol
Author URI: https://tila.so
Template: houzez
Version: 1.0.0
*/

:root {
    --tila-blue: #2D55FF;
    /* Vector Blue */
    --tila-black: #000000;
    --tila-dark-grey: #121212;
    /* 70% Black feel */
    --tila-white: #FFFFFF;
}

body {
    background-color: var(--tila-white);
    color: var(--tila-black);
    font-family: 'Inter', sans-serif;
}

/* Header Overrides */
.header-main {
    background-color: var(--tila-white) !important;
    border-bottom: 2px solid var(--tila-blue);
}

/* Button Overrides */
.btn-primary,
.btn-search {
    background-color: var(--tila-blue) !important;
    border-color: var(--tila-blue) !important;
    color: var(--tila-white) !important;
    font-weight: 700;
}

.btn-primary:hover,
.btn-search:hover {
    background-color: #0033CC !important;
    /* Darker Blue */
    color: var(--tila-white) !important;
}

/* Property Cards */
.item-wrap {
    background-color: var(--tila-white);
    border: 1px solid #E0E0E0;
}

.item-title a {
    color: var(--tila-black);
}

.item-price {
    color: var(--tila-blue);
}

/* --- Tila "Nuclear" Overrides (Remove all Green) --- */

/* Search Tabs (For Rent / For Sale) */
.banner-search-tabs .nav-tabs .nav-link.active,
.houzez-tabs .nav-pills .nav-link.active {
    background-color: var(--tila-blue) !important;
    color: var(--tila-white) !important;
}

/* Status Labels (e.g. "For Rent") */
.label-status, .label-featured {
    background-color: var(--tila-blue) !important;
}

/* Pagination */
.pagination > .active > a, 
.pagination > .active > span, 
.pagination > .active > a:hover, 
.pagination > .active > span:hover, 
.pagination > .active > a:focus, 
.pagination > .active > span:focus {
    background-color: var(--tila-blue) !important;
    border-color: var(--tila-blue) !important;
}

/* Links and Hovers */
a:hover, a:focus {
    color: var(--tila-blue);
}

/* Icons */
.text-primary {
    color: var(--tila-blue) !important;
}

/* ========================================
   TILA MAP STYLING
   ======================================== */

/* Map Container */
#map-view-wrap,
.property-map {
    border: 2px solid var(--tila-blue);
    border-radius: 8px;
    overflow: hidden;
}

/* Map Info Window (Google Maps Popup) */
.gm-style .gm-style-iw-c {
    background-color: var(--tila-white) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(45, 85, 255, 0.2) !important;
    padding: 0 !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    padding: 0 !important;
}

/* Custom Tila Info Window */
.tila-map-info-window {
    font-family: 'Inter', sans-serif;
}

.tila-map-info-window img {
    border-radius: 8px 8px 0 0;
}

.tila-map-info-window h4 {
    font-weight: 700;
}

.tila-map-info-window a {
    transition: all 0.3s ease;
}

.tila-map-info-window a:hover {
    background-color: #0033CC !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(45, 85, 255, 0.3);
}

/* Map Marker Cluster */
.cluster {
    background-color: var(--tila-blue) !important;
    color: var(--tila-white) !important;
    border: 3px solid var(--tila-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Map Controls */
.gm-style button {
    background-color: var(--tila-blue) !important;
}

/* Property List on Map Page */
.listing-wrap.listing-list {
    border-left: 3px solid var(--tila-blue);
}

/* Map Price Labels */
.map-price-pin {
    background-color: var(--tila-blue) !important;
    color: var(--tila-white) !important;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(45, 85, 255, 0.4);
}

/* Tila Verified Badge on Map */
.label-status-verified {
    background-color: #D4AF37 !important;
    color: #000 !important;
    font-weight: 700;
}

/* Map Search Box */
.map-search-wrap {
    border: 2px solid var(--tila-blue);
    border-radius: 8px;
}

.map-search-wrap input {
    border-color: var(--tila-blue);
}

.map-search-wrap button {
    background-color: var(--tila-blue) !important;
    color: var(--tila-white) !important;
}

/* Responsive Map */
@media (max-width: 768px) {
    #map-view-wrap {
        height: 400px !important;
    }
    
    .tila-map-info-window {
        max-width: 240px !important;
    }
}