/* TailWindCSS */
/* March 2025: Definitions used were copied from the tailwindcss file into this file to avoid bloat */

/* Basic CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Set Inter as the default font */
body {
  font-family: 'Inter', sans-serif, Arial, Helvetica, sans-serif;
  background-color: rgb(249 250 251); /* bg-gray-50 */
}

a {
    text-decoration: none; /* Remove underline from links in menus */
}

button {
    border: none; /* Remove default button border */
    background: none; /* Remove default button background */
    cursor: pointer; /* Add pointer cursor to buttons */
}







/* Hide the search form by default on mobile */
#sr-form {
    display: none;
}
/* Show the search form by default on desktop */
@media (min-width: 641px) {
    #sr-form {
        display: block;
    }
    #sr-icon {
        display: none; /* Hide the magnifying glass icon on desktop */
    }
}
/* Full width for mobile devices */
@media (max-width: 640px) {
    #sr-form.full-width {
        width: 100%;
        max-width: 100%;
        position: absolute;
        top: 100%; /* Position below the header */
        left: 0;
        right: 0;
        padding: 0 1rem; /* Add some padding */
        background-color: white; /* Match header background */
        z-index: 100; /* Ensure it's above other content */
    }
}

/* ---------------------------------------------------------------------------- */
/* menu styles */

/* Combined Menu Styles */
.combined-menu {
    display: flex;
    flex-wrap: nowrap; /* Prevent wrapping to multiple lines */
    overflow-x: auto; /* Allow horizontal scrolling */
    white-space: nowrap; /* Prevent text wrapping */
    gap: 0; /* Remove gap between buttons */
    padding-bottom: 4px; /* Add space between buttons and scrollbar */
}

.combined-menu a {
    flex-shrink: 0; /* Prevent shrinking of menu items */
    padding: 0.5rem 0.75rem; /* Add padding for better spacing */
    border: 1px solid #d1d5db; /* Light grey border around each button */
    background-color: white; /* White background */
    color: #374151; /* Text color */
    transition: background-color 0.2s, border-color 0.2s; /* Smooth transitions */
    margin-right: -5px; /* Further increase overlap to reduce spacing */
}

/* Ensure the last button does not have a negative margin */
.combined-menu a:last-child {
    margin-right: 0; /* Remove negative margin for the last button */
}

/* Hover Effect */
.combined-menu a:hover {
    background-color: #f9fafb; /* Light grey background on hover */
    border-color: #9ca3af; /* Slightly darker grey border on hover */
}

/* Active Button Style */
.combined-menu a.active {
    background-color: #10b981; /* Green background for active button */
    border-color: #d1d5db; /* Green border for active button */
    color: white; /* White text for active button */
}

/* ---------------------------------------------------------------------------- */

.header {
    background-color: white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #16a34a; /* green-600 */
}

.sr-container {
    display: flex;
    align-items: center;
}

.sr-icon {
    padding: 0.5rem;
    color: #9ca3af; /* gray-400 */
    transition: color 0.2s;
}

.sr-icon:hover {
    color: #6b7280; /* gray-500 */
}

.sr-form {
    max-width: 36rem;
    width: 100%;
}

.sr-input-container {
    position: relative;
}

.sr-icon-container {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    padding-left: 0.75rem;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.sr-input {
    width: 100%;
    padding-left: 2.5rem;
    padding-right: 0.75rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    border: 1px solid #d1d5db; /* gray-300 */
    border-radius: 0.375rem;
    background-color: white;
    color: #6b7280; /* gray-500 */
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition: all 0.2s;
}

.sr-input:focus {
    outline: none;
    border-color: #10b981; /* green-500 */
    box-shadow: 0 0 0 1px #d1d5db; /* green-500 */
    color: #374151; /* gray-700 */
}

.sr-button {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    background-color: #16a34a; /* green-600 */
    color: white;
    border-radius: 0 0.375rem 0.375rem 0;
    transition: background-color 0.2s;
}

.sr-button:hover {
    background-color: #15803d; /* green-700 */
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%); /* Replace clip: rect(0, 0, 0, 0); with clip-path */
    border: 0;
}

.menu-btn {
    padding-left: 0.75rem; /* px-3 */
    padding-right: 0.75rem; /* px-3 */
    padding-top: 0.25rem; /* py-1 */
    padding-bottom: 0.25rem; /* py-1 */
    border-radius: 0.25rem; /* rounded */
    transition: background-color 0.2s; /* Optional: for smooth hover transition */
}

.menu-btn:hover {
    background-color: #e5e7eb; /* hover:bg-gray-200 */
}

.menu-divider {
    border-right: 1px solid #d1d5db; /* Equivalent to border-gray-300 */
}




