/* ==========================================================================
   PetAirport / PetDesk – Shared Global Stylesheet (Steps 1 to 6)
   ========================================================================== */

:root {
  --primary: #027ecd;
  --primary-hover: #006bb3;
  --primary-light: #ebf8ff;
  --primary-border: #3182ce;
  
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-input: #f7fafc;
  --bg-locked: #f1f5f9;

  --text-primary: #1a202c;
  --text-body: #2d3748;
  --text-muted: #718096;
  --text-label: #4a5568;

  --border-color: #e2e8f0;
  --border-hover: #cbd5e0;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 16px;
  --radius-pill: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px -8px rgba(0, 0, 0, 0.08);

  --bottom-bar-height: 5rem;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.5;
  overflow-x: clip;
}

/* Universal container alignment across all steps */
.booking-workspace,
.card,
.avi-panel {
  width: 100%;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.booking-workspace {
  padding: 0 1rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.booking-banner,
.card,
.avi-panel .animal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
  box-sizing: border-box;
  width: 100%;
}

/* ==========================================================================
   Mobile Header, Hamburger Menu, and GTranslate Fixes
   ========================================================================== */

/* Ensure the hamburger button container is visible on mobile screens */
#menu-btn {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 50;
}

/* Force inner hamburger lines to render and display correctly */
#menu-btn span {
  position: absolute;
  display: block !important;
  width: 1.5rem;
  height: 2px;
  background-color: var(--text-primary, #1a202c); /* Dark when menu is closed */
  border-radius: 2px;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

#menu-btn span:nth-child(1) { transform: translateY(-7px); }
#menu-btn span:nth-child(2) { transform: translateY(0); }
#menu-btn span:nth-child(3) { transform: translateY(7px); }

/* OPEN STATE: Turn into a bright white 'X' over the dark slide-over background */
#menu-btn[aria-expanded="true"] span {
  background-color: #ffffff !important; /* Force all active lines to white */
}

#menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}

#menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0; /* Hide middle line */
}

#menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
}

/* Hide hamburger menu automatically on desktop */
@media (min-width: 768px) {
  #menu-btn {
    display: none !important;
  }
}

/* Transparent GTranslate Widget Styling */
.gtranslate_wrapper {
  display: inline-flex;
  align-items: center;
}

.gtranslate_wrapper select,
.gtranslate_wrapper .goog-te-combo {
  background: rgba(255, 255, 255, 0.75) !important;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1.5px solid var(--border-color, #e2e8f0) !important;
  border-radius: var(--radius-sm, 6px) !important;
  padding: 0.35rem 0.65rem !important;
  font-size: 0.85rem !important;
  color: var(--text-body, #2d3748) !important;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.gtranslate_wrapper select:hover {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: var(--border-hover, #cbd5e0) !important;
}




/* Summary Bar Grid & Flex Uniformity */
.top-summary-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.625rem;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.top-summary-bar::-webkit-scrollbar {
  display: none;
}

.top-summary-bar .summary-tag {
  flex-shrink: 0;
  white-space: nowrap;
}

.top-summary-bar::-webkit-scrollbar {
  display: none;
}

.top-summary-bar .summary-tag,
.top-summary-bar span {
  white-space: nowrap;
  flex-shrink: 0;
}

.top-summary-bar-close span {
  white-space: nowrap;
  flex-shrink: 0;
}

.class-tab-box {
  margin-left: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  flex-shrink: 0;
}


/* --- Core Container & Layout --- */
.booking-workspace,
.card,
.avi-panel {
  width: 100%;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* --- Modern Filter Banner --- */
.booking-banner {
  background: #ffffff;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  width: 100%;
  box-sizing: border-box;
  transition: box-shadow 0.2s ease;
}

/* --- Top Summary Bar Grid Layout --- */
.top-summary-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  position: relative;
}

/* --- Summary Tags Styling --- */
.summary-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: #f8fafc;
  color: #334155;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 9999px; /* Pill shape */
  border: 1px solid #e2e8f0;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.summary-tag:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
}

/* Highlight Trip Type Tag */
.summary-tag.trip-type {
  background-color: #eff6ff;
  color: #1d4ed8;
  border-color: #dbeafe;
  font-weight: 600;
}

/* --- Clean Native Form Inputs inside Pills --- */
.summary-tag input[type="date"] {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
  outline: none;
  cursor: pointer;
}

/* --- Sleek Custom Filter Select Element --- */
.custom-filter-select {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0284c7;
  outline: none;
  cursor: pointer;
  padding-right: 4px;
}

.summary-tag.select-wrapper {
  background-color: #f0f9ff;
  border-color: #bae6fd;
}

.summary-tag.select-wrapper:hover {
  background-color: #e0f2fe;
  border-color: #7dd3fc;
}

/* --- Cancel / Close Badge Button --- */
.badge-close a {
  color: #ef4444;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.3rem 0.6rem;
  border-radius: 9999px;
  background-color: #fef2f2;
  border: 1px solid #fee2e2;
  transition: background-color 0.15s ease;
}

.badge-close a:hover {
  background-color: #fee2e2;
}

/* --- Airline Icon Box Alignment --- */
.class-tab-box {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
}

.air-icon {
  border-radius: 4px;
}
/* --- Airline Icon & Class Tab Box --- */
.class-tab-box {
  margin-left: auto; /* Pushes the icon box to the far right on desktop */
  display: flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
}

.air-icon {
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
}

/* --- Cancel / Logout Badge --- */
.badge-close {
  margin-left: 0.5rem;
}

.badge-close a {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #ef4444;
  background-color: #fef2f2;
  padding: 0.4rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid #fee2e2;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.badge-close a:hover {
  background-color: #fee2e2;
  color: #dc2626;
}

/* --- Card & Footer Info Styles --- */
.card {
  background: #ffffff;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

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

.py-6 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mb-4 {
  margin-bottom: 1rem;
}

.info-main {
  max-width: 720px;
  margin: 0 auto;
}

.info-text {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #64748b;
  margin: 0;
}

/* --- Responsive Breakpoints --- */
@media (max-width: 768px) {
  .booking-banner {
    padding: 1rem;
  }
  
  .top-summary-bar {
    gap: 0.5rem;
  }

  .summary-tag {
    font-size: 0.8125rem;
    padding: 0.35rem 0.65rem;
  }

  .class-tab-box {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
    margin-top: 0.25rem;
  }
}



/* Sticky Bottom Action Nav */
nav.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.875rem 1rem calc(0.875rem + env(safe-area-inset-bottom, 0px));
  background-color: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

.btn-ticket-submit,
.btn-submit {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: var(--radius-sm);
  background-color: var(--primary) !important;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(2, 126, 205, 0.25);
  transition: background-color 0.2s ease;
}

@media (min-width: 768px) {
  .btn-ticket-submit,
  .btn-submit {
    width: auto;
    min-width: 240px;
  }
}