/* Ernest Chang Realty — Public Website
   Warm, professional, inviting — not cold or corporate */

:root {
    --warm-bg: #faf7f2;
    --warm-cream: #f5f0e8;
    --warm-gold: #8b6914;
    --warm-gold-light: #c49b2a;
    --warm-brown: #5c4a1e;
    --warm-text: #3d3520;
    --warm-muted: #8a7e6d;
    --warm-border: #e8e0d4;
    --warm-accent: #d4a843;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--warm-text);
    background: var(--warm-bg);
}

/* ---- Navbar ---- */
.navbar {
    background: #fff;
    box-shadow: 0 1px 10px rgba(0,0,0,0.06);
    padding: 0.8rem 0;
}
.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--warm-brown) !important;
}
.brand-icon {
    color: var(--warm-gold);
    font-size: 1.4rem;
    margin-right: 0.3rem;
}
.nav-link {
    font-weight: 500;
    color: var(--warm-text) !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
}
.nav-link:hover {
    color: var(--warm-gold) !important;
}

/* ---- Buttons ---- */
.btn-warm {
    background: var(--warm-gold);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s;
}
.btn-warm:hover {
    background: var(--warm-gold-light);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139,105,20,0.3);
}
.btn-outline-warm {
    color: var(--warm-gold);
    border: 2px solid var(--warm-gold);
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    background: transparent;
    transition: all 0.2s;
}
.btn-outline-warm:hover {
    background: var(--warm-gold);
    color: #fff;
}

/* ---- Hero Section (original full-size, kept for other pages) ---- */
.hero-section {
    background: linear-gradient(135deg, var(--warm-cream) 0%, #ede6d8 100%);
    padding: 5rem 0;
    text-align: center;
}
.hero-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--warm-brown);
    line-height: 1.2;
    margin-bottom: 1rem;
}
.hero-subtitle {
    font-size: 1.2rem;
    color: var(--warm-muted);
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .hero-section { padding: 3rem 0; }
}

/* ---- Compact Hero (Homepage) ---- */
.hero-compact {
    background: linear-gradient(135deg, var(--warm-cream) 0%, #ede6d8 100%);
    padding: 2rem 0;
}
.hero-compact-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--warm-brown);
    line-height: 1.3;
    margin-bottom: 0.3rem;
}
.hero-compact-subtitle {
    color: var(--warm-muted);
    font-size: 1rem;
    margin-bottom: 0;
}
.hero-stat-inline {
    display: inline-block;
    background: rgba(139,105,20,0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--warm-brown);
    margin: 0.2rem;
}
.hero-stat-inline strong {
    color: var(--warm-gold);
}
@media (max-width: 768px) {
    .hero-compact-title { font-size: 1.4rem; }
}

/* ---- Type Badge on Listing Card ---- */
.type-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}
.listing-cta {
    margin-top: auto;
}

/* ---- Section Titles ---- */
.section-title {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--warm-brown);
}
.page-header {
    background: var(--warm-cream);
    padding: 3rem 0;
    margin-bottom: 0;
}
.page-header h1 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--warm-brown);
}

/* ---- Feature Cards (Homepage) ---- */
.feature-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 20px rgba(0,0,0,0.04);
    transition: transform 0.2s;
    height: 100%;
}
.feature-card:hover {
    transform: translateY(-4px);
}
.feature-icon {
    font-size: 2.5rem;
    color: var(--warm-gold);
    margin-bottom: 1rem;
}

/* ---- Listing Cards ---- */
.listing-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.listing-card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}
.listing-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.placeholder-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--warm-cream);
    font-size: 3rem;
    color: var(--warm-border);
}
.price-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--warm-gold);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
}
.listing-card-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.listing-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--warm-brown);
    margin-bottom: 0.3rem;
}
.listing-location {
    color: var(--warm-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.listing-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.85rem;
    color: var(--warm-muted);
}
.listing-available {
    color: var(--warm-gold);
}

/* ---- Rented Listing Card ---- */
.listing-card-rented {
    opacity: 0.7;
}
.listing-card-rented:hover {
    opacity: 0.85;
}
.rented-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 0.4rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.05em;
    z-index: 2;
}

/* ---- Listing Detail ---- */
.listing-carousel {
    border-radius: 16px;
    overflow: hidden;
}
.listing-carousel img {
    height: 450px;
    object-fit: cover;
}
.placeholder-image-large {
    height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--warm-cream);
    border-radius: 16px;
}
.listing-detail-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}
.price-highlight {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--warm-gold);
}
.price-highlight span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--warm-muted);
}
.listing-detail-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--warm-brown);
    margin-top: 0.5rem;
}
.listing-detail-location {
    color: var(--warm-muted);
    font-size: 0.95rem;
}
.listing-key-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-top: 1rem;
}
.key-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--warm-text);
}
.key-feature i {
    color: var(--warm-gold);
    font-size: 1.1rem;
}
.amenity-badge {
    display: inline-block;
    background: var(--warm-cream);
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--warm-brown);
    margin: 0.2rem;
}
.listing-description {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}
.listing-description h3 {
    font-family: var(--font-heading);
    color: var(--warm-brown);
    margin-bottom: 1rem;
}
.description-text {
    line-height: 1.8;
    color: var(--warm-text);
    white-space: pre-line;
}

