/* =====================================================
   header.css — zooplanner.com
   Styles for site header, navigation, and search widget.
   Loaded by header.php on every page via <link> in <head>.
   ===================================================== */

/* === HIDE COLIBRI/KUBIO FRAMEWORK HEADER (we use our own .site-header) === */
div.header.header-front-page,
div.header.header-inner-page,
.kubio-dropdown-menu {
  display: none !important;
}

/* === SITE HEADER === */

.site-header {
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 999;
  max-width: 100%;
  transition: transform 0.15s ease;
}

@media (max-width: 1300px) {
  .site-header.header-hidden {
    transform: translateY(calc(-1250% - 16px));
  }
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  padding: 10px 20px;
  border-bottom: 1px solid #ddd;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 0 40px;
  min-height: 60px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-weight: bold;
  flex-shrink: 0;
}

.logo {
  flex-shrink: 0;
}

.logo img {
  height: 48px;
}

.zoo-title {
  font-size: 25px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.2px;
  color: #333;
}

@media (max-width: 1300px) {
  .logo {
    flex: 1;
    justify-content: center;
  }

  .logo img {
    height: 64px;
  }

  .zoo-title {
    font-size: 32px;
  }

}

@media (max-width: 1300px) {
  body.home .search-icon {
    display: none !important;
  }
}

#menuIcon {
  color: #888;
}

.star-color {
  color: rgb(255, 203, 34);
}

.small-devices {
  position: relative;
  display: flex;
  align-items: center;
}

/* === NAVIGATION === */

.nav-menu {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.nav-menu a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  font-size: 17px;
  padding: 10px;
  align-items: center;
}

.nav-menu.open {
  right: 0;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #000;
  cursor: pointer;
}

/* Desktop-only elements */
.desktop-only {
  display: none;
}

@media (min-width: 1300px) {
  .desktop-only {
    display: block;
    margin-left: 474px;
  }
}

/* === BOTTOM NAV BAR === */
.bottom-nav-bar {
  display: none;
}

@media (max-width: 1300px) {
  .bottom-nav-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: white;
    border-top: 1px solid #efefef;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
    z-index: 998;
    justify-content: space-around;
    align-items: stretch;
    padding-bottom: env(safe-area-inset-bottom);
    transition: transform 0.15s ease;
  }

  .bottom-nav-bar.bar-hidden {
    transform: translateY(calc(100% + 60px));
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    text-decoration: none;
    transition: color 0.15s ease;
    padding: 0;
  }

  .bottom-nav-item i {
    font-size: 1.25rem;
    transition: color 0.15s ease;
  }

  .bottom-nav-item span {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2px;
  }

  .bottom-nav-item.active {
    color: #000;
  }

  body.nav-open #menuToggle {
    color: #000;
  }
}

@media (min-width: 1300px) {
  .search-toggle {
    display: none;
  }

  .menu-toggle {
    display: none;
  }

  .search-icon {
    display: none !important;
  }

  .logo {
    flex: none;
  }

  /* Desktop nav fixes */
  .nav-handle {
    display: none;
  }

  .nav-divider {
    display: none;
  }

  .nav-items {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    margin-right: 200px;
  }

  .nav-menu a {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 10px 14px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    border-radius: 8px;
    transition: background 0.15s ease;
  }

  .nav-menu a i {
    display: none;
  }

  .nav-menu a span {
    flex: none;
  }

  .nav-menu a:hover {
    background: #f4f4f4;
    color: #111;
    padding-left: 14px;
  }
}

@media (max-width: 1300px) {
  .header-inner {
    flex-wrap: nowrap;
    gap: 10px;
    padding: 0 16px;
  }

  .nav-menu {
    position: fixed !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    background: #ffffff;
    z-index: 997;
    padding: 0 0 70px;
    visibility: hidden;
    transform: translateY(110%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.4s;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.12);
  }

  .nav-menu.open {
    visibility: visible !important;
    transform: translateY(0) !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s !important;
  }

  .nav-menu::before {
    display: none;
  }

  /* Drag handle */
  .nav-handle {
    width: 100%;
    padding: 8px 0 4px;
    display: flex;
    justify-content: center;
    cursor: grab;
    flex-shrink: 0;
  }

  .nav-handle::after {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
  }

  /* Items wrapper */
  .nav-items {
    display: flex;
    flex-direction: column;
    padding: 10px 20 0;
    gap: 14px;
  }

  /* Menu links */
  .nav-menu a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px 12px 28px;
    border-radius: 0;
    text-decoration: none;
    color: #111;
    font-size: 1rem;
    font-weight: 400;
    transition: background 0.15s ease;
    background: transparent;
    position: relative;
    border: none;
  }

  .nav-menu a::before,
  .nav-menu a::after {
    display: none;
  }

  .nav-menu a i {
    font-size: 1.1rem;
    color: #888;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
  }

  .nav-menu a span {
    flex: 1;
    line-height: 1;
  }

  .nav-menu a:hover {
    background: #f5f5f5;
    color: #111;
    transform: none;
    padding-left: 16px;
  }

  .nav-menu a:active {
    background: #ebebeb;
  }

  /* Divider */
  .nav-divider {
    display: none;
  }

  .menu-toggle {
    display: block;
    z-index: 1001;
  }

  .search-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #666;
  }

  .menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 996;
    pointer-events: none;
  }

  body.nav-open .menu-overlay {
    pointer-events: auto;
  }

  body.nav-open .menu-overlay {
    display: block;
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 0 12px;
  }

  .header-inner {
    height: 60px;
    padding: 0 6px;
    justify-content: center;
    gap: 8px;
  }

  .logo {
    flex: 0 0 auto;
  }

  .logo img {
    height: 38px;
    margin-right: 6px;
  }

  .zoo-title {
    font-size: 1.2rem;
    margin: 0;
  }

  .search-icon {
    position: absolute;
    right: 12px;
    padding: 8px;
  }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === DESKTOP SEARCH INPUT === */

