.listdown {
  position: absolute;
  top: 100%;        /* directly below input */
  left: 0;
  width: 100%;
  background: #fff;
  border: 0.5px solid #00AAFF;
  border-radius: 5px;
  max-height: 200px;
  font-size: 0.85rem;
  overflow-y: auto;
  display: none;
  z-index: 1000;
  outline: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.listdown .option {
  padding: 6px 10px;
  cursor: pointer;
}

.listdown .option:hover, .listdown .option.highlighted {
  background: #f5f5f5;
  color: #000099;
}

.search-criteria {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 85%;
  flex-wrap: wrap;
}

/* wrapper becomes positioning context */
.input-wrapper {
  position: relative;
  flex: 1 1 auto;     /* allows input to size naturally */
  min-width: 0; /* ← prevents flex overflow/shrink issues */  
}

.searchbody{
    display:grid;
    grid-template-rows: auto auto auto auto auto;    
    align-items: center;
    justify-items: center;
    font-size: minmax(0.6rem 1rem);
    /* margin-top:10px !important; */
    gap:5px;
    text-wrap: balance;
    grid-template-areas:
    "search-head1"
    "search-head2"
    "search-criteria"
    "search-zone"
    "swift-support"    
}

/* Assign grid areas */
.search-head1    { grid-area: search-head1;}
.search-head2  { grid-area: search-head2; }
.search-criteria    { grid-area: search-criteria;}
.search-zone    { grid-area: search-zone; }
.Swift-Support    { grid-area: Swift-Support;}

.search-head1, .search-head2 {
    display:flex;
    flex-direction: column;
    align-self: center;
    justify-self: center;
    text-align: center;
    max-width:100%;
    height:fit-content;
}
.search-head2{
    font-size: minmax(11px 14px);
    font-weight: bold;
    margin-bottom: 15px;
    color: #00AAFF;
}
.search-criteria, .search-zone{
    display:flex;
    position:relative;
    flex-direction: row;
    align-items: center;
    gap:5px;
    width:85%;
    flex-wrap: wrap;
    height:fit-content;
    /* z-index: 99;  */
}
/* Input fills the wrapper */
.input-wrapper-width {
  width: 100%;
  min-width: 0;
}



.search-criteria input, .search-zone input {
    vertical-align: middle;
}
.search-criteria input[type="search"], .search-zone input[type="search"] {
    flex: 1;                    /* take up remaining space */
    min-width: 150px;           /* don't shrink too much */
}
/* .search-criteria input[type="checkbox"], .search-zone input[type="radio"] {
    width:17px;
    margin-right:0;
    accent-color:#000099;
    cursor:pointer;
} */
input[type="radio"]{
    width:17px;
    margin-right:2px;
    accent-color:#000099;
    cursor:pointer !important;
}
input[type="checkbox"] {
    width:20px;
    margin-right:2px;
    accent-color:#000099;
    cursor:pointer;
}
#searcharea{
    width:110px;
    /* font-size: 12px; */
}
.search-zone button{
    height:28px !important;
}

.searchoptions{
    width:85%;
    max-width: 100%;
    justify-self: center;
    justify-items: center;
    min-height: 10px;
    height:auto;
    margin-top: -40px;
    
}

.searchhead div{
    display: flex;
    align-self: center;   /* vertical alignment */
    justify-content: left;
    padding:0;
    margin:0;
}

.searchoptions div{
    margin-top:-5px;
}

.note{
    font-size: 1rem; 
    color: darkslategrey;
    margin: 10px 0 10px 0;
}

.search input, .search select{
    width:200px;
}

input:disabled, select:disabled, input:read-only {
  background-color: rgb(228, 228, 228);
  cursor: not-allowed;
}

.search_inputs{
    align-self: flex-start;
}

.specialnote {
    margin:-10px;
    padding:-10px;
    align-self:flex-start ;
    color: purple;
    content:2px;
}
input[type="checkbox"]:hover {
      cursor: pointer; /* Shows hand icon on hover */
}

.selecttobuy, #selectAll{
    width: 18px; 
    height: 18px; 
    margin: 0;
    accent-color: #000099;
}

