/*
Theme Name: SF Art Map
Theme URI: https://artmapsf.com
Description: A custom WordPress theme for mapping public art in San Francisco
Version: 1.0.0
Author: Michael Divine
*/
/************************************ Variables & Color Palette ************************************/
:root {
    --primary-red: #CE292C;
    --light-red:#fef2f2;
    --dark-red: #971B1D;
    --orange: #ff7100;
    --yellow: #ffcf00;
    --light-green:#d4edda;
    --green: #28a745;
    --dark-green: #155724;
    --accent: #00a8ff;
    --blue: #0036ff;
    --purple: #8400ff;
    --violet: #843ab4;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --mid-gray: #999999;
    --dark-gray: #434343;
    --text-color: #2c2c2c;
    --white: #ffffff;
    --border-radius: 4px;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --header-h-desktop: 56px;
     --header-h-mobile: 48px;
     --transition: 200ms linear all;
     --border:1px solid var(--light-gray);
}


/************************************ Base Styles ************************************/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-color);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3 {
  font-family: "Roboto Condensed", sans-serif;
  font-weight: bold;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/************************************ Artwork Labels ************************************/
span[type="mural"], div[type="mural"] { 
  background: var(--green) !important
}
span[type="sculpture"], div[type="sculpture"] {
   background: var(--blue) !important
}
span[type="installation"], div[type="installation"] {
   background: var(--orange) !important
}
span[type="painting"], div[type="painting"] {
   background: var(--violet) !important
}
/************************************ Links and Buttons ************************************/
a {
  text-decoration: none;
  color: var(--primary-red);
  transition: var(--transition);
}
a:hover {
  color: var(--accent);
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  width: auto
}
.button-secondary {
  background-color: white;
  color: var(--primary-red);
  border: 1px solid var(--primary-red);
  padding: 10px 20px;
  border-radius: var(--border-radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.button-secondary:hover {
  background-color: var(--primary-red);
  color: white;
}

.button-primary, .wpcf7-form input[type="submit"] {
  background-color: var(--primary-red) !important;
  color: white !important;
  border: none !important;
  padding: 15px 40px !important;
  border-radius: var(--border-radius) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
  width: auto
}

.button-primary:hover {
  background-color: var(--dark-red);
  color: white
}

/************************************ Forms ************************************/
.wpcf7 {
  max-width: 100%;
  margin: 40px auto;
}

.wpcf7-form, .artwork-submission-form {
  background: var(--white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}
.form-field, .wpcf7-form p {
  margin-bottom: 24px;
}
.wpcf7-form label, .form-field label, .auth-form-container label, .settings-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-color);
  font-size: 14px;
}
.wpcf7-form input, .wpcf7-form textarea, .wpcf7-form select, .form-field select, .form-field textarea, input, textarea, select
{
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--medium-gray);
  border-radius: var(--border-radius);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.3s ease;
  background-color: var(--white);
}
.wpcf7-form select, select, .form-field select {
  background: var(--light-gray);
  
  color: var(--mid-gray);
  padding: 11px 40px 11px 16px;
  cursor: pointer;
  appearance: none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23848484' d='m7 10l5 5l5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0px center;
  min-width: 160px;
  transition: border-color 0.2s;
}
.wpcf7-form .name-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.wpcf7-form input:focus, .wpcf7-form textarea:focus, .wpcf7-form select:focus, textarea:focus, input:focus{
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(200, 69, 69, 0.1);
}
.wpcf7-form textarea, .form-field textarea , textarea {
  resize: vertical;
  min-height: 120px;
}
input[type="submit"]:hover {
  background-color: var(--dark-red);
}
.wpcf7-not-valid-tip {
  color: #d63031;
  font-size: 13px;
  margin-top: 5px;
  display: block;
}
.wpcf7-form input.wpcf7-not-valid,
.wpcf7-form textarea.wpcf7-not-valid {
  border-color: #d63031;
}
.wpcf7-response-output {
  margin: 20px 0 0;
  padding:20px;
  border-radius: var(--border-radius);
  font-size: 14px;
}
.wpcf7-mail-sent-ok {    border: var(--green) .5px solid;
  background: var(--light-green);
  padding: 20px;
}
.wpcf7 form.sent .wpcf7-response-output {   
  border: var(--green) .5px solid;
  background: var(--light-green);
  padding: 20px;
}
.wpcf7-mail-sent-ng, .wpcf7-aborted {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: var(--dark-red);
}
.wpcf7-spam-blocked,
.wpcf7-validation-errors {
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  color: var(--orange);
}
.wpcf7-spinner {
  margin-left: 15px;
}
.char-counter {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}
.char-counter.over-limit {
  color: var(--primary-red);
  font-weight: 600;
}
.radio-group {
  display: flex;
  align-items: start;
  flex-direction: column;
  gap: 8px;
  padding: 12px 0
}
.radio-group label {
  font-weight: normal;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
input[type="checkbox"], input[type="radio"] {
  width: 32px;
}
.form-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 15px;
}
.artists-section, .location-section, .images-section {
  margin-bottom: 30px;
  padding: 20px;
  background-color: var(--light-gray);
  border-radius: var(--border-radius);
}
.artists-section h3, .location-section h3, .images-section h3 {
  font-size: 18px;
  margin-bottom: 20px;
}
.artist-field-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
  padding: 15px;
  background: white;
  border-radius: var(--border-radius);
}
.field-note {
  font-size: 13px;
  color: #666;
  margin-top: 8px;
}
.form-actions {
  margin-top: 30px;
  text-align: center;
}
.error-message {
  color: var(--primary-red) ;
  font-size: 13px;
  display: block;
  margin-top: 5px;
}
.field-error {
  border-color: var(--primary-red) !important;
}
.image-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 15px;
}
.preview-item {
  text-align: center;
}
.preview-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--border-radius);
  border: 2px solid var(--medium-gray);
}
.preview-name {
  display: block;
  font-size: 12px;
  color: var(--medium-gray);
  margin-top: 5px;
  word-break: break-word;
}
.registration-consent-group {
    margin: 20px 0;
    padding: 15px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    border: 1px solid var(--medium-gray);
}