/* ----------------------------------------------------- */
/* Breadcrumb navigation */

.bc-nav {
    background-color: white; /* bg-white */
    padding: 0.5rem 0; /* py-2 */
    display: flex;
    justify-content: center; /* Center the breadcrumb horizontally */
    width: 100%; /* Ensure it takes full width */
}

/* Breadcrumb container */
.bc-container {
    max-width: 80rem; /* max-w-7xl */
    width: 100%; /* Ensure it takes full width */
    padding-left: 1rem; /* px-4 */
    padding-right: 1rem; /* px-4 */
    display: flex;
    justify-content: center; /* Center the breadcrumb list horizontally */
}

/* Breadcrumb list */
.bc-list {
    display: flex;
    flex-wrap: wrap; /* flex-wrap */
    font-size: 0.875rem; /* text-sm */
    color: #6b7280; /* text-gray-500 */
    justify-content: center; /* Center the breadcrumb items */
}

/* Breadcrumb item */
.bc-item {
    display: flex;
    align-items: center; /* flex items-center */
}

@media (min-width: 640px) {
    .bc-container {
        padding-left: 1.5rem; /* sm:px-6 */
        padding-right: 1.5rem; /* sm:px-6 */
    }
}

@media (min-width: 1024px) {
    .bc-container {
        padding-left: 2rem; /* lg:px-8 */
        padding-right: 2rem; /* lg:px-8 */
    }
}

/* ----------------------------------------------------- */

/* advertisement container */
/* ad-block */
.adb {
    background-color: #f3f4f6; /* bg-gray-100 */
    padding-top: 1rem; /* py-4 */
    padding-bottom: 1rem; /* py-4 */
}

/* ad-container */
.adc {
    max-width: 80rem; /* max-w-7xl */
    margin-left: auto; /* mx-auto */
    margin-right: auto; /* mx-auto */
    padding-left: 1rem; /* px-4 */
    padding-right: 1rem; /* px-4 */
}

@media (min-width: 640px) {
    .ad-container {
        padding-left: 1.5rem; /* sm:px-6 */
        padding-right: 1.5rem; /* sm:px-6 */
    }
}

@media (min-width: 1024px) {
    .ad-container {
        padding-left: 2rem; /* lg:px-8 */
        padding-right: 2rem; /* lg:px-8 */
    }
}

/* ---------------------------------------------------------------- */
/* pagination container */


.pg-container {
    background-color: white;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom-width: 1px;
    border-color: #e5e7eb;
    margin-top: 2rem; /* Add margin to create space between pagination and breadcrumb */
}

