:root {
 --xcol: rgba(253,253,255,1);
 --xsha: #C0C0C0;
 --xhaze: #b0b0b0;
 --xiris: #6A5ACD;
 --xcolr: #ff0000;
 --xcolg: #2E8B57;
 --xcolb: #1E90FF;
 --xcoly: #FFD700;
 --xcolp: #6A5ACD;
 --xcolo: orange;
 
 --xcolbl: #85b3ff; --xcolbd: #0064d4;
 --xcolrl: #ff5858; --xcolrd: #c00;
 --xcolgl: #6aae7d; --xcolgd: #155f36;
 --xcolyl: #ffd180; --xcolyd: #ccac40;

 --xcolcrm: rgba(252,250,250,1);
 --xcoltvs: #551a8b;
 --xcoltra: #0080FF;
 --xcolven:	#B80F0A;
 --xhpk: #FC0FC0;
 --xcash: #3FDF60;
 --xgrdw: linear-gradient(white, rgba(250,250,250,1));

 --xsmaragdine: #4a9976;
 --xfont: Helvetica;
 --xtagfont: Hanken;
 --xsleekfont: futura;
 --xnavh: 60px;
 --xlock: #374b5e;
 --xlockcol: #001f3f;
 --xlockink: #FFF;
 --xgrp0: rgba(240,240,240,0.1);

 --xgrp1: #00BFFF; /*Goods*/
 --xgrp2: #8abd46; /*Food*/
 --xgrp3: #ff525d; /*Services*/
 --xgrp4: #ffb042; /*Classes*/

 --xgrp5: #f7d154; /*Events*/
 --xgrp6: #ef5f33; /*Venues*/
 --xgrp7: #ba23bc; /*Accomodations*/
 --xgrp8: #ba623c; /*Properties*/
 --xgrp9: #1239a3; /*Vehicles*/
 --xgrp10: #1a3b52; /*Gigs*/
 --xgrp11: #5D4037; 
 --xgrp12: #00695C; 
 --xgrp13: #C0CA33; 
 --xgrp14: #455A64; 
 --xgrp15: #C0CA33; 
 --xgrp16: #455A64; 


 --xgrp101: #0080FF;
 --xgrp102: #0080FF;
 --xtrf0: red;
 --xtrf1: #ffcc00;
 --xtrf2: forestgreen;
 --xtrd: #1eafff;
 --xven: #cd071e;


--xacttake: #1c82e0;
--xactgive: #e6ac5c;
--xactapply: #cc5ce6;
--xactbid: #1037ad;
}

/*
const categoryGroupMap = {
	1: {id: 1, title: 'Goods', restrict: 0, startdate: '2026-01-01', col: "#00BFFF"},
	2: {id: 2, title: 'Food', restrict: 1, startdate: '2026-07-25'},
	3: {id: 3, title: 'Services', restrict: 0, startdate: '2026-08-05', col: "crimson"},
	4: {id: 4, title: 'Classes', restrict: 0, startdate: '2026-08-25'},
	5: {id: 5, title: 'Events', restrict: 1, startdate: '2026-08-25'},
	6: {id: 6, title: 'Venues', restrict: 0, startdate: '2026-09-05'},
	7: {id: 7, title: 'Accommodations', restrict: 0, startdate: '2026-09-05'},
	8: {id: 8, title: 'Properties', restrict: 0, startdate: '2026-09-15'},
	9: {id: 9, title: 'Vehicles', restrict: 0, startdate: '2026-10-10'},
	10: {id: 10, title: 'Gigs', restrict: 0, startdate: '2027-03-20'},
	11: {id: 11, title: 'Licenses', restrict: 1, startdate: '2027-01-20'},
	12: {id: 12, title: 'Certifications', restrict: 1, startdate: '2027-01-20'},
	13: {id: 13, title: 'Sponsors', restrict: 1, startdate: '2027-01-20'},
	14: {id: 14, title: 'Tenders', restrict: 1, startdate: '2027-02-20'}
}
*/

.col_r{background: var(--xcolr); color: #FFF;} .col_g{background: var(--xcolg); color: #FFF;} .col_b{background:var(--xcolb); color: #FFF;}.col_y{background: var(--xcoly); color: #FFF;}.col_o{background: orange; color: #FFF;}.col_p{background: var(--xcolp); color: #FFF;}
.ink_r{color: var(--xcolr);} .ink_g{color:seagreen;}.ink_b{color:var(--xcolb);}.ink_y{color: var(--xcoly);}.ink_o{color: orange;}.ink_p{color: var(--xcolp);}.ink_inv{color: transparent; cursor: default;} 
.col_r:hover{background: #333; } .col_g:hover{background: var(--xcoly);} .col_b:hover{background:var(--xcoly); }.col_y:hover{background: var(--xcolb); }.col_o:hover{background: orange; }.col_p:hover{background: var(--xcolp); }


@font-face { font-family: 'freenoto'; src: url('../../fnt/freenoto/freenoto.ttf'); }


/* Base Heading Styles */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    line-height: 1.2;
    margin-bottom: 0.5em;
    font-weight: 700;
}

/* Primary Page Titles */
h1 {
    font-size: 2.25rem;
    letter-spacing: -0.02em;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.3em;
}

/* Section Subtitles */
h2 {
    font-size: 1.75rem;
    margin-top: 1.5em;
}

/* Category-Aware Headers (Using your existing variables) */
h3 {
    font-size: 1.25rem;
    color: var(--xgrp1); /* Default, can be overridden by specific catgrp */
    margin-top: 1.2em;
}

/* Metadata or small labels */
h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
}

