:root {
    --mag-color: #bdbdbd;
    --overlay-color: #232a31;
    --x-color: #bdbdbd; 
    --noDeal-bxshad: none;
    --bg-ohno: rgba(0,0,0,0.8);
    --cat-bg: #121212; 
    --deal-bodyBg: #141414; 
    --clickableText-color: #d1d7e2; 
    --clickableText-color2: #ececec; 
    --border-ListView: 1px solid #6e6e6e; 
    --deals-mainBackground: #0f0f0f; 
    --bg-forSwitchView: #070707; 
    --searchbar-color: white; 
    --bord-categories: 1px solid #6e6e6e;
    --changeLocationAreaBg: #232a31; 
    --stickyNav-bg: #232a31; 
}

.dark-mode {
    --mag-color: #1d1d1d;
    --overlay-color: rgba(255, 255, 255, 1);
    --x-color: #848484; 
    --noDeal-bxshad: 0 4px 6px rgba(0, 0, 0, 0.1);
    --bg-ohno: #ffffff; 
    --cat-bg: #fefefe; 
    --deal-bodyBg: white;
    --clickableText-color: #007dbd; 
    --clickableText-color2: #007dbd; 
    --border-ListView: 1px solid rgba(0, 0, 0, 0.1);
    --deals-mainBackground: #ffffff; 
    --bg-forSwitchView: #ffffff; 
    --searchbar-color: black; 
    --bord-categories: 1px solid rgba(0, 0, 0, 0.2);
    --changeLocationAreaBg: #edf0f7; 
    --stickyNav-bg: #ffffff; 
}

body {
    background-color: var(--deals-mainBackground);
}

body h1 {
    font-size: 1rem; 
    font-weight: 600;  
    color: var(--text-whiteBlack); 
    line-height: 1;
}

.deal_pt1 {
    padding-top: 0.85rem;
}

.deal_pt05 {
    padding-top: 0.25rem; 
}

.deal_mt05 {
    margin-top: 0.25rem; 
}

.deal_fw600 {
    font-weight: 400;
}

h2 {
    padding-top: 0rem; 
}

.flex-end {
    justify-content: flex-end; 
}

.deals_mainContainer {
    max-width: 1232px;
    margin: 0 auto;
}

.deals_secondContainer {
    display: grid;
    grid-template-columns: 1fr; 
}

.searchContainer {
    background-color: var(--searchBar-bg); 
    height: 2.3rem; 
    display: flex; 
    align-items: center; 
    width: 100%; 
    border-radius: 20px; 
}

.searchContainer input {
    color:  var(--searchbar-color); 
    font-weight: 400; 
}

input:-webkit-autofill {
    background-color: var(--locationButt-white) !important;
    color:  var(--searchBar-color) !important;
    font-family:'Poppins'; 
}

input:-webkit-autofill::first-line {
    background-color: var(--locationButt-white) !important;
    font-family:'Poppins'; 
    color:  var(--searchBar-color) !important; 
}


