/* ==========================================================================
   1. CSS RESET & CORE VARIABLES
   ========================================================================== */
:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --text-main: #334155;
    --text-light: #64748b;
    --bg-main: #f8fafc;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    --radius: 8px;
    --transition: all 0.2s ease-in-out;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.2;
    padding-top: 55px;
    padding-bottom: 75px; /* మొబైల్ బాటమ్ నావిగేషన్ బార్ కోసం స్పేస్ */
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   2. NAVBAR & HEADER DESIGN
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    z-index: 1000;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.logo span {
    color: var(--accent);
}

.logo-img {
    display: block;
    height: 25px;
    width: auto;
    object-fit: contain;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    color: var(--primary-light);
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent);
}

/* ==========================================================================
   3. SEARCH BAR & FILTERS LAYOUT (Desktop)
   ========================================================================== */
.search-container {
    background: #023f96;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 5px auto;
    border: 1px solid gray; 
}
.search-form {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    width: 100%;
}

.filter-row-top {
    display: flex;
    gap: 15px;
    flex: 2;
}

.filter-row-bottom {
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    width: 100%;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: #023f96;
    margin-bottom: 5px;
    text-transform: capitalize;
    white-space: nowrap;
    color: white;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 10px;
    border: 0.5px solid orange;
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--primary);
    background-color: var(--bg-main);
    outline: none;
    transition: var(--transition);
    height: 42px;
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--accent);
    background-color: var(--bg-white);
}

/* ==========================================================================
   4. MAIN CONTENT & PROPERTY GRIDS COMPONENTS
   ========================================================================== */
.section {
    padding: 8px 8px 8px 8px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    text-align: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; 
}

.card {
    border: 1px solid #023f96; 
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.card-image {
    position: relative;
    height: 180px;
    background-color: #e2e8f0;
}

.card-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.85);
    color: white;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}

.card-body {
    padding: 16px;
}

.card-price {
    font-size: 18px;
    font-weight: 700;
    color: #023f96;
    margin-bottom: 4px;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
}

.card-location {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 10px;
    font-size: 12px;
    color: var(--text-main);
}

/* CARD BUTTONS ROW DESIGN (50% - 50% Share) */
.card-btn-container {
    margin-top: 15px;
    border-top: 1px solid var(--border);
    padding-top: 15px;
    display: flex;       
    gap: 10px;           
    width: 100%;
}
/* Base Styles for Both Buttons */
.btn-more-details, 
.btn-whatsapp {
    flex: 1;              
    display: inline-flex;  /* Flexbox for text/icon alignment */
    align-items: center;
    justify-content: center;
    gap: 8px;              /* Space between icon and text */
    padding: 10px 0;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap; 
}

/* More Details Button (Light Background + Dark Border) */
.btn-more-details {
    background-color: #e6eefa;       /* Light Blue Fill */
    border: 1.5px solid #023f96;     /* Dark Blue Border */
    color: #023f96 !important;       /* Dark Blue Text */
    box-shadow: 0 2px 4px rgba(2, 63, 150, 0.1);
}

.btn-more-details:hover {
    background-color: #023f96;       /* Solid Blue Fill on Hover */
    color: #ffffff !important;       /* White Text on Hover */
    box-shadow: 0 4px 6px rgba(2, 63, 150, 0.25);
}

/* WhatsApp Button (Old Style - Solid Dark Green) */
.btn-whatsapp {
    background-color: #085726;       /* Original Green Fill */
    color: #ffffff !important;       /* Original White Text */
    border: 1.5px solid #085726;     /* Matching Border */
    box-shadow: 0 2px 4px rgba(37, 211, 102, 0.15);
}

.btn-whatsapp:hover {
    background-color: #20ba5a;       /* Original Hover Green */
    border-color: #20ba5a;
    box-shadow: 0 4px 6px rgba(37, 211, 102, 0.25);
}

/* WhatsApp Icon Sizing */
.btn-whatsapp svg,
.btn-whatsapp i {
    width: 16px;
    height: 16px;
    fill: currentColor;
}
/* ==========================================================================
   5. 📞 💬 MOBILE FLOATING ACTIONS & PAGINATION & BOTTOM NAV
   ========================================================================== */
