html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(to bottom right, #dcecf4, #eef6fb);
  background-attachment: fixed;
}

.navbar {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-link {
  color: #333;
  margin-right: 1rem;
  font-weight: 500;
}

.navbar-nav .nav-link:hover {
  color: #007bff;
}

.navbar-nav .nav-item img {
  transform: scale(1.4);
  transition: transform 0.3s ease;
}

.navbar-nav .nav-item img:hover {
  transform: scale(1.6);
}

.hero-section {
  display: center;
  width: 100%;
  margin: 0;
  background: none;
}

.hero-text {
  display: block;
  width: 100vw;
  text-align: center;
  background: rgba(255, 255, 255, 0.8);
  background-size: 100vw 100%;
  border-radius: 0.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin: 0;
  padding: 2rem 0;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
}

.hero-text p {
  font-size: 1.25rem;
  color: #555;
}

.section-container {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 0.5rem;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.section-container h2 {
  margin: 0;
  font-weight: 600;
  color: #333;
}

#forgot-password-link {
  display: block;
  text-align: center;
}

input:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
  outline: none;
}

.toggle-password {
  position: absolute;
  top: 38px;
  right: 15px;
  cursor: pointer;
  user-select: none;
  font-size: 1.2rem;
  color: #6c757d;
}

#pageTitle,
#mapBanner {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 10px;
  font-size: 18px;
  z-index: 1000;
  border-radius: 4px;
  background-repeat: no-repeat;
}

#pageTitle {
  top: 10px;
  width: 600px;
  height: 100px;
  background-image: url('./images/CSArtsSGV-ParentConnect-MapHeader-240322a.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#mapBanner {
  top: 120px;
}

.header-image {
  max-width: 120%;
  max-height: 120%;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
}

.hero-banner {
  position: relative;
  overflow: hidden;
}



.img-fluid {
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
  margin-left: 30px;
  -webkit-mask-image: linear-gradient(to top, transparent 0%, black 5%, black 95%, transparent 100%), linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-composite: intersect;
  mask-image: linear-gradient(to top, transparent 0%, black 5%, black 95%, transparent 100%), linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  mask-composite: intersect;
}

#map-home,
#map {
  height: 100vh;
  width: 100%;
  margin-top: 0;
  padding-top: 0;
}

#map {
  height: calc(100vh - 60px);
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 8px;
}

#map:-webkit-full-screen,
#map:-moz-full-screen,
#map:-ms-fullscreen,
#map:fullscreen {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  border: none;
}

.fullscreen-controls {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
}



@media (max-width: 768px) {
  .image-container {
    display: none !important;
  }

  .hero-text {
    padding: 1rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  #pageTitle {
    width: 90vw;
    height: 80px;
    font-size: 14px;
    background-size: contain;
  }

  #mapBanner {
    top: 95px;
    font-size: 14px;
  }

  .section-container {
    padding: 1rem;
  }

  .btn {
    width: 100% !important;
    font-size: 1rem !important;
    margin-bottom: 1rem;
  }

  .accordion-button,
  .accordion-body,
  .accordion-item {
    font-size: 0.9rem !important;
  }

  .accordion-button {
    padding: 0.5rem 1rem;
  }


  .gm-style-iw,
  .gm-style-iw-c {
    max-width: 240px !important;
    font-size: 0.9rem !important;
  }
}

@media (max-width: 480px) {
  #pageTitle,
  #mapBanner {
    display: none;
  }
}
@media screen and (max-height: 450px) and (max-width: 992px) {
  .image-container {
    display: none !important;
  }
}









  .accordion-button {
    font-size: 0.9rem !important;
    padding: 0.4rem 0.75rem !important;
  }

  .accordion-body {
    padding: 0.5rem 0.75rem !important;
  }

  .accordion-item {
    margin-bottom: 0.5rem;
  }

  #filterOptions input[type="checkbox"] {
    transform: scale(0.9);
    margin-right: 6px;
  }