/***###PAGE NAVIGATION###***/
#pgs_top {
  position: fixed; /* Keep it at the top */
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: transform 0.3s ease-in-out; /* Smooth slide up/down */
}

.nav-hidden {
  transform: translateY(-100%);
}

#pgs_content {
	padding-top: 52px;
}

#pgs_nav{background: #fcfcfc; height: 50px; border-bottom: solid 2px #ddd; width: 100%;}
.nav_button{display: inline-block; height: 48px; width: 48px; margin: 4px;  transition: background-color 0.2s ease; cursor: pointer; opacity: 0.8; outline: none; border: none; background: transparent;}
a.nav-button, a.facebutton{ text-decoration: none; }
.nav_button:hover{opacity: 1;}
#nav_home{background-image: url("../img/udeal48.png"); height: 48px; width: 48px; background-size: contain; background-repeat: no-repeat; margin: 4px; margin-left: 8px;}
#nav_user_bar{display: inline-block;}
#nav_user{}

nav {
  display: flex;
  align-items: center;   
}

#nav_midspace{
  flex-grow: 1;        /* The "magic" property: tells this div to take up all leftover space */
  display: flex;
  justify-content: space-around; /* Distributes varying options evenly */
  overflow: hidden;    /* Prevents content from breaking the layout */
}

#nav_midspace > div{margin: 4px;}

.group-left {
  flex: 1;          /* Grow to fill 50% of the center */
  display: flex;
  justify-content: flex-start; /* Keeps icons aligned to the left edge */
  gap: 8px;
}

.group-right {
  flex: 2;          /* Grow to fill the other 50% */
  display: flex;
  justify-content: flex-end;   /* Pins icons to the right edge */
  gap: 15px;
  text-align: right;
}

#pgs_base_layer, #strata_base{background: #f0f0f0;}

.pgs_main_content{
	display: none; background-color: #f2f2f2; width: 100%; min-height: 100vh; padding: 20px; contain: content;
	content-visibility: auto;
}

#pgs_search_view{
	display: block;	
}



#pgs_search{
	display: inline-block;
}

.genbox{display: flex; align-items: center; width: 100%;}

#venportal{background-image: url("../img/udealven192.png");}
#link_about{background-image: url("../img/udealven192.png");}
#link_help{background-image: url("../img/udealven192.png");}
#link_contact{background-image: url("../img/udealven192.png");}
#link_feedback{background-image: url("../img/udealven192.png");}
.facebutton{display: inline-block; height: 128px; width: 128px; background-size: contain;}

.listing_grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px; 
    padding:20px;    
    justify-content: center;
	text-align: center;
    width: 100%;
    max-width: 95vw;
    margin: 0 auto;
}

.icon_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px; 
    padding: 20px;
    justify-content: center;
    max-width: 70vw;
    margin: 0 auto;
}

.icon_link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    /* Ensure the link container doesn't collapse */
    min-height: 160px;
}

#search_advanced {
    display: flex;
    flex-direction: column;
	flex-wrap: wrap;
    padding: 20px;
    margin: 12px auto;
    background: #ffffff; /* Cleaner than #f9f9ff */
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* Softer shadow */
    border-radius: 12px;
    max-width: 500px; /* More readable for forms */
    width: 90%;
	font-size: 0.8em;
	contain: content;
}

@media (min-width: 1600px) {
    #search_advanced {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        max-width: 90vw; /* Utilizes more screen real estate */
    }

    /* Keep the header spanning across all columns */
    #search_advanced > div:first-child {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: 20px;
    }
}

@media (min-width: 1080px) and (max-width: 1599px) {
    #search_advanced {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        max-width: 90vw; /* Utilizes more screen real estate */
    }

    /* Keep the header spanning across all columns */
    #search_advanced > div:first-child {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: 20px;
    }
}


.form_field_std {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 15px;
    gap: 15px;
}


.form_field_std label {
    font-weight: 600;
    color: #444;
    min-width: 120px;
}

.form_field_std input, 
.form_field_std select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    flex-grow: 1; /* Inputs fill remaining space */
}

.form_field_std input[type=number]{
	display: inline-flex;
	min-width: 0;
	width: 8ch;
}

