/* ================= GLOBAL STYLES ================= */
:root {
  --primary-color: #e62e2e; /* Brand Red */
  --dark-color: #1a1a1a;
  --light-bg: #f8f9fa;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark-color);
  background-color: #fff;
}

/* ================= NAVBAR STYLES ================= */
.navbar {
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.navbar-brand {
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  color: var(--primary-color) !important;
}
.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: #555;
  transition: color 0.3s;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary-color) !important;
}

/* Navbar Search Input Focus Fix */
.navbar input::placeholder {
  font-size: 0.9rem;
  color: #999;
}
.navbar .form-control:focus {
  background-color: transparent;
}

.btn-hover-bg:hover{
  color: #fff !important;
}

/* ================= CATEGORY CARD STYLES ================= */
.theme-divider {
  height: 4px;
  width: 60px;
  background-color: var(--primary-color);
  border-radius: 2px;
}
.category-card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}
.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.img-zoom-container {
  height: 200px;
  overflow: hidden;
}
.card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.category-card:hover .card-img-top {
  transform: scale(1.1);
}
.card-body {
  padding: 1.25rem;
}
.card-title {
  font-weight: 600;
  font-size: 1rem;
  color: #333;
}

/* ================= FOOTER STYLES ================= */
footer {
  background-color: #111;
  color: #aaa;
}
footer h5 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 1.2rem;
}
footer a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s;
}
footer a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}
.social-icon {
  width: 35px;
  height: 35px;
  background: rgba(255,255,255,0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-right: 10px;
  transition: 0.3s;
}
.social-icon:hover {
  background: var(--primary-color);
  color: #fff;
}

/* 
=============================================
  Hero Search Bar
=============================================
*/

.directory-hero {
  padding-top: 40px;
  padding-bottom: 20px;
}

/* Background Overlay (Darkens image for text readability) */
.bg-overlay {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
}

/* Object Fit Cover Utility (ensures img fills area) */
.object-fit-cover {
  object-fit: cover;
}

/* Heading Style */
.hero-heading {
  font-size: clamp(1.8rem, 4vw, 3rem); /* Responsive font size */
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Search Wrapper Style */
.search-wrapper {
  max-width: 750px; /* Controls width of search bar */
  border-radius: 8px !important; /* Slightly rounded corners like sample */
}

/* Desktop Divider Line logic */
@media (min-width: 768px) {
  .border-end-md {
    border-right: 1px solid #dee2e6; /* Vertical line between inputs */
    min-width: 250px; /* Fixed width for location part */
  }
}

/* Connect Button (Black bg, Yellow text) */
.connect-btn {
  background-color: #222;
  color: #ffc107 !important; /* Bootstrap Warning Yellow */
  border: 1px solid #444;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.connect-btn:hover {
  background-color: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

/* ================= LISTING PAGE STYLES (Red Theme) ================= */

/* 1. Background tweaks */
.bg-light {
    background-color: #f4f6f9 !important; /* Cleaner gray */
}

/* 2. Listing Cards */
.listing-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 10px !important;
}

.listing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08) !important;
}

.object-fit-cover {
    object-fit: cover;
}