.consent-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.consent-checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    cursor: pointer;
}

.consent-checkbox-wrapper label {
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-color);
}

.consent-checkbox-wrapper label a {
    font-weight: 700;
    text-decoration: underline;
    color: var(--primary-red);
}

.consent-checkbox-wrapper label a:hover {
    color: var(--dark-red);
}
.modal-content {
  position: relative;
  border-radius: 4px;
  background: white;
  padding: 36px;
  width: 100%;
  max-width: 480px;
  margin: 0 12px
}
.close-modal {
  position: absolute;
  top: 0;
  right: 0;
  width: 36px;
  height: 36px;
  padding: 4px;
}
.modal-content .wpcf7-form {
  padding: 0;
  box-shadow: none
}
.modal-content h2 {
  margin-bottom: 20px;
}
.sfam-modal {
    display: none; /* Starts hidden */
    position: fixed;
    z-index: 999999;
    left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
}

.sfam-modal.active {
    display: flex !important; /* Forces it to show */
}

body.modal-open {
    overflow: hidden; /* Prevents the background from scrolling */
}
.sf-hp {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
    opacity: 0;
}
.cf7-cf-turnstile {
    display: none;
}
/************************************ Header ************************************/
.site-header {
  background: var(--mid-gray);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  height:var(--header-h-desktop);
  background: linear-gradient(90deg,rgba(131, 58, 180, 1) 0%, rgba(253, 29, 29, 1) 50%, rgba(252, 176, 69, 1) 100%);
  box-shadow: var(--box-shadow);
}
.header-container {
  max-width: 1920px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 12px;
  position: relative;
  overflow: hidden;
  height:calc(var(--header-h-desktop) + 1px);
}
.site-logo a {
  background: url(https://artmapsf.com/images/artmapsf.png) no-repeat bottom left;
  width: 296px;
  height: var(--header-h-desktop);
  display: block;
  background-size: contain;
  position: absolute;
  top: 0px;
  left: 4px;
  text-indent: -100000px;
  background-size: 92%;
}
.main-navigation .nav-menu {
  display: flex;
  justify-content: end;
  list-style: none;
  height:var(--header-h-desktop);
  margin: 0;
  position: absolute;
  right: 82px;
  bottom: 1px;
}

.main-navigation .nav-menu li {
  margin: 0;
  padding: 0;
} 
.main-navigation .nav-menu li a {
  display: block;
  height:var(--header-h-desktop);
  line-height: var(--header-h-desktop);
  font-size: 16px;
  font-weight: 500;
  padding: 0px 16px 5px;
  font-family: "Roboto Condensed", sans-serif;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
  margin: 0;
  color: #fff;
  transition:var(--transition)
}
.main-navigation .nav-menu li a:hover {
  background: rgba(255, 255, 255, .2);
}
.nav-menu li.current_page_item a {
  border-bottom: var(--white) 4px solid;
}
.mobile-menu-toggle, .mobile-menu-overlay, .mobile-menu-panel {
  display: none;
}

/* Header User Login */
.header-user-actions {
  position: absolute;
  top: 27px;
  right: 20px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  z-index: 100;
}
.header-login-link {
  font-family: "Roboto Condensed", sans-serif;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.2s ease;
  font-style: italic
}
.header-login-link:hover {
    color: var(--primary-red);
}
.header-avatar-wrapper {
  width: 64px;
  height: 64px;
  top: 60px;
  right: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--white);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.header-avatar-img, .header-avatar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-avatar-link:hover .header-avatar-wrapper {
    transform: scale(1.05);
    border-color: var(--primary-red);
}
/* Dropdown Container */
.header-user-dropdown {
    position: relative;
    padding: 10px 0; /* Creates a hover bridge so menu doesn't flicker close */
}

.header-avatar-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-color);
}

.header-avatar-wrapper {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--transition);
}