input:-internal-autofill-selected {
    background-color: var(--searchBar-bg) !important;
    color:  var(--searchbar-color) !important;
    font-family: 'Poppins'; 
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active{
    -webkit-background-clip: text;
    -webkit-text-fill-color:  var(--searchbar-color) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.sBarBg {
    font-family: 'Inter'; 
    border: none; 
    outline: none; 
    width: 100%; 
    padding: 0.2rem 0.20rem 0.285rem 0.20rem; 
    border-radius: 20px; 
    font-size: 1rem; 
    background-color: var(--searchBar-bg);
    letter-spacing: 0.1px;  
}

.sBarBg::placeholder {
    color: var(--dark-text); 
    font-family: 'Inter'; 
    font-weight: 400; 
    font-size: 0.9rem; 
    letter-spacing: 0.1px; 
}

.popularCategories {
    font-weight: 800; 
    font-size: 0.875rem;
    margin-left: 0.35rem; 
    color: var(--dark-text); 
    margin-top: 1rem;
    font-family: 'Inter';
}

.headerSearchMagnifyButton {
    background: transparent;
    border: none;
    padding: 0.45rem 0.4rem 0.375rem 0.45rem;
    border-radius: 100%;
}

.searchBarCloseButt {
    border-radius: 50%; 
    width: 2.45rem; 
    height: 2.0rem; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    margin-left: 0.25rem; 
    margin-right: 0.2rem; 
}

.close-button {
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    padding: 0;
    color: var(--x-color);
    line-height: 1;
    margin-left: 0.45rem;
    margin-right: 0.8rem;
}

.scrollLeft2 {
    position: absolute;
    top: 13.2%;
    left: -2px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 400;
    background: transparent;
    border: none;
    cursor: pointer;
    opacity: 0.8; 
    padding: 0.15rem; 
    transition: opacity 0.33s ease-in-out; 
}

.scrollLeft2:hover {
    opacity: 1; 
}

.scrollRight2 {
    position: absolute;
    top: 13.2%;
    right: -2px;
    background: none;
    border: none;
    color: var(--text-whiteBlack);
    cursor: pointer;
    background-color: var(--body-bg);
    z-index: 400;
    background: transparent;
    border: none;
    cursor: pointer;
    opacity: 0.8; 
    padding:0.15rem; 
    transition: opacity 0.33s ease-in-out; 
}

.scrollRight2:hover {
    opacity: 1; 
}

.carouselWrapper {
    width: 100%;
    overflow: hidden;           
    position: relative;         
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.carousel {
    display: flex;             
    flex-wrap: nowrap;          
    height: 3.25rem;            
    overflow-x: auto;           
    -webkit-overflow-scrolling: touch;  
    scroll-behavior: smooth;    
    cursor: grab; 
    display: flex; 
    align-items:center;
}

.carousel button {
    position: relative;
    font-family: 'Inter'; 
    flex-shrink: 0;             
    margin-right: 0.85rem;        
    white-space: nowrap;
    border: none; 
    outline: none; 
    background: var(--cat-bg); 
    color: var(--dark-text); 
    border-radius: 20px; 
    font-weight: 500;
    font-size: 0.9rem;
    border:  var(--bord-searchBar); 
    padding-top: 0.325rem;
    padding-bottom: 0.325rem;
    cursor: grab; 
    user-select: none;         
    transition: font-size 0.3s ease, text-decoration-color 0.3s ease, color 0.3s ease; /* Transition font-size along with color and underline */
}

.carousel button.active {
    color: var(--dark-text); 
    text-decoration: underline; 
    text-decoration-color: var(--dark-text); 
    font-size: 1rem; 
    font-weight: 600; 
}

.carousel::-webkit-scrollbar {
    display: none;             
}

.carousel button:last-child {
    margin-right: 35px; 
}

.items-align {
    align-items: center; 
}

.p1r5r1r5r {
    padding: 1.5rem 1.5rem 1.25rem 1.5rem;
    justify-content: center; 
}

@media screen and (max-width: 768px) {
    .p1r5r1r5r {
        padding: 1rem 1.25rem 0rem 1.25rem; 
    }
}
 
.sortFormContainer {
    display:flex; 
}
 
 #sortForm {
    display: flex; 
    flex-direction: column; 
    border:none; 
    outline:none; 
    margin-left: 1.05rem; 
}
 
#sortForm label {
    padding-bottom: 0.1rem; 
    color: var(--light-grey-text); 
    border-radius: 5px; 
    font-size: 1rem; 
}
 
#sortOptions {
    border: none; 
    outline:none; 
    width: fit-content; 
    padding-top: 0.2rem; 
    padding-bottom: 0.2rem; 
    margin-top: 0.125rem; 
    margin-bottom: 1rem; 
    background-color: var(--body-bg); 
    color: var(--text-whiteBlack); 
    border-radius: 5px; 
    font-size: 0.95rem;
}

#sortOptions option {
    padding: .25rem; 
}

.dealsFeaturedContainer .dealsH {
    opacity: 1; 
    transition: opacity 0.22s ease-in-out; 
}

.dealsFeaturedContainer .dealsH:hover {
    opacity: 0.8; 
}

 
.deal_card_container {
    position: relative; 
    border-radius:10px; 
    display: flex;
    flex-direction: column; 
    height: 100%; 
    box-shadow: none; 
    cursor:pointer; 
}