/* Fix layout of default InfoWindow */
.gm-style-iw-d {
  padding: 0 !important;
  overflow: hidden !important;
  max-width: 220px !important;
  box-sizing: border-box;
}

.gm-ui-hover-effect {
  top: 24px !important;
  right: 8px !important;
  width: 24px !important;
  height: 24px !important;
  background-color: rgba(255,255,255,0.95) !important;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10000 !important;
  overflow: visible !important;
  pointer-events: auto !important;
}

/* Style the actual icon inside the close button */
.gm-ui-hover-effect > img,
.gm-ui-hover-effect > svg {
  display: block !important;
  width: 14px !important;
  height: 14px !important;
  pointer-events: none;
  opacity: 1 !important;
  z-index: 10001 !important;
}
/* Get rid of the white triangle + extra border */
.gm-style-iw-t::after {
  display: none !important;
}
.gm-ui-hover-effect span {
  margin: 0 !important;
  width: 16px !important;
  height: 16px !important;
  display: flex !important;
  justify-content: center;
  align-items: center;
}
@media (max-width: 600px) {
  .gm-style-iw-d {
    font-size: 13px !important;
    max-width: 180px !important;
    line-height: 1.4;
  }
}
@media screen and (max-height: 450px) {
  #pageTitle,
  #mapBanner {
    display: none !important;
  }
}

@media (max-width: 600px) {
  #home .container > .d-flex {
    flex-direction: column !important;
    align-items: center !important;
    gap: 1rem !important;
  }

  #landing-login-btn,
  #landing-signup-btn {
    width: 90% !important;
    max-width: 320px;
    font-size: 1.1rem !important;
    padding: 0.75rem 1rem !important;
    text-align: center;
  }
}

/* Landscape mobile: flow text horizontally (image hidden) */
@media screen and (max-height: 450px) and (max-width: 992px) {
  #about .row {
    flex-direction: row !important;
    display: flex;
    flex-wrap: nowrap;
  }

  #about .text-container {
    flex: 1;
    max-width: 100%;
  }

  #about .image-container {
    display: none !important;
  }
}


/* Remove extra padding/border from the outer InfoWindow wrapper */
.gm-style-iw-ch {
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.gm-style-iw {
  padding: 0 !important;
  background: transparent !important;
}

#students-summary-list .list-group-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#students-summary-list .delete-student {
  cursor: pointer;
  color: #dc3545;
  font-size: 1.2rem;
}
#students-summary-list .delete-student:hover {
  color: #bb2d3b;
}

/* === STRONG INFO WINDOW OVERRIDES (kills Google's outer blue border) === */
.gm-style-iw,
.gm-style-iw-c,
.gm-style-iw-d,
.gm-style-iw-ch {
  padding: 0 !important;
  border: none !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45) !important;
  overflow: hidden !important;
  background: transparent !important;
  max-width: 245px !important;
}

.gm-style-iw-t::after {
  display: none !important;
}

.gm-ui-hover-effect {
  top: 8px !important;
  right: 8px !important;
  background: rgba(255,255,255,0.95) !important;
  border-radius: 4px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3) !important;
}

/* Hide the default close (X) button entirely */
.gm-ui-hover-effect {
  display: none !important;
}

/* === MY ACCOUNT PAGE FIXES === */

/* 1. Smaller logo on My Account page */
#account-profile h1,
#account-profile .logo-header,
.parent-connect-logo,
.csarts-logo {
  font-size: 2.1rem !important;     /* was huge, now reasonable */
  line-height: 1.1;
  margin-bottom: 1.5rem !important;
}

/* 2. Add breathing room at the bottom of the account page */
#account-profile {
  padding-bottom: 60px !important;   /* nice gap above footer/nav */
  margin-bottom: 1rem;
}

/* Optional: make the account cards a bit more spaced on mobile */
@media (max-width: 992px) {
  #account-profile {
    padding-bottom: 100px !important;
  }
}