/* 3. Gradient Overlay on Images */
.bg-gradient-dark {
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

/* 4. Filter Buttons */
.btn-white {
    background-color: #fff;
    color: #444;
    border-color: #e0e0e0;
    transition: all 0.2s;
}
.btn-white:hover {
    background-color: #fff;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* 5. Custom Outline Danger Button */
.btn-outline-danger {
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-outline-danger:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* 6. Success Button (Whatsapp/Call overrides) */
.btn-success {
    background-color: #25D366; /* WhatsApp Green */
    border-color: #25D366;
    color: white;
}
.btn-success:hover {
    background-color: #128C7E;
    border-color: #128C7E;
}
.btn-outline-success {
    color: #25D366;
    border-color: #25D366;
}
.btn-outline-success:hover {
    background-color: #25D366;
    color: white;
}

/* 7. Side Sticky Tabs (Right edge) */
.side-sticky-tabs {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1030;
}

.tab-btn {
    display: block;
    writing-mode: vertical-rl; /* Vertical Text */
    text-orientation: mixed;
    padding: 15px 10px;
    font-weight: 600;
    text-decoration: none;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    padding-right: 15px; /* Slide out effect */
    filter: brightness(1.1);
}

/* Specific Tab Colors using your vars */
.bg-danger { background-color: var(--primary-color) !important; }
.bg-dark { background-color: var(--dark-color) !important; }

/* 
=====================================
Fix Listing Card Image Height 
=====================================*/
.listing-card img {
    min-height: 220px; /* Sets a fixed height */
    width: 100%;   /* Ensures it fills the width */
    object-fit: cover; /* Crops the image proportionally so it doesn't stretch */
}

/* Optional: Mobile Adjustment */
@media (max-width: 768px) {
    .listing-card img {
        height: 180px; /* Slightly smaller on mobile if needed */
    }
}

/* ================= LISTING DETAIL PAGE & LIGHTBOX STYLES ================= */

/* 1. Image Gallery Formatting */
.main-image {
    height: 400px;
}
.thumb-image {
    height: 196px; /* Exactly half of main-image minus the gap (4px) */
}
.object-fit-cover {
    object-fit: cover;
}
.cursor-pointer {
    cursor: pointer;
}

/* 2. Custom Nav Tabs (Red Theme) */
.detail-tabs {
    border-bottom: 2px solid #eaeaea;
}
.detail-tabs .nav-link {
    color: #555;
    border: none;
    padding: 10px 20px;
    font-size: 1.05rem;
    position: relative;
    background: transparent;
    transition: all 0.3s ease;
}
.detail-tabs .nav-link:hover {
    color: var(--primary-color);
}
.detail-tabs .nav-link.active {
    color: var(--primary-color);
    background: transparent;
    border: none;
}
.detail-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

/* 3. Typography & Spacing */
.line-height-lg {
    line-height: 1.8;
}
.bg-light-hover {
    transition: background-color 0.2s ease;
}
.bg-light-hover:hover {
    background-color: #f8f9fa !important;
    border-color: #d1d1d1 !important;
}

/* 4. Enquiry Form Input focus (Removes blue glow, adds red border) */
.form-control.bg-light:focus {
    background-color: #fff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(230, 46, 46, 0.25);
}

/* 5. Lightbox Overlay Hover effect */
.transition-overlay {
    transition: all 0.3s ease;
}
.transition-overlay:hover {
    background-color: rgba(230, 46, 46, 0.8) !important; /* Turns Red on hover */
    transform: scale(1.02);
}

/* 6. Lightbox Image constraints (Prevents stretching) */
.lightbox-img {
    max-height: 85vh;
    max-width: 90vw;
    object-fit: contain;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* 7. Lightbox Carousel Icons */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 60%;
    transition: background-color 0.2s;
}
.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: var(--primary-color) !important; /* Turns Red on hover */
}

/* 8. Mobile Adjustments */
@media (max-width: 768px) {
    .main-image {
        height: 250px;
    }
    /* Prevents the fixed bottom mobile action bar from overlapping footer content */
    body {
        padding-bottom: 70px; 
    }
}
/* ================= CUSTOM BOOTSTRAP ICON CLOSE BUTTON ================= */
.custom-icon-close {
    width: 45px;
    height: 45px;
    padding: 10px;
    border: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

/* Style the Bootstrap Icon inside */
.custom-icon-close i {
    font-size: 1.5rem; /* Adjusts the size of the X */
    color: #ffffff;    /* Makes the X white */
    line-height: 1;
}

/* Hover effect */
.custom-icon-close:hover {
    transform: scale(1.1);
    background-color: #c91e1e !important; /* Darker red on hover */
}

/* 
=======================================================
LUCKNOW PAGE - CSS
=======================================================
/* ================= MODERN FAQ STYLES ================= */

/* Individual FAQ Card Container */
.modern-faq .accordion-item {
    border: 1px solid #eef0f3;
    border-radius: 12px !important;
    margin-bottom: 16px;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Hover Effect for the entire Card */
.modern-faq .accordion-item:hover {
    border-color: rgba(230, 46, 46, 0.2);
    box-shadow: 0 10px 25px rgba(230, 46, 46, 0.08);
    transform: translateY(-2px);
}

/* FAQ Button Styling */
.modern-faq .accordion-button {
    padding: 1.25rem 1.5rem;
    background: transparent;
    font-size: 1.05rem;
    color: #2c3e50;
    box-shadow: none !important; /* Removes blue bootstrap glow */
}

/* Hide Default Bootstrap Arrow */
.modern-faq .accordion-button::after {
    display: none !important;
}

/* FAQ Text specific styling for spacing */
.modern-faq .faq-text {
    padding-right: 15px;
    line-height: 1.4;
}

/* Custom Circular Icon Wrapper */
.modern-faq .faq-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f4f6f9;
    color: #a0aab5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: auto;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active State Styles (When Accordion is OPEN) */
.modern-faq .accordion-button:not(.collapsed) {
    background-color: #fff;
    color: var(--primary-color, #e62e2e) !important;
    border-bottom: 1px dashed #f0f0f0;
}

/* Active State Icon Animation (Turns Red & Rotates) */
.modern-faq .accordion-button:not(.collapsed) .faq-icon {
    background-color: var(--primary-color, #e62e2e);
    color: #ffffff;
    transform: rotate(-180deg);
    box-shadow: 0 4px 10px rgba(230, 46, 46, 0.3);
}

/* FAQ Answer Body Styling */
.modern-faq .accordion-body {
    padding: 1.5rem;
    color: #64748b;
    line-height: 1.7;
    font-size: 0.95rem;
    background-color: #fafbfc;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .modern-faq .accordion-button {
        font-size: 0.95rem;
        padding: 1rem;
    }
    .modern-faq .faq-icon {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    .modern-faq .accordion-body {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

/* ================= SINGLE BUTTON TEXT TOGGLE TRICK ================= */
.dynamic-toggle-btn .show-less-text { display: none; }
.dynamic-toggle-btn[aria-expanded="true"] .show-more-text { display: none; }
.dynamic-toggle-btn[aria-expanded="true"] .show-less-text { display: inline; }
.dynamic-toggle-btn:hover { transform: translateY(-3px); }


/* ============== Filter CSS ============= */
/* Filter Card Styles */
.btn-white {
    padding: 10px 12px;
    font-size: 0.95rem;
    color: #555;
    transition: all 0.2s;
}
.btn-white:hover, .btn-white:focus {
    border-color: #aaa !important;
    background-color: #fff !important;
}

/* Dropdown Menu Customization */
.custom-dropdown-menu {
    border-radius: 8px;
    transform: translateY(5px) !important; /* Thoda niche khulega */
}

/* Scrollable List Area */
.list-options {
    max-height: 180px;
    overflow-y: auto;
}

/* List Items */
.option-link {
    padding: 8px 10px;
    font-size: 0.9rem;
    color: #333;
    border-radius: 4px;
    margin-bottom: 2px;
}
.option-link:hover {
    background-color: #f0fdf4; /* Light Green hover jaisa screenshot me hai */
    color: #166534;
}

/* Selected Active Item */
.option-link.active {
    background-color: #dcfce7 !important; /* Green Background */
    color: #15803d !important; /* Green Text */
    font-weight: 600;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar { width: 5px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #ddd; border-radius: 10px; }

/* 
====================================================================
    Listing HTML Page CSS
=======================================================================
*/

      /* --- 1. Filter Scroll Fix (The Magic Trick) --- */
      /* Yeh code dropdown ko cut hone se bachata hai */
      .filter-scroll-container {
        display: flex;
        gap: 0.5rem;
        overflow-x: auto;
        align-items: center;
        /* Dropdown ke liye neeche jagah banayi */
        padding-bottom: 250px;
        /* Content ko wapas upar kheecha */
        margin-bottom: -250px;
        /* Scrollbar ko chhupana */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE */

        /* Important: Invisible padding par click neeche pass ho jaye */
        pointer-events: none;
      }
      .filter-scroll-container::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
      }

      /* Buttons par click wapas enable karna */
      .filter-scroll-container .dropdown,
      .filter-scroll-container > a {
        pointer-events: auto;
      }

      /* --- 2. Filter Pills Style --- */
      .filter-pill {
        white-space: nowrap;
        border: 1px solid #e0e0e0;
        background: #fff;
        color: #444;
        font-size: 0.9rem;
        padding: 6px 16px;
        border-radius: 50px;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        gap: 6px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
      }
      .filter-pill:hover,
      .filter-pill.show {
        background-color: #f8f9fa;
        border-color: #bbb;
        color: #000;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
      }
      .filter-pill.active-filter {
        background-color: #fff0f0;
        border-color: #e62e2e;
        color: #e62e2e;
        font-weight: 600;
      }

      /* --- 3. Sticky Bar Positioning --- */
      @media (min-width: 992px) {
        .sticky-filter-bar {
          top: 70px;
        }
      }
      @media (max-width: 991px) {
        .sticky-filter-bar {
          top: 125px;
        }
      }

      /* --- 4. Dropdown Styling --- */
      .custom-dropdown-menu {
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important; /* Darker shadow */
        border: 1px solid rgba(0, 0, 0, 0.05);
        margin-top: 8px !important;
        padding: 10px;
        z-index: 1055; /* Higher than cards */
      }
      .list-options {
        max-height: 250px;
        overflow-y: auto;
      }

      .option-link {
        padding: 8px 12px;
        text-decoration: none;
        display: block;
        color: #444;
        border-radius: 6px;
        font-size: 0.95rem;
        transition: background 0.2s;
      }
      .option-link:hover {
        background-color: #fff5f5;
        color: #e62e2e;
      }
      .option-link.active {
        background-color: #ffe0e0 !important;
        color: #c00 !important;
        font-weight: 600;
      }

      /* Desktop Search Bar */
      .desktop-search-bar {
        border: 1px solid #e0e0e0;
        transition: box-shadow 0.2s;
      }
      .desktop-search-bar:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
      }

      /* Custom Scrollbar for Dropdowns */
      .custom-scrollbar::-webkit-scrollbar {
        width: 5px;
      }
      .custom-scrollbar::-webkit-scrollbar-thumb {
        background: #ddd;
        border-radius: 10px;
      }

    /* 
    ====================================================
    Lucknow Page CSS
    ====================================================
    */

    /* --- About Section Styles --- */
.about-content-box {
  /* Initial visible height (approx 2 paragraphs) */
  max-height: 220px; 
  overflow: hidden;
  transition: max-height 0.5s ease-in-out; 
  position: relative;
}

/* Typography for the text content */
.about-content-text {
  color: #6c757d; /* Bootstrap text-muted color */
  line-height: 1.8;
  font-size: 0.95rem;
  text-align: justify;
}

.about-content-text h5 {
  color: #333;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.about-content-text ul {
  list-style-type: none; /* Remove default bullets */
  padding-left: 0;
  margin-bottom: 1rem;
}

.about-content-text ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.25rem;
}

/* Custom red bullet point */
.about-content-text ul li::before {
  content: "•";
  color: #e62e2e;
  font-weight: bold;
  position: absolute;
  left: 0;
  font-size: 1.2em;
  line-height: 1;
}

/* The fade effect at the bottom */
.about-fade-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
  pointer-events: none;
  transition: opacity 0.3s ease;
}