/* =========================================================
   NAGERCOIL ONLINE
   LOCAL PAGES CSS
   =========================================================
   Covers:
   - Businesses
   - Restaurants
   - Hospitals
   - Hotels
   - Jobs
   - Places
   - Properties

   Property-specific rules are isolated using:
   .property-grid
   .property-card
   .property-category-card

   This prevents property styling from changing
   normal directory/business cards.
========================================================= */


/* =========================================================
   ROOT
========================================================= */

:root {
    --ngl-primary: #0f4c81;
    --ngl-primary-dark: #09385f;
    --ngl-accent: #ffc107;

    --ngl-text: #172033;
    --ngl-muted: #667085;

    --ngl-border: #e5e9f0;
    --ngl-background: #f7f9fc;

    --ngl-white: #ffffff;
}


/* =========================================================
   GLOBAL
========================================================= */

body {
    margin: 0;

    background: var(--ngl-background);
    color: var(--ngl-text);

    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.6;
}

img {
    max-width: 100%;
}


/* =========================================================
   NAVBAR
========================================================= */

.site-navbar {
    background: var(--ngl-primary);

    box-shadow:
        0 2px 14px rgba(0, 0, 0, 0.12);
}

.site-navbar .navbar-brand {
    font-weight: 800;
}

.site-navbar .nav-link {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
    color: #ffffff;
}


/* =========================================================
   HERO
========================================================= */

.local-page-hero {
    background:
        linear-gradient(
            135deg,
            var(--ngl-primary),
            #1769aa
        );

    color: #ffffff;

    padding: 55px 0 50px;
}

.breadcrumb-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 20px;

    font-size: 0.9rem;

    opacity: 0.9;
}

.breadcrumb-row a {
    color: #ffffff;
    text-decoration: none;
}

.breadcrumb-row a:hover {
    text-decoration: underline;
}

.local-page-hero h1 {
    margin: 0 0 15px;

    font-size:
        clamp(2rem, 5vw, 3.25rem);

    font-weight: 800;

    line-height: 1.12;
}

.hero-description {
    max-width: 850px;

    margin: 0 0 28px;

    font-size: 1.08rem;

    opacity: 0.95;
}


/* =========================================================
   SEARCH
========================================================= */

.local-search-form {
    display: flex;

    max-width: 780px;

    background: #ffffff;

    border-radius: 12px;

    padding: 6px;

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.16);
}

.local-search-form input {
    flex: 1;

    min-width: 0;

    border: 0;
    outline: 0;

    padding: 13px 15px;

    font-size: 1rem;

    border-radius: 8px;
}

.local-search-form button {
    border-radius: 8px;
}


/* =========================================================
   QUICK CATEGORY LINKS
========================================================= */

.quick-category-section {
    background: #ffffff;

    border-bottom:
        1px solid var(--ngl-border);

    padding: 18px 0;
}

.quick-category-links {
    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 10px;
}

.quick-category-links a {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 9px 14px;

    border:
        1px solid var(--ngl-border);

    border-radius: 999px;

    background: #ffffff;

    color: var(--ngl-primary);

    text-decoration: none;

    font-weight: 650;

    font-size: 0.9rem;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.quick-category-links a:hover {
    background: #edf5ff;

    border-color: #c9ddf2;

    transform: translateY(-1px);
}


/* =========================================================
   CONTENT
========================================================= */

.local-page-content {
    padding-top: 45px;
    padding-bottom: 70px;
}

.intro-section {
    max-width: 900px;

    margin-bottom: 45px;
}

.intro-section h2,
.section-heading h2,
.seo-content h2 {
    font-weight: 800;
}

.intro-section p,
.seo-content p {
    color: var(--ngl-muted);
}


/* =========================================================
   SECTION HEADING
========================================================= */

.section-heading {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 25px;
}

.section-heading p {
    color: var(--ngl-muted);

    margin-bottom: 0;
}


/* =========================================================
   NORMAL DIRECTORY CATEGORY GRID
   Used by existing non-property pages.
========================================================= */

.category-section {
    margin-bottom: 50px;
}

.category-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(160px, 1fr)
        );

    gap: 14px;
}