.desktop-search-input {
  display: none;
}

@media (min-width: 1300px) {
  .logo {
    margin-left: 12%;
  }

  .desktop-search-input {
    display: flex;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    z-index: 1;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 50px;
    border: 1px solid #838383;
    background: #f3f3f3;
  }

  .desktop-search-input input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.95rem;
    background: transparent;
    color: #333;
    transition: border-color 0.2s;
  }

  .desktop-search-input input::placeholder {
    color: #999;
  }

  .desktop-search-input input:focus {
    border-color: #1a7a3c;
  }
}

/* === SEARCH OVERLAY === */

@media (min-width: 1300px) {
  .search-overlay {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    max-width: 600px;
    max-height: 500px;
    background-color: white;
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
  }

  .search-overlay .search-box {
    display: none;
  }
}

@media (max-width: 1300px) {
  .search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .search-overlay.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .desktop-search-input {
    display: none;
  }
}

/* === SEARCH WIDGET CONTENT === */

.search-overlay-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 16px;
  width: 100%;
  text-align: center;
  display: none;
}

@media (max-width: 1300px) {
  .search-overlay-title {
    display: block;
  }
}

.search-header {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: stretch;
  gap: 0;
  margin-bottom: 20px;
  position: relative;
}

.close-btn-searchbar {
  position: absolute;
  top: -4px;
  right: -4px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  padding: 10px 16px;
  border-radius: 50px;
  border: 1px solid #838383;
  background: #f3f3f3;
}

.search-box-icon {
  color: #999;
  font-size: 1rem;
  flex-shrink: 0;
}

.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 16px;
  color: #333;
  min-width: 0;
}

.search-box input::placeholder {
  color: #999;
}

.close-btn-searchbar {
  background: none;
  border: none;
  cursor: pointer;
  color: #555;
  font-size: 1.3rem;
  padding: 6px;
  flex-shrink: 0;
}

@media (min-width: 1300px) {
  .close-btn-searchbar {
    display: none;
  }
}

.suggestions {
  width: 100%;
}

/* === SEARCH RESULTS DROPDOWN === */

.search-results {
  position: absolute;
  top: 170%;
  left: 0;
  right: 0;
  max-height: 400px;
  overflow-y: auto;
  background: #fff;
  z-index: 1000;
  border-top: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  padding-top: 2.5rem;
  box-shadow: 0 4px 5px -2px rgba(0, 0, 0, 0.15);
}

.search-results .close-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  cursor: pointer;
}

.mobile-search-bar.active {
  box-shadow: none !important;
}

/* === SEARCH BAR === */

.search-bar {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 25px;
  max-width: 300px;
  background-color: #f0f0f0;
}

/* === SEARCH CONTAINER 2 (desktop inline) === */

.search-container-2 {
  display: flex;
  max-width: 900px;
  margin: 20px auto;
  border-radius: 50px;
  overflow: hidden;
  background: #f0f0f0;
  align-items: center;
  height: 50px;
}

.search-input-2 {
  flex: 1;
  border: none;
  font-size: 16px;
  border-radius: 50px 0 0 50px;
  background: transparent;
  height: 100%;
  outline: none;
}

.search-icon {
  color: #b3b3b3;
  cursor: pointer;
}

.search-button-2 {
  background: #ccc;
  border: none;
  padding: 0 20px;
  cursor: pointer;
  border-radius: 0 50px 50px 0;
  transition: background-color 0.3s ease;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-button-2:hover {
  background: #dcdcdc;
}

@media (max-width: 1299px) {
  .search-container-2 {
    display: none;
  }
}

/* === MOBILE SEARCH BAR === */

.search-toggle {
  display: none;
}

.mobile-search-bar {
  display: none;
}

@media (max-width: 1300px) {
  .mobile-search-bar {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 10px 20px;
    display: flex;
    gap: 10px;
    z-index: 9999;
  }

  .mobile-search-bar input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    outline: none;
    border-radius: 50px 0 0 50px;
    background: #f0f0f0;
    height: 100%;
  }

  .mobile-search-bar button {
    background: var(--accent);
    border: none;
    color: white;
    padding: 0 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
  }
}