.floating-actions-wrapper {
    position: fixed;
    bottom: 80px; 
    left: 0;
    right: 0;
    display: none; 
    justify-content: space-between;
    padding: 0 20px;
    z-index: 2500;
    pointer-events: none; 
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    pointer-events: auto; 
    transition: transform 0.2s ease;
    text-decoration: none;
}

.floating-btn:active {
    transform: scale(0.9);
}

.floating-btn svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.btn-call-float {
    background-color: #2563eb;
}

.btn-wa-float {
    background-color: #085726;
}

/* --- UPDATED PAGINATION STYLES (MOBILE RESPONSIVE FIX) --- */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* స్క్రీన్ దాటకుండా కిందకి మడవడానికి */
    gap: 6px; /* మొబైల్‌కి తగ్గట్టు గ్యాప్ కొద్దిగా తగ్గించబడింది */
    margin: 30px auto;
    padding: 0 10px;
    max-width: 100%;
    box-sizing: border-box;
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px; /* మొబైల్‌లో ఫిట్ అవ్వడానికి 38px నుండి 32px కి తగ్గించబడింది */
    height: 34px;
    padding: 0 6px;
    border: 1px solid var(--border);
    background-color: var(--bg-white);
    color: var(--text-main);
    font-weight: 600;
    font-size: 13px; /* మొబైల్ స్పేస్ కోసం 13px */
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.page-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.page-btn.active {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.page-btn:disabled {
    background-color: #f1f5f9;
    color: #94a3b8;
    border-color: var(--border);
    cursor: not-allowed;
}

/* చిన్న మొబైల్ స్క్రీన్ల కోసం ప్రత్యేక ఆప్టిమైజేషన్ */
@media (max-width: 480px) {
    .pagination-container {
        gap: 4px;
    }
    .page-btn {
        min-width: 28px;
        height: 32px;
        font-size: 12px;
        padding: 0 4px;
    }
}
/* -------------------------------------------------------- */

footer {
    background: var(--primary);
    color: #cbd5e1;
    padding: 30px 16px;
    text-align: center;
    font-size: 13px;
    margin-top: 40px;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #0f172a;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 2000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    width: 20%;
    height: 100%;
    transition: all 0.2s ease;
}

.bottom-nav-item svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    margin-bottom: 2px;
}

.bottom-nav-item:hover, .bottom-nav-item.active {
    color: #2563eb;
    background-color: rgba(255, 255, 255, 0.03);
}
/* ==========================================================================
   6. MOBILE RESPONSIVE MEDIA QUERIES (< 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        gap: 0;
        width: 100%;
        display: none;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid var(--border);
        width: 100%;
    }

    /* 📱 మొబైల్ లేఅవుట్ సెర్చ్ ఫిల్టర్ ఆప్టిమైజేషన్ */
    .search-container {
        padding: 12px;
        overflow-x: hidden;
    }
    
    .search-form {
        flex-direction: column;
        gap: 12px;
    }

    .filter-row-top {
        display: flex; 
        flex-direction: row; 
        width: 100%;
        gap: 10px;
    }

    .filter-row-top .form-group {
        width: 50%;
    }

    .filter-row-bottom {
        width: 100%;
    }
    
    .form-group label {
        font-size: 12px;
        margin-bottom: 2px;
        color: white;
    }

    .form-group input, .form-group select {
        padding: 6px 6px;
        font-size: 12px;
        height: 38px;
    }

    .floating-actions-wrapper {
        display: flex; 
    }
}

@media (min-width: 769px) {
    .bottom-nav {
        display: none;
    }
    body {
        padding-bottom: 20px;
    }
}
.ad-post-btn {
      background-color: #00695c;
      color: white;
      padding: 3px 3px;
      text-decoration: none;
      border-radius: 5px;
      font-weight: normal;
    }

    .header .ad-post-btn:hover {
      background-color: #1ebe5d;
    }
     /* Submit Your Requirement Floating Button Styles - Left & Orange */
.ph-side-btn {
    position: fixed;
    left: 20px; /* ఇక్కడ right తీసేసి left: 20px పెట్టాను */
    bottom: 80px; 
    z-index: 2999;
    display: flex;
    align-items: center;
    background: #b91379; /* మీ బ్రాండ్‌కు సరిపోయే బ్రైట్ ఆరెంజ్ కలర్ */
    color: white;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
    padding: 2px;
}

.ph-side-btn a {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    font-weight: bold;
    font-size: 14px;
    font-family: system-ui, -apple-system, sans-serif;
}

