/*
Theme Name:     Radius Directory
Theme URI:      https://www.radiustheme.com/downloads/
Author:         RadiusTheme
Author URI:     https://www.radiustheme.com
Description:    Radius Directory is a clean and modern WordPress Theme best suited for Directory Listing. This theme comes with all necessary features and pages for a Directory Listing website.
Version:        1.5.6
Requires at least:  5.4.2
Tested up to:       6.9
Requires PHP:       7.4
Text Domain:    radius-directory
Tags:           featured-images, footer-widgets, full-width-template, sticky-post, threaded-comments, translation-ready, blog
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/
/* =========================================================
   NAMMA TOWN: GLOBAL APP-STYLE TYPOGRAPHY & COLORS
   ========================================================= */

:root {
    /* Brand Colors (Updated to new Logo) */
    --nt-primary: #086e35;      /* Deep Forest Green */
    --nt-primary-hover: #065428;
    --nt-accent: #f38015;       /* Vibrant Orange */
    --nt-accent-hover: #d97010;
    
    /* Text & Background Colors */
    --nt-text-dark: #1e293b;    /* Soft black for modern app feel */
    --nt-text-muted: #64748b;   /* Muted gray for secondary text */
    --nt-bg-app: #f8fafc;
    --nt-bg-card: #ffffff;
    --nt-border: #e2e8f0;

    /* Base Font Settings */
    --nt-font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* 
     * Fluid Typography: clamp(minimum, preferred viewport width, maximum)
     * Automatically shrinks perfectly for mobile screens.
     */
    --fs-h1: clamp(1.75rem, 5vw, 2.5rem);
    --fs-h2: clamp(1.5rem, 4vw, 2rem);
    --fs-h3: clamp(1.25rem, 3vw, 1.75rem);
    --fs-h4: clamp(1.1rem, 2vw, 1.5rem);
    --fs-h5: clamp(1rem, 1.5vw, 1.25rem);
    --fs-h6: clamp(0.9rem, 1vw, 1rem);
    --fs-p: clamp(0.9375rem, 1.5vw, 1rem); /* 15px mobile, 16px desktop */
    --fs-small: 0.875rem; /* 14px */
}

/* =========================================================
   BASE HTML TAG STYLING
   ========================================================= */

body {
    font-family: var(--nt-font-main);
    font-size: var(--fs-p);
    color: var(--nt-text-dark);
    background-color: var(--nt-bg-app);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    /* Removes the blue flash when tapping links on mobile */
    -webkit-tap-highlight-color: transparent; 
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--nt-font-main);
    font-weight: 800; /* Bold app-style headers */
    color: var(--nt-text-dark);
    line-height: 1.25; /* Tighter line-height for punchy mobile headers */
    margin-top: 0;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em; /* Slight tracking reduction for modern look */
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-h5); }
h6 { font-size: var(--fs-h6); }

/* Paragraphs & Lists */
p {
    font-size: var(--fs-p);
    color: var(--nt-text-muted);
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.6;
}