.form_field_std input[type=date]{
	display: inline-flex;
	min-width: 0;
	width: 8ch;
}

@media (max-width: 600px) {
    #search_advanced {
        gap: 12px;
        max-width: 94vw; /* Utilizes more screen real estate */
    }
	.form_field_std select {
		max-width: 40vw;
	}
	.field_parent > label{
		max-width: 25ch;
	}
	
}

.flex_split{
	display: flex; gap: 10px; flex-grow: 1;
}

/* Ensure consistent width for inputs */
.fld_20, .fld_30 {
    width: 100%;
    max-width: none;
}

/*########INERT FIELD########*/

select:has(option[value=""]:checked), select:has(option[value="0"]:checked), select:has(option[value="Any"]:checked) {
  background-color: #EBEBEB; /* Muted placeholder color */
  border-color: #e5e7eb;
}

/* Style it normally when a valid option is selected */
#search_advanced select:not(:has(option[value=""]:checked, option[value="0"]:checked, option[value="Any"]:checked)){
  color: #fff; /* Rich text color */
  background-color: var(--xcolb); /* Rich text color */
  font-weight: 600;
  border-color: #2563eb;
}


#frm_search_cattyp_parent:has(#frm_search_cattyp option[value="0"]:checked) + #frm_search_tags_parent,
#frm_search_cattyp_parent:has(#frm_search_cattyp option[value="0"]:checked) + #frm_search_tags_parent + #frm_search_condition_parent 
 {
  display: none;
}

#frm_search_tags_parent{
	padding-bottom: 20px;
}

input[type="time"]{ text-align:center;}
.field_parent.inert input, input.inert{ background-color:#EBEBEB;}

#frm_search_keyword, #frm_search_brand, #frm_listing_keyword, #frm_listing_brand {
    text-transform: uppercase;
}

#strata_popups{
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 79999;
	background: transparent;
}


.invis{
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: transparent;
}


.trigger-link {
            color: #2563eb;
            text-decoration: underline;
            cursor: pointer;
            font-weight: 500;
        }

.compact-popup {
	position: fixed;
	background: #f2f2f2;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	min-width: 160px;
	padding: 4px 0;
	margin: 0;
	list-style: none;
	box-sizing: border-box;
	animation: popupScale 0.12s ease-out;
}

@keyframes popupScale {
	from { opacity: 0; transform: scale(0.95); }
	to { opacity: 1; transform: scale(1); }
}

.compact-popup li a {
	display: block;
	padding: 6px 14px;
	color: #1f2937;
	text-decoration: none;
	font-size: 13px;
	transition: background 0.1s ease;
}

.compact-popup li a:hover {
	background-color: #f3f4f6;
}


#strata_toast{
	position: fixed;
    top: 0; /* Changed from bottom: 0 */
    width: 400px;
    max-width: 100vw;
    height: auto;
    max-height: 100vh;
    pointer-events: none;
    z-index: 99999;
    padding: 24px;
    display: flex;
    /* Column layout ensures newer elements append below the previous ones natively, */
    /* organically sliding historical alerts downward as new ones arrive. */
    flex-direction: column; 
    gap: 12px;
    box-sizing: border-box;
	
	left: 50%;
    transform: translateX(-50%);
    right: auto; /* Clears out the right anchor */
}

/* Base structural footprint for individual toasts */
.accountability-toast {
	pointer-events: auto;
    width: 100%;
    padding: 16px;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    border-left: 4px solid transparent;
    box-sizing: border-box;
	text-align: center;
    
    /* Smooth CSS entrance animations tailored for top entry */
    animation: toastSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: all 0.3s ease;
}

/* Slide animation from the right margin */
@keyframes toastSlideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Fade animation on programmatic removal */
.toast-fade-out {
    opacity: 0 !important;
    transform: scale(0.95);
    margin-bottom: -50px; /* Compresses space gracefully as it drops out */
}



/* UI Lockers & Message Layers */
.overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.85); color: white; display: flex; justify-content: center; align-items: center; font-size: 2rem; z-index: 1000; }