/* === FINAL MODAL FIX - defeats Google Maps + section stacking === */
.modal {
  z-index: 100000 !important;
}

.modal-backdrop {
  z-index: 99999 !important;
}

.modal-dialog {
  z-index: 100001 !important;
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  max-width: 720px !important;
}

#confirmModal .modal-content {
  box-shadow: 0 20px 40px rgba(0,0,0,0.5) !important;
}

/* ============================================= */
/*  Reasonable max-width for non-map pages */
/* ============================================= */
#content-container > div:not(#map-home),
#signup form,
#account-profile,
#edit-profile-form,
#change-password-form,
#login form {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Make sure forms inside Step 2 (your screenshot) also stay tidy */
#signup .w-50.mx-auto {
    max-width: 720px !important;
}

/* Mobile-first reinforcement – your existing @media blocks stay untouched */
@media (max-width: 768px) {
    #content-container > div:not(#map-home),
    #signup form,
    #account-profile {
        max-width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Center My Account page content */
#account-profile {
  max-width: 820px;
  margin: 0 auto !important;
  padding: 30px 15px 80px;
}

#account-profile .section-container {
  margin-bottom: 2rem;
}

/* Hide Google Maps "My Location" person/gps button completely */
.gm-svpc,
.gm-style .gm-svpc,
.gm-style button[title="My Location"],
.gm-style button[aria-label*="My Location"] {
  display: none !important;
}

/* ==================== MOVE GOOGLE MAPS MAP/SATELLITE CONTROL UP AND LEFT ==================== */
.gm-style .gm-style-cc,
.gm-style .gmnoprint > div[role="button"],
.gm-style .gm-style-cc > div {
  top: 20px !important;
  right: 100px !important;
  bottom: auto !important;
  left: auto !important;
}

/* ==================== PERFECT CIRCLE FILTER BUTTON (mobile only) ==================== */
#filter-toggle {
  position: absolute !important;
  bottom: 100px !important;
  right: 25px !important;
  z-index: 1100 !important;
  background: white !important;
  color: #333 !important;
  border: 2px solid #ccc !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
  border-radius: 50% !important;
  width: 56px !important;
  height: 56px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  padding: 0 !important;
  cursor: pointer !important;
}

#filter-toggle:hover {
  background: #f8f9fa !important;
}

/* Hide button on desktop */
@media (min-width: 993px) {
  #filter-toggle { display: none !important; }
}

/* ==================== FILTER PANEL - BOTTOM ALIGNED WITH GOOGLE CONTROLS ==================== */
#filterOptions {
  position: absolute !important;
  bottom: 95px !important;      /* ← this is the key line - adjust if needed */
  right: 80px !important;
  z-index: 10000 !important;
  background-color: rgba(248, 249, 250, 0.98) !important;
  padding: 1rem !important;
  border-radius: 12px !important;
  max-width: 280px !important;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3) !important;
  max-height: 70vh !important;
  overflow-y: auto !important;
}

/* Mobile adjustments */
@media (max-width: 992px) {
  #filter-toggle {
    bottom: 80px !important;
    right: 55px !important;
    width: 52px !important;
    height: 52px !important;
    font-size: 16px !important;
  }

  #filterOptions {
    top: auto !important;
    bottom: 70px !important;
    left: 40px !important;
    max-width: 180px !important;
  
  }
}


/* === ACCOUNT MANAGEMENT BUTTONS – match student list & modal style === */
#account-profile .d-flex.gap-2 .btn {
  font-weight: 500;
  font-size: 0.875rem !important;
  border-radius: 6px;
  padding: 0.375rem 1rem;   /* slightly tighter than default */
  transition: all 0.2s ease;
}

#account-profile .btn-outline-secondary {
  color: #6c757d;
  border-color: #6c757d;
}
#account-profile .btn-outline-secondary:hover {
  background-color: #6c757d;
  color: #fff;
}

#account-profile .btn-outline-warning {
  color: #ffc107;
  border-color: #ffc107;
}
#account-profile .btn-outline-warning:hover {
  background-color: #ffc107;
  color: #212529;
}

