/*
Theme Name: Taipas Modern
Theme URI: https://www.taipasimoveis.com.br/
Author: Guilherme Silva Fonseca
Author URI: https://github.com/guisfons
Description: A modern, premium theme for Taipas Imóveis.
Version: 1.0.0
Text Domain: taipas-modern
*/

:root {
    /* Brand Colors */
    --primary: #C8102E; /* Vibrant Crimson */
    --primary-hover: #A00D25;
    --secondary: #1B365D; /* Deep Navy */
    --accent: #FFB81C; /* Gold accent */
    
    /* Neutral Palette */
    --bg-main: #FFFFFF;
    --bg-soft: #F8FAFC;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --border: #E2E8F0;
    
    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
    
    /* Shadows & Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --glass: rgba(255, 255, 255, 0.8);
    --glass-blur: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-soft); /* Changed to soft background for better contrast */
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Utilities */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: 'Outfit', sans-serif;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

.section-padding {
    padding: 5rem 0;
}

.glass-panel {
    background: white; /* More opaque for readability on light theme */
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.glass-panel:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(200, 16, 46, 0.1);
}
.glass-panel h3 {
    display: flex;
    align-items: center;
    justify-content: center; /* Better default alignment */
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.glass-panel h3 i,
.glass-panel h3 svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}
.glass-panel .form-group {
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.25rem;
}

.form-group label i,
.form-group label svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
    stroke-width: 2.5px;
    display: block;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input, 
.input-wrapper select,
.sidebar-form input,
.sidebar-form select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: white;
    appearance: none;
}

.input-wrapper select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
    padding-right: 3rem;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.1);
}

.currency-prefix {
    position: absolute;
    left: 1.25rem;
    font-weight: 700;
    color: var(--text-muted);
}

.input-with-prefix {
    padding-left: 3.5rem !important;
}

.unit-suffix {
    position: absolute;
    right: 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-soft);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Custom Range Slider */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 5px;
    outline: none;
    margin: 1rem 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary);
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: var(--shadow-sm);
}

/* Modern Switch / Radio Group */
.radio-group-modern {
    display: flex;
    background: var(--bg-soft);
    padding: 0.35rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    position: relative;
}

.radio-group-modern input[type="radio"] {
    display: none;
}

.radio-group-modern label,
.number-selector label {
    flex: 1;
    text-align: center;
    padding: 0.6rem 1rem;
    cursor: pointer;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: none;
    color: var(--text-muted);
    z-index: 1;
    margin-bottom: 0 !important; /* Fix extra space */
}

.radio-group-modern input[type="radio"]:checked + label {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

/* Premium Range Slider */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: var(--bg-soft);
    border-radius: 10px;
    outline: none;
    margin: 1.5rem 0;
    border: 1px solid var(--border);
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary);
    cursor: pointer;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--primary);
    cursor: pointer;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: var(--shadow-md);
}

/* Price Range Helper */
.price-range-wrapper {
    padding: 0 0.5rem;
}

.range-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-top: -0.5rem;
}