#strata_loader{ position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: rgba(0, 0, 0, 0.65); color: #ffffff; display: flex; justify-content: center; align-items: center; z-index: 99999; pointer-events: all; backdrop-filter: blur(2px); }
.loader-content { display: flex; flex-direction: column; align-items: center; gap: 1rem; font-size: 1.1rem; }
.throbber { width: 48px; height: 48px; border: 4px solid rgba(255, 255, 255, 0.25); border-top-color: #ffffff; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Utility styles */
.hidden { display: none !important; }
.retreat { 
  content-visibility: hidden;
  position: absolute; 
  pointer-events: none; 
  }




.collapsible_container {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.collapsible_trigger {
    width: 100%;
    padding: 15px;
    background: #fdfdfd;
    border: none;
    text-align: left;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.collapsible_content {
    max-height: 0;
    transition: max-height 0.3s ease-out;
    background: white;
}

.content_inner { padding: 15px; }

/* Active state */
.collapsible_trigger[aria-expanded="true"] + .collapsible_content {
    max-height: 500px; /* Adjust based on expected max content */
}

.uppercase { text-transform: uppercase;}
.lowercase{	text-transform: lowercase;}

@media screen and (max-width: 480px) {
	.icon_grid{ grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); max-width: 96vw;}
	.icon_link {min-height:80px;}
}


.act_button {
    display: inline-block;
    font-family: sans-serif; /* Fallback to system sans-serif */
    color: #ffffff;
    font-weight: 600;
    /* Removed redundant outline; using a soft border for structure */
    border: 2px solid rgba(0, 0, 0, 0.1); 
    padding: 2px 12px; /* Dynamic sizing based on text */
    font-size: 0.8em;
    border-radius: 6px;
    background-color:  var(--xacttake);
    cursor: pointer;
    text-decoration: none;
	text-transform: uppercase;
    text-align: center;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Subtle depth */
}

.act_button:hover {
    background-color: #1c82e0; /* Slightly darker shade */
    box-shadow: 0 4px 8px rgba(0,0,0,0.15); /* More 'lift' on hover */
    transform: translateY(-1px); /* Physical reaction to click */
}

.act_button:active {
    transform: translateY(0); /* 'Depress' the button when clicked */
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.card_lst_parent[data-lsttyp="2"] .act_button,
.card_lst_parent[data-lsttyp="5"] .act_button,
.card_lst_parent[data-lsttyp="7"] .act_button { background-color: var(--xactgive);}
.card_lst_parent[data-lsttyp="8"] .act_button,
.card_lst_parent[data-lsttyp="9"] .act_button,
.card_lst_parent[data-lsttyp="10"] .act_button,
.card_lst_parent[data-lsttyp="11"] .act_button { background-color:  var(--xactapply);}
.card_lst_parent[data-lsttyp="12"] .act_button { background-color:  var(--xactbid);}


/*PROMO*/
.card_lst_parent[data-lsttyp="3"] .act_button { background-color:  #ff0000; }
.card_lst_parent[data-lsttyp="300"] .price_tag, .promotag {
	font-size: 0.7em;
	font-weight: 700;
      color: #ffffff;
      background: #ff0000;
      border: 2px solid #FFFF00;
      padding: 0.1em 1ch;
      border-radius: 6px;
      display: inline-block;
      box-shadow: 0 0px 8px #ffff00;
	  min-width: 100px;
    }
.card_lst_parent[data-lsttyp="3"] .card_lst_title_bar{
	background: linear-gradient(60deg, #ff0000 63%, #ffffff 64%, var(--base-color) 67.5%);
/*	background: linear-gradient(180deg, var(--base-color) 80%, #ff0000 85%);*/
}

/*const listingMap = {
	1: {id: 1, title: 'Offerings', restrict: 0, startdate: '2026-01-01', verb: 'Buy'},
	2: {id: 2, title: 'Bounties', restrict: 0, startdate: '2026-01-01', verb: 'Offer'},
	3: {id: 3, title: 'Promos', restrict: 1, startdate: '2026-08-15', verb: 'Buy'},
	4: {id: 4, title: 'Lost', restrict: 0, startdate: '2026-09-25', verb: 'Claim'},
	5: {id: 5, title: 'Found', restrict: 0, startdate: '2026-09-25', verb: 'Return'},
	6: {id: 6, title: 'Freebies', restrict: 0, startdate: '2027-01-20', verb: 'Claim'},
	7: {id: 7, title: 'Goodwill', restrict: 1, startdate: '2027-01-20', verb: 'Donate'},
	8: {id: 8, title: 'Authorizations', restrict: 0, startdate: '2027-02-20', verb: 'Apply'},
	9: {id: 9, title: 'Sponsors', restrict: 0, startdate: '2027-02-20', verb: 'Apply'},
	10: {id: 10, title: 'Gigs', restrict: 0, startdate: '2027-03-20', verb: 'Apply'},
	11: {id: 11, title: 'Private', restrict: 1, startdate: '2027-02-20', verb: 'Buy'},
	12: {id: 12, title: 'Auction', restrict: 1, startdate: '2027-02-20', verb: 'Bid'}
}
*/

/* 1. The Transition Definition */
.transition-smooth {
    /* Apply to opacity and transform for best performance */
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Ensure the hardware acceleration is active */
    will-change: transform, opacity;
}

.transition-fast {
    /* Apply to opacity and transform for best performance */
    transition: opacity 0.1s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.1s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Ensure the hardware acceleration is active */
    will-change: transform, opacity;
}

/* 2. The "Off" State (Hidden) */
.state-hidden {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
    pointer-events: none;
}

/* 3. The "On" State (Visible) */
.state-visible {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

.card_lst {
    min-width: 320px;
    max-width: 480px;
	margin: 0;
    background: #ffffff;
	contain: content;
    border-radius: 8px; /* Soften the look */
    overflow: hidden;   /* Keep the inner content inside the radius */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* Subtle depth */
    transition: transform 0.2s; /* Professional feel */
	padding-bottom: 4px;
	justify-self: stretch;
}

.card_lst:hover {
    transform: translateY(-2px); /* Add a 'lift' on hover */
}

.card_lst_min{
	display: none;	
}

.card_lst_max{
}

.card_lst_title_bar{
	position: relative;
	display: block;            
    width: 100%;             
	padding: 6px 1ch;
	color: #fff;
	background: var(--xgrp1);
	font-weight: 600;
	line-height: 1.3;
	text-align: left;
}

.card_lst[data-catgrp="1"] .card_lst_title_bar{--base-color: var(--xgrp1); background-color: var(--base-color);}
.card_lst[data-catgrp="2"] .card_lst_title_bar{--base-color: var(--xgrp2); background-color: var(--base-color);}
.card_lst[data-catgrp="3"] .card_lst_title_bar{--base-color: var(--xgrp3); background-color: var(--base-color);}
.card_lst[data-catgrp="4"] .card_lst_title_bar{--base-color: var(--xgrp4); background-color: var(--base-color);}
.card_lst[data-catgrp="5"] .card_lst_title_bar{--base-color: var(--xgrp5); background-color: var(--base-color);}
.card_lst[data-catgrp="6"] .card_lst_title_bar{--base-color: var(--xgrp6); background-color: var(--base-color);}
.card_lst[data-catgrp="7"] .card_lst_title_bar{--base-color: var(--xgrp7); background-color: var(--base-color);}
.card_lst[data-catgrp="8"] .card_lst_title_bar{--base-color: var(--xgrp8); background-color: var(--base-color);}
.card_lst[data-catgrp="9"] .card_lst_title_bar{--base-color: var(--xgrp9); background-color: var(--base-color);}
.card_lst[data-catgrp="10"] .card_lst_title_bar{--base-color: var(--xgrp10); background-color: var(--base-color);}
.card_lst[data-catgrp="11"] .card_lst_title_bar{--base-color: var(--xgrp11); background-color: var(--base-color);}
.card_lst[data-catgrp="12"] .card_lst_title_bar{--base-color: var(--xgrp12); background-color: var(--base-color);}
.card_lst[data-catgrp="13"] .card_lst_title_bar{--base-color: var(--xgrp13); background-color: var(--base-color);}
.card_lst[data-catgrp="14"] .card_lst_title_bar{--base-color: var(--xgrp14); background-color: var(--base-color);}
.card_lst[data-catgrp="15"] .card_lst_title_bar{--base-color: var(--xgrp15); background-color: var(--base-color);}
.card_lst[data-catgrp="16"] .card_lst_title_bar{--base-color: var(--xgrp16); background-color: var(--base-color);}

.card_lst_code{
	font-family: Courier New;
	margin: auto 0.5ch;
}

.card_lst_contents{
	display: flex;
	flex-direction: row;
	  align-items: flex-start;
	  gap: 2px; /* Adjust spacing between image and tags as needed */
	  width: 100%;
    margin-top: 0;              /* Ensure no negative margin pulls it up */
    clear: both;
	}



.card_lst_imagebox{
	flex: 0 0 160px; /* Do not grow, do not shrink, lock at 160px */
	width: 160px;
	height: 160px;
}

.card_lst_imagebox > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card_lst_tags{
	flex: 1 1 auto; /* Take up all remaining space */
	min-width: 0;   /* Prevents flex items from overflowing parent bounds */
	display: flex;
	flex-wrap: wrap; /* Allows inner spans to flow into multiple lines */
	gap: 1ch;        /* Spacing between individual tag spans */
	padding: 4px;
}

.stag_grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr); 
      gap: 12px;
      padding: 20px;
      border-top: 1px solid var(--border-color);
      background-color: #fafbfc;
    }

.card_lst_tags > span, .stag{
	display: flex;
	align-items: center;
    justify-content: center;
	font-family: Helvetica;
	font-weight: 600;
	min-width: 6ch;
	border-radius: 5px;
	text-align: center;
	padding: 4px 8px;  
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    box-sizing: border-box;
	font-size: 0.75em;
}

.stag_grid .stag{
    height: 100%;
	font-size: 0.9em;
    cursor: pointer;
	background-color: var(--bubble-grey);
    color: #4b5563;
}

.card_lst_price{
	display: flex;
	flex-wrap: nowrap;   
}

.price_big{
	font-family: Georgia, "Times New Roman", Times, serif;
	font-weight: 600;
	font-size: 2em;
	display: inline-block;
	text-align:center;
	width: 160px;
}

.policy_tags{
	display: flex;
	flex-wrap: nowrap;
	flex-grow: 1;
	font-size: 0.9em;
	align-items: flex-end;
	justify-content: flex-end;
	text-align: right;
	padding: 2px 1ch;
}

.checkbox-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
	
.stag:hover {
      background-color: var(--bubble-grey-hover);
      transform: translateY(-1px);
}
	
/* Bubble State (Checked / Blue) */
.checkbox-item input[type="checkbox"]:checked + .stag {
  background-color: var(--bubble-blue);
  color: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
  transform: translateY(0);
}

/* Transparent styling for disabled visual states */
.checkbox-item input[type="checkbox"]:disabled + .stag {
  opacity: 0.4;
  cursor: not-allowed;
}


.card_lst_tags > span{
	color: #374151;
	background-color: #f3f4f6;
	border: solid 1px #c5c7cb;
}

span.colcat{color: #fff; text-transform:capitalize; background-color: var(--xgrp1);}
.card_lst[data-catgrp="1"] .card_lst_tags > span.colcat{background-color: var(--xgrp1);}
.card_lst[data-catgrp="2"] .card_lst_tags > span.colcat{background-color: var(--xgrp2);}
.card_lst[data-catgrp="3"] .card_lst_tags > span.colcat{background-color: var(--xgrp3);}
.card_lst[data-catgrp="4"] .card_lst_tags > span.colcat{background-color: var(--xgrp4);}
.card_lst[data-catgrp="5"] .card_lst_tags > span.colcat{background-color: var(--xgrp5);}
.card_lst[data-catgrp="6"] .card_lst_tags > span.colcat{background-color: var(--xgrp6);}
.card_lst[data-catgrp="7"] .card_lst_tags > span.colcat{background-color: var(--xgrp7);}
.card_lst[data-catgrp="8"] .card_lst_tags > span.colcat{background-color: var(--xgrp8);}
.card_lst[data-catgrp="9"] .card_lst_tags > span.colcat{background-color: var(--xgrp9);}
.card_lst[data-catgrp="10"] .card_lst_tags > span.colcat{background-color: var(--xgrp10);}
.card_lst[data-catgrp="11"] .card_lst_tags > span.colcat{background-color: var(--xgrp11);}
.card_lst[data-catgrp="12"] .card_lst_tags > span.colcat{background-color: var(--xgrp12);}
.card_lst[data-catgrp="13"] .card_lst_tags > span.colcat{background-color: var(--xgrp13);}
.card_lst[data-catgrp="14"] .card_lst_tags > span.colcat{background-color: var(--xgrp14);}
.card_lst[data-catgrp="15"] .card_lst_tags > span.colcat{background-color: var(--xgrp15);}
.card_lst[data-catgrp="16"] .card_lst_tags > span.colcat{background-color: var(--xgrp16);}

span.demo{background-color: #a687f5; color: #fff; border-radius: 20px; border: none;}
span.demo[data-bit="0"]{background-color: #02A4F7;}
span.demo[data-bit="1"]{background-color: #F15D98;}


.card_lst_seller, .card_lst_sale{
	display: flex;
    justify-content: space-between; 
    flex-direction: row;    
    align-items: center; 
	padding: 2px 1ch;
    width: 100%;
}

.card_lst_properties{
	display: none;
}

.card_lst_desc{
	padding: 0.5ch;

}

.card_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;    
    max-width: 1600px;
    padding: 8px;
	justify-content: center;
	margin: auto;
	justify-items: stretch;
}

.search_results{
}

.search_results .card_lst_sale, .search_results .card_lst_desc, .search_results .card_lst_code{
	display: none;
}

@media (max-width: 600px) {
	body{
		font-size: 0.9rem;
	}
	.card_grid {
		gap: 8px;    
		width: 100%;
		padding: 12px 0px;
		margin: 0px auto;
	}
	
	.card_lst_imagebox{
		flex: 0 0 120px;
		width: 120px;
		height: 120px;
	}
	
	.price_big{
	font-size: 1.6em;
	width: 100px;
	}
	
	.card_lst{
	display: block;
	margin: 0px 0px;
	min-width: 0;      /* Removes the 320px floor so sub-320px screens don't overflow */
    max-width: 100%;
	font-size: 0.8em;
	}
	
	.pgs_main_content{
		padding: 12px 0px;
	}
	
	
	.card_lst_contents{
		gap: 2px;
	}

	.card_lst_tags{
		padding: 0.5ch;
	}

	
	.card_lst_tags > span, .stag{
	padding: 0.5px 0.3ch;
	min-width: 5ch;
	font-size: 0.8em;
	margin: 0.2ch;
	border-radius: 6px;
	}
	
	.card_lst_seller, .card_lst_sale{
	font-size: 0.8em;
	}
}

@media (max-width: 400px) {
	body{
		font-size: 0.9rem;
	}
	.card_grid {
		grid-template-columns: 1fr;
		gap: 8px;    
		width: 100%;
		padding: 12px 0px;
		margin: 0px auto;
	}

	.price_big{
	font-size: 1.6em;
	width: 100px;
	}
	
	.card_lst{
	display: block;
	margin: 0px 0px;
	min-width: 0;      /* Removes the 320px floor so sub-320px screens don't overflow */
    max-width: 100%;
	font-size: 0.8em;
	}
	

	
	.card_lst_tags > span, .stag{
	padding: 0.5px 0.3ch;
	min-width: 5ch;
	font-size: 0.8em;
	margin: 0;
	border-radius: 6px;
	}

}



/* ==========================================
   MINIMAL LIST VIEW MODE (.card_grid.minimal)
   ========================================== */

/* 1. Toggle structural view containers */
.card_grid.minimal .card_lst_max {
  content-visibility: hidden;
  position: absolute;
  pointer-events: none;
}

.card_grid.minimal .card_lst_min {
  content-visibility: visible;
  position: static;
  pointer-events: auto;
  
  display: flex;
  align-items: center;
  padding: 6px 12px;
  gap: 12px;
  width: 100%;
  font-size: 0.85em;
  box-sizing: border-box;
}

/* Default hidden state for .card_lst_min outside minimal mode */
.card_lst_min {
  content-visibility: hidden;
  position: absolute;
  pointer-events: none;
}

/* 2. Container and Striping Reset */
.card_grid.minimal {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}

.card_grid.minimal .card_lst {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.15s ease;
}

.card_grid.minimal .card_lst:first-child {
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.card_grid.minimal .card_lst:last-child {
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  border-bottom: none;
}

.card_grid.minimal .card_lst:nth-child(odd) { background-color: #ffffff; }
.card_grid.minimal .card_lst:nth-child(even) { background-color: #f8fafc; }
.card_grid.minimal .card_lst:hover { background-color: #f1f5f9; transform: none; }

/* 3. Rigid Structural Column Alignment for Minimal Mode */

/* Icon Slot: Fixed width column */
.card_lst_min .card_lst_icon {
  flex: 0 0 24px;
  text-align: center;
  color: #6b7280;
  font-size: 0.9em;
}

/* Item Code: Fixed width monospaced column */
.card_lst_min .card_lst_code {
  flex: 0 0 110px;
  font-family: 'Courier New', monospace;
  font-weight: 600;
  color: #4b5563;
  letter-spacing: -0.2px;
}

/* Title: Flexible middle column, absorbs leftover space */
.card_lst_min .card_lst_title {
  flex: 1 1 auto;
  min-width: 0; /* Ensures text-overflow ellipsis activates */
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 8px;
}

/* Price Slot: Fixed right-aligned column */
.card_lst_min .card_lst_price {
  flex: 0 0 80px;
  text-align: right;
  font-family: Georgia, serif;
  font-weight: 700;
  color: #111827;
  padding-right: 4px;
}

/* 4. Action Button Standardization */

/* Action Slot Wrapper: Fixed width right-anchored slot */
.card_lst_min .card_lst_visit,
.card_lst_min .card_lst_add {
  flex: 0 0 72px;
  display: flex;
  justify-content: flex-end;
}

/* Standardized Button Width inside List Rows */
.card_lst_min .act_button {
  width: 72px;
  padding: 3px 0;
  text-align: center;
  box-sizing: border-box;
  font-size: 0.8em;
}

/* Hide empty action slots so space isn't wasted if neither action is rendered */
.card_lst_min .card_lst_visit:empty,
.card_lst_min .card_lst_add:empty {
  display: none !important;
}

/* 5. Mobile Adjustments for Minimal View */
@media (max-width: 480px) {
  .card_grid.minimal .card_lst_min {
    padding: 6px 8px;
    gap: 8px;
  }

  /* Hide secondary identifiers on narrow mobile viewports */
  .card_grid.minimal .card_lst_code,
  .card_grid.minimal .card_lst_icon {
    display: none;
  }

  .card_lst_min .card_lst_price {
    flex: 0 0 65px;
  }

  .card_lst_min .card_lst_visit,
  .card_lst_min .card_lst_add {
    flex: 0 0 60px;
  }

  .card_lst_min .act_button {
    width: 60px;
  }
}


.minimal .card_lst_min .card_lst_title{
	width: 40vw;
}


#pgs_search_view .lst_cart_adder{
	display: none;
}

#pgs_store_view{
	text-align: center;
}

#pgs_store_view_shopspace{
	display: flex;
	text-align: center;
	justify-content: center;
}
#pgs_store_view_shopspace .card_lst.card_str{
	min-width: 70vw;
}

#pgs_store_view_listings{
	margin: 40px auto;
}

#pgs_store_view .lst_visit, #pgs_storefront_view .lst_visit{
	display: none;
}

#search_bar{
	max-width: 70vw;
	margin: 20px auto;
}

.alignRead {
  /* Restricts line length to ~65 characters regardless of font size */
  max-width: 100ch; 
  
  /* Keeps the article centered on large screens */
  margin-left: auto;
  margin-right: auto;
  
  /* Prevents edge clipping on mobile screens */
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  
  /* Comfortable line spacing for long reading */
  line-height: 1.6;
}




/* 1. Unify the Search Box */
.search-box {
    display: flex;
    align-items: stretch; /* Ensures height consistency */
    border: 2px solid #ced4da;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s;
	
}

.search-box:focus-within {
    border-color: #007bff;
}

/* 2. Style the Select to match the input */
#frm_search_searchtype, #frm_search_sorttype {
    border: none;
    border-right: 1px solid #ced4da;
    padding: 0 15px;
    background: #f8f9fa;
    cursor: pointer;
	font-size: 0.8em;
    font-weight: 500;
	width: 14ch;
	text-align:center;
}

@media (max-width: 600px){
	#search_bar{
		max-width: 90vw;
	}

	#frm_search_searchtype, #frm_search_sorttype {
		width: 11ch;
		padding: 0 8px;
	}
}

/* 3. Ensure Input takes remaining space */
.search-input {
    flex-grow: 1;
    border: none;
    padding: 12px;
    outline: none;
}

/* 4. Button styling */
.search-submit-action {
    background: #007bff;
    color: white;
    border: none;
    padding: 0 20px;
    cursor: pointer;
}


.search-icon svg, .voice-icon svg {
  width: 20px;
  height: 20px;
}

/* Button Layout */
.button-group {
	padding-top: 18px;
	display: flex;
	justify-content: center;
	align-items: center; /* Ensures proper vertical baseline alignment across wrapped rows */
	row-gap: 8px;        /* Tightens vertical space between rows */
	column-gap: 8px;
	flex-wrap: wrap;
	gap: 12px;
    margin-top: 10px;
}

.button-group > .btn{
    margin-top: 0px;
}

.btn {
	
  background-color: #f8f9fa;
  border: 1px solid #f8f9fa;
  border-radius: 4px;
  color: #3c4043;
  font-family: arial, sans-serif;
  font-size: 0.85rem;
  margin: 11px 4px;
  padding: 0 16px;
  line-height: 27px;
  height: 36px;
  min-width: 54px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
	transition: background 0.2s;
	
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.btn:hover {
  box-shadow: 0 1px 1px rgba(0,0,0,0.1);
  background-image: -webkit-linear-gradient(top,#f8f8f8,#f1f1f1);
  background-color: #f8f8f8;
  border: 1px solid #c6c6c6;
  color: #222;
}

@media screen and (max-width: 600px) {
	.btn{
		font-size: 0.7rem;
		line-height: 14px;
		padding: 2px 2px;
		word-break: break-all;
	}
}

/* Desktop Specific Adjustments */
@media screen and (min-width: 768px) {
  .main-wrapper {
    margin-top: 20vh;
  }
}

.nav-search-icon {
  display: block;
  width: 20px;
  height: 20px;
  background-image: var(--icon-search-flipped);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Specific styling for the button inside the search bar */
.search-submit-action {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.search-submit-action:hover {
  background-color: rgba(66, 133, 244, 0.05); /* Very light blue tint on hover */
}


#udeal_splash {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: freenoto, Roboto, Arial;
  padding-top: 60px;
}

#udeal_splash_icon {
  width: 120px; /* Adjust based on your logo size */
  height: auto;
  margin-bottom: 20px;
  
  /* Floating Animation */
	animation: slowRotate 180s linear infinite;
  
  /* Ensures the rotation is centered correctly */
  transform-origin: center;
  /* Helps keep the image crisp during rotation in some browsers */
  backface-visibility: hidden;
}

#udeal_name {
  display: block;
  font-size: 2.5rem;
  color: #555;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

#udeal_caption {
  display: block;
  font-size: 1rem;
  color: #5f6368;
  font-style: italic;
  text-align: center;
  max-width: 80%; /* Prevents text from hitting edges on mobile */
  font-family: Arial;
}

#ad_banner_top{
	display:none;
}

#ad_banner_foot{
	display:none;
}

.ad_spot{
	display:none;
}

.sub_nav {
	display: flex;
    background: #ffffff;
    padding: 10px 20px;
    border-bottom: 2px solid #eee;
	margin: auto;
    margin-bottom: 20px;
	text-align:center;
	max-width: 70vw;
	align-items: center;
	justify-content: center;
}

.sub_nav_list {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
	align-items: center;
}

.sub_nav_list a {
    text-decoration: none;
    color: #666;
    font-weight: 600;
    font-family: sans-serif;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

/* Hover State */
.sub_nav_list a:hover {
    background-color: #f0f0f0;
    color: #333;
}

/* Active State - Matches Category Accent */
.sub_nav[data-catgrp="2"] .sub_nav_list a.active {
    background-color: var(--xgrp2);
    color: white;
}


@keyframes slowRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