.header-avatar-trigger:hover .header-avatar-wrapper {
    border-color: var(--primary-red);
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    opacity: 0.6;
}

/* The Menu Itself */
.header-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 180px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    list-style: none;
    padding: 8px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
}

/* Show menu on hover */
.header-user-dropdown:hover .header-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-user-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}
.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: var(--light-gray, #f5f5f5);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  color: #999;
  transition: background 0.18s, color 0.18s;
}

.account-tab.active .tab-count, .header-dropdown-menu li a:hover .tab-count {
  background: #fde8e8;
  color: var(--primary-red, #CE292C);
}
/* Menu Items */
.header-dropdown-menu li a {
    display: flex;
    gap: 8px;
    justify-content:start;
    align-items: center;
    padding: 10px 20px;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--text-color);
    text-decoration: none;
    transition: background 0.2s;
}

.header-dropdown-menu li a:hover {
    background: var(--light-gray);
    color: var(--primary-red);
}

.menu-divider {
    height: 1px;
    background: var(--medium-gray);
    margin: 4px 0;
}

.logout-link {
    color: #888 !important;
}
.page-template-template-account .header-avatar-trigger {
    display: none !important;
}
.desktop {
  display: block;
}
.mobile {
  display: none;
}
/*
.subtitle {
  display: flex;
  justify-content: space-between;
  border-top: .5px solid #fff;
  padding: 0 0 0 36px;
  background:  #262626;
  color: #fff;
  text-align: left;
  letter-spacing: .25em;
  line-height: 24px;
  font-size: 12px;
  height: 24px
}
.color div {
  width: 15%;
  height: 22px;
}
 .color {
  display: flex;
  flex-direction: row;
  justify-content: end;
  width: 20%;
  opacity: .5
}
.red {
  background: var(--primary-red);
}
.orange {
  background: var(--orange)
}
.yellow {
  background: var(--yellow)
}
.green {
  background: var(--green)
}
.blue {
  background: var(--blue)
}
.purple {
  background: var(--purple)
}

/************************************ News and Events Pages ************************************/
.events-page, .news-page {
min-height: calc(100vh - var(--header-h-desktop));
background: var(--white);
}

.events-hero, .news-hero {
  background: var(--violet);
color: var(--white);
padding: 60px 30px;
text-align: center;
}
.events-hero-inner, .news-hero-inner {
  max-width: 900px;
  margin: 0 auto;
}
.events-hero-title, .news-hero-title {
  font-size: 64px;
  font-weight: 700;
  margin: 0 0 15px;
  line-height: 1.2;
}
.events-hero-subtitle {
  font-size: 18px;
  opacity: 0.95;
  margin: 0;
  font-weight: 400;
}
.events-source, .news-submit {
  font-size: .82rem;
  color: white;
  margin: 8px 0 0;
}
.events-source a, .news-submit a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.events-source a:hover { text-decoration: underline; }
/* ── Filters Bar ────────────────────────────────── */
.news-filters, .events-filters {
  background: var(--white);
  border-bottom: 1px solid var(--medium-gray);
  position: sticky;
  top: var(--header-h-desktop);
  z-index: 100;
  box-shadow:var(--box-shadow);
  top: 0;
  z-index: 50;
}

.news-filters-inner, .events-filters-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  padding: 12px 20px;
  gap: 10px;
  flex-wrap: wrap;
}
.events-filters-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.filters-container {
  display: flex;
  flex-direction:row;
  gap: 12px;
}

.news-search-form, .events-search-form {
  flex: 1;
  min-width: 260px;
  max-width: 400px;
  position: relative;
  border: 1px solid var(--medium-gray);
  border-radius: var(--border-radius);
  background: white
}

.news-search-input, .events-search-input {
  border:none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.events-search-input::placeholder, .news-search-input::placeholder { color: #aaa; }
.news-search-input:focus, .events-search-form:focus-within {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(206, 41, 44, 0.1);
}

.news-search-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 8px;
  color: var(--dark-gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.news-search-btn:hover {
  color: var(--primary-red);
}
.news-clear-filters, .events-clear-filters  {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  color: var(--primary-red);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: background 0.2s, border-color 0.2s;
}

.news-clear-filters:hover, .events-clear-filters:hover{
  background: #fff5f5;
  border-color: var(--primary-red);
}


/************************************ Basic Page ************************************/
.basic-page-container {
  max-width: 800px;
  margin: 0 auto;
  min-height: calc(100vh - var(--header-h-desktop));
  padding: 60px 20px 80px;
}
.page-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--medium-gray);
}
.page-title {
  font-size: 52px;
  font-weight: bold;
  color: var(--dark-gray);
  margin: 0;
}
.page-featured-image {
  margin-bottom: 40px;
  border-radius: 8px;
  overflow: hidden;
}
.page-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}
.page-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--dark-gray);
}
.page-content p {
  margin-bottom: 20px;
}
.page-content h2 {
  font-size: 32px;
  text-align: center;
  font-weight: 400;
  color: var(--primary-red);
  opacity: .9;
  margin: 20px 0 20px;
  line-height: 42px;
  background: var(--light-gray);
  padding: 40px;
}
.page-content h3 {
  font-size: 24px;
  font-weight: 600;
  margin: 30px 0 15px;
}
.page-content h4 {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-red);
  margin: 25px 0 10px;
}
.page-content ul, .page-content ol {
  margin: 20px 0;
  padding-left: 30px;
}
.page-content li {
  margin-bottom: 4px;
}
.page-content blockquote {
  border-left: 4px solid var(--primary-red);
  padding-left: 20px;
  margin: 30px 0;
  font-style: italic;
  color: #666;
}
.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 20px 0;
}