.dark-mode .deal_card_container {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); 
}

.deal_card_container::after {
    content: ''; 
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--overlay-color); 
    pointer-events: none; 
    z-index: -1; 
    border-radius: 10px;
  }

.coupon_mileAway {
    font-size: 0.875rem; 
    font-weight: 400; 
    color:var(--grey-text);
    line-height: 1;
    padding-top: 0.25rem; 
    padding-left: 0.5rem; 
}

.main_coupon_description {
    position: relative; 
    flex-grow: 1; 
    padding-left: 0.5rem; 
    padding-right: 0.5rem;
    padding-top: 0.5rem; 
    display: flex;
    flex-direction: column; 
    justify-content: space-between; 
}

.listViewDealsLarge .main_coupon_description {
    padding-top: 0rem;
}

.coupon_address {
    line-height: 1.3; 
    font-size: 0.75rem !important;
    font-weight: 400;
    color: var(--dark-text);
    display: -webkit-box;
    -webkit-line-clamp: 1; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis; 
    font-family: 'Inter'; 
}

.deals_topCats {
    display: flex; 
    justify-content: space-around; 
}

.deals_topCats a {
    font-weight: 400; 
    font-size: 0.875rem; 
    color: var(--light-grey-text); 
}

.coupon_dealType {
    width: fit-content; 
    background-color: transparent; 
    color:var(--grey-text);
    font-weight: 400; 
    line-height: 0; 
    font-size: 0.75rem; 
    padding: 0.6rem 0.4rem 0rem 0.55rem;
    margin-bottom: 1.25rem; 
    border-bottom-left-radius: 10px;
    font-family: 'Inter'; 
}

.coupon_dealType2 {
    width: fit-content; 
    color:var(--light-grey-text);
    font-weight: 400; 
    line-height: 0; 
    font-size: 0.875rem; 
    padding: 1rem 0.4rem 0rem 0rem;
    margin-bottom: 0.5rem; 
    border-bottom-left-radius: 10px;
    position: absolute;
    bottom: 0;  
    font-family: 'Inter'; 
}

.playingWithMobile img {
    display: flex; 
    opacity: 1; 
    cursor:pointer; 
    transition: opacity 0.33s ease-in-out; 
}

.playingWithMobile img:hover {
    opacity: 0.6;
}

.deal_card_mediaLayout {
    display: flex; 
    flex-direction: column; 
    flex-grow: 0; 
}

.coupon_businessName {
    font-size: 0.95rem; 
    color:var(--dark-text); 
    padding-left: 0.5rem; 
    padding-top:0.5rem;
    font-weight: 400;  
    font-family: 'Inter'; 
    letter-spacing: 0.1px; 
}
 
.coupon_detail_description {
    font-size: 1rem; 
    font-weight: 800; 
    color: var(--text-whiteBlack);
    opacity: 1; 
    transition: text-decoration 0.32s ease-in-out; 
}

.coupon_detail_description:hover {
    text-decoration: underline; 
}

.space-between {
    justify-content: space-around; 
}

.header_content {
    padding-top: 0rem; 
}

hr {
    height: 0.175rem;
    border: none;  
    background-color: var(--text-whiteBlack);   
}

.buttContainer {
    background-color: var(--bg-sectionDealsPage); 
    padding-bottom: 1rem; 
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    padding-top: 2rem; 
}

.buttContainer button:nth-child(2),
.buttContainer button:nth-child(3) {
   margin-left:1rem; 
}
 
.viewDealButton2  {
    cursor: pointer;
    border: none; 
    background: var(--bg-slateButton); 
    color: var(--text-justWhite); 
    min-width: 8rem;  
    font-weight: 600; 
    font-size: 1.1rem;
    padding-top: 0.65rem; 
    padding-bottom: 0.65rem; 
    opacity: 1; 
    transition: opacity .33s ease-in-out; 
    border-radius: 20px; 
}
 
.viewDealButton:hover {
    opacity: 0.6; 
}

.coupon_hours {
    font-size: 1rem; 
}