.category-card {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 17px;

    background: #ffffff;

    border:
        1px solid var(--ngl-border);

    border-radius: 12px;

    color: var(--ngl-text);

    text-decoration: none;

    font-weight: 700;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.category-card i {
    width: 38px;
    height: 38px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 10px;

    background: #edf5ff;

    color: var(--ngl-primary);
}

.category-card:hover {
    transform: translateY(-2px);

    border-color: #c8dbef;

    box-shadow:
        0 8px 22px rgba(16, 24, 40, 0.07);
}


/* =========================================================
   NORMAL BUSINESS/DIRECTORY GRID
   IMPORTANT:
   Do not modify this for property cards.
========================================================= */

.business-section {
    margin-bottom: 55px;
}

.business-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;
}


/* =========================================================
   NORMAL BUSINESS CARD
========================================================= */

.business-card {
    display: flex;

    flex-direction: column;

    background: #ffffff;

    border:
        1px solid var(--ngl-border);

    border-radius: 16px;

    padding: 22px;

    box-shadow:
        0 4px 18px rgba(16, 24, 40, 0.045);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.business-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 28px rgba(16, 24, 40, 0.09);
}

.business-card-top {
    margin-bottom: 8px;
}

.business-badge {
    display: inline-block;

    background: #edf5ff;

    color: var(--ngl-primary);

    border-radius: 999px;

    padding: 5px 10px;

    font-size: 0.78rem;

    font-weight: 750;
}

.business-card h3 {
    margin: 8px 0 14px;

    font-size: 1.2rem;

    line-height: 1.3;

    font-weight: 800;
}

.business-info {
    margin: 5px 0;

    color: var(--ngl-muted);

    font-size: 0.93rem;
}

.business-info i {
    width: 18px;

    color: var(--ngl-primary);
}

.business-info a {
    color: var(--ngl-primary);

    text-decoration: none;

    font-weight: 650;
}

.business-info a:hover {
    text-decoration: underline;
}

.business-summary {
    color: var(--ngl-muted);

    font-size: 0.93rem;

    margin: 12px 0;
}

.business-details-link {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    margin-top: auto;

    padding-top: 10px;

    color: var(--ngl-primary);

    text-decoration: none;

    font-weight: 750;
}

.business-details-link:hover {
    text-decoration: underline;
}


/* =========================================================
   SEO CONTENT
========================================================= */

.seo-content {
    max-width: 900px;

    padding: 30px;

    background: #ffffff;

    border:
        1px solid var(--ngl-border);

    border-radius: 16px;

    box-shadow:
        0 4px 18px rgba(16, 24, 40, 0.04);
}

.seo-content h3 {
    margin-top: 28px;

    font-size: 1.2rem;

    font-weight: 800;
}

.seo-links {
    display: flex;

    flex-wrap: wrap;

    gap: 9px;
}

.seo-links a {
    padding: 7px 12px;

    background: #f1f5f9;

    border-radius: 8px;

    color: var(--ngl-primary);

    text-decoration: none;

    font-size: 0.9rem;

    font-weight: 650;
}

.seo-links a:hover {
    background: #e7f0fa;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.empty-state {
    text-align: center;

    padding: 55px 20px;

    background: #ffffff;

    border:
        1px dashed #cfd7e2;

    border-radius: 15px;
}

.empty-state i {
    font-size: 2.5rem;

    color: var(--ngl-primary);

    margin-bottom: 15px;
}

.empty-state p {
    color: var(--ngl-muted);
}


/* =========================================================
   FOOTER
========================================================= */

.local-footer {
    background: #111827;

    color: #d7dce5;

    padding: 40px 0 25px;
}

.local-footer h3 {
    color: #ffffff;

    font-size: 1.1rem;

    font-weight: 800;
}

.local-footer p {
    margin-bottom: 7px;

    font-size: 0.9rem;
}

.local-footer a {
    color: #d7e8ff;

    text-decoration: none;
}

.local-footer a:hover {
    text-decoration: underline;
}

.local-footer hr {
    border-color:
        rgba(255, 255, 255, 0.15);

    margin: 25px 0;
}


/* =========================================================
   =========================================================
   PROPERTY PAGE
   =========================================================
   These rules ONLY affect property elements.
========================================================= */


/* =========================================================
   PROPERTY GRID
   4 columns on desktop
   Makes cards narrower and more compact.
========================================================= */