/************************************ Art Index Container (Split View) ************************************/
.art-index-container {
  display: flex;
  height: calc(100vh - var(--header-h-desktop));
  /* overflow: hidden removed — it clips the walk drawer slide-in and
     prevents Mapbox from rendering route layers after map.resize() */
  position: relative;
}
.artwork-list-panel {
  width: 50%;
  background-color: var(--white);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
/************************************ Filter Controls Bar ************************************/
.filter-controls {
  padding:0;
  background-color: var(--medium-gray);
  display: flex;
  align-items: center;
  gap: 1px;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom:1px solid  var(--medium-gray);
  box-shadow:var(--box-shadow)
}
.filter-dropdown select {
  padding: 10px 12px 10px 12px;
  height: 48px;
  width: 100%;
  max-width: 200px;
  border:none;
  background-color: var(--light-gray);
  color:  var(--dark-gray);
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23434343' d='m7 10l5 5l5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 24px;
  background-position: right 4px center;
  border-radius: 0
}

.filter-dropdown select:hover {
  background: var(--mid-gray);
  color: white;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='m7 10l5 5l5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 24px;
  background-position: right 4px center;
}
.filter-dropdown select:focus {
  outline: none
}
/* Icon buttons — hidden above 558px, shown below */
.filter-icon-btn {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--light-gray);
  color:  var(--dark-gray);
  border: none;
  display: none; /* hidden by default; shown via media query */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease, transform 0.15s ease;
}
.filter-icon-btn:hover  { 
  background: var(--dark-gray);
  transform: scale(1.05); 
}
.filter-icon-btn.active { 
  background: var(--dark-red); 
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.25); 
}
.btn-active-dot {
  display: none;
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  background:  var(--dark-gray);
  border-radius: 50%;
  border: 1.5px solid black;
}
.btn-active-dot.visible { 
  display: block; 
}

/************************************ Search ************************************/
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: auto;
}
/* Input hidden until .expanded */
.search-box input {
  width: 0;
  padding: 0;
  border: none;
  font-size: 14px;
  height: 48px;
  background: white;
  opacity: 0;
  pointer-events: none;
  transition: width 300ms cubic-bezier(0.32, 0.72, 0, 1),
              opacity 300ms ease,
              padding 300ms ease,
              border 300ms ease;
  outline: none;
}
.search-box.expanded {
  flex: 1;
}
.search-box.expanded input {
  width: 100%;
  padding: 0 76px 0 16px;
  border: 1px solid var(--medium-gray);
  opacity: 1;
  pointer-events: auto;
  box-shadow: none;
  border-radius: 0;
}
.search-box.expanded input:focus {
}
/* Search icon button trigger */
#search-button {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--light-gray);
  color:  var(--dark-gray);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  z-index: 1;
}
#search-button:hover { 
  background: var(--dark-gray); 
  transform: scale(1.05); 
  color: white
}

/* When expanded, search button is positioned inside input on the right */
.search-box.expanded #search-button {
  position: absolute;
  right: 36px;
  background: none;
  color: #888;
  width: auto;
  height: auto;
  padding: 6px;
  transform: none;
}
.search-box.expanded #search-button:hover {
  background: none;
  color: var(--primary-red);
  transform: none;
}
/* Clear (X) button */
#clear-search {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #888;
  padding: 6px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

#clear-search:hover { color: var(--primary-red); }
#clear-search.active { display: flex; }

.bottom-drawer {
  display: none;
}
/* Above 557px: show dropdowns, hide icon filter/sort buttons */
@media (min-width: 559px) {
  .filter-dropdown { display: block; }
  .filter-icon-btn { display: none !important; }
}

