@font-face {
  font-family: "Raleway";
  src: url("/shared/fonts/Raleway-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* DESIGN TOKENS */
:root {
  --color-navbar: linear-gradient(
    90deg,
    rgba(10, 12, 24, 0.7) 0%,
    rgba(27, 25, 64, 0.7) 100%
  );
  --color-footer: linear-gradient(
    90deg,
    rgba(8, 10, 20, 0.96) 0%,
    rgba(20, 18, 48, 0.96) 100%
  );

  --color-primary: linear-gradient(135deg, #005c97 0%, #363795 100%);
  --color-primary-hover: linear-gradient(135deg, #006cb2 0%, #3f40ab 100%);
  --color-accent: linear-gradient(90deg, #9e4d3f 0%, #540eaa 100%);
  --color-brand: #005c97;
  --color-brand-indigo: #363795;
  --color-brand-soft: rgba(0, 92, 151, 0.08);
  --color-brand-ring: rgba(0, 92, 151, 0.22);
  --color-orange: #ff8a1c;
  --color-orange-hover: #f0790b;
  --color-danger: rgb(214, 62, 39);
  --color-danger-soft: rgba(214, 62, 39, 0.07);

  --color-bg: #f1f3f7;
  --color-surface: #ffffff;
  --color-surface-subtle: #f8fafc;
  --color-input-bg: #f4f6fa;
  --color-border: #e2e7ef;
  --color-border-strong: #cbd4e1;

  --color-text: #1a202c;
  --color-text-secondary: #526072;
  --color-text-muted: #768396;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 28px -6px rgba(15, 23, 42, 0.09), 0 2px 8px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 44px -10px rgba(15, 23, 42, 0.14), 0 6px 16px -4px rgba(15, 23, 42, 0.06);
  --shadow-primary: 0 8px 20px -4px rgba(0, 92, 151, 0.36);
  --shadow-orange: 0 8px 20px -4px rgba(255, 138, 28, 0.38);

  --radius-sm: 7px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
/* END OF DESIGN TOKENS */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* BODY */
body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 16px;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

/* NAVIGATION BAR */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 40;
}

.navbar {
  color: #ffffff;
  background: var(--color-navbar);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 4px 24px rgba(4, 6, 18, 0.28);
  height: 62px;
  padding: 0 48px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  transition: height 280ms ease;
}

.logo {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #ffffff;
  user-select: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: opacity var(--transition), transform var(--transition);
}

.logo div {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

.logo:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.logo:focus-visible,
.navbar ul li a:focus-visible {
  outline: 2px solid #7cc4fa;
  outline-offset: 4px;
  border-radius: 6px;
}

.navbar ul {
  list-style-type: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  margin: 0;
}

.navbar ul li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.navbar ul li a {
  text-decoration: none;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 4px 6px;
  border-radius: 8px;
  transition: color var(--transition), transform var(--transition);
}

.navbar ul li a:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.navbar ul li a:hover .navpara {
  color: #ffffff;
}

.navbar ul li a:hover .addPostIcon {
  background-color: #ffffff;
}

.navbar ul li a ion-icon {
  font-size: 21px;
  margin-bottom: 3px;
}

.addPostIcon {
  width: 19px;
  height: 19px;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 4px;
  margin: 2px 4px 4px 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: background-color var(--transition);
}

.line1,
.line2 {
  background-color: #161830;
  width: 2px;
  height: 10px;
  border-radius: 1px;
  pointer-events: none;
  position: absolute;
}

.line1 {
  transform: rotate(90deg);
}

.navpara {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.78);
  user-select: none;
  transition: color var(--transition);
}
/* END OF NAVIGATION BAR */

/* LAYOUT */
main {
  width: min(1240px, 94%);
  flex: 1;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 24px;
  margin-top: 94px;
  margin-bottom: 56px;
  align-items: start;
}

/* FILTERS SIDEBAR */
.filtersWrapper {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-bottom: 22px;
  height: fit-content;
}

.filtersHeader {
  padding: 0 0 0 22px;
  border-bottom: 1px solid var(--color-border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background-color: var(--color-surface-subtle);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
}

.filtersHeader p {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 18px 0;
  color: var(--color-brand);
  width: 100%;
}

.filtersHeader .filtersDropdownCaret {
  font-size: 20px;
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: 0 20px;
  height: 58px;
  display: none;
  flex-shrink: 0;
  border-left: 1px solid var(--color-border);
}

.filtersBody {
  width: 100%;
  interpolate-size: allow-keywords;
  transition: height 280ms ease, opacity 220ms ease;
}

/* SEGMENTED TYPE SWITCH */
.searchTypeSwitch {
  margin: 16px 16px 18px;
  padding: 4px;
  border-radius: 10px;
  background-color: var(--color-input-bg);
  border: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.searchTypeOption {
  display: block;
  width: 100%;
}

.searchTypeOption:nth-child(1) {
  margin-right: 0;
}

.searchTypeOption input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.searchTypeOption span {
  display: block;
  text-align: center;
  color: var(--color-text-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  font-size: 14px;
  padding: 9px 10px;
  border-radius: 7px;
}

.searchTypeOption span:hover {
  color: var(--color-text);
}

.searchTypeOption input:checked + span {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: var(--shadow-xs);
}

.searchTypeOption input:focus-visible + span {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

/* FILTER INPUTS */
.filtersGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 16px;
  gap: 10px 10px;
}

.inputLabel {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary);
  text-align: left;
  width: 100%;
  grid-column: span 2;
  border-bottom: 1px solid var(--color-border);
  padding-top: 6px;
  padding-bottom: 4px;
  margin-top: 2px;
}

.inputWrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
}

.listWrapper {
  grid-column: span 2;
}

.inputWrapper input {
  width: 100%;
  min-height: 39px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  padding: 8px 11px;
  background-color: var(--color-input-bg);
  color: var(--color-text);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  text-indent: 0;
  transition:
    border-color var(--transition),
    background-color var(--transition),
    box-shadow var(--transition);
}

.inputWrapper input::placeholder {
  color: var(--color-text-muted);
}

.inputWrapper input:hover {
  border-color: var(--color-border-strong);
}

.inputWrapper input:focus {
  outline: none;
  background-color: #ffffff;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px var(--color-brand-ring);
}

.inputWrapper input.validationError {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 3px var(--color-danger-soft);
}

/* DROPDOWNS */
.dropdownWrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}

.dropdown {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
}

.dropdown input {
  flex: 1;
  min-width: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
  cursor: pointer;
}

.dropdown input:focus {
  box-shadow: none;
}

.dropdown:focus-within {
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 3px var(--color-brand-ring);
}

.dropdown:focus-within input,
.dropdown:focus-within .arrowWrapper {
  border-color: var(--color-brand);
  background-color: #ffffff;
}

.dropdown .arrowWrapper {
  width: 36px;
  min-width: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  background-color: var(--color-input-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color var(--transition),
    background-color var(--transition),
    border-radius var(--transition);
}

.dropdown:hover input,
.dropdown:hover .arrowWrapper {
  border-color: var(--color-border-strong);
}

.dropdown .arrowWrapper ion-icon {
  font-size: 17px;
  color: var(--color-text-secondary);
  transition: transform var(--transition), color var(--transition);
}

.dropdown:hover .arrowWrapper ion-icon {
  color: var(--color-brand);
}

.dropdownMenu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 240px;
  background-color: #ffffff;
  border: 1px solid var(--color-border-strong);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  pointer-events: none;
  cursor: pointer;
  opacity: 0;
  box-shadow: var(--shadow-md);
  z-index: 20;
  transition: opacity 180ms ease;
}

.dropdownItem {
  padding: 9px 13px;
  font-size: 14px;
  color: var(--color-text);
  border-bottom: 1px solid #f1f4f9;
  transition: background-color 140ms ease, color 140ms ease;
}

.dropdownItem:hover {
  background-color: var(--color-brand-soft);
  color: var(--color-brand);
}

.dropdownItem:last-child {
  border-bottom: none;
}

.dropdownItem--placeholder,
.pleaseSelectBrand {
  color: var(--color-text-muted);
  cursor: default;
}

.pleaseSelectBrand:hover {
  background-color: transparent;
  color: var(--color-text-muted);
}

/* FILTER ACTIONS */
.searchActions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  margin-top: 22px;
  padding: 0 16px;
  gap: 10px;
}

.moreOptionsButton,
.searchButton {
  padding: 11px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  width: 100%;
  text-align: center;
  color: #ffffff;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.moreOptionsButton {
  background: var(--color-orange);
  box-shadow: var(--shadow-orange);
}

.moreOptionsButton:hover {
  background: var(--color-orange-hover);
  transform: translateY(-1px);
}

.searchButton {
  background: var(--color-primary);
  box-shadow: var(--shadow-primary);
}

.searchButton:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}

.moreOptionsButton:active,
.searchButton:active {
  transform: scale(0.98);
}

/* ADDITIONAL DETAILS IN FILTERS */
.additionalOptions {
  interpolate-size: allow-keywords;
  width: 100%;
  height: 0px;
  transition: height 300ms ease, opacity 220ms ease;
  overflow: hidden;
  padding: 0 16px;
  pointer-events: none;
  opacity: 0;
}

.additionalDetailWrapper {
  width: 100%;
  margin-bottom: 8px;
  interpolate-size: allow-keywords;
}

.additionalDetailWrapper:first-child {
  margin-top: 20px;
}

.additionalDetailWrapper:last-child {
  margin-bottom: 0;
}

.additionalDetailCategory {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  background-color: var(--color-surface-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  padding: 12px 15px;
  border: 1px solid var(--color-border);
  border-radius: 9px;
  width: 100%;
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition);
}

.additionalDetailCategory:hover {
  background-color: #f1f5f9;
  border-color: var(--color-border-strong);
}

.additionalDetailWrapper.expanded .additionalDetailCategory {
  border-bottom: 1px solid var(--color-border);
  border-radius: 9px 9px 0 0;
  background-color: #f1f5f9;
  color: var(--color-brand);
}

.additionalDetailCategory .arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  transition: transform var(--transition);
}

.additionalDetailWrapper.expanded .additionalDetailCategory .arrow {
  transform: rotate(180deg);
}

.additionalDetailCategory .arrow ion-icon {
  font-size: 18px;
  color: var(--color-text-secondary);
}

.additionalDetailContent {
  overflow: hidden;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 9px 9px;
  transition: height 260ms ease, opacity 200ms ease;
  opacity: 0;
  height: 0px;
}

.powertrainRangeInputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--color-border);
}