#account-profile .btn-outline-danger {
  color: #dc3545;
  border-color: #dc3545;
}
#account-profile .btn-outline-danger:hover {
  background-color: #dc3545;
  color: #fff;
}

/* ============================================= */
/* HAPPY MEDIUM WIDTH for Edit Account Modal     */
/* ============================================= */
.modal-dialog {
  max-width: 500px !important;     /* ← perfect balanced width */
  width: 100% !important;
}

/* Mobile / small screen friendly */
@media (max-width: 500px) {
  .modal-dialog{
    max-width: 92vw !important;    /* takes almost full width on phones */
    
  }
}

/* Better positioning for password eyeballs in modals */
.modal .toggle-password {
  z-index: 10;
  pointer-events: auto;
}

/* Backup - maximum priority for Google autocomplete */
.pac-container {
  z-index: 2147483647 !important;
  position: fixed !important;
}

/* ============================================= */
/* FORCE + ADD STUDENT BUTTON TO BE COMPACT */
/* ============================================= */
#add-new-student-btn {
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  white-space: nowrap !important;
  min-width: auto !important;
  width: auto !important;
  font-size: 0.875rem !important;
  padding: 0.375rem 0.9rem !important;
}

/* Extra insurance on mobile */
@media (max-width: 768px) {
  #add-new-student-btn {
    font-size: 0.82rem !important;
    padding: 0.32rem 0.75rem !important;
  }
}

.hero-banner img {
  display: block;
  width: 100%;
  max-width: 1100px;           /* ← this prevents it from getting huge on large monitors */
  max-height: 320px;
  height: auto;
  object-fit: cover;
  margin: 0 auto;              /* centers it nicely */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 5%, black 95%, transparent 100%);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .hero-banner img {
    max-height: 220px !important;
  }
}

@media (max-width: 480px) {
  .hero-banner img {
    max-height: 180px !important;
  }
}

/* ============================================= */
/* MAKE STUDENT EDIT/DELETE BUTTONS MATCH PARENT SIZE */
/* ============================================= */
#students-list .btn.btn-sm {
  padding: 0.375rem 0.85rem !important;
  font-size: 0.875rem !important;
  border-radius: 6px !important;
  line-height: 1.5;
}

/* Extra insurance on mobile */
@media (max-width: 768px) {
  #students-list .btn.btn-sm {
    padding: 0.35rem 0.8rem !important;
    font-size: 0.82rem !important;
  }
}
/* ============================================= */
/* CENTERED AGREEMENT BANNER ON MAP */
/* ============================================= */
.agreement-banner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2000;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 420px;
  width: 90%;
  padding: 24px;
  text-align: center;
  border: 1px solid #ddd;
}

.agreement-banner h5 {
  margin-bottom: 12px;
  color: #1a3c5e;
}

.agreement-banner p {
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.5;
}

.banner-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

#mapAgreementModal {
  z-index: 99999 !important;
}
#mapAgreementModal .modal-dialog {
  z-index: 100000 !important;
}

/* ============================================= */
/* FIX FOR MODALS ON MAP PAGE (Google Maps fix) */
/* ============================================= */
#mapAgreementModal {
  z-index: 99999 !important;
}
#mapAgreementModal .modal-backdrop {
  z-index: 99998 !important;
}
#mapAgreementModal .modal-dialog {
  z-index: 100000 !important;
  position: fixed !important;
}

/* ============================================= */
/* DELETE ACCOUNT BUTTON – SPINNER-ONLY LOADING  */
/* ============================================= */
#delete-account-btn {
  min-height: 44px !important;
  padding: 0.5rem 1rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  #delete-account-btn {
    min-height: 42px !important;
    padding: 0.45rem 0.9rem !important;
  }
}

/* Spinner styling */
#delete-account-btn .spinner-border {
  width: 1.1rem;
  height: 1.1rem;
}