/************************************ Artwork Grid ************************************/
.artwork-grid {
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.artwork-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.artwork-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.artwork-card-link {
  display: block;
  color: inherit;
}
.artwork-card-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.artwork-type-badge {
  position: absolute;
  top: 10px; right: 10px;
  background-color: var(--primary-red);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.card-meta {
  display: flex;
  flex-direction: row;
  overflow: visible;
  width: 100%;
  gap: 12px;
  justify-content:end;
  align-items: center
}
.artwork-card-content { 
  padding: 15px; 
}
.artwork-title {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  color: var(--text-color);
}
.artwork-artists {
  font-size: 14px;
  color: #666;
  margin: 0;
}
.no-artwork {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #999;
  font-size: 18px;
}
/************************************ Main Map Panel ************************************/
.map-panel {
  width: 50%;
  position: relative;
  background-color: #e5e3df;
}
#artwork-map {
  height: 100% !important;
  width: 100%;
}
.fullscreen-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background-color: var(--white);
  border: 1px solid var(--medium-gray);
  border-radius: var(--border-radius);
  padding: 12px;
  box-shadow: var(--box-shadow);
  z-index: 200;
  transition: var(--transition);
}
.fullscreen-toggle:hover {
  background-color: var(--primary-red);
}
.fullscreen-toggle svg     { 
  display: block; 
}
.fullscreen-toggle:hover svg path { 
  color: #fff

}
.map-fullscreen .site-header {
  display: none;
}
.map-fullscreen .art-index-container {
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 9999;
}
.map-fullscreen .artwork-list-panel {
  display: none;
}
body.map-fullscreen .map-panel {
    width: 100%;
    height:100vh;
}

/************************************ Single Artwork Page ************************************/
.single-artwork-container {
  display: flex;
  height: calc(100vh - var(--header-h-desktop));
  overflow: hidden;
}
.artwork-info-panel {
  width: 45%;
  padding:0 20px 20px 20px;
  overflow-y: auto;
  background-color: var(--light-gray);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary-red);
  font-size: 13px;
  line-height: 32px;
  font-weight: 500;
  transition: gap 0.2s ease;
}
.back-link:hover {
  gap: 12px;
}
.artwork-type-badge-large {
  display: inline-block;
  background: var(--dark-gray);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px
}
#artwork-title {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 12px;
  position: relative
}

.artwork-info {
  padding: 20px;
  background: #dddada;
  margin-bottom: 12px;
  border-radius: 4px;
}
#artwork-rating {
  background: none;
  padding: 0;
}

.single-art-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0;
}
.artwork-title-single {
  font-size: 36px;
  margin-bottom: 15px;
  line-height: 1.2;
}
.artwork-artists-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}


.artist-link,
.artist-name {
  font-size: 18px;
  font-weight: bold;
}

.artist-link {
  color: var(--primary-red);
  text-decoration: underline;
}

.artwork-coordinates {
  margin-bottom: 25px;
}

.get-directions-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  background-color: var(--primary-red);
  color: white;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.get-directions-btn:hover {
  background-color: var(--dark-red);
  color: white;
}

.date-created, .artwork-description {
  margin-bottom: 25px;
}

.location-info h3, .date-created h3, .artwork-description h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.location-info p, .date-created p, .artwork-description p {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 12px;
}
.artwork-description p {
  margin: 12px 0;
}
.artwork-source {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--medium-gray);
}
.single-artwork-meta {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center
}
a.report-artwork-link {
  opacity: .5;
  height: 24px;
  border-radius: 50%;
}
a.report-artwork-link:hover {
  outline:2px solid var(--primary-red)
}
  
.artwork-gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 25px;
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 100;
}
.gallery-thumb {
  width: 80px;
  height: 80px;
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: var(--transition);
}
.gallery-thumb:hover, .gallery-thumb.active {
  border-color: var(--primary-red);
}
.artwork-image-panel {
  width: 55%;
  background-color: #2c2c2c;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.artwork-main-image-container {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 10
}
.artwork-main-image {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
.artwork-main-image.active {
  display: flex;
}
.artwork-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

/************************************ Contact ************************************/
.contact-header {
  text-align: center;
  margin-bottom: 50px;
}
.contact-intro {
  font-size: 18px;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}
.contact-form-wrapper {
  margin-bottom: 60px;
}
.form-note {
  text-align: center;
  font-size: 13px;
  color: #999;
  font-style: italic;
  margin-top: 20px;
}
.contact-info {
  background-color: var(--light-gray);
  padding: 40px;
  border-radius: 8px;
  margin-top: 60px;
}
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}
.contact-info-item p {
  font-size: 15px;
  color: #666;
  margin: 0;
}

/************************************ Submit Artwork ************************************/
.submit-artwork-page {
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
    min-height: calc(100vh - var(--header-h-mobile));
}

.submit-header {
    margin-bottom: 40px;
}

.submit-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.submit-header p {
    font-size: 16px;
    color: #666;
}