.powertrainRangeLabel {
  grid-column: span 2;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary);
}

.powertrainRangeLabel:not(:first-child) {
  margin-top: 6px;
}

.additionalDetailOptions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  padding: 14px;
  width: 100%;
}

.additionalDetailOption {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--color-text);
  cursor: pointer;
}

.additionalDetailOption:hover {
  color: var(--color-brand);
}

.additionalDetailOption span {
  user-select: none;
}

.additionalDetailCheckbox {
  width: 16px;
  height: 16px;
  accent-color: var(--color-brand);
  cursor: pointer;
  flex-shrink: 0;
}

.locationSearchContent {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#locationGeocoder {
  display: block;
  width: 100%;
}

.selectedLocationChip[hidden] {
  display: none;
}

.selectedLocationChip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 92, 151, 0.28);
  background-color: var(--color-brand-soft);
  color: var(--color-brand);
  font-size: 13px;
  font-weight: 600;
}

.selectedLocationChip > ion-icon {
  font-size: 15px;
  flex-shrink: 0;
}

.selectedLocationText {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clearLocationButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  border-radius: 50%;
  padding: 2px;
  cursor: pointer;
  transition: color var(--transition), background-color var(--transition);
}

.clearLocationButton:hover {
  color: var(--color-danger);
  background-color: var(--color-danger-soft);
}

