/* ==========================================================================
   rentbhk.com - Core Stylesheet
   Color Palette derived from Brand Logo:
   - Brand Red: #E1251B
   - Brand Dark Charcoal: #1E1E1E
   - Light Background: #F8FAFC
   ========================================================================== */

:root {
    --brand-red: #E1251B;
    --brand-red-hover: #C51D14;
    --brand-dark: #1E1E1E;
    --brand-gray: #4B5563;
    --brand-light: #F8FAFC;
    --brand-border: #E5E7EB;
    --brand-white: #FFFFFF;
    --tag-bg: #FEE2E2;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--brand-light);
    color: var(--brand-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* 1140px Centered Canvas (Leaves side rails clear on >=1440px screens) */
.site-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 2px solid var(--brand-border);
    background: var(--brand-white);
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo,
.footer-logo {
    height: 42px;
    width: auto;
    display: block;
}

.fallback-logo {
    font-size: 26px;
    font-weight: 900;
    color: var(--brand-dark);
    letter-spacing: -0.5px;
    text-decoration: none;
    line-height: 1;
}

.fallback-logo span {
    color: var(--brand-red);
}

.nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav a {
    color: var(--brand-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.15s ease;
}

.nav a:hover {
    color: var(--brand-red);
}

.btn-nav {
    background-color: var(--brand-red) !important;
    color: var(--brand-white) !important;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 700 !important;
    transition: background 0.15s ease;
}

.btn-nav:hover {
    background-color: var(--brand-red-hover) !important;
}

/* ==========================================================================
   Google AdSense Unit Wrappers
   ========================================================================== */
.ad-top-wrapper, 
.ad-bottom-wrapper {
    margin: 16px 0;
    text-align: center;
    clear: both;
}

.ad-placeholder {
    background: #F3F4F6;
    border: 1px dashed #D1D5DB;
    padding: 24px 10px;
    color: #9CA3AF;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
}

/* 2-Column Layout (300x250 Left Sidebar Ad + Right Content) */
.layout-grid {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.sidebar-ad {
    width: 300px;
    flex-shrink: 0;
}

.ad-box-300x250 {
    width: 300px;
    height: 250px;
    background: #F3F4F6;
    border: 1px dashed #D1D5DB;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    font-size: 12px;
    text-transform: uppercase;
    border-radius: 4px;
}

.main-content {
    flex-grow: 1;
    min-width: 0;
}

/* ==========================================================================
   Forms & Controls
   ========================================================================== */
.form-card {
    background: var(--brand-white);
    border: 1px solid var(--brand-border);
    border-top: 3px solid var(--brand-red);
    border-radius: 6px;
    padding: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 13.5px;
    color: var(--brand-dark);
}

input[type="text"], 
input[type="number"], 
input[type="tel"], 
input[type="password"], 
input[type="email"], 
select, 
textarea {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1.5px solid #D1D5DB;
    border-radius: 6px;
    font-size: 15px;
    background-color: #FFFFFF;
    color: var(--brand-dark);
    outline: none;
    transition: all 0.2s ease-in-out;
}

textarea {
    height: auto;
    padding: 12px 16px;
}

input:focus, 
select:focus, 
textarea:focus {
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px rgba(225, 37, 27, 0.12);
}

/* User Type Switcher (Pill Style) */
.user-type-selector-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
    text-align: center;
}

.user-type-selector-wrapper .selector-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pill-radio-group {
    display: inline-flex;
    background: #F3F4F6;
    padding: 5px;
    border-radius: 30px;
    gap: 8px;
    border: 1px solid var(--brand-border);
}

.pill-option {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.pill-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pill-content {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-gray);
    transition: all 0.2s ease-in-out;
}

.pill-option input[type="radio"]:checked + .pill-content {
    background: var(--brand-red);
    color: #FFFFFF;
    box-shadow: 0 3px 8px rgba(225, 37, 27, 0.25);
}

/* Form Actions & Buttons */
.form-submit-row {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn-primary-large {
    background: var(--brand-red);
    color: #FFFFFF;
    height: 50px;
    padding: 0 40px;
    border: 0;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 3px 8px rgba(225, 37, 27, 0.2);
    min-width: 260px;
}

.btn-primary-large:hover {
    background: var(--brand-red-hover);
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(225, 37, 27, 0.3);
}

.btn-primary {
    background: var(--brand-red);
    color: var(--brand-white);
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    border: 0;
    cursor: pointer;
    display: inline-block;
    transition: background 0.15s ease;
}

.btn-primary:hover {
    background: var(--brand-red-hover);
}

.btn-secondary {
    background: var(--brand-dark);
    color: var(--brand-white);
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    display: inline-block;
}

/* ==========================================================================
   Silent Search Toolbar
   ========================================================================== */
.filter-card {
    background: var(--brand-white);
    border: 1px solid var(--brand-border);
    border-top: 3px solid var(--brand-red);
    border-radius: 6px;
    padding: 18px;
    margin-bottom: 20px;
}

.silent-search-form .form-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 0;
}

.col-field {
    flex: 1;
}

.col-btn {
    flex: 0 0 auto;
}

.col-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 4px;
}

.btn-search {
    background: var(--brand-red);
    color: var(--brand-white);
    padding: 0 22px;
    height: 48px;
    border: 0;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.15s ease;
}

.btn-search:hover {
    background: var(--brand-red-hover);
}

/* ==========================================================================
   Listing Feed Cards
   ========================================================================== */
.listing-item-card {
    background: var(--brand-white);
    border: 1px solid var(--brand-border);
    border-radius: 6px;
    padding: 18px;
    margin-bottom: 14px;
    transition: box-shadow 0.15s ease;
}

.listing-item-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.badge-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.badge-bhk, 
.badge-furn, 
.badge-pref, 
.badge-role {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

.badge-bhk { background: #FEE2E2; color: var(--brand-red); }
.badge-furn { background: #F3F4F6; color: var(--brand-dark); }
.badge-pref { background: #ECFDF5; color: #047857; }
.badge-role { background: #FEF3C7; color: #B45309; }

.listing-item-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.listing-item-card h3 a {
    color: var(--brand-dark);
    text-decoration: none;
}

.listing-item-card h3 a:hover {
    color: var(--brand-red);
}

.listing-meta {
    font-size: 13px;
    color: var(--brand-gray);
    margin-bottom: 14px;
}

.listing-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #F3F4F6;
    padding-top: 12px;
}

.rent-info strong {
    font-size: 20px;
    font-weight: 800;
    color: var(--brand-red);
}

.rent-info .deposit {
    font-size: 13px;
    color: var(--brand-gray);
    margin-left: 6px;
}

.btn-sm {
    background: var(--brand-dark);
    color: var(--brand-white);
    padding: 7px 14px;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.15s ease;
}

.btn-sm:hover {
    background: var(--brand-red);
}

/* Shortlist Buttons */
.btn-shortlist {
    background: var(--brand-white);
    border: 1px solid var(--brand-border);
    color: var(--brand-dark);
    padding: 7px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-shortlist.active {
    background: #FEF3C7;
    border-color: #F59E0B;
    color: #B45309;
}

.btn-shortlist-sm {
    background: #F9FAFB;
    border: 1px solid var(--brand-border);
    color: var(--brand-gray);
    font-size: 16px;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-shortlist-sm.active {
    background: #FEF3C7;
    border-color: #F59E0B;
    color: #B45309;
}

/* ==========================================================================
   Property Detail View
   ========================================================================== */
.property-detail-box {
    background: var(--brand-white);
    border: 1px solid var(--brand-border);
    border-radius: 6px;
    padding: 24px;
}

.property-heading {
    font-size: 24px;
    font-weight: 800;
    color: var(--brand-dark);
    margin: 8px 0 4px 0;
}

.locality-tag {
    color: var(--brand-gray);
    font-size: 14px;
    margin-bottom: 18px;
}

.pricing-strip {
    display: flex;
    background: #FAFAFA;
    border: 1px solid var(--brand-border);
    border-left: 4px solid var(--brand-red);
    border-radius: 4px;
    padding: 14px 18px;
    gap: 32px;
    margin-bottom: 24px;
}

.price-item .lbl {
    display: block;
    font-size: 12px;
    color: var(--brand-gray);
    font-weight: 600;
}

.price-item .val {
    font-size: 20px;
    font-weight: 800;
    color: var(--brand-dark);
}

.section-block {
    margin-bottom: 24px;
}

.section-block h3 {
    font-size: 16px;
    margin-bottom: 8px;
    border-bottom: 2px solid #F3F4F6;
    padding-bottom: 6px;
}

.property-desc {
    color: var(--brand-dark);
    line-height: 1.7;
    white-space: pre-line;
}

/* Locked CTA Box */
.locked-card {
    background: #FFF5F5;
    border: 1px dashed var(--brand-red);
    border-radius: 6px;
    padding: 24px;
    text-align: center;
}

.lock-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.locked-card h4 {
    font-size: 18px;
    color: var(--brand-red);
    margin-bottom: 6px;
}

.locked-card p {
    font-size: 14px;
    color: var(--brand-gray);
    margin-bottom: 16px;
}

.locked-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.contact-details-unlocked {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    padding: 18px;
    border-radius: 6px;
}

.detail-row {
    margin-bottom: 8px;
    font-size: 14px;
}

.phone-link {
    color: #15803D;
    font-weight: 800;
    text-decoration: none;
}

/* ==========================================================================
   Footer Layout
   ========================================================================== */
.footer {
    background: #FFFFFF;
    border-top: 1px solid var(--brand-border);
    margin-top: 48px;
    padding: 48px 24px 24px 24px;
    width: 100%;
    border-radius: 6px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 36px;
    padding-left: 8px;
    padding-right: 8px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.brand-col {
    padding-right: 20px;
}

.footer-logo-link {
    display: inline-block;
    text-decoration: none;
    margin-bottom: 10px;
}

.brand-tagline {
    font-size: 12px;
    font-weight: 800;
    color: var(--brand-red);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.brand-desc {
    font-size: 13.5px;
    color: var(--brand-gray);
    line-height: 1.6;
    margin: 0;
}

.footer-title {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    position: relative;
    padding-bottom: 6px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    background: var(--brand-red);
    border-radius: 2px;
}

.footer-menu {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.footer-menu li {
    margin-bottom: 10px !important;
    padding: 0 !important;
    list-style: none !important;
}

.footer-menu a {
    color: var(--brand-gray) !important;
    text-decoration: none !important;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.15s ease;
    display: inline-block;
}

.footer-menu a:hover {
    color: var(--brand-red) !important;
    transform: translateX(4px);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #F1F5F9;
    color: #9CA3AF;
    font-size: 13px;
    padding-left: 8px;
    padding-right: 8px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .brand-col {
        grid-column: span 2;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .layout-grid {
        flex-direction: column-reverse;
    }

    .sidebar-ad {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pill-radio-group {
        flex-direction: column;
        width: 100%;
        border-radius: 12px;
    }

    .pill-content {
        justify-content: center;
        border-radius: 8px;
    }

    .btn-primary-large {
        width: 100%;
    }

    .silent-search-form .form-row {
        flex-direction: column;
        gap: 10px;
    }

    .col-btn {
        width: 100%;
    }

    .btn-search {
        width: 100%;
    }

    .pricing-strip {
        flex-direction: column;
        gap: 12px;
    }

    .locked-actions {
        flex-direction: column;
        gap: 8px;
    }

    .header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
}

@media (max-width: 580px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-left: 0;
        padding-right: 0;
    }

    .brand-col {
        grid-column: span 1;
    }

    .footer {
        padding: 32px 16px 20px 16px;
    }
}