.notice {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}
.notice-success {
  background-color: var(--light-green);
  border: 1px solid var(--green);
  color: var(--dark-green);
}
.notice-error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: var(--dark-red);
}
.submissions-notice {
  padding: 40px;
  font-size: 14px;
  color: var(--mid-gray)
}
.submissions-notice p {
  margin-bottom: 25px
}
/************************************ Footer ************************************/
.site-footer {
  background-color:#32373c;
  border-top: 1px solid var(--medium-gray);
  margin-top: auto;
  display: flex;
  flex-direction: column;
  color: #999;
}
.footer-container {
  margin: 0 auto;
  gap: 40px;
  padding: 32px 32px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%
}
.footer-branding {
  display: flex;
  flex-direction: column;
  justify-content: space-between
}
.footer-branding h1 {
  font-size: 48px;
  font-weight: 600;
  margin: 0;
  padding: 0;
  line-height: 52px;
  color: var(--primary-red);
}
.footer-container a {
  font-size: 16px;
  line-height: 32px;
  color: var(--light-red)
}
.footer-container a:hover {
  color: var(--primary-red)
}
.footer-branding h2 {
  font-weight: 300;
  font-size: 32px;
  margin: 0;
  color: var(--primary-red);
}
.footer-branding p {
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-nav {
  list-style: none;
  text-align: right
}
.footer-nav li a {
  font-size: 16px;
  line-height: 32px;
}
.footer-info p {
  font-size: 12px;
}

.sponsors {
  width: 100%;
  background: var(--medium-gray);
  padding: 32px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sponsor-head {
  font-weight: 600;
  font-family: 'Roboto Condensed';
  color: var(--mid-gray);
  margin-bottom: 12px;
}
.sponsors-list {
  display: flex;
  flex-grow: 1;
  flex-direction: row;
  gap: 12px
}
.sponsors img {
  height: 100px;
  width: auto
}
.sponsors-array {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.sponsors-array a {
  display: block;
  border:1px solid var(--mid-gray);
}
.sponsors-array a.become {
  width:175px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  font-family: "Roboto Condensed"
}
.sponsors a:hover {
  opacity: .6
}

/* ===================================
   Ratings & Favorites
   =================================== */

/* Star Rating Display (Read-only) */
.rating-display {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.rating-stars {
    display: flex;
    gap: 2px;
    color: #ffc107;
    font-size: 16px;
}

.rating-stars .star {
    line-height: 1;
}

.rating-stars .star.filled {
    color: #ffc107;
}

.rating-stars .star.half {
    background: linear-gradient(90deg, #ffc107 50%, #ddd 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-average {
    font-weight: 600;
    color: var(--text-color);
}

.rating-count {
    color: #999;
    font-size: 13px;
}

/* Star Rating Input (Interactive) */
.star-rating-input {
    display: flex;
    gap: 4px;
    margin: 15px 0;
}

.star-rating-input .star {
    font-size: 32px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    line-height: 1;
}

.star-rating-input .star:hover {
    transform: scale(1.1);
}

.star-rating-input .star.active {
    color: #ffc107;
}

.rating-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

/* Favorite Button */
.favorite-button {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.favorite-button:hover {
    color: var(--primary-red);
    transform: scale(1.1);
}

.favorite-button.is-favorited {
    color: var(--primary-red);
}

.favorite-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.heart-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.heart-icon svg {
    display: block;
}

/* Card Rating & Favorite */
.artwork-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
   margin:0px -8px -6px 0px
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
}

.card-rating .rating-stars {
    font-size: 14px;
}


.card-favorite .favorite-button {
    padding: 4px;
}

.card-favorite .heart-icon svg {
    width: 20px;
    height: 20px;
}

/* Single Artwork Rating Section */
.artwork-rating-section {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.artwork-rating-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.rating-score {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-color);
    line-height: 1;
}

.rating-details {
    flex: 1;
}

.rating-details .rating-stars {
    font-size: 20px;
    margin-bottom: 5px;
}

.your-rating {
    padding-top: 20px;
    border-top: 1px solid var(--medium-gray);
}

/* Notification */
.rating-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.rating-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.rating-notification.success {
    background: #28a745;
    color: white;
}

.rating-notification.error {
    background: #dc3545;
    color: white;
}
/* Fullscreen Map Logic */
.art-index-container {
    transition: all 0.3s ease; /* Smooth transition */
}

/* When the container has the 'is-fullscreen' class... */
.art-index-container.is-fullscreen .artwork-list-panel {
    display: none; /* Hide the list */
}

.art-index-container.is-fullscreen .map-panel {
    width: 100% !important; /* Force map to fill width */
    height: calc(100vh - 160px); /* Fill remaining height */
}

/* Change the button color when active so users know they are in fullscreen */
.art-index-container.is-fullscreen .fullscreen-toggle {
    background-color: var(--primary-red);
    color: white;
}
.artwork-contributor {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--medium-gray);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contributor-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    font-weight: 600;
}

.contributor-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contributor-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contributor-name {
    font-weight: 600;
    font-size: 13px;
}
/* Floating Route Button for Mobile */
.mobile-route-fab {
    display: none; /* Hide on desktop */
}

}
/* =========================================================================================================
                                Table Breakpoint (1024px and below)
 ========================================================================================================= */
@media (max-width: 1024px) {
.main-navigation .nav-menu {
  gap: 20px;
}
.main-navigation .nav-menu li a {
  font-size: 18px;
}
.art-index-container {
  flex-direction: row;
}
.map-panel {
  width: 50%;
}
.artwork-list-panel {
  width: 50%;
}
.fullscreen-toggle {
  bottom: 14px;
  right: 14px;
}
body.map-fullscreen .map-panel {
  height: calc(100vh - 70px);
}
    
.single-artwork-container {
  height: auto;
  min-height: calc(100vh - var(--header-h-mobile));
  flex-direction: column-reverse;
}
.artwork-info-panel, .artwork-image-panel {
  width: 100%;
  height: auto;
}
.artwork-image-panel {
  min-height: 400px;
}
}
@media (max-width: 980px) {
/************************************ Mobile Nav Menu ************************************/
.main-navigation {
  display: none !important;
}
.mobile-menu-toggle {
 display: flex;
 flex-direction: column;
 justify-content: space-between;
 width: 40px;
 height: var(--header-h-mobile);
 cursor: pointer;
 padding: 13px 0px;
 z-index: 1001;
 position: absolute;
 right: 0px;
 top: 48%;
 transform: translateY(-50%);
}
.mobile-menu-toggle span {
  display: block;
  height: 3px;
  width: 28px;
  background-color: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.mobile-menu-overlay {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms ease;
  z-index: 1998;
}
.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
  z-index: 10001;
}
.mobile-menu-panel {
  display: block;
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: var(--white);
  z-index: 1999;
  transition: right 200ms ease;
  overflow-y: auto;
  padding: 80px 40px 40px;
  text-align: center
}
.mobile-menu-panel.active {
  right: 0;
  z-index: 10001;
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 10002;
}
.mobile-menu-close svg {
  stroke: var(--text-color);
}
.mobile-nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mobile-nav-menu li a {
  color: var(--primary-red);
  font-size: 32px;
  line-height: 96px;
  font-weight: 500;
  text-decoration: none;
  display: block;
  transition: color 0.2s ease;
  font-family: "Roboto Condensed", sans-serif;
  font-weight: bold;
  letter-spacing: .05em;
}  
.mobile-nav-menu li a:hover {
  color: var(--primary-red);
}
.header-user-actions {
  right: 62px;
  top: 24px;
}
.header-avatar-wrapper {
  width: 36px;
  height: 36px;
}
}
/* =========================================================================================================
                                  Mobile Breakpoint (768px and below)
   ========================================================================================================= */
@media (max-width: 768px) {
/************************************ Header************************************/
.header-container {
  align-items: center;
  padding: 0;
  height: var(--header-h-mobile);
}

.dekheader-user-actions {
  display: none
}
.site-header {
 height:var(--header-h-mobile);
}

.site-logo a {
  width: 217px;
  height: var(--header-h-mobile);
  top: 0px;
  left: 0px;
  background: url(https://artmapsf.com/images/logo-text-simple2-mobile.png) no-repeat left;
  background-size: contain;
}
.subtitle {
  line-height: 24px;
  letter-spacing: 0;
  padding-left: 8px;
}
.color div {
  width: 20%;
  height: 24px;
}

/************************************ Art Index ************************************/
.art-index-container {
  height: calc(100vh - var(--header-h-mobile));
  flex-direction: column;
}
.artwork-list-panel {
 width: 100%;
}
.artwork-grid {
  grid-template-columns: 1fr;
  padding: 12px;
}
/************************************ Map ************************************/
.art-index-container .map-panel {
  width: 100% !important;
  height: 100vh !important;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  visibility: hidden;
  pointer-events: none;
}
/* Walk drawer and its buttons must remain interactive even when map is hidden */
.art-index-container .map-panel #walk-drawer,
.art-index-container .map-panel #walk-toggle-btn {
  visibility: visible;
  pointer-events: auto;
}

/* When map is open, change button text and style */
body.map-fullscreen .map-panel {
  height: calc(100vh - 70px);
}
.fullscreen-toggle svg path {
  fill:#fff !important
}
.map-fullscreen .fullscreen-toggle::after {
  content: "Close Map";
}
/************************************ Rating ************************************/
.rating-notification {
  bottom: 20px;
  right: 20px;
  left: 20px;
}
/************************************ Single Artwork ************************************/
.single-artwork-container {
  display: flex;
  height: auto !important;
  overflow: visible !important;
  flex-direction: column-reverse;
}
.artwork-image-panel {
  width: 100%;
  height: auto !important;
  min-height: 300px;
  position: relative;
  overflow: visible;
}
.artwork-main-image-container {
  width: 100%;
  height: 400px;
  position: relative;
}
.artwork-info-panel {
  width: 100%;
  height: auto !important;
  overflow: visible !important;
  padding: 0 12px 20px;
}
.-gallery-thumbs {
  position: absolute;
  bottom: 4px;
  left: 4px;
  display: flex;
  gap: 4px;
  justify-content: center;
  z-index: 100000;
}
/************************************ Basic Page ************************************/
.basic-page-container {
padding: 40px 20px 60px;
}
.page-title {
font-size: 36px;
}
.page-content h2 {
font-size: 28px;
}
.page-content h3 {
font-size: 22px;
}
/************************************ Contact ************************************/
.contact-info {
padding: 30px 20px;
}
.contact-info-grid {
  grid-template-columns: 1fr;
  gap: 25px;
}
.wpcf7-form {
  padding: 30px 0;
  box-shadow: none;
}
.wpcf7-form .name-fields {
  grid-template-columns: 1fr;
}
/************************************ Footer ************************************/
.footer-container {
  grid-template-columns: 1fr;
  gap: 30px;
}
}
/* ===================================
   Extra Small Mobile (558px and below)
   =================================== */
@media (max-width: 558px) {
.artwork-submission-form {
  padding: 0 !important;
  box-shadow: none !important;
}
.artist-field-group {
  display: flex !important;
  flex-direction: column !important;
}
.form-row {
  display: flex !important;
  flex-direction: column !important;
}

.filter-dropdown { 
  display: none; 
}
.filter-icon-btn { 
  display: flex; 
}
.bottom-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
}
.bottom-drawer.open {
  display: block;
  pointer-events: auto;
}
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.3s ease;
  cursor: pointer;
}
.bottom-drawer.open .drawer-backdrop {
  background: rgba(0,0,0,0.45);
}
.drawer-panel {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: white;
  border-radius: 20px 20px 0 0;
  padding: 0 0 40px;
  transform: translateY(100%);
  transition: transform 300ms cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.2);
  max-height: 85vh;
  overflow-y: auto;
  user-select: none;
  touch-action: none;
  will-change: transform;
}
.bottom-drawer.open .drawer-panel { 
  transform: translateY(0); 
}
.drawer-panel.is-dragging         { 
  transition: none !important; 
}
.drawer-handle {
  width: 40px; 
  height: 4px;
  background: rgba(0,0,0,0.2);
  border-radius: 2px;
  margin: 14px auto 8px;
  cursor: grab;
  transition: background 0.2s ease, width 0.2s ease;
}
.drawer-panel.is-dragging .drawer-handle {
  background: rgba(0,0,0,0.35);
  width: 56px;
  cursor: grabbing;
}
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px 16px;
  position: relative;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  margin-bottom: 8px;
}
.drawer-title {
  font-family: "Roboto Condensed", sans-serif;
  font-weight: bold;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(0,0,0,0.4);
}
.drawer-close {
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  background: rgba(0,0,0,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  color: #555;
  transition: background 0.2s ease;
}
.drawer-close:hover { 
  background: rgba(0,0,0,0.15); 
}
.drawer-options {
  display: flex;
  flex-direction: column;
  padding: 0 16px;
  gap: 2px;
}
.drawer-option {
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Roboto Condensed", sans-serif;
  font-weight: bold;
  font-size: 26px;
  color: var(--primary-red);
  text-align: center;
  padding: 14px 20px;
  border-radius: 10px;
  transition: background 0.15s ease, transform 0.15s ease;
  line-height: 1.2;
}
.drawer-option:hover { 
  background: rgba(206,41,44,0.08); 
  transform: scale(1.02); 
}
.drawer-option.active {
  color: var(--dark-red);
  background: rgba(206,41,44,0.1);
}
.drawer-option.active::after {
  content: ' ✓';
  font-size: 20px;
  opacity: 0.7;
}
body.drawer-open { overflow: hidden; }
}