.clearLocationButton ion-icon {
  font-size: 16px;
}

/* RESULTS AREA */
.resultsWrapper {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 680px;
  min-width: 0;
  width: 100%;
}

.resultsHeader {
  text-align: left;
  width: 100%;
  min-height: 64px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-secondary);
  background-color: var(--color-surface);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.resultsHeader .numberOfResults {
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-right: 4px;
  background: var(--color-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.resultsHeader .sortButton {
  position: relative;
  height: 40px;
  border-radius: 9px;
  border: 1px solid var(--color-border);
  background-color: var(--color-surface-subtle);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 12px;
  cursor: pointer;
  transition: border-color var(--transition), background-color var(--transition);
}

.resultsHeader .sortButton:hover {
  border-color: var(--color-border-strong);
  background-color: #ffffff;
}

.resultsHeader .sortArrow {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  transition: transform var(--transition);
}

.resultsHeader .sortButton.open .sortArrow {
  transform: rotate(180deg);
}

.resultsHeader .sortButton ul {
  height: 100%;
  list-style-type: none;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding-right: 10px;
  margin-right: 10px;
  border-right: 1px solid var(--color-border);
}

.sortSelectedText {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

/* SORT DROPDOWN MENU */
.resultsHeader .sortDropdownMenu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 215px;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  z-index: 25;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 0px;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: max-height 220ms ease, opacity 180ms ease, transform 180ms ease;
}

.resultsHeader .sortDropdownMenu.open {
  max-height: 320px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.resultsHeader .sortDropdownItem {
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
  text-align: left;
  border-bottom: 1px solid #f1f4f9;
}

.resultsHeader .sortDropdownItem:last-child {
  border-bottom: none;
}

.resultsHeader .sortDropdownItem:hover {
  background-color: var(--color-brand-soft);
  color: var(--color-brand);
}

.resultsHeader .sortDropdownItem.selected {
  font-weight: 600;
  background: var(--color-primary);
  color: #ffffff;
}

/* POSTS STREAM */
.posts {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.skeletonPost {
  width: 100%;
  height: 250px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
  background: linear-gradient(
    90deg,
    #e6eaf1 0%,
    #f3f5f9 45%,
    #e9edf4 55%,
    #e6eaf1 100%
  );
  background-size: 200% 100%;
  animation: skeletonShimmer 1.35s ease-in-out infinite;
}

@keyframes skeletonShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.post {
  height: 258px;
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  cursor: pointer;
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  overflow: hidden;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.post:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 92, 151, 0.28);
}

.post .postImages {
  position: relative;
  overflow: hidden;
  width: 268px;
  height: 100%;
  background-color: #161b29;
}

.post .photoRoll {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.post .photoRoll .postImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
  -webkit-user-drag: none;
}

.post .arrowsWrapper {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  pointer-events: none;
}

.arrowLeftWrapper,
.arrowRightWrapper {
  pointer-events: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  opacity: 0.88;
  transition: transform var(--transition), background-color var(--transition), opacity var(--transition);
}

.arrowLeftWrapper:hover,
.arrowRightWrapper:hover {
  background-color: #ffffff;
  opacity: 1;
  transform: scale(1.08);
}

.arrowLeftWrapper ion-icon,
.arrowRightWrapper ion-icon {
  font-size: 28px;
  color: #1a202c;
}

.post .postInfo {
  padding: 18px 22px;
  border-left: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.post .postInfo h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post .postDetails {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post .postDetails p {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--color-text-secondary);
  background-color: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 3px 10px;
  font-variant-numeric: tabular-nums;
}

.post .postDetails span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-text);
}

.post .middleWrapper {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 8px 0;
  min-width: 0;
}

.post .creatorInfo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 96px;
  flex-shrink: 0;
}

.creatorInfo p {
  font-weight: 600;
  color: var(--color-text-secondary);
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-word;
  width: 100%;
  font-size: 12px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  overflow: hidden;
}

.post .creatorAvatarWrapper {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--color-input-bg);
  border: 2px solid var(--color-border);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 5px;
}