.plIcon {
    padding-left: 0.5rem; 
}

.f1rem {
    font-size: 1rem; 
}

.dealsShareContainer {
    outline: none;
    border: none;
    background-color: transparent;
}   

.dealListHeart {
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    padding: 0.4rem 0.4rem 0rem 0.4rem;
}

.deal_card_leftImage {
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio (9/16 = 0.5625) */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px 10px 0px 0px;
    position: relative; 
}

.dealListHeart svg {
    width: 24px; 
    height: 22px; 
    color: #1881d9; 
}

.likeBtn {
    opacity: 1;  
    background: white;
    height: 1.75rem;
    width: 1.75rem;   
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius:50%; 
    padding: 0; 
    cursor: pointer;
    transition: opacity 0.22s ease-in-out; 
}

.likeBtn svg path {
    transition: all 0.2s ease-in-out;
}

.likeBtn:hover {
    opacity: 0.8; 
}

.deal_errorMessage {
    color: var(--grey-text); 
    font-size: 1rem; 
    font-weight: 600; 
}

.deals-container {
    display: grid; 
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem; 
    padding: 1.5rem 1.5rem 1.25rem 1.5rem;
    margin-top: 1.3rem;
}

.padSignInbottom {
    padding-bottom: 0.5rem; 
}

.padSignInTop {
    padding-top: 0.5rem; 
}

.deals_sortingBarMain {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-top: 3.75rem; 
}

.deals_sortingBarSecond {
    margin-top: 0.3rem;
    padding: 0.5rem 0.5rem 3rem 0.5rem;
    background-color: var(--dealCard-bg); 
    border-radius: 10px;  
    z-index: 1000;  
    font-size: 0.875rem; 
}

.sorting-option2 {
    display: flex; 
    flex-direction: column; 
    padding-bottom: 1rem; 
}

.sorting-option {
    display: flex; 
    flex-direction: column; 
    padding-bottom: 1rem; 
}

.deals_sortingBarSecond p {
    color: var(--dark-text); 
    font-size: 0.875rem; 
}

.refineDealsP {
    font-size: 1rem; 
}

.deals_sortingBarSecond label {
    color: var(--refine-text);  
    display: flex; 
    align-items: center;   
    padding-top: 0.25rem;  
    font-size: 0.75rem; 
    transition: color 0.1s ease-in-out; 
}

.deals_sortingBarSecond label:hover {
    color: var(--dark-text);  
    display: flex; 
    align-items: center;   
}

input[type="radio"] {
    appearance: none; 
    width: 0.75rem; 
    height: 0.75rem;
    margin-right: 0.5rem;
    margin-bottom:0.2rem;
    border: 2px solid #86868b; 
    border-radius: 8px; 
    background-color: transparent; 
    position: relative;
    cursor: pointer;
    box-sizing: border-box;
}

input[type="radio"]:checked {
    background-color: var(--light-grey-text);
    border-color: var(--light-grey-text); 
}

#businessTypeSearch {
    background-color: var(--searchBar-bg);
    color: var(--text-whiteBlack);
    border: none;
    outline: none;
    padding: 0.20rem 0.5rem 0.2rem 0.5rem; 
    border-radius: 16px;
    font-size: 0.9rem;
    border: 2px solid rgba(112, 116, 125, 0.5);
}

.deal_notFoundContainer {
    z-index: 1899;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 400px; 
    min-height: 600px;
    box-sizing: border-box;
}

