/* ==============================
   Base & Reset
   ============================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 18px;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f0f4f8;
  color: #333;
  line-height: 1.6;
}

.part-ref{
    color:red !Important;
}
.part-result {
    padding: 8px 0;
    margin-bottom: 4px;
    border-bottom: 1px dotted #ccc;
}

.part-description {
    font-weight: 600;
    font-size: 16px;
    color: #222;
}

.part-details {
    font-size: 14px;
    color: #555;
}

.model-bracket
{
    margin: 15px;
    background: #fcfcfc;
    padding:10px;
}

h3.bracket-title
{
    padding:10px;
    color:#FFF;
    background:#a10606 !important;
}

ul.bracket-list{
    list-style:none;
    list-style-type:none;
    padding:0 10px;
}

li.model-item{
    padding:5px 0;
}
/* ==============================
   Header
   ============================== */
header.site-header {
  background: #a10606 !important;
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header.site-header .logo {
  font-size: 1.75rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
}
header.site-header nav a {
  color: #fff;
  margin-left: 1.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}
header.site-header nav a:hover {
  opacity: 0.8;
}

/* ==============================
   Main Container
   ============================== */
main.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  gap: 2rem;
}

/* ==============================
   Left Column (Search Field)
   ============================== */
.left-column {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  flex: 1;
}

.left-column h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #1e3a8a;
  text-align: center;
}

.field-group {
  margin-bottom: 1rem;
  position: relative;
}

.field-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: #555;
}

.field-group input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field-group input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37,99,235,0.2);
}

.suggestions-list {
  list-style: none;
  position: absolute;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 0 0 6px 6px;
  max-height: 500px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 1000;
  width: 100%;
}

.suggestions-list li {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  transition: background 0.2s;
}

.suggestions-list li:hover {
  background: #a10606 !important;
}

#part-suggestions li {
  position: relative;
  padding-right: 20px; /* reserve space for section float */
  border-bottom:1px dotted black;
}

#part-suggestions .part-info {
  display: inline-block;
  font-size: 16px;
}

#part-suggestions .part-section {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #666;
  white-space: nowrap;
}

.part-item{
    margin:0.5rem 0;
}

.btn-search {
  width: 100%;
  padding: 0.75rem;
  background: #a10606 !important;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-search:hover {
  background: #1e40af;
}


.remark {
  margin: 0.25rem 0 1rem;
  font-size: 0.9rem;
  color: #555;
}


/* ==============================
   Right Column (Diagram)
   ============================== */
   
   
   
   .magnifier-wrapper {
  position: relative;
  display: inline-block;
}

#zoom-magnifier {
  display: none;
  position: absolute;
  border: 2px solid #aaa;
  border-radius: 50%;
  width: 300px;
  height: 300px;
  overflow: hidden;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  z-index: 100;
  background-repeat: no-repeat;
  background-size: 200%;
}


.right-column {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  width: 50%;
  position: sticky;
  top: 2rem;
  align-self: flex-start;
  overflow: hidden;
  display: block;
  align-items: center;
  justify-content: center;
  color: #555;
}
#diagram-container img {
  max-width: 95%;
  border-radius: 4px;
    position: sticky;
}

 .scheduled-suggestions
  {
      margin-top:2rem;
  }

/* ==============================
   Other Suggestions Section
   ============================== */
.other-suggestions {
  margin-top: 2rem;
}

.other-suggestions h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1e3a8a;
}

.suggestion-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.suggestion-row {
  display: block;
  justify-content: space-between;
  align-items: center;
  background: #f9fafb;
  padding: 0.3rem 1rem;
  border-radius: 6px;
  font-size: 0.7rem;
  gap: 1rem;
  border:1px solid #f3f3f3;
  margin:0.3em 0;
}

.suggestion-row span {
  flex: 1;
  word-break: break-word;
}

.suggestion-row .btn-small {
  background: #2563eb;
  color: white;
  padding: 0.3rem 0.6rem;
  font-size: 0.7rem;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
}

/* ==============================
   Footer
   ============================== */
footer.site-footer {
  background: #fff;
  padding: 1rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: #666;
  border-top: 1px solid #e2e8f0;
}

.hidden {
  display: none !important;
}






.getmypart a
{
    padding: 0.2rem;
    float: right;
    margin-top: -26px;
    color: #FFF;
    background: #000;
    text-decoration: none;
}

.getmypart a:hover
{

    background:darkred;
}

.remarks{
    color:red;
}



.warning{color:red;}

.view-parts-list
{
    background: darkred;
    color: white;
    text-decoration: none;
    /* margin: auto; */
    display: block;
    width: 100px;
    text-align: center;
    padding: 6px;
    margin: 6px 0;
}

.parts-manual-list img
{
    max-width:100%;
}

.multipleoptions
{

    margin: 0 5px;
    align-self: anchor-center;
}
.imagecheckurl a
{
color:darkred;
display:block;}


/* ==========================================
    MODEL CSS
    ========================================= */
    
    .hidden {
  display: none !important;
}

#parts-list-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.75);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#parts-list-modal > div {
  position: relative;
  width: 90%;
  height: 90%;
}

#close-parts-list-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  color: white;
  background: transparent;
  border: none;
  cursor: pointer;
}





/* ==============================
   Responsive Design
   ============================== */
@media (max-width: 1024px) {
  main.container {
    flex-direction: column;
    padding: 1.5rem;
  }

  .right-column {
    width: 100%;
    position: relative;
    max-height: none;
    top: 0;
    margin-top: 2rem;
  }

  .left-column {
    width: 100%;
  }
}


.suggestions-list {
  max-height: 500px;                /* or 200px on mobile */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* iOS momentum */
  /* …other existing styles… */
}


@media (max-width: 768px) {
  header.site-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }
  
  .right-column
  {
      float:left;width:100% !important;
  }
  
  .left-column
  {
      float:left;width:100% !important;
  }
  
  #model-input,
#part-input {
  scroll-margin-top: 10px;
}
  
    .suggestions-list {
    max-height: 800px;              /* taller on narrow screens */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.suggestions-open {
    overflow: hidden;               /* optionally lock the page behind the open dropdown */
  }
}


  header.site-header .logo {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  header.site-header nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  header.site-header nav a {
    margin-left: 0;
    margin-right: 1rem;
  }

  .left-column h1 {
    font-size: 1.5rem;
  }

  .btn-search {
    font-size: 0.95rem;
  }

  .suggestion-row {
    flex-direction: row;
    align-items: flex-start;
    font-size: 0.75rem;
    gap: 0.5rem;
  }

  .suggestion-row .btn-small {

    text-align: center;
  }
}

@media (max-width: 480px) {
    
  
  html {
    font-size: 15px;
  }

  .field-group input {
    font-size: 0.95rem;
    padding: 0.6rem 0.7rem;
  }

  .btn-search {
    padding: 0.6rem;
  }

  .right-column {
    padding: 1rem;
  }

  .left-column {
    padding: 1rem;
  }

  .suggestions-list li {
    font-size: 0.9rem;
  }

  #zoom-magnifier {
    width: 200px;
    height: 200px;
    background-size: 250%;
  }

  .suggestion-row {
    font-size: 0.7rem;
  }
  
 
  }


/* only on desktop: */
@media (min-width: 1024px) {
  /* make the diagram pane stick at 80px from the top of the viewport */
  #diagram-container {
    position: sticky;
    top: 60px;       /* adjust to your header height */
    /* Optional: constrain its width so it doesn’t stretch */
    width: 100%;     
    /* So it won’t overlap footer if your main is shorter than page */
    align-self: start;
  }
}