.ph-side-btn .ph-icon {
    font-size: 22px;
    margin-right: 8px;
}

.ph-side-btn .ph-text {
    white-space: nowrap;
    transition: max-width 0.3s ease;
    max-width: 200px;
}

.ph-side-btn .ph-minimize {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.ph-side-btn .ph-minimize:hover {
    color: white;
}

/* Hover Effect - ఆరెంజ్ కలర్ కొంచెం డార్క్ అవుతుంది */
.ph-side-btn:hover {
    background: #e65100; 
}

/* Minimized State (కస్టమర్ క్లోజ్ చేసినప్పుడు) */
.ph-side-btn.minimized {
    padding: 0;
    border-radius: 50%;
}

.ph-side-btn.minimized .ph-text, 
.ph-side-btn.minimized .ph-minimize {
    display: none;
}

.ph-side-btn.minimized a {
    padding: 12px;
}

.ph-side-btn.minimized .ph-icon {
    margin-right: 0;
    font-size: 22px;
}
/* Warangal Property Hub - Centered 2 Column Footer Styles */
.wph-site-footer {
    background-color: #1e293b;
    color: #94a3b8;
    font-family: system-ui, -apple-system, sans-serif;
    padding: 40px 20px 20px 20px;
    border-top: 1px solid #334155;
    margin-top: 50px;
    display: block;
    text-align: center; /* పూర్తి ఫుటర్ లోని టెక్స్ట్ సెంటర్ అవ్వడానికి */
}

.wph-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    text-align: center;
}

.wph-footer-links, 
.wph-footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center; /* లోపల ఉన్న ఎలిమెంట్స్ అన్నీ సెంటర్ లో అమరడానికి */
    text-align: center;
}

.wph-footer-links h4, 
.wph-footer-contact h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 5px;
    display: inline-block;
}

/* సెంటర్ అలైన్‌మెంట్‌కు తగ్గట్టుగా బార్డర్ లైన్ కూడా మధ్యలోకి రావడానికి */
.wph-footer-links h4::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: #ff6f00;
}

.wph-footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.wph-footer-links ul li {
    margin-bottom: 12px;
}

.wph-footer-links ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    font-weight: normal;
    transition: color 0.3s ease;
    display: inline-block;
}

.wph-footer-links ul li a:hover {
    color: #ff6f00;
}

.wph-footer-contact p {
    font-size: 14px;
    font-weight: normal;
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 12px;
    color: #94a3b8;
}

.wph-footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0 auto;
    padding-top: 20px;
    border-top: 1px solid #334155;
    text-align: center;
    font-size: 13px;
    font-weight: normal;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .wph-footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
/* --- Warangal Property Hub - Unique Article & FAQ Styles --- */

/* Article Section Styling */
.wph-custom-plots-article {
    max-width: 800px;
    margin: 0 auto 40px auto;
    padding: 20px;
    font-family: 'Inter', 'Noto Sans Telugu', sans-serif;
    background-color: #ffffff;
    color: #333333;
}

.wph-custom-plots-article h2 {
    color: #222222;
    font-size: 26px;
    line-height: 1.5;
    font-weight: 700;
    margin-bottom: 20px;
    border-left: 5px solid #0056b3;
    padding-left: 15px;
}

.wph-custom-plots-article h3 {
    color: #0056b3;
    font-size: 20px;
    line-height: 1.5;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
}

.wph-custom-plots-article p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.wph-custom-plots-article ul {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
    padding-left: 20px;
}

.wph-custom-plots-article ul li {
    margin-bottom: 10px;
}

/* FAQ Section Styling */
.wph-custom-faq-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    font-family: 'Inter', 'Noto Sans Telugu', sans-serif;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.wph-custom-faq-section h2 {
    color: #333333;
    font-size: 24px;
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #0056b3;
    padding-bottom: 10px;
    font-weight: 700;
}

.wph-custom-faq-item {
    margin-bottom: 20px;
    background: #ffffff;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #0056b3;
}

.wph-custom-faq-item:last-child {
    margin-bottom: 5px;
}

.wph-custom-faq-item h3 {
    color: #0056b3;
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.5;
}

.wph-custom-faq-item p {
    color: #444444;
    line-height: 1.8;
    margin: 0;
    font-size: 15px;
    text-align: justify;
}