/* Generic Avatar Placeholder */
.generic-avatar {
    width: 100%;
    height: 100%;
    background-color: var(--dark-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
}

.generic-avatar svg {
    width: 100%;
    height: 100%;
}

/* Make Login Link stand out when logged out */
.login-highlight {
    color: var(--primary-red) !important;
    font-weight: 700 !important;
    text-align: center;
}

/* Ensure the wrapper is a circle even without an <img> tag */
.header-avatar-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: #000;
    border: 1px solid white;
    transition: var(--transition);
}

.header-user-dropdown:hover .header-avatar-wrapper {
    border-color: var(--primary-red);
}
.page-template-template-account .header-user-actions {
    display: none !important;
}


/* ── Responsive ──────────────────────────────────── */
@media (max-width: 640px) {
  .account-hero { padding: 20px 16px; }
  .account-hero-inner { gap: 12px; }
  .account-name { 		font-size: 24px;
    line-height: 36px;}
  .account-email { font-size: 13px; }
  .account-logout-btn { padding: 6px 10px; font-size: 12px; }

  .account-tabs-inner { padding: 0px;
    justify-content: center; overflow-x: auto; }
  .account-tab { padding: 12px 14px; font-size: 13px; }

  .account-panels { padding: 20px 16px 40px; }

  .account-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }

  .walk-row { flex-wrap: wrap; padding: 14px; }
  .walk-row-actions { width: 100%; justify-content: flex-end; margin-top: 8px; }
  .walk-row-icon { width: 34px; height: 34px; }
  .account-avatar .avatar-img {
  width: 120px;
  height: 120px;
}
.walk-row-name {
font-size: 20px;
}
.walk-row-meta {
font-size: 14px;
}
.walk-row-icon {
  display: none
}
.walk-row-actions {
flex-direction: row-reverse;
justify-content: space-between;
}