.property-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;

    width: 100%;
}


/* =========================================================
   PROPERTY CARD
========================================================= */

.property-card {
    display: flex;

    flex-direction: column;

    min-width: 0;

    width: 100%;

    height: 100%;

    padding: 16px;

    background: #ffffff;

    border:
        1px solid #e5e7eb;

    border-radius: 12px;

    color: var(--ngl-text);

    text-decoration: none;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.045);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;

    box-sizing: border-box;
}

.property-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.08);

    border-color: #cbd5e1;
}


/* =========================================================
   PROPERTY IMAGE
========================================================= */

.property-card .business-card-image {
    width: 100%;

    height: 165px;

    overflow: hidden;

    border-radius: 9px;

    margin-bottom: 12px;

    background: #f1f5f9;
}

.property-card .business-card-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================================
   PROPERTY TOP BADGE
========================================================= */

.property-card .business-card-top {
    margin-bottom: 6px;
}

.property-card .business-badge {
    padding: 4px 9px;

    font-size: 0.74rem;

    white-space: nowrap;

    max-width: 100%;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* =========================================================
   PROPERTY TITLE
========================================================= */

.property-card h3 {
    margin: 7px 0 10px;

    font-size: 1rem;

    line-height: 1.35;

    font-weight: 800;

    overflow-wrap: anywhere;
}


/* =========================================================
   PROPERTY INFO
========================================================= */

.property-card .business-info {
    margin: 4px 0;

    font-size: 0.86rem;

    line-height: 1.4;

    overflow-wrap: anywhere;
}

.property-card .business-info i {
    width: 17px;

    margin-right: 3px;
}

.property-card .business-info strong {
    font-weight: 800;
}


/* =========================================================
   PROPERTY DESCRIPTION
========================================================= */

.property-card .business-summary {
    margin:
        9px 0 10px;

    font-size: 0.84rem;

    line-height: 1.45;

    overflow-wrap: anywhere;
}


/* =========================================================
   PROPERTY DETAIL LINK
========================================================= */

.property-card .business-details-link {
    margin-top: auto;

    padding-top: 8px;

    font-size: 0.84rem;

    line-height: 1.35;
}


/* =========================================================
   PROPERTY CATEGORY CARD
========================================================= */

.property-category-card {
    text-align: center;

    min-height: 190px;

    justify-content: flex-start;
}

.property-category-card .business-card-top {
    width: 100%;

    text-align: left;
}

.property-category-card > .text-center {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

.property-category-card > .text-center i {
    font-size: 38px !important;

    color: var(--ngl-primary);
}

.property-category-card h3 {
    margin:
        4px 0 5px;

    font-size: 1rem;

    line-height: 1.3;
}

.property-category-card .business-summary {
    margin:
        5px 0 8px;

    font-size: 0.84rem;
}

.property-category-card .business-details-link {
    margin-top: auto;

    padding-top: 7px;

    justify-content: center;

    font-size: 0.84rem;
}


/* =========================================================
   PROPERTY TABLET
========================================================= */

@media (max-width: 1199.98px) {

    .property-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 18px;
    }

}


/* =========================================================
   PROPERTY SMALL TABLET
========================================================= */

@media (max-width: 991.98px) {

    /* Existing directory pages remain 2-column */
    .business-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    /* Property page */
    .property-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 16px;
    }

}


/* =========================================================
   PROPERTY MOBILE
========================================================= */

@media (max-width: 575.98px) {

    .property-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .property-card {
        padding: 14px;
    }

    .property-card .business-card-image {
        height: 180px;
    }

    .property-card h3 {
        font-size: 1rem;
    }

}


/* =========================================================
   GENERAL MOBILE
========================================================= */

@media (max-width: 650px) {

    .local-page-hero {
        padding: 38px 0 35px;
    }

    .local-page-hero h1 {
        font-size: 2rem;
    }

    .local-search-form {
        flex-direction: column;

        padding: 8px;
    }

    .local-search-form input {
        width: 100%;
    }

    .local-search-form button {
        width: 100%;
    }

    .business-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: flex-start;

        flex-direction: column;
    }

    .quick-category-links {
        justify-content: flex-start;
    }

    .local-page-content {
        padding-top: 30px;
    }

    .seo-content {
        padding: 22px;
    }

}