/* ---- Booking / Form Cards ---- */
.booking-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}
.form-section-title {
    font-family: var(--font-heading);
    color: var(--warm-brown);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--warm-border);
    margin-bottom: 1rem;
    margin-top: 1rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--warm-gold);
    box-shadow: 0 0 0 0.2rem rgba(139,105,20,0.15);
}

/* ---- Showing Slots ---- */
.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem;
}
.slot-option {
    cursor: pointer;
}
.slot-option input[type="radio"] {
    display: none;
}
.slot-content {
    border: 2px solid var(--warm-border);
    border-radius: 10px;
    padding: 0.8rem;
    text-align: center;
    transition: all 0.2s;
}
.slot-option input:checked + .slot-content {
    border-color: var(--warm-gold);
    background: rgba(139,105,20,0.05);
}
.slot-content:hover {
    border-color: var(--warm-gold-light);
}
.slot-date {
    font-weight: 600;
    color: var(--warm-brown);
    font-size: 0.9rem;
}
.slot-time {
    color: var(--warm-muted);
    font-size: 0.85rem;
}

/* ---- Confirmation Page ---- */
.confirmation-card {
    background: #fff;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}
.confirmation-icon {
    font-size: 4rem;
    color: var(--warm-gold);
    margin-bottom: 1rem;
}

/* ---- Credit Consent ---- */
.consent-text-box {
    background: var(--warm-cream);
    border-left: 4px solid var(--warm-gold);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
    line-height: 1.7;
}
.signature-input {
    font-family: 'Brush Script MT', 'Segoe Script', cursive;
    font-size: 1.5rem !important;
}

/* ---- About Page ---- */
.about-content {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}
.about-content h3 {
    font-family: var(--font-heading);
    color: var(--warm-brown);
}
.about-list {
    list-style: none;
    padding: 0;
}
.about-list li {
    padding: 0.5rem 0;
    color: var(--warm-text);
}
.about-list li i {
    color: var(--warm-gold);
}

/* ---- Contact Page ---- */
.contact-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    height: 100%;
}
.contact-card i {
    font-size: 2rem;
    color: var(--warm-gold);
    margin-bottom: 1rem;
}
.contact-card a {
    color: var(--warm-gold);
    text-decoration: none;
}
.contact-card a:hover {
    text-decoration: underline;
}

/* ---- CTA Section ---- */
.cta-section {
    background: var(--warm-cream);
}
.cta-section h2 {
    font-family: var(--font-heading);
    color: var(--warm-brown);
}

/* ---- Featured Section ---- */
.featured-section {
    background: #fff;
}

/* ---- Filter Bar ---- */
.filter-bar {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

/* ---- Footer ---- */
.site-footer {
    background: var(--warm-brown);
    color: rgba(255,255,255,0.85);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}
.site-footer h5, .site-footer h6 {
    color: #fff;
}
.footer-tagline {
    color: rgba(255,255,255,0.6);
    font-style: italic;
}
.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    display: block;
    padding: 0.2rem 0;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--warm-accent);
}
.footer-contact li {
    padding: 0.2rem 0;
    color: rgba(255,255,255,0.7);
}
.site-footer hr {
    border-color: rgba(255,255,255,0.15);
}

/* ---- Owner Page ---- */
.owner-hero {
    background: linear-gradient(135deg, #2c1810 0%, #4a2c17 50%, #3d2213 100%);
    color: #fff;
    padding: 5rem 0;
}
.owner-hero-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.owner-hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
}
.owner-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.owner-stat {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1.2rem;
    text-align: center;
    backdrop-filter: blur(4px);
}
.owner-stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--warm-accent);
}
.owner-stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin-top: 0.2rem;
}
.owner-benefit {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}
.owner-benefit i {
    color: var(--warm-gold);
    font-size: 1.3rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}
.owner-benefit p {
    margin-bottom: 0;
    color: var(--warm-muted);
    font-size: 0.9rem;
}
.testimonial-card {
    background: var(--warm-cream);
    border-radius: 16px;
    padding: 2rem;
}
.testimonial-text {
    font-style: italic;
    line-height: 1.8;
    color: var(--warm-text);
    margin: 1rem 0;
}
.testimonial-author {
    font-weight: 600;
    color: var(--warm-brown);
}
@media (max-width: 768px) {
    .owner-hero { padding: 3rem 0; }
    .owner-hero-title { font-size: 1.8rem; }
    .owner-stats-grid { gap: 0.6rem; }
    .owner-stat-number { font-size: 1.5rem; }
}

/* ---- Empty State ---- */
.empty-state {
    padding: 2rem;
}

/* ---- Breadcrumb ---- */
.breadcrumb a {
    color: var(--warm-gold);
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}