.count-sectionn{
    position: sticky;
    top: var(--mrgn_cnt_sec);
    background-color: #F0F0F0;
    z-index: 98;
}

#forqr{
    display:none;
    font-size: 0.9rem;
}
#forqr input{
    font-size: 0.9rem;
    padding:2px;
    max-height:20px !important;
    width:fit-content;
}
.qr_frame{
    display:grid !important;
    grid-template-columns: 400px 1fr !important;
    padding: 10px;
}
.qr_code, .qr_details{
    display: flex;
    align-items: center;
    justify-content: center;
    height:fit-content;
}

.qr_details{
    display:inline;
    margin-top:20px;
    align-content: center;
    justify-content: flex-start;
}

/* RELETED Search boxes */
.rltd-srch-grid {
  display: flex;
  flex-wrap: wrap;
  /* gap: 0.5rem; */
}

/* .rltd-srch-box { */
  /* display: inline-block; */
  /* padding: 0 0.5rem ; */
  /* text-indent: 0; */
  /* background-color: white; light gray background */
  /* border:1px dashed #000099; */
  /* border-radius: 12px;       rounded corners */
  /* text-decoration: none;      remove underline */
  /* font-weight: bold; */
  /* color: #000099;               text color */
  /* transition: background-color 0.3s; */
/* } */

.rltd-srch-box {
  display: inline-block;          /* allows horizontal flow */
  padding: 0.25rem 0.5rem;        /* small, flexible padding */
  text-indent: 0;
  background-color: white;
  border: 1px dashed #000099;     /* border visible on all screens */
  border-radius: 12px;
  text-decoration: none;
  color: #000099;
  transition: background-color 0.3s, border-color 0.3s;
  font-size: 0.9rem;
  word-wrap: break-word;          /* break long text instead of overflowing */
  max-width: 100%;                /* never exceed container width */
  box-sizing: border-box;         /* include padding + border in width */
  margin: 0.2rem 0;               /* spacing between stacked boxes */
}
.rltd-srch-box:hover {
  background-color: #dcdcdc; /* darker on hover */
}


/* ///// to expand or collaps extended content */
.searresult {
  position: relative;
  overflow: hidden;
  transition: max-height 0.3s ease;
  border-color: gray; 
  border-width: 0.5;
}

.toggleBtn {
  position: absolute;
  bottom: 5px;
  right:10px;
  background-color: white;
  color: #000099;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 0.75rem;
}
.expandDescr{
  color:#FF6700;
  font-size: 0.8rem;
  cursor: pointer;
  font-weight: bold;
}

.searresult:nth-child(even)::before,    /* pseudo-element */
.searresult:nth-child(odd)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background-color: #000099; /* change for odd/even as needed */
}

.searresult:nth-child(even)::before{
background-color: #000099;
}
.searresult:nth-child(odd)::before {
  background-color: #00AAFF;
}

T{
    color: #004040;
    font-weight: bold;
    font-style: oblique;
    display: inline-block;      /* make it a block that flows inline */
    vertical-align: top;        /* align label with top of content */
}
T1{
    color: #004040;
    font-weight: normal;
    text-decoration: underline;
    text-align: left;
    margin-bottom: 10px;
}

/* ///// Grids to manage Photos. */
.gridds {
    display: grid;
    grid-template-rows: auto auto auto auto; /* Let rows size naturally to content */
    /* grid-template-columns: 1fr; */
    /* row-gap: 1rem; optional: better spacing between rows */
}

/* Info Block */
.basicinfo{
    grid-row: 2;
    /* grid-column: 1; */
    height: auto;
    overflow-wrap: break-word; 
    align-self: start; /* Ensures vertical alignment */
}
.basicinfo p{
    padding: 2px;
    margin-bottom: 5px;
}
.bizname {
    grid-row: 1;
    /* grid-column: 1 / span 2; */
    height: auto;
    margin-bottom: 5px;
    overflow-wrap: break-word; 
    align-self: start; /* Ensures vertical alignment */
}

/* Photo Grid (gallery) */
.gallry {
  display: grid;
  grid-template-columns: 1fr auto; /* photos + right arrow column */
  gap: 5px;
  width: 100%;
  grid-row: 3;
  /* grid-column: 1 / span 2; */
  position: relative;
  align-items: center;
}