ul, ol {
    font-size: var(--fs-p);
    color: var(--nt-text-muted);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Links */
a {
    color: var(--nt-primary);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover, a:focus {
    color: var(--nt-primary-hover);
    text-decoration: none;
}

/* Base Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================================
   MOBILE-SPECIFIC MICRO-ADJUSTMENTS
   ========================================================= */
@media (max-width: 767px) {
    /* slightly looser line height on mobile for easier reading */
    p, ul, ol {
        line-height: 1.7; 
    }
    
    /* Increase touch targets for native HTML inputs/selects on mobile */
    input, select, textarea, button {
        font-size: 16px !important; /* Prevents iOS Safari from auto-zooming */
    }
}

 /* =========================================================
   1. NAMMA TOWN: GLOBAL UTILITIES
   ========================================================= */
/* Smooth Drag Scrolling CSS */
.loc-slider, .category-slider, .acf-cat-slider, .desktop-drag-slider, .nt-gallery-slider {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important; 
    cursor: grab;
    scroll-behavior: smooth; 
}
.loc-slider::-webkit-scrollbar, .category-slider::-webkit-scrollbar, .acf-cat-slider::-webkit-scrollbar, .desktop-drag-slider::-webkit-scrollbar, .nt-gallery-slider::-webkit-scrollbar { 
    display: none !important; 
}
.loc-slider.active, .category-slider.active, .acf-cat-slider.active, .desktop-drag-slider.active { 
    cursor: grabbing; 
    scroll-behavior: auto !important; 
    scroll-snap-type: none !important;
}
.is-dragging * { 
    pointer-events: none !important; 
    user-select: none !important; 
}


/* =========================================================
   2. NAMMA TOWN: LANDING PAGE
   ========================================================= */
.namma-landing-wrapper { 
    background-color: var(--nt-bg-app); 
    color: var(--nt-text-dark); 
    overflow-x: hidden; 
    width: 100%;
}
.app-section {
    background-color: var(--nt-bg-card);
    margin-bottom: 0; 
    padding: 24px 0;
    border-bottom: 1px solid var(--nt-border); 
}
@media (min-width: 768px) { .app-section { padding: 40px 0; } }

/* Hero Section */
.namma-landing-wrapper .hero-section { background: var(--nt-bg-card); padding: 20px 0 15px; text-align: center; }
.namma-landing-wrapper .hero-title { font-weight: 800; color: var(--nt-text-dark); letter-spacing: -0.03em; }
.namma-landing-wrapper .hero-title span { color: var(--nt-primary); position: relative; display: inline-block; }
.namma-landing-wrapper .loc-slider-wrapper { text-align: center; width: 100%; margin-top: 15px; }
.namma-landing-wrapper .loc-slider { display: inline-flex; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 8px; -webkit-overflow-scrolling: touch; max-width: 100%; text-align: left; }
.namma-landing-wrapper .loc-box { scroll-snap-align: center; background: #ffffff; border: 1px solid var(--nt-border); border-radius: 50rem; padding: 4px 14px 4px 4px; display: flex; align-items: center; gap: 8px; color: var(--nt-text-dark); flex: 0 0 auto; transition: all 0.2s; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.namma-landing-wrapper .loc-box:hover { border-color: var(--nt-primary); transform: translateY(-2px); box-shadow: 0 8px 16px rgba(8, 110, 53, 0.1); color: var(--nt-primary); }
.namma-landing-wrapper .loc-box.active { border-color: var(--nt-primary); background: #e6f1ec; color: var(--nt-primary); }
.namma-landing-wrapper .loc-img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.namma-landing-wrapper .loc-name { font-size: 13px; font-weight: 700; white-space: nowrap; }

/* Section Headers & Categories */
.app-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 10px; }
.app-section-title { font-size: 1rem; font-weight: 800; color: var(--nt-text-dark); margin: 0; line-height: 1.2; letter-spacing: -0.01em; text-transform: uppercase; }
.app-view-all { font-size: 0.9rem; font-weight: 600; color: var(--nt-primary); white-space: nowrap; flex-shrink: 0; }
/* =========================================================
   POPULAR CATEGORIES (4-Column Grid on Mobile)
   ========================================================= */
.nt-popular-cats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Forces exactly 4 equal columns on mobile */
    gap: 12px; /* Tighter gap to fit mobile screens perfectly */
}

.cat-box { 
    border: 1px solid var(--nt-border); 
    border-radius: 12px; 
    padding: 10px 4px; /* Reduced side padding so text fits */
    text-align: center; 
    color: var(--nt-text-dark); 
    transition: all 0.2s; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: flex-start; 
    background: #ffffff; 
    width: 100%; /* Automatically fills the 4-column grid */
    height: 100%; 
}
.cat-box:hover { 
    border-color: var(--nt-primary); 
    transform: translateY(-3px); 
    box-shadow: 0 4px 12px rgba(8, 110, 53, 0.1); 
}
.cat-img { 
    width: 32px; /* Slightly smaller for 4 columns */
    height: 32px; 
    object-fit: contain; 
    border-radius: 8px; 
    margin-bottom: 6px; 
}
.cat-box span { 
    font-size: 0.65rem; /* Smaller text to prevent overflow (approx 10px) */
    font-weight: 700; 
    line-height: 1.2; 
    width: 100%; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    color: #000000 !important; 
}

/* Desktop overrides to revert back to flexible row */
@media (min-width: 768px) {
    .nt-popular-cats-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
    }
    .cat-box { 
        width: 120px; 
        height: 120px; 
        padding: 16px 10px; 
    }
    .cat-img { 
        width: 44px; 
        height: 44px; 
        margin-bottom: 10px; 
    }
    .cat-box span { 
        font-size: 0.8rem; 
    }
}

/* ACF Special Categories */
.acf-cat-slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 16px; margin-right: -12px; padding-right: 12px; flex-wrap: nowrap !important; }
.acf-cat-card { flex: 0 0 calc(28% - 8px); scroll-snap-align: start; position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.06); transition: transform 0.2s; }
.acf-cat-card:hover { transform: translateY(-3px); }
.acf-cat-img-wrap { width: 100%; aspect-ratio: 3 / 4; position: relative; }
.acf-cat-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acf-cat-name { position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px 12px 12px; color: #ffffff !important; font-size: 0.7rem; font-weight: 800; line-height: 1.2; text-transform: uppercase; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%); margin: 0; z-index: 2; text-align: left; }

/* Promo Banner */
.promo-banner-section { padding: 24px 0 !important; }
.promo-banner-link { display: block; border-radius: 12px; overflow: hidden; transition: transform 0.2s; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.promo-banner-link:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.promo-banner-img { width: 100%; height: auto; object-fit: cover; display: block; }

/* Horizontal Scroll Listings */
.app-scroll-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 16px; margin-right: -12px; padding-right: 12px; flex-wrap: nowrap !important; }
.app-scroll-card { flex: 0 0 calc(48% - 6px); scroll-snap-align: start; background: var(--nt-bg-card); border: 1px solid var(--nt-border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 4px 6px rgba(0,0,0,0.03); transition: transform 0.2s; }
.app-scroll-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(8, 110, 53, 0.08); border-color: var(--nt-primary); }
.app-card-img-wrap { width: 100%; height: 120px; position: relative; border-bottom: 1px solid var(--nt-border); pointer-events: none; background-size: cover; background-position: center; }
.app-card-badge { position: absolute; top: 10px; left: 10px; font-size: 9px; font-weight: 700; padding: 4px 8px; border-radius: 50rem; z-index: 10; display: inline-flex; align-items: center; gap: 4px; box-shadow: 0 2px 6px rgba(0,0,0,0.15); background: var(--nt-primary); color: #fff; letter-spacing: 0.5px; text-transform: uppercase; }
.app-card-body { padding: 12px; display: flex; flex-direction: column; flex-grow: 1; }
.app-card-cat { color: var(--nt-primary); font-size: 11px; font-weight: 700; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.app-card-title { font-size: 13px; font-weight: 800; color: var(--nt-text-dark) !important; margin: 0 0 6px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-card-loc { font-size: 11px; color: var(--nt-text-muted); display: flex; align-items: center; gap: 4px; margin-bottom: 12px; }
.app-card-actions { display: flex; gap: 6px; margin-top: auto; }
.app-btn-outline { flex: 1; border: 1.5px solid var(--nt-primary) !important; color: var(--nt-primary) !important; background: transparent !important; padding: 6px 0; border-radius: 50rem; font-size: 11px; font-weight: 700; text-align: center; transition: all 0.2s; }
.app-btn-outline:hover { background: rgba(8, 110, 53, 0.05) !important; color: var(--nt-primary) !important; }
.app-btn-solid { flex: 1; background: var(--nt-primary) !important; border: 1.5px solid var(--nt-primary) !important; color: #ffffff !important; padding: 6px 0; border-radius: 50rem; font-size: 11px; font-weight: 700; text-align: center; transition: all 0.2s; }
.app-btn-solid:hover { background: var(--nt-primary-hover) !important; border-color: var(--nt-primary-hover) !important; color: #ffffff !important; }

@media (min-width: 768px) {
    .namma-landing-wrapper .hero-section { padding: 40px 0 25px; }
    .namma-landing-wrapper .hero-title { font-size: 2.5rem !important; }
    .namma-landing-wrapper .loc-slider-wrapper { margin-top: 24px; }
    .namma-landing-wrapper .loc-box { padding: 6px 18px 6px 6px; gap: 10px; }
    .namma-landing-wrapper .loc-img { width: 38px; height: 38px; }
    .namma-landing-wrapper .loc-name { font-size: 14px; }
    .app-section-title { font-size: 1.35rem; }
    .cat-box { width: 120px; height: 120px; padding: 16px 10px; }
    .cat-img { width: 44px; height: 44px; margin-bottom: 10px; }
    .cat-box span { font-size: 0.8rem; }
    .acf-cat-slider { gap: 16px; margin-right: 0; padding-right: 0; }
    .acf-cat-card { flex: 0 0 calc(20% - 13px); } 
    .acf-cat-name { font-size: 1.1rem; padding: 40px 16px 16px; }
    .acf-cat-img-wrap { aspect-ratio: 4 / 5; border-radius: 16px; }
    .promo-banner-link { border-radius: 16px; }
    .app-scroll-row { gap: 20px; margin-right: 0; padding-right: 0; }
    .app-scroll-row::-webkit-scrollbar { display: block; height: 8px; }
    .app-scroll-row::-webkit-scrollbar-track { background: transparent; }
    .app-scroll-row::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
    .app-scroll-card { flex: 0 0 calc(25% - 15px); border-radius: 16px; }
    .app-card-img-wrap { height: 160px; }
    .app-card-body { padding: 16px; }
    .app-card-title { font-size: 15px; }
    .app-card-loc { font-size: 12px; }
    .app-card-cat { font-size: 12px; }
    .app-btn-outline, .app-btn-solid { font-size: 13px; padding: 8px 0; }
}


/* =========================================================
   3. NAMMA TOWN: ARCHIVE GRID PAGE
   ========================================================= */
.nt-archive-wrapper { padding: 40px 0 80px 0; }
.nt-filter-card { background: var(--nt-bg-card); border: 1px solid var(--nt-border); border-radius: 16px; padding: 24px; position: sticky; top: 20px; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.nt-checkbox-list { max-height: 250px; overflow-y: auto; padding-right: 5px; }
.nt-checkbox-list::-webkit-scrollbar { width: 4px; }
.nt-checkbox-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.nt-custom-check { display: flex; align-items: flex-start; margin-bottom: 12px; cursor: pointer; }
.nt-custom-check input[type="checkbox"], .nt-custom-check input[type="radio"] { width: 18px; height: 18px; margin-top: 2px; cursor: pointer; accent-color: var(--nt-primary); }
.nt-custom-check label { margin-left: 10px; font-size: 14px; color: var(--nt-text-dark); cursor: pointer; flex: 1; line-height: 1.4; }
.nt-custom-check .count { color: #94a3b8; font-size: 12px; }
.nt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; transition: opacity 0.3s ease; }
.nt-grid-inner.loading { opacity: 0.5; pointer-events: none; }
.nt-card { background: var(--nt-bg-card); border: 1px solid var(--nt-border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; position: relative; height: 100%; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.nt-card:hover { box-shadow: 0 10px 25px rgba(0,0,0,0.05); transform: translateY(-3px); }
.nt-card-content-wrap { display: flex; flex-direction: column; flex-grow: 1; }
.nt-card-img-wrap { width: 100%; height: 200px; position: relative; display: block; }
.nt-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.nt-card-badge { position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 50rem; z-index: 10; display: inline-flex; align-items: center; gap: 5px; box-shadow: 0 2px 6px rgba(0,0,0,0.15); background: var(--nt-accent); color: #fff; }
.nt-badge-verified { position: absolute; top: 12px; right: 12px; background: var(--nt-primary); color: #fff; font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 50rem; z-index: 10; display: inline-flex; align-items: center; gap: 5px; box-shadow: 0 2px 6px rgba(0,0,0,0.15); }
.nt-gallery-slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; gap: 10px; padding-bottom: 12px; margin-bottom: 5px; }
.nt-gallery-slider a { scroll-snap-align: start; flex: 0 0 45%; height: 160px; display: block; border-radius: 8px; overflow: hidden; }
.nt-gallery-slider a img { width: 100%; height: 100%; object-fit: cover; }
.nt-card-body { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.nt-card-title { font-size: 1.1rem; font-weight: 700; color: var(--nt-text-dark); margin-bottom: 8px; display: block; line-height: 1.3; }
.nt-card-meta { font-size: 0.85rem; color: var(--nt-text-muted); margin-bottom: 5px; }
.nt-badges-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.nt-pill-badge, .nt-pill-badge-verified { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 6px; display: inline-flex; align-items: center; gap: 4px; }
.nt-pill-badge { background: #fdf6e3; border: 1px solid #fde68a; color: #b45309; }
.nt-pill-badge-verified { background: #e6f1ec; border: 1px solid #bbf7d0; color: var(--nt-primary); }
@media (min-width: 768px) { .nt-card.standard-img-mode .nt-badges-row { display: none; } }
.nt-card-actions { display: flex; gap: 10px; margin-top: auto; padding: 0 16px 16px 16px; border-top: 1px solid var(--nt-border); padding-top: 16px; }
.nt-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 0; border-radius: 50rem; font-size: 13px; font-weight: 700; transition: all 0.2s; }
.nt-btn-call { border: 1.5px solid var(--nt-primary); color: var(--nt-primary) !important; background: transparent; }
.nt-btn-call:hover { background: rgba(8, 110, 53, 0.05); }
.nt-btn-dir { background: var(--nt-primary); border: 1.5px solid var(--nt-primary); color: #fff !important; }
.nt-btn-dir:hover { background: var(--nt-primary-hover); border-color: var(--nt-primary-hover); }

.nt-pagination ul.page-numbers { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; list-style: none; padding: 0; margin: 0; }
.nt-pagination ul.page-numbers li { margin: 0; padding: 0; }
.nt-pagination ul.page-numbers li a, .nt-pagination ul.page-numbers li span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 15px; background: #fff; border: 1px solid var(--nt-border); border-radius: 8px; color: var(--nt-text-dark); font-weight: 600; font-size: 14px; transition: all 0.2s; }
.nt-pagination ul.page-numbers li a:hover { border-color: var(--nt-primary); color: var(--nt-primary); background: #e6f1ec; }
.nt-pagination ul.page-numbers li span.current { background: var(--nt-primary); border-color: var(--nt-primary); color: #fff; }

.nt-filter-backdrop { display: none; }
@media (max-width: 991px) {
    .nt-grid { grid-template-columns: repeat(2, 1fr); }
    .nt-filter-collapse { position: fixed; top: 0; left: -100%; width: 85%; max-width: 340px; height: 100vh; z-index: 1050; overflow-y: auto; border-radius: 0; border: none; box-shadow: 10px 0 30px rgba(0,0,0,0.1); transition: left 0.3s ease-in-out; margin: 0; }
    .nt-filter-collapse.show { left: 0; }
    .nt-filter-backdrop { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.5); z-index: 1040; opacity: 0; transition: opacity 0.3s; }
    .nt-filter-backdrop.show { display: block; opacity: 1; }
}

@media (max-width: 767px) {
    .nt-archive-wrapper { padding: 20px 0; background: #f2f2f2; }
    .nt-archive-wrapper .container { padding: 0 10px; }
    .nt-grid { display: flex; flex-direction: column; gap: 10px; }
    .nt-card { padding: 12px; border-radius: 10px; flex-direction: column; border: 1px solid var(--nt-border); border-bottom: 2px solid var(--nt-border); box-shadow: 0 2px 4px rgba(0,0,0,0.02); margin: 0; }
    .nt-card:hover { transform: none; box-shadow: none; }
    .nt-card.standard-img-mode .nt-card-content-wrap { display: flex; flex-direction: row; gap: 12px; }
    .nt-card.standard-img-mode .nt-card-img-wrap { width: 90px; height: 90px; border-radius: 8px; flex-shrink: 0; overflow: hidden; margin-right: 0; }
    .nt-card .nt-card-badge, .nt-card .nt-badge-verified { display: none; } 
    .nt-card.standard-img-mode .nt-card-body { padding: 0; justify-content: flex-start; flex: 1; min-width: 0; border: none; }
    .nt-card-title { font-size: 14px; line-height: 1.2; margin-bottom: 4px; white-space: normal; }
    .nt-card-meta { font-size: 12px; margin-bottom: 3px; }
    .nt-card-actions { margin-top: 12px; padding: 12px 0 0 0; border-top: 1px solid #f1f5f9; width: 100%; }
    .nt-btn { padding: 8px 0; font-size: 13px; }
    .nt-card.nt-card-gallery .nt-card-content-wrap { padding: 0; flex-direction: column; }
    .nt-card.nt-card-gallery .nt-gallery-slider { width: 100%; margin-bottom: 0; }
    .nt-card.nt-card-gallery .nt-card-body { padding: 12px 0 0 0; }
}

/* =========================================================
   4. NAMMA TOWN: ABOUT US PAGE
   ========================================================= */
.nt-about-wrapper { background-color: var(--nt-bg-card); padding-bottom: 60px; }
.nt-about-hero { background: linear-gradient(135deg, #e6f1ec 0%, #ffffff 100%); padding: 60px 0; text-align: center; border-bottom: 1px solid var(--nt-border); position: relative; overflow: hidden; }
.nt-about-hero::before { content: ''; position: absolute; top: -50px; left: -50px; width: 150px; height: 150px; background: rgba(8, 110, 53, 0.05); border-radius: 50%; }
.nt-about-hero::after { content: ''; position: absolute; bottom: -50px; right: -50px; width: 200px; height: 200px; background: rgba(243, 128, 21, 0.05); border-radius: 50%; }
.nt-about-hero-badge { display: inline-block; background: var(--nt-bg-card); color: var(--nt-primary); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 6px 16px; border-radius: 50rem; box-shadow: 0 4px 10px rgba(0,0,0,0.05); margin-bottom: 20px; position: relative; z-index: 2; }
.nt-about-title { font-size: 2.5rem; font-weight: 800; color: var(--nt-text-dark); letter-spacing: -1px; margin-bottom: 15px; position: relative; z-index: 2; }
.nt-about-title span { color: var(--nt-accent); }
.nt-about-subtitle { font-size: 1.1rem; color: var(--nt-text-muted); max-width: 600px; margin: 0 auto; line-height: 1.6; position: relative; z-index: 2; }
.nt-about-section { padding: 60px 0; }
.nt-about-section-alt { background-color: var(--nt-bg-app); border-top: 1px solid var(--nt-border); border-bottom: 1px solid var(--nt-border); }

.nt-feature-card { background: var(--nt-bg-card); border: 1px solid var(--nt-border); border-radius: 16px; padding: 30px 24px; height: 100%; transition: all 0.3s ease; box-shadow: 0 4px 6px rgba(0,0,0,0.02); text-align: center; }
.nt-feature-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); border-color: var(--nt-primary); }
.nt-feature-icon { width: 64px; height: 64px; background: #e6f1ec; color: var(--nt-primary); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 20px auto; transition: all 0.3s ease; }
.nt-feature-card:hover .nt-feature-icon { background: var(--nt-primary); color: #ffffff; }
.nt-feature-card.green:hover { border-color: var(--nt-accent); }
.nt-feature-card.green .nt-feature-icon { background: #fef2e8; color: var(--nt-accent); }
.nt-feature-card.green:hover .nt-feature-icon { background: var(--nt-accent); color: #ffffff; }
.nt-feature-title { font-size: 1.25rem; font-weight: 800; margin-bottom: 12px; color: var(--nt-text-dark); }
.nt-feature-text { font-size: 0.95rem; color: var(--nt-text-muted); line-height: 1.6; margin: 0; }

.nt-cta-box { background: linear-gradient(135deg, var(--nt-primary) 0%, var(--nt-primary-hover) 100%); border-radius: 20px; padding: 50px 30px; text-align: center; color: #ffffff; box-shadow: 0 10px 30px rgba(8, 110, 53, 0.2); }
.nt-cta-title { font-size: 2rem; font-weight: 800; margin-bottom: 15px; }
.nt-cta-btn { background: #ffffff; color: var(--nt-primary); font-weight: 700; padding: 12px 30px; border-radius: 50rem; display: inline-block; transition: all 0.2s; font-size: 1.1rem; margin-top: 10px; }
.nt-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); color: var(--nt-primary-hover); }

@media (max-width: 767px) {
    .nt-about-hero { padding: 40px 15px; }
    .nt-about-title { font-size: 2rem; }
    .nt-about-section { padding: 40px 0; }
    .nt-cta-box { padding: 40px 20px; }
    .nt-cta-title { font-size: 1.5rem; }
}

/* =========================================================
   5. NAMMA TOWN: MOBILE BOTTOM NAVIGATION
   ========================================================= */
.nt-bottom-nav { display: none; }
@media (max-width: 767px) {
    body { padding-bottom: 75px !important; }
    .nt-bottom-nav { display: flex; position: fixed; bottom: 0; left: 0; width: 100%; height: 60px; background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid rgba(226, 232, 240, 0.8); box-shadow: 0 -4px 20px rgba(0,0,0,0.04); z-index: 9999; justify-content: space-around; align-items: center; padding: 0 10px; padding-bottom: env(safe-area-inset-bottom); }
    .nt-bottom-nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--nt-text-muted); transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; height: 100%; }
    .nt-bottom-nav-item:hover, .nt-bottom-nav-item.active { color: var(--nt-primary); transform: translateY(-2px); }
    .nt-bottom-nav-icon { font-size: 22px; margin-bottom: 3px; line-height: 1; transition: transform 0.2s; }
    .nt-bottom-nav-item.active .nt-bottom-nav-icon { transform: scale(1.1); }
    .nt-bottom-nav-text { font-size: 10px; font-weight: 700; letter-spacing: 0.3px; }
    
    .nt-bottom-nav-item.action-btn { position: relative; top: -20px; flex: 0 0 60px; justify-content: flex-start; }
    .nt-bottom-nav-item.action-btn:hover { transform: none; }
    .nt-bottom-nav-item.action-btn .nt-bottom-nav-icon-wrap { background:#FF9800; color: #ffffff; width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: 0 6px 16px rgba(8, 110, 53, 0.3); border: 4px solid #ffffff; transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1); }
    .nt-bottom-nav-item.action-btn:active .nt-bottom-nav-icon-wrap { transform: scale(0.92); }
    .nt-bottom-nav-item.action-btn .nt-bottom-nav-text { margin-top: 6px; color: var(--nt-text-dark); position: absolute; bottom: -18px; }
}
 /* =========================================================
   6. NAMMA TOWN: SINGLE LISTING (V5 HORIZONTAL SCROLL)
   ========================================================= */

.nt-v5-layout {
    font-family: var(--nt-font-main);
    background-color: var(--nt-bg-app);
}

/* 1. HORIZONTAL GALLERY */
.nt-v5-gallery-wrap {
    position: relative;
    width: 100%;
    padding-top: 10px;
    padding-bottom: 50px; /* Space for the pulled-up sheet */
}
.nt-v5-gallery-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 8px;
    padding: 0 10px;
    scrollbar-width: none;
}
.nt-v5-gallery-slider::-webkit-scrollbar { display: none; }

.nt-v5-gallery-item {
    flex: 0 0 calc(48% - 4px); /* Mobile default: 48% method */
    scroll-snap-align: center;
    border-radius: 12px;
    overflow: hidden;
    height: 200px; /* Reduced Height for Mobile */
    position: relative;
    display: block;
}

/* If only 1 image exists, make it full width */
.img-count-1 .nt-v5-gallery-item { 
    flex: 0 0 100%; 
    scroll-snap-align: start; 
}

.nt-v5-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none; /* Prevents ghost-dragging issues */
}

/* Total Photos Badge */
.nt-v5-photo-badge {
    position: absolute;
    bottom: 60px; /* Just above the overlapping sheet */
    right: 15px;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 6px 14px;
    border-radius: 50rem;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 10;
    pointer-events: none;
}

/* 2. APP DRAWER SHEET (Mobile Magic) */
.nt-v5-sheet {
    background: #ffffff;
    border-radius: 32px 32px 0 0;
    position: relative;
    z-index: 20;
    margin-top: -40px; /* Pulls it up over the gallery */
    padding-top: 15px;
    padding-bottom: 80px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.08);
}
.nt-v5-drawer-handle { width: 40px; height: 5px; background: #e2e8f0; border-radius: 10px; margin: 0 auto 20px auto; }

/* Trust Badges & Title */
.nt-v5-trust-badge { font-size: 11px; font-weight: 800; padding: 5px 12px; border-radius: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.nt-v5-trust-badge.featured { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.nt-v5-trust-badge.verified { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

.nt-v5-title { font-size: clamp(1.6rem, 5vw, 2.5rem); font-weight: 800; color: var(--nt-text-dark); margin: 10px 0; line-height: 1.15; letter-spacing: -0.5px; }
.nt-v5-price { font-size: 1.25rem; font-weight: 800; color: var(--nt-primary); margin-bottom: 10px; }

/* Quick Pills */
.nt-v5-quick-pills { display: flex; overflow-x: auto; gap: 10px; padding-bottom: 5px; scrollbar-width: none; }
.nt-v5-quick-pills::-webkit-scrollbar { display: none; }
.nt-v5-pill { background: #f8fafc; border: 1px solid #e2e8f0; color: var(--nt-text-dark); padding: 6px 14px; border-radius: 50rem; font-size: 0.9rem; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.nt-v5-pill.rating { background: var(--nt-primary); color: #fff; border-color: var(--nt-primary); }

/* 3. CIRCULAR ACTION HUB (Google Maps Style) */
.nt-v5-action-hub { justify-content: space-between; align-items: flex-start; max-width: 500px; margin: 0 auto; }
.nt-v5-action-item { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none !important; color: var(--nt-text-dark); flex: 1; }
.nt-v5-circle { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; transition: transform 0.2s, box-shadow 0.2s; }
.nt-v5-action-item:hover .nt-v5-circle { transform: translateY(-3px); }
.nt-v5-circle.call { background: var(--nt-primary); color: #fff; box-shadow: 0 4px 12px rgba(8,110,53,0.25); }
.nt-v5-circle.wa { background: #25d366; color: #fff; box-shadow: 0 4px 12px rgba(37,211,102,0.25); }
.nt-v5-circle.dir { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.nt-v5-circle.share { background: #f8fafc; color: var(--nt-text-muted); border: 1px solid #e2e8f0; }
.nt-v5-action-item span { font-size: 0.8rem; font-weight: 700; text-align: center; }

/* 4. BUSINESS HOURS & DETAILS */
.nt-v5-heading { font-size: 1.25rem; font-weight: 800; color: var(--nt-text-dark); margin-bottom: 15px; }
.nt-v5-description { font-size: 1rem; line-height: 1.7; }

.nt-v5-hours-container .rtcl-business-hours { margin: 0; padding: 0; }
.nt-v5-hours-container table, .nt-v5-hours-container tbody, .nt-v5-hours-container tr, .nt-v5-hours-container td, .nt-v5-hours-container th { border: none !important; font-size: 0.95rem; }
.nt-v5-hours-container tr { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--nt-border) !important; }
.nt-v5-hours-container tr:last-child { border-bottom: none !important; }

/* Custom Fields Grid */
.nt-v5-custom-fields ul.rtcl-custom-fields, .nt-v5-custom-fields ul.list-group { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; padding: 0; border: none; }
.nt-v5-custom-fields li { background: #f8fafc; border: 1px solid var(--nt-border) !important; border-radius: 12px; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.nt-v5-custom-fields span.rtcl-cf-label, .nt-v5-custom-fields li span:first-child { font-size: 11px; color: var(--nt-text-muted); text-transform: uppercase; font-weight: 700; border: none; padding: 0; background: transparent; }
.nt-v5-custom-fields span.rtcl-cf-value, .nt-v5-custom-fields li span:last-child { font-size: 14px; color: var(--nt-text-dark); font-weight: 700; border: none; padding: 0; background: transparent; }

/* Hide Defaults */
.nt-v5-hide-defaults, .rtcl-single-listing-details > .rtcl-listing-title, .rtcl-single-listing-details > .rtcl-listing-meta-wrap, .rtcl-single-listing-details > .rtcl-listing-badge-wrap, .rtcl-single-listing-details > .rtcl-price-wrap { display: none !important; }

/* 5. DESKTOP GRID OVERRIDES */
.nt-v5-sticky-widget { position: sticky; top: 100px; }
.nt-v5-widget-card { background: #fff; border-radius: 16px; padding: 24px; }
.nt-v5-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px; border-radius: 10px; font-weight: 700; text-decoration: none !important; transition: all 0.2s; font-size: 15px; }
.nt-v5-btn.call { background: var(--nt-primary); color: #fff !important; }
.nt-v5-btn.call:hover { background: var(--nt-primary-hover); transform: translateY(-2px); }
.nt-v5-btn.wa { background: #25d366; color: #fff !important; }
.nt-v5-btn.wa:hover { background: #16a34a; transform: translateY(-2px); }
.nt-v5-btn.dir { background: #f8fafc; color: var(--nt-text-dark) !important; border: 1px solid var(--nt-border); }
.nt-v5-btn.dir:hover { background: #e2e8f0; }
.nt-v5-btn.share { background: transparent; color: var(--nt-text-muted) !important; border: 1px dashed #cbd5e1; }
.nt-v5-btn.share:hover { color: var(--nt-text-dark) !important; border-color: #94a3b8; }

/* Desktop Media Query Adjustments */
@media (min-width: 992px) {
    .nt-v5-gallery-wrap { 
        padding-top: 30px; 
        background: transparent; 
        padding-bottom: 20px;
    }
    
    .nt-v5-gallery-slider { 
        max-width: 1320px; 
        margin: 0 auto; 
        gap: 16px; 
        padding: 0 15px;
    }
    
    /* Desktop default: 3 Columns */
    .nt-v5-gallery-item {
        flex: 0 0 calc(33.333% - 11px);
        height: 350px;
    }
    /* If exactly 2 images, snap to 50% width on desktop so there is no empty space */
    .img-count-2 .nt-v5-gallery-item { 
        flex: 0 0 calc(50% - 8px); 
    }
    
    /* Reposition badge for desktop */
    .nt-v5-photo-badge { 
        bottom: 35px; 
        right: auto; 
        margin-left: calc(100% - 140px); /* Align relative to right side */
    }
    
    /* Reset mobile App-Drawer styling on desktop */
    .nt-v5-sheet {
        margin-top: 0;
        box-shadow: none;
        padding-top: 0;
        padding-bottom: 60px;
        background: transparent;
    }
    .nt-v5-content-card {
        background: #ffffff;
        border: 1px solid var(--nt-border);
        border-radius: 16px;
        padding: 30px;
        margin-bottom: 24px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    }
}
 /* --- ADS DRAG SLIDER --- */
.nt-drag-slider-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
    scroll-snap-type: x mandatory;
    padding-bottom: 10px; /* Space to prevent shadow clipping */
    cursor: grab;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.nt-drag-slider-wrapper::-webkit-scrollbar {
    display: none;
}

.nt-drag-slider-wrapper:active {
    cursor: grabbing;
}

.nt-drag-slide {
    flex: 0 0 100%; /* Mobile: 1 column full width */
    scroll-snap-align: start;
    user-select: none; /* Prevent accidental text highlighting while dragging */
}

/* Prevent image ghosting/dragging conflicts with JS mouse drag */
.nt-drag-slide img {
    pointer-events: none;
}

/* -------------------------------------------
   NEW: Single Item Full Width Override 
------------------------------------------- */
.nt-drag-slide:only-child {
    flex: 0 0 100% !important;
}

/* -------------------------------------------
   NEW: Desktop 2 Columns 
------------------------------------------- */
@media (min-width: 992px) {
    .nt-drag-slide {
        /* Calculates 2 items per row minus the gap */
        flex: 0 0 calc(50% - 10px); 
    }
}
/***************Extra CSS Code *********************/
 
.nt-v5-content-card.mt-4.mb-5 {
    display: none;
}
.single-rtcl_listing .app-loc-picker {
    display: none;
}
.rtclbh-status{
    display: none;
}
.rtcl-single-custom-fields {
    display: none;
}
@media screen and (min-width: 992px) {
.d-flex.justify-content-between.align-items-center.mb-4.pb-3.border-bottom.d-lg-none {
    display: none !important;
}
}  
@media screen and (max-width: 992px) {
.nt-global-header-wrap {
    background: #ceeeba !important;
	}
}