/*
Theme Name: Upright Real Estate
Theme URI: https://uprightsmartsolutions.com
Description: Custom Real Estate Theme for Upright Smart Solutions - Child of Hello Elementor
Author: Upright Smart Solutions
Author URI: https://uprightsmartsolutions.com
Template: hello-elementor
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: upright-realestate
*/

/* ========== BASE RESET ========== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* Prevent iOS zoom on inputs */
@media screen and (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* CSS Variables */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --border-color: #e2e8f0;
}

/* Base */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
}

/* Property Grid */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

/* Property Card */
.property-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.property-card__image {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.property-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.property-card__content {
    padding: 1.25rem;
}
.property-card__price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.property-card__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}
.property-card__title a {
    color: var(--dark-color);
    text-decoration: none;
}
.property-card__location {
    color: var(--secondary-color);
    font-size: 0.875rem;
    margin: 0 0 1rem;
}
.property-card__features {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}
.property-card__features span {
    font-size: 0.8125rem;
    color: var(--secondary-color);
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Dashboard */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== THEME BUTTON COLORS ========== */
/* Primary buttons - login, register, search, filter, submit */
.btn-primary,
.filter-btn--search,
.submit-btn,
button[type="submit"]:not(.chat-reply-form button),
.login-btn,
.register-btn,
input[type="submit"],
.wp-block-button__link {
    background: #252E69 !important;
    color: #6F923D !important;
    border: 2px solid #252E69 !important;
    transition: all 1.5s ease !important;
}

.btn-primary:hover,
.filter-btn--search:hover,
.submit-btn:hover,
button[type="submit"]:not(.chat-reply-form button):hover,
.login-btn:hover,
.register-btn:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
    background: #6F923D !important;
    color: #252E69 !important;
    border: 2px solid #6F923D !important;
}

/* Mobile menu toggle */
.filters-toggle,
.mobile-menu-toggle {
    background: #252E69 !important;
    color: #6F923D !important;
    transition: all 1.5s ease !important;
}

.filters-toggle:hover,
.mobile-menu-toggle:hover {
    background: #6F923D !important;
    color: #252E69 !important;
}

/* Dashboard nav active state */
.dashboard-nav__link.active {
    background: #252E69 !important;
    color: #6F923D !important;
    transition: all 1.5s ease !important;
}

/* Property badges for sale */
.card-badge--sale,
.purpose-badge--sale {
    background: #252E69 !important;
}

/* Property badges for rent - keep green */
.card-badge--rent,
.purpose-badge--rent {
    background: #22c55e !important;
}

/* Links and text that should be themed */
a.btn,
.no-properties .btn,
.no-results .btn {
    background: #252E69 !important;
    color: #6F923D !important;
    border: 2px solid #252E69 !important;
    transition: all 1.5s ease !important;
}

a.btn:hover,
.no-properties .btn:hover,
.no-results .btn:hover {
    background: #6F923D !important;
    color: #252E69 !important;
    border: 2px solid #6F923D !important;
}

/* Pagination current page */
.properties-pagination .current,
.archive-pagination .current {
    background: #252E69 !important;
    color: #6F923D !important;
    border-color: #252E69 !important;
}

/* Secondary buttons remain green for contrast */
.btn--secondary,
.no-properties .btn--secondary,
.no-results .btn--secondary {
    background: #22c55e !important;
    transition: all 1.5s ease !important;
}

.btn--secondary:hover,
.no-properties .btn--secondary:hover,
.no-results .btn--secondary:hover {
    background: #16a34a !important;
}