.post .creatorAvatarWrapper .defaultProfilePicture {
  font-size: 22px;
  color: var(--color-text-muted);
}

.post .avatarImage {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
  -webkit-user-drag: none;
}

.post .description {
  flex: 1;
  min-width: 0;
  margin-left: 0;
  border: 1px solid #edf0f6;
  border-radius: 10px;
  padding: 9px 12px;
  background-color: var(--color-surface-subtle);
  overflow: hidden;
}

.post .description p {
  font-size: 13.5px;
  line-height: 1.48;
  color: var(--color-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.post .bottomWrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--color-border);
  padding-top: 10px;
}

.post .price {
  font-size: 21px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--color-brand);
  white-space: nowrap;
}

.post .price span {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--color-text-muted);
}

.post .location {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.post .location .locationText {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post .location ion-icon {
  color: var(--color-brand);
  font-size: 16px;
  flex-shrink: 0;
}

.post .bottomWrapper > p {
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* PAGINATION */
.pagesWrapper {
  width: 100%;
  max-width: 100%;
  background-color: var(--color-surface);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  margin-top: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  padding: 6px 12px;
}

.pageNumbers {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  padding: 4px 2px;
}

.page {
  transition: background-color var(--transition), color var(--transition), transform var(--transition);
  font-size: 14.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-secondary);
  border-radius: 8px;
  min-width: 36px;
  text-align: center;
  padding: 7px 12px;
  cursor: pointer;
}

.page:hover:not(.selectedPage) {
  background-color: var(--color-brand-soft);
  color: var(--color-brand);
}

.selectedPage {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: var(--shadow-primary);
}

/* FOOTER */
footer {
  width: 100%;
  margin-top: auto;
  padding: 3.5rem 2rem 2.75rem;
  background: var(--color-footer);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.08);
}

.footer_nav {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 36px;
  margin-bottom: 2.25rem;
}

.footer-item {
  margin: 0;
}

.footer-link {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
}


.footer__copyright {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}
/* END OF FOOTER */

/* RESPONSIVE */
@media (max-width: 980px) {
  .navbar {
    padding: 0 28px;
  }

  main {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .filtersWrapper {
    width: 100%;
  }

  .filtersGrid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .inputLabel {
    grid-column: span 4;
  }

  .listWrapper {
    grid-column: span 2;
  }

  .searchActions {
    flex-direction: row;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 680px) {
  .filtersGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inputLabel,
  .listWrapper {
    grid-column: span 2;
  }

  .post {
    grid-template-columns: 1fr;
    height: auto;
  }

  .post .postImages {
    width: 100%;
    height: 220px;
  }

  .post .postInfo {
    border-left: none;
    border-top: 1px solid var(--color-border);
    padding: 16px;
    gap: 10px;
  }
}

@media (max-width: 500px) {
  .navbar {
    padding: 0 18px;
  }

  .logo {
    font-size: 18px;
  }

  .navbar ul {
    gap: 16px;
  }

  main {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    margin-top: 82px;
    margin-bottom: 40px;
    width: 100%;
    padding: 0 14px;
    gap: 14px;
  }

  .filtersWrapper {
    margin-bottom: 0;
    padding-bottom: 0;
    width: 100%;
    overflow: hidden;
    interpolate-size: allow-keywords;
    transition: padding-bottom 280ms ease;
  }

  .filtersWrapper.expanded {
    padding-bottom: 20px;
    overflow: visible;
  }

  .filtersHeader {
    border-bottom: none;
    border-radius: var(--radius-lg);
  }

  .filtersWrapper.expanded .filtersHeader {
    border-bottom: 1px solid var(--color-border);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .filtersHeader .filtersDropdownCaret {
    display: block;
    transition: transform var(--transition);
  }

  .filtersWrapper.expanded .filtersDropdownCaret {
    transform: rotate(180deg);
  }

  .filtersBody {
    height: 0px;
    opacity: 0;
    overflow: hidden;
  }

  .filtersWrapper.expanded .filtersBody {
    overflow: visible;
  }

  .searchTypeOption span,
  .inputWrapper input,
  .additionalDetailCategory,
  .additionalDetailOption span,
  .moreOptionsButton,
  .searchButton {
    font-size: 15px;
  }

  .inputWrapper input {
    font-size: 16px;
  }

  .searchActions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: none;
  }

  .resultsWrapper {
    width: 100%;
    min-height: 360px;
  }

  .resultsHeader {
    width: 100%;
    min-height: 56px;
    gap: 10px;
    padding: 8px 14px;
    font-size: 15px;
  }

  .resultsHeader .numberOfResults {
    font-size: 19px;
  }

  .resultsHeader .sortButton {
    height: 38px;
    padding: 0 10px;
  }

  .resultsHeader .sortDropdownItem {
    font-size: 15px;
  }

  .post {
    width: 100%;
    height: auto;
    border-radius: 14px;
  }

  .post:hover {
    transform: none;
  }

  .post .postInfo h3 {
    font-size: 16.5px;
    white-space: normal;
  }

  .post .creatorInfo {
    max-width: 76px;
  }

  .post .description {
    margin-left: 0;
    border: none;
    border-radius: 0;
    padding: 0 0 0 12px;
    background-color: transparent;
    border-left: 2px solid var(--color-border);
  }

  .post .description p {
    font-size: 14px;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .post .bottomWrapper {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .post .price {
    font-size: 20px;
  }

  footer {
    padding: 2.5rem 1.25rem 2rem;
  }

  .footer_nav {
    gap: 12px 20px;
    margin-bottom: 1.75rem;
  }

  .footer-link,
  .footer__copyright {
    font-size: 13.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