/* Styles for the inner container */
.pg-inner {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .pg-inner {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .pg-inner {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Styles for the flex container */
.pg-flex {
    display: flex;
    justify-content: center; /* Ensure the pagination is centered */
    align-items: center;
    width: 100%; /* Ensure it takes full width */
}

/* Styles for the navigation */
.pg-nav {
    display: flex;
    align-items: center;
    gap: 0.2rem; /* Reduced space between buttons (4px) */
    justify-content: center; /* Center the buttons */
    width: 100%; /* Ensure it takes full width */
    max-width: 80rem; /* Match the max-width of other containers */
    margin-left: auto; /* Center the container horizontally */
    margin-right: auto; /* Center the container horizontally */
    padding-left: 1rem; /* Add padding for smaller screens */
    padding-right: 1rem; /* Add padding for smaller screens */
    padding-top: 4px; /* Add 2px space above the buttons */
    padding-bottom: 4px; /* Add space between buttons and scrollbar */
    overflow-x: auto; /* Allow horizontal scrolling */
    scroll-behavior: smooth; /* Standard CSS for smooth scrolling */
    white-space: nowrap; /* Prevent wrapping of buttons */
}

/* Common styles for pagination buttons */
.common-pg-btn {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    border-radius: 0.375rem;
    border-width: 1px;
    border-color: #d1d5db;
    background-color: #ffffff;
    color: #374151;
    transition-property: background-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.common-pg-btn:hover {
    background-color: #f9fafb;
}

.pg-btn {
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid #d1d5db; /* Light grey border */
    background-color: #ffffff;
    transition-property: background-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    flex-shrink: 0; /* Prevent buttons from shrinking */
}

.pg-btn.disabled {
    color: #6b7280;
    border-color: #d1d5db;
    cursor: not-allowed;
}

.pg-btn.active {
    background-color: #10b981;
    border-color: #d1d5db;
    color: #ffffff;
}

.pg-btn:hover {
    background-color: #f9fafb; /* Light grey background on hover */
    border-color: #9ca3af; /* Slightly darker grey border on hover */
}

/* ---------------------------------------------------------------- */

.main-container {
    width: 100%; /* Ensure it takes full width */
    max-width: 80rem; /* Match the max-width of other containers */
    margin-left: auto; /* Center the container horizontally */
    margin-right: auto; /* Center the container horizontally */
    padding-left: 1rem; /* Add padding for smaller screens */
    padding-right: 1rem; /* Add padding for smaller screens */
}

@media (min-width: 640px) {
    .main-container {
        padding-left: 1.5rem; /* Equivalent to sm:px-6 */
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .main-container {
        padding-left: 2rem; /* Equivalent to lg:px-8 */
        padding-right: 2rem;
    }
}


/* ---------------------------------------------------------------- */
/* Trash Can Container */
.trash {
    margin-top: 1rem; /* Equivalent to mt-4 */
    display: flex;
    justify-content: flex-end;
}

/* Trash Can Button */
.trash-btn {
    color: #6b7280; /* Equivalent to text-gray-500 */
    transition: color 0.2s;
}

.trash-btn:hover {
    color: #ef4444; /* Equivalent to hover:text-red-500 */
}


/* ---------------------------------------------------------------- */
/* ppl-block */
.pplb {
    padding: 1.5rem 1rem; /* px-4 py-6 */
}
/* ppl-content */
.pplc {
    background-color: white; /* bg-white */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* shadow */
    border-radius: 0.5rem; /* sm:rounded-lg */
    overflow: hidden; /* overflow-hidden */
}
/* ppl-header */
.pplh {
    padding: 1.25rem 1.5rem; /* px-4 py-5 sm:px-6 */
}

.pplh h1 {
    font-size: 1.25rem; /* text-xl */
    font-weight: 500; /* font-medium */
    color: #111827; /* text-gray-900 */
}

.pplh h2 {
    margin-top: 0.25rem; /* mt-1 */
    font-size: 1.125rem; /* text-lg */
    color: #4b5563; /* text-gray-600 */
}

.pplh p {
    margin-top: 0.5rem; /* mt-2 */
    color: #6b7280; /* text-gray-500 */
}

/* pr container */
.prc {
    border-top: 1px solid #e5e7eb;
}

/* pr content */
.prct {
    padding: 1.25rem;
}

/* pr information */
.pri {
    display: flex;
    flex-direction: column;
}

/* pr name */
.prn {
    font-size: 1.125rem;
    font-weight: 500;
    color: #1f2937;
}

/* pr number */
.prno {
    color: #6b7280;
    margin-right: 0.5rem;
}

/* pr flag */
.prf {
    display: inline;
    height: 1rem;
    width: 1rem;
    margin-right: 0.5rem;
}

/* pr details */
.prd {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

/* pr link */
.prl {
    text-decoration: underline;
}

/* pr phone */
.prp {
    margin-top: 0.25rem;
}

/* pr acquired */
.pra {
    margin-top: 0.5rem;
    font-size: 0.75rem;
}

/* pr description */
.prds {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

/* pr buttons */
.prb {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .prb {
        flex-direction: row;
    }
}

.btn-leave-message,
.btn-view-map {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    text-align: center;
}

.btn-leave-message {
    color: white;
    background-color: #16a34a;
    border: transparent;
}

.btn-leave-message:hover {
    background-color: #15803d;
}

.btn-view-map {
    color: #1f2937;
    background-color: white;
    border: 1px solid #e5e7eb;
}

.btn-view-map:hover {
    background-color: #f9fafb;
}






/* ---------------------------------------------------- */
/* Similar Names Container */
.sn-container {
    padding: 1rem; /* Add padding for mobile */
    background-color: white; /* Optional: Add background color */
    margin-top: 1.5rem; /* Add margin to separate from other content */
    overflow-x: auto; /* Allow horizontal scrolling on mobile */
}

/* Similar Names Section */
.sn-section {
    margin-top: 1.5rem; /* mt-6 */
    background-color: #ecfdf5; /* bg-green-50 */
    border-radius: 0.5rem; /* rounded-lg */
    padding: 1rem; /* p-4 */
    overflow-x: auto; /* Allow horizontal scrolling */
}

.sn-section h3 {
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* font-medium */
    color: #065f46; /* text-green-800 */
}

.sn-list {
    margin-top: 0.5rem; /* mt-2 */
    font-size: 0.875rem; /* text-sm */
    color: #065f46; /* text-green-700 */
    display: flex; /* flex */
    flex-wrap: nowrap; /* Prevent wrapping to multiple lines */
    gap: 0.5rem; /* gap-2 */
    overflow-x: auto; /* Allow horizontal scrolling */
    scroll-behavior: smooth; /* Standard CSS for smooth scrolling */
}

.sn-list a {
    text-decoration: none; /* Remove default underline */
    white-space: nowrap; /* Prevent text wrapping */
}

.sn-list a:hover {
    text-decoration: underline; /* hover:underline */
}

/* Ensure the container is full width on mobile */
@media (max-width: 640px) {
    .sn-container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .sn-section {
        padding: 0.75rem; /* Adjust padding for smaller screens */
    }

    .sn-list {
        gap: 0.25rem; /* Reduce gap for smaller screens */
    }
}







/* ---------------------------------------------------- */
/* lower pagination */

.lp-container {
    margin-top: 1.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    display: flex;
    justify-content: center; /* Ensure the lower pagination is centered */
}

.lp-inner {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 0.375rem;
    overflow: hidden;
}

/* Mobile LP */
.lp-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1rem;
    border-top: 1px solid #e5e7eb;
}

.lp-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: #374151;
    background-color: white;
    transition: background-color 0.2s;
}

.lp-btn:hover {
    background-color: #f9fafb;
}

.lp-text {
    font-size: 0.875rem;
    color: #374151;
}

/* Desktop LP */
.lp-desktop {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-top: 1px solid #e5e7eb;
}

@media (min-width: 640px) {
    .lp-mobile {
        display: none;
    }

    .lp-desktop {
        display: flex;
    }
}

.lp-nav {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.lp-nav-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    font-size: 0.875rem;
    color: #6b7280;
    background-color: white;
    transition: background-color 0.2s;
}

.lp-nav-btn:hover {
    background-color: #f9fafb;
}

.lp-nav-btn.active {
    background-color: #f0fdf4;
    border-color: #10b981;
    color: #059669;
}

.lp-nav-btn.disabled {
    pointer-events: none;
    color: #9ca3af;
}

/* Footer Styles */
.footer {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.footer-container {
    max-width: 80rem; /* max-w-7xl */
    margin: 0 auto;
    padding: 1.5rem 1rem; /* py-6 px-4 */
}

@media (min-width: 640px) {
    .footer-container {
        padding: 1.5rem 1.5rem; /* sm:px-6 */
    }
}

@media (min-width: 1024px) {
    .footer-container {
        padding: 1.5rem 2rem; /* lg:px-8 */
    }
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem; /* space-x-4 */
}

.footer-nav a {
    color: #6b7280; /* text-gray-500 */
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: #374151; /* hover:text-gray-700 */
}

.footer-banner {
    margin-top: 1rem; /* mt-4 */
    background-color: #10b981; /* bg-green-500 */
    padding: 0.5rem; /* p-2 */
    border-radius: 0.375rem; /* rounded-md */
}

.footer-banner p {
    text-align: center;
    color: white;
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* font-medium */
    font-weight: 700; /* font-bold */
}

.footer-copyright {
    margin-top: 0.5rem; /* mt-2 */
    text-align: center;
    color: #9ca3af; /* text-gray-400 */
    font-size: 0.875rem; /* text-sm */
}

/* Background colors */
.bg-gray-50 {
  background-color: rgb(249 250 251);
}

.bg-green-600 {
  background-color: rgb(22 163 74);
}

/* Overflow */
.overflow-x-auto {
  overflow-x: auto;
}

/* Spacing */
.space-x-2 > :not([hidden]) ~ :not([hidden]) {
  margin-left: 0.5rem; /* 8px */
}

/* Text color */
.text-white {
  color: rgb(255 255 255);
}

/* Hover state */
.hover\:bg-green-700:hover {
  background-color: rgb(21 128 61);
}


/* --------------------------------------------------- */
/* from tailwindcss */

/* Add these missing classes */
.text-gray-500 {
  color: #6b7280;
}

.text-gray-700 {
  color: #374151;
}

.text-gray-900 {
  color: #111827;
}

.text-green-800 {
  color: #065f46;
}

.text-green-700 {
  color: #065f46;
}

.bg-green-50 {
  background-color: #ecfdf5;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.gap-2 {
  gap: 0.5rem;
}

.hover\:underline:hover {
  text-decoration: underline;
}

/* Existing utility classes at the end of your file */
.bg-gray-50 {
  background-color: rgb(249 250 251);
}

.bg-green-600 {
  background-color: rgb(22 163 74);
}

.text-white {
  color: rgb(255 255 255);
}

.hover\:bg-green-700:hover {
  background-color: rgb(21 128 61);
}

.overflow-x-auto {
  overflow-x: auto;
}

.space-x-2 > :not([hidden]) ~ :not([hidden]) {
  margin-left: 0.5rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.max-w-7xl {
  max-width: 80rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .sm\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .lg\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}




/* --------------------------------------------------- */
/* top of page button */

.top-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #4CAF50;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin: 20px auto;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
  
.top-button:hover {
  background-color: #45a049;
}
  
.button-container {
  text-align: center;
  width: 100%;
  margin-top: 30px;
}