/* === ZOO CARD (header search widget results) === */

.zoo-card {
  display: flex;
  gap: 16px;
  padding: 14px 20px;
  cursor: pointer;
  align-items: center;
  transition: background 0.15s;
}

.zoo-card:hover {
  background-color: #f9f9f9;
}

.zoo-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  background-color: white;
  flex-shrink: 0;
}

.near-me-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  background-color: white;
}

.zoo-info {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.zoo-name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #222;
}

.zoo-location {
  margin: 0;
  font-size: 13px;
  color: #666;
}

/* === DESKTOP SEARCH RESULTS DROPDOWN === */

#desktopSearchResults {
  position: absolute;
  background: white;
  border: 1px solid #ddd;
  max-height: 300px;
  overflow-y: auto;
  width: 300px;
  margin-top: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 999;
}

/* === SEARCH LIST ITEMS === */

.search-default {
  width: 100%;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 10px;
  cursor: pointer;
  border-radius: 10px;
}

.search-item:hover {
  background: #f6f6f6;
}

.search-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #aaaaaa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.recent-title {
  font-size: 12px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 10px 20px 6px;
  margin: 0;
}

.search-title {
  font-size: 16px;
  font-weight: 600;
  color: black;
}

.recently-visited h3 {
  font-size: 14px;
  color: #444;
  margin-top: 15px;
  margin-bottom: 8px;
}

/* === ZOO SEARCH SHORTCODE (functions.php) === */

.zoo-search-form {
  margin-bottom: 20px;
}

.zoo-search-input {
  padding: 8px;
  width: 250px;
}

.zoo-search-btn {
  padding: 8px 12px;
}

/* =====================================================
   Currency selector — header button + modal
   ===================================================== */

/* Desktop header button */
.hdr-currency-btn {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 1.5px solid #d1d5db;
  border-radius: 20px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s, box-shadow .15s;
  margin-left: 8px;
  flex-shrink: 0;
}
.hdr-currency-btn:hover {
  border-color: #9ca3af;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.hdr-currency-btn i {
  font-size: 12px;
  color: #6b7280;
}
@media (min-width: 1300px) {
  .hdr-currency-btn { display: flex; }
}

/* Mobile nav item */
.nav-currency-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 0;
  border: none;
  background: none;
  font-size: 15px;
  color: #374151;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  flex-wrap: nowrap;
  overflow: hidden;
}
.nav-currency-item i { width: 20px; text-align: center; color: #6b7280; flex-shrink: 0; }
.nav-currency-item span { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-currency-item strong { font-weight: 600; }
@media (min-width: 1300px) {
  .nav-currency-item { display: none; }
}

/* Modal overlay */
.currency-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.currency-modal-overlay.open {
  display: flex;
}
body.currency-modal-open {
  overflow: hidden;
}

/* Modal panel */
.currency-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 960px;
  height: 72vh;
  max-height: 640px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.currency-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}
.currency-modal-header h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}
.currency-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f3f4f6;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
}
.currency-modal-close:hover { background: #e5e7eb; }

/* Current selection box */
.currency-current-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 12px 24px 12px;
  padding: 6px 12px;
  border: 1.5px solid #d1d5db;
  border-radius: 20px;
  background: #f9fafb;
  position: sticky;
  top: 8px;
  z-index: 10;
}
.currency-current-name {
  font-size: 13px;
  font-weight: 600;
  color: #111;
}
.currency-current-code {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}
.currency-current-code::before { content: '·'; margin-right: 6px; color: #d1d5db; }
.currency-current-symbol {
  font-size: 12px;
  color: #9ca3af;
}
.currency-current-symbol::before { content: '·'; margin-right: 6px; color: #d1d5db; }

/* Scrollable body */
.currency-modal-body {
  overflow-y: auto;
  flex: 1;
  padding: 0 16px 20px;
}

/* Section */
.currency-section {
  margin-bottom: 4px;
}
.currency-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #9ca3af;
  padding: 14px 2px 6px;
}
.currency-section-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 8px 0;
}

/* Currency grid */
.currency-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
@media (min-width: 480px) {
  .currency-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 700px) {
  .currency-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (min-width: 900px) {
  .currency-grid { grid-template-columns: repeat(7, 1fr); }
}

.currency-grid-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 10px;
  border-radius: 8px;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  transition: background .12s;
}
.currency-grid-item:hover {
  background: #f3f4f6;
}
.currency-grid-item.active {
  background: #f0fdf4;
  outline: 1.5px solid #22c55e;
}
.cgrid-name {
  font-size: 12px;
  font-weight: 600;
  color: #111;
  line-height: 1.3;
  word-break: break-word;
}
.cgrid-code {
  font-size: 11px;
  color: #888;
  margin-top: 2px;
}