.gallery-track {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  scroll-behavior: smooth;
  width: 100%;
  height: fit-content; /* fixed photo height */
}

.gallery-track::-webkit-scrollbar {
  height: 6px;
}

.photo-tile {
  flex: 0 0 auto;
  height: 100px;
  border: 0.5px solid gray;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-tile img {
  height: 100%;
  width: auto;         /* proportional width */
  object-fit: contain;
  display: block;
  border-radius: 4px;
}

.gallery-arrows {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self : start;
  gap:5px;
  height: 40px; /* match photo height */
  margin-top: 25px;
}

.gallery-arrow {
  background: none;
  border: none;
  /* font-size: 1.2rem; */
  font-weight: bold;
  cursor: pointer;
  justify-self: center;
  line-height: 1;
  padding: 0;
}

/* Arrow color states */
.gallery-arrow.active {
  color: #000099;
  font-size: 1.2rem;
  margin-left: 4px;
}
.gallery-arrow.inactive {
  color: #00AAFF;
  font-size: 1.2rem;
  margin-left: 4px;
}

/* Description Area */
.bizdescr {
    grid-row: 4;
}

/* Message when no photos are present */
.no-photo {
    grid-column: 1 / span 9;

}
/* /////////////////////////////////////////////////// */
/* Swift-Support ... Corner Button */
.swift-support {
  background: #000099;
  color: white;
  padding: 2px 10px 0 10px;
  font-size: 0.8rem !important;
  cursor: pointer;
  margin:25px 0 -20px 0px;
  justify-self: center;
  border: 1px solid #000099;
  border-radius: 20px 20px 0 0 ;
  z-index: 99;
}

/* Dropdown menu */
.swift-support-menu {
  position: absolute;
  bottom: 100%; /* appear above the button */
  right: 0;
  background: white;
  border: 1px solid #ccc;
  display: none;
  flex-direction: column;
  min-width: 150px;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
  z-index: 10;
}

/* Dropdown items */
.swift-support-menu a {
  padding: 10px;
  text-decoration: none;
  color: #333;
  font-size: 0.75rem;
  transition: background 0.2s;
}

.swift-support-menu a:hover {
  background: #f0f0f0;
}

/* Show dropdown on hover */
.swift-support:hover .swift-support-menu {
  display: flex;
}

/* /////////////////////////////////////////////////// */
/* For Pagination */
.pagination-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  gap: 1rem;
}

.page-button {
  padding: 6px 12px;
  background-color: darkcyan;
  color: navy;
  font-size: small;
  text-decoration: none;
  border-radius: 4px;
}

.page-button:hover {
  background-color: orange;
}

.page-button.disabled {
  background-color: #ccc !important;
  color: #666;
  cursor: not-allowed;
  text-decoration: none;
}

.page-number {
  font-weight: bold;
  font-size: 1.1rem;
}

#per-page-select {
  font-size: 1rem;
  margin-left: -10px;
  border-color: transparent transparent black;
  /* border-radius: 4px; */
  appearance: none;
  color: black;
  width: fit-content;
  cursor: pointer;
}

/* CSS FOR PAID_BIZ DETAILS */
.bizdtlgrid{
    display:grid;
    grid-template-rows: auto auto auto auto; /* Let rows size naturally to content */
}   
.bizdtl_head{
    grid-row: 1;
}   
.bizdtl_dtls{
    grid-row: 2;
    height: auto;
    overflow-wrap: break-word; 
    align-self: start; /* Ensures vertical alignment */    
}   

.bizdtl_galry{
    display: grid;
    gap: 5px;
    width: 100%;
    grid-row: 3;
}  

.bizdtl_expand{
    display: grid;
    gap: 5px;
    width: 100%;
    height: 45px;
    grid-row: 4;
    justify-content: right;
}

/* @media (max-width: 768px) {
  .gallry {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 480px) {
  .gallry {
    grid-template-columns: repeat(2, 1fr);
  }
} */


/* All lazy images start invisible */
.lazy-image {
  opacity: 0;
  transition: opacity 0.5s ease-in; /* Adjust duration & easing as desired */
}

/* Class added when image is loaded */
.lazy-image.loaded {
  opacity: 1;
}