.deals_loading {
    color: #155a8a; 
    font-size: 1.25rem;
    font-weight: 600; 
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

.spinner {
    border: 6px solid var(--dealCard-bg);  
    border-top: 6px solid #1a8cd8;   
    border-radius: 50%;                           
    width: 40px;                                 
    height: 40px;                               
    animation: spin 1s linear infinite;            
}

/* Spinner spinning animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    display: none; 
    z-index: 1000; 
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.shareBtn {
    cursor: pointer; 
}

.deals_description_text {
   font-weight: 500;
    font-size: 1rem;
    line-height: 1.3;
    min-height: calc(2 * 1.3em);
    -webkit-line-clamp: 2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow-wrap: anywhere;
    margin-top: 0.4rem;
}

.deals_like_card {
    position: absolute; 
    top:0.15rem;
    right:0.25rem;
    background:transparent; 
}

.deals_backToList {
    color: var(--grey-text); 
}

.deals_share_svg {
    width: 1.75rem; 
}

#locationButton {
    font-family: 'Poppins'; 
    cursor: pointer;
    outline: none;
    position: relative;
    background: transparent;
    color: var(--text-whiteBlack);
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    opacity: 1;
    transition: opacity 0.26s ease-in-out;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 115px; 
    max-width: 165px; 
    display: inline-block;
    line-height: 1.1; 
    font-weight: 800; 
}

#changeLocationModal {
    display: none;
  }

#changeLocationModal.open {
   display: block;  
}
  
#arrowAfterLocate {
    content: '';
    margin-right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--text-whiteBlack);
    transition: transform 0.3s ease;
}
  

#arrowAfterLocate.rotated {
transform: translateY(-50%) rotate(180deg);
}
  
#locationButton:hover {
    opacity: 0.6; 
}

.listViewGrid {
    display: grid; grid-template-columns: 225px 1fr; 
}

.listViewDealsLarge {
    border-bottom:  var(--border-ListView);
    border-top: var(--border-ListView);
    padding-top: 1rem; 
    padding-bottom: 1rem;
    cursor:pointer;
}

.listViewImage .deal_card_leftImage {
    border-radius: 10px 10px 10px 10px; 
    padding-top: 64%; 
}

.listViewShortText {
    max-width: 800px; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
    text-overflow: ellipsis;
    opacity: 1; 
}

.listViewShortText p:hover {
    text-decoration: underline;
}

.view-toggle-buttons {
    margin-left: 2rem;
    display: flex; 
    margin-right: 2.5rem;
}

.viewToggleBtn {
    margin-left: 1.25rem; 
    margin-top: 1rem;
    background:var(--deals-mainBackground); 
    color: var(--clickableText-color); 
    border: none; 
    outline:none;
    font-size: 0.925rem; 
    opacity: 1; 
    transition: opacity 0.3s ease-in-out; 
    font-family:'Poppins'; 
    border-radius: 1rem; 
    padding: 0.6rem 0.75rem; 
    line-height: 1; 
    position: relative; 
    cursor: pointer; 
    font-weight: 500; 
}

.viewToggleBtn:hover {
    opacity: 0.7;
}

#dealsLocationHeader {
    color: var(--dark-text); 
    font-weight: 700;
    font-size: 1.4rem; 
}

.view-btn {
    border-radius: 3px;
    outline: none;
    opacity: 1; 
    transition: opacity 0.22s ease-in-out;  
    outline: none;
    border: 1px solid black;
}

.view-btn {
  padding: 3.5px; 
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #f8f8f8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px; 
  height: 26px; 
  box-sizing: border-box; 
}

.view-btn:hover {
    opacity: 0.6; 
}

.view-btn.grid-btn.active svg path {
  fill: #007dbd !important; 
}

.view-btn.list-btn.active svg path {
  stroke: #007dbd !important; 
}

.view-btn.grid-btn:not(.active) svg path {
  fill:  #000000 !important; 
}

.view-btn.list-btn:not(.active) svg path {
  stroke: #000000 !important; 
}

.hotDealsInCity {
    margin-left: 2.5rem;
    margin-top: 1.25rem; 
    margin-bottom: 0.75rem;
}

.postDealFromMessage {
    border: none; 
    outline: none; 
    font-size: 1rem;
    font-weight: 600;
    width: 11rem;
    padding-top: 0.725rem;
    padding-bottom: 0.65rem;
    background:var(--all-buttons);
    color: var(--navbar-txt);
    border-radius: 1.2rem;
    opacity: 1;
    transition: opacity 0.28s ease-in-out;
    cursor: pointer;
    line-height: 1;
    font-family: 'Inter';
    display: block; 
    margin-left: auto;
    margin-right: auto;
    margin-top: 1.5rem; 
}

.list-deals-container {
    margin-top: 1.15rem;
}

.hotDealsInCity {
  color: var(--dark-text); font-weight: 700; font-size: 1.45rem;
}

.suggestions-container {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--body-bg2);
  border: 1px solid var(--border-color, #ccc);
  border-radius: 4px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: none;
}

.suggestions-container.visible {
  display: block;
}

.suggestion-item {
  padding: 8px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--dark-text);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.suggestion-item:hover {
  background-color: var(--bg-hover, #f0f0f0);
}

.gridDealButton, .listLargeDealButton, .listSmallDealButton {
    border: 1px solid;
    outline: none;
    background-color: var(--bg-confirmButt);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--signInButton-text);
    border-radius: 50%;
    padding: 0.1rem 0.1rem;
}

.listShareLinkContainer {
    position: absolute; 
    bottom: 0; 
}

#confirmLocationBtn {
    border: 1px solid;
    outline: none;
    background-color: var(--bg-confirmButt);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--signInButton-text);
    border-radius: 6px;
    width: 100px;
    padding: 0.4rem 0.5rem;
}

.location-section button.location-btn {
    max-width: 300px;
    padding: 0.4rem 0.5rem 0.45rem 0.5rem;
}

@media screen and (max-width: 474px) {
    .deals-container {
        padding: 0rem 2.25rem 1.25rem 2.25rem; 
    }
}

@media screen and (min-width: 475px) and (max-width: 591px) {
    .deals-container {
        padding: 0rem 2.20rem 1.25rem 2.20rem; 
    }
}

@media screen and (min-width: 591px) and (max-width: 769px) {
    .viewToggleBtn {
        margin-left: 0.7rem; 
    }
}

@media screen and (max-width: 591px) {
     .shareBtn svg {
        width: 1.55rem; 
        height: 1.55rem; 
    }
    
    .listViewDealsSmall .main_coupon_description {
        padding-top: 1rem;
    }
    

    .listViewDealsSmall .coupon_detail_description {
        padding-top: 0.75rem;
    }

    .list_coupon_businessName {
        padding-top: 0.5rem;
    }

    .main_coupon_description {
        padding-top: 0rem;
    }

    .coupon_detail_description {
        line-height: 1.3; 
        min-height: 2.2rem;
        font-size: 1rem; 
    }

    .deals_description_text {
        min-height: 2.5rem; 
    }

    .deals-container {
        padding-top: 0rem;
        gap: 2rem 0.85rem;
    }

    .likeBtn{
        width: 1.5rem;
        height: 1.5rem; 
    }

    .deals_share_svg {
        width: 1.65rem; 
    }

    .coupon_dealType {
        padding-top: 0.75rem;
        
    }

    .listViewDealsLarge {
        display: none; 
    }

    .listViewDealsSmall {
        display: block; 
    }

    .deal_notFoundContainer {
        width: 90%; 
    }

    .list-deals-container {
        display: grid; 
        padding: 0rem 2rem 0rem 2rem; 
        gap: 2rem; 
    }

    .list-deals-container article .coupon_detail_description {
        padding-left: 0.5rem;
    }

    .viewToggleBtn {
        margin-top: -0.6rem;
        margin-left: 0.6rem;
    }

    .deals-container {
        margin-top: 0.75rem; 
    }

    #confirmLocationBtn {
        padding: 0.4rem 0.5rem;
    }

    .location-section button.location-btn {
        padding: 0.4rem 0.5rem;
    }
}

@media screen and (min-width:592px) {
    .listViewDealsSmall {
        display: none; 
    }
    
    .listViewDealsLarge {
        display: block; 
    }

    .list-deals-container {
        padding-left: 2rem; 
        padding-right: 2rem; 
    }

    .viewToggleBtn {
        margin-top: 0rem;
    }

    .listLargeDealButton {
        padding: 0rem 0rem; 
    }

    .deals-container .dealsShareContainer {
        padding-left: 0.75rem;
    }
}

@media screen and (max-width: 625px) {
    .sortFormContainer {
        justify-content: center; 
    }

    #sortForm {
        margin-left: 0rem;
    }

    .deals_sortingBarMain {
        display: none; 
    }
}
 
@media screen and (max-width:750px) {
    .buttContainer {
        flex-direction: column; 
        align-items: center; 
    }

    .buttContainer button:nth-child(2),
    .buttContainer button:nth-child(3) {
        margin-left:0rem; 
        margin-top: 1.25rem; 
    }

    .coupon_meat_content {
        padding: 0rem 1rem 0rem 1rem; 
    }

    .viewDealButton2 {
        min-width: 10rem; 
        padding-top:0.5rem; 
        padding-bottom: 0.5rem; 
    }

    .coupon_meat_content {
        padding-top: 1rem; 
    }

    .distanceHolder {
        padding-top: 2rem; 
    }
}

@media screen and (max-width: 560px) {
    .deal_card_leftImage {
        padding-top: 60%; 
       
    }

    .listViewGrid {
        display: grid; grid-template-columns: 100px 1fr; 
    }

    .listViewImage {
        display: flex; 
        align-items:center; 
    }

    .coupon_dealType2 {
        margin-bottom: 1rem; 
    }
}

@media screen and (min-width: 630px) and (max-width: 768px) {
    .deals-container {
        padding: 0.25rem 1.5rem 3rem 1.5rem;
        gap: 3rem;
    }
}

@media screen and (max-width: 768px) {
    .searchBarCloseButt {
        width: 2.4rem; 
        height: 1.8rem; 
        margin-right: 0.22rem; 
    }

    .deals_loading {
        font-size: 0.85rem; 
    }

    .carousel button {
        font-size: 0.875rem;
        padding-top: 0.35rem;
        padding-bottom: 0.32rem;
        padding-right: 0.65rem;
        padding-left: 0.65rem;
        border: var(--bord-searchBar); 
    }

    .carousel button.active {
        font-size: 0.95rem;
        padding-top: 0.325rem;
        padding-bottom: 0.325rem;
    }

    #locationButton {
        font-size: 1rem; 
        min-width: 0px; 
        padding-right: 0.45rem;
    }

    #arrowAfterLocate {
        margin-right: 0.75rem;
    }

    #dealsLocationHeader {
        font-size: 1.25rem; 
        
    }

    .popularCategories {
        margin-top: 4.2rem; 
        margin-left: 1rem; 
    }

    .hotDealsInCity {
        font-size: 1.25rem; 
    }
}

@media screen and (max-width: 576px) {
    .searchContainer {
        width: 100%; 
    }


    .coupon_businessName {
        font-size: 0.8rem; 
        -webkit-line-clamp: 1;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
    }
}

@media screen and (min-width: 578px) and (max-width: 768px) {
    .searchContainer {
        width: 500px; 
    }
}

@media screen and (max-width: 768px) {
    .sBarBg {
        font-size: 0.9rem;
    }

    .searchContainer {
        height: 2.15rem;
        border: none; 
        border-radius: 20px;  
    }

    .carousel {
        height: 2.75rem;
    }
}

@media screen and (min-width: 769px) {
    .deals-container {
        padding: 0rem 1.5rem 3rem 1.5rem; 
        grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
        gap: 3rem; 
    }

    .searchContainer {
        width: 18rem; 
    }

    .p1r5r1r5r {
        display: none; 
    }

    .carouselWrapper {
        padding-top: 0rem; 
    }

    .carousel button {
        line-height: 1; 
        padding-top: 0.5rem; 
        padding-bottom: 0.5rem;
        padding-left: 0.65rem; 
        padding-right: 0.65rem;
    }

    .carousel button::after {
        content: ''; 
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--overlay-color); 
        pointer-events: none; 
        z-index: -1; 
        border-radius: 20px;
    }

    #viewToggleBtn {
       margin-left: 1.85rem; 
    }
}

@media screen and (max-width: 768px) {
    .deals_sortingBarMain {
        display: none; 
    }

    .deals_secondContainer {
        grid-template-columns: 1fr; 
        padding:0; 
    }

    .popularCategories {
        display: none; 
    }

    .carouselWrapper {
        margin: 3.25rem auto 0rem auto; 
    }
}


@media screen and (min-width: 1161px) {
    .deals-container {
        padding: 0.75rem 4rem 3rem 4rem; 
    }
}

@media screen and (min-width: 1125px) {
    .searchContainer {
        max-width: 50rem; 
        width: 35rem; 
    }

    .deals-container {
        grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
        gap: 3.5rem 5rem; 
    }
}

@media screen and (min-width: 769px) and (max-width: 1549px) {
    .popularCategories {
        margin-left: 2.1rem; 
    }
}

@media screen and (min-width: 300px) and (max-width: 350px) {
    .carouselWrapper {
        max-width: 19.625rem;  
    }
}

@media screen and (min-width: 351px) and (max-width: 399px) {
    .carouselWrapper {
        max-width: 22rem; 
    }
}

@media screen and (min-width: 400px) and (max-width: 449px) {
    .carouselWrapper {
        max-width: 22.625rem;  
    }
}

@media screen and (min-width: 450px) and (max-width: 499px) {
    .carouselWrapper {
        max-width: 24.625rem; 
    }
}

@media screen and (min-width: 500px) and (max-width: 549px) {
    .carouselWrapper {
        max-width: 27.5rem;  
    }
}

@media screen and (min-width: 550px) and (max-width: 599px) {
    .carouselWrapper {
        max-width: 30rem;  
    }
}

@media screen and (min-width: 600px) and (max-width: 649px) {
    .carouselWrapper {
        max-width: 32.6rem;  
    }
}

@media screen and (min-width: 650px) and (max-width: 699px) {
    .carouselWrapper {
        max-width: 36.625rem;  
    }
}

@media screen and (min-width: 700px) and (max-width: 749px) {
    .carouselWrapper {
        max-width: 40.125rem;  
    }
}

@media screen and (min-width: 750px) and (max-width: 799px) {
    .carouselWrapper {
        max-width: 43rem;  
    }
}
@media screen and (min-width: 800px) and (max-width: 849px) {
    .carouselWrapper {
        max-width: 46rem;  
    }
}
@media screen and (min-width: 850px) and (max-width: 899px) {
    .carouselWrapper {
        max-width: 49rem;  
    }
}
@media screen and (min-width: 900px) and (max-width: 949px) {
    .carouselWrapper {
        max-width: 52rem;  
    }
}
@media screen and (min-width: 950px) and (max-width: 999px) {
    .carouselWrapper {
        max-width: 55rem;  
    }
}
@media screen and (min-width: 1000px) and (max-width: 1099px) {
    .carouselWrapper {
        max-width: 58rem;  
    }
}

@media screen and (min-width: 1100px) and (max-width: 1199px) {
    .carouselWrapper {
        max-width: 63rem;  
    }
}

@media screen and (min-width: 1199px) and (max-width: 1299px) {
    .carouselWrapper {
        max-width: 66rem;  
    }
}

@media screen and (min-width: 1200px) {
    .carouselWrapper {
        max-width: 66.5rem;  
    }
}

@media screen and (min-width: 1550px) {
    .carouselWrapper {
        max-width: 1400px;  
    }
}

@media screen and (min-width: 1200px) {
    .deals_share_svg {
        width: 1.75rem; 
    }
}

@media screen and (min-width: 1550px) {
    .deals_mainContainer {
        max-width: 1350px;
    }

    .deals-container {
        grid-template-columns: repeat(auto-fill, minmax(290px, 335px));
        justify-content: center; 
        margin-top: 0.5rem;
    }
}

@media screen and (min-width: 1161px) {
    #viewToggleBtn {
        margin-bottom: 0rem; 
    }
}

@media screen and (max-width: 591px) {
    .deals-container {
        display: grid; 
        grid-template-columns: 1fr;
    }

    .view-toggle-buttons {
        display: none;
    }

    .list-deals-container .deal_card_footer {
        display: flex;
        align-items: center;
        margin-top: 0.45rem;
        margin-left: 0.5rem;
        margin-bottom: 0.65rem;
        justify-content: flex-end;
    }

    .list-deals-container .dealsShareContainer {
        padding-left: 0.75rem;
        padding-top: 0.1rem;
    }

    .deals-container .dealsShareContainer {
        padding-left: 0.75rem;
        padding-top: 0.1rem;
    }
}

