/* Modal CSS - Slide from left to right */

.modal-overlay-new-nav,
.modal-overlay-sell-nav,
.modal-overlay-community-nav,
.modal-overlay-home-estimate-nav{
    position: fixed;
    top: 230px;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10004 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, top 0.3s ease;
}

/* Adjust modal overlay position when header is stuck */
.modal-overlay-new-nav.header-is-stuck,
.modal-overlay-sell-nav.header-is-stuck,
.modal-overlay-community-nav.header-is-stuck,
.modal-overlay-home-estimate-nav.header-is-stuck{
    top: 153px;
}

@media (max-width: 951px) {
    .modal-overlay-new-nav,
    .modal-overlay-sell-nav,
    .modal-overlay-community-nav,
    .modal-overlay-home-estimate-nav{
        background: none !important;
    }
}

.modal-overlay-new-nav.active,
.modal-overlay-sell-nav.active,
.modal-overlay-community-nav.active,
.modal-overlay-home-estimate-nav.active{
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    top: 230px;
    left: 0;
    max-width: 808px;
    width: 100%;
    height: 100%;
    background: white;
    transform: translateX(-100%);
    transition: transform 0.3s ease, top 0.3s ease;
    z-index: 10000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

/* Adjust main modal position when header is stuck */
.modal.header-is-stuck {
    top: 153px;
}

@media (max-width: 951px) {
    .modal {
        top: 0px;
        width: 330px;
    }
    
    /* In mobile, keep top at 0 even when header is stuck */
    .modal.header-is-stuck {
        top: 0px;
    }
}

@media (max-width: 767px) {
    .modal {
        width: 100% !important;
    }
}

.modal-overlay-new-nav.active .modal,
.modal-overlay-sell-nav.active .modal,
.modal-overlay-community-nav.active .modal,
.modal-overlay-home-estimate-nav.active .modal{
    transform: translateX(0);
}

.modal-content {
   display: flex;
   flex-direction: row;
   padding-left: 42px;
   padding-right: 51px;
   padding-top: 54px;
   padding-bottom: 54px;
   height: 100%;
   max-width: 808px;
   width: 100%;
   overflow-y: auto;
}

.modal-links-container {
  display: flex;
  flex-direction: column;
  width: 360px;
}


.modal-menu-title {
  font-size: 32px;
  color: #003364;
  font-weight: 500;
  line-height: 100%;
  margin-bottom: 24px;
  text-transform: uppercase;

  @media (max-width: 951px) {
    font-size: 24px;
  }
}

.modal-link-divider {
  width: 100%;
  height: 1px;
  background-color: #B7B7B7;
  margin-bottom: 26px;
  margin-top: 5px;
  margin-right: 28px;
}

.modal-link-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

#buyer-resources-link,
#seller-resources-link {
  font-weight: 600;
  font-size: 24px;
  line-height: 24px;
  margin-bottom: 24px;
  color: #00262E;
  border-bottom: 5px solid transparent;
  transition: border-bottom 0.2s ease;
  @media (max-width: 951px) {
    font-size: 20px;
  }
}

#buyer-resources-link.active {
  border-bottom: 5px solid #F0D576;
}

#buyer-resources-chevron {
  font-size: 24px;
  color: #547B82;
  @media (max-width: 951px) {
    font-size: 16px;
  }
}

.modal-chevron {
  font-size: 24px !important;
  color: #547B82 !important;
  display: none;
  @media (max-width: 951px) {
    font-size: 16px !important;
  }
}

@media (max-width: 951px) {
  .modal-chevron {
    display: block !important;
  }
}

.modal-menu-link {
  font-size: 20px;
  color: #00262E;
  font-weight: 400;
  line-height: 24px;
  margin-bottom: 24px;
  @media (max-width: 951px) {
    font-size: 20px;
  }
}

.modal-close {
    position: absolute;
    top: 6px;
    right: 12px;
    background: none;
    border: none;
    font-size: 40px;
    cursor: pointer;
    color: #00262E
}

.modal-close:hover {
  opacity: 0.7;
}

.modal-image-container {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  max-width: 449px;
  height: 100%;
  padding-left: 38px;
  @media (max-width: 951px) {
    display: none;
  }

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 360px;
    max-height: 620px;
  }
}

.modal-close:hover {
    color: #000;
}

.modal-clickable {
    cursor: pointer;
    display: block;
    text-decoration: none;
    margin-bottom: 24px;
}

.modal-clickable .modal-menu-link {
    margin-bottom: 0;
}

/* Buyer Resources Modal */
.buyer-resources-modal {
    position: fixed; /* Changed from absolute to fixed for viewport-based positioning */
    top: 230px;
    left: 364px;
    width: calc(100% - 364px);
    height: 100%;
    background: white;
    opacity: 0;
    visibility: hidden;
    transform: none;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, top 0.3s ease;
    z-index: 10005;
}

/* Adjust buyer resources modal position when header is stuck */
.buyer-resources-modal.header-is-stuck {
    top: 153px;
}

.buyer-resources-modal.active {
    opacity: 1;
    visibility: visible;
    transform: none;
}

/* Adjust buyer resources modal position when active AND header is stuck */
.buyer-resources-modal.active.header-is-stuck {
    top: 153px;
}

@media (max-width: 951px) {
    .buyer-resources-modal {
        position: fixed;
        top: 0px;
        left: 0;
        max-width: 808px;
        width: 330px;
        transform: translateX(-100%);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        opacity: 1;
        visibility: visible;
    }
    
    /* In mobile, keep top at 0 even when header is stuck */
    .buyer-resources-modal.header-is-stuck {
        top: 0px;
    }
    
    .buyer-resources-modal.active {
        transform: translateX(0);
    }
}

@media (max-width: 767px) {
    .buyer-resources-modal {
        width: 100% !important;
    }
}

/* Buyer Resources Mobile Structure - Same as main modal */
.buyer-resources-mobile-content {
    display: none; /* Hidden by default on desktop */
}

.buyer-resources-mobile-links-container {
    display: flex;
    flex-direction: column;
    width: 360px;
}

@media (max-width: 951px) {
    /* Show mobile structure, hide desktop structure */
    .buyer-resources-mobile-content {
        display: flex;
        flex-direction: row;
        padding-left: 42px;
        padding-right: 51px;
        padding-top: 54px;
        padding-bottom: 54px;
        height: 100%;
        max-width: 808px;
        width: 100%;
        overflow-y: auto;
    }
    
    /* Hide desktop structure on mobile */
    .buyer-resources-container {
        display: none;
    }
}

.buyer-resources-container {
    max-width: 1280px;
    padding: 54px 0px;
    height: 100%;
    display: flex;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

@media (max-width: 1200px) {
    .buyer-resources-container {
        flex-direction: column;
    }
    
    .buyer-resources-content {
        width: 100%;
        order: 1;
    }
    
    .buyer-resources-image {
        order: 2;
        margin-top: 30px;
        align-self: flex-start;
    }
    .buyer-resources-image .image-wrapper {
        padding-left: 0px !important;
    }
}

.buyer-resources-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.buyer-resources-content {
  display: flex;
  height: 100%;
  width: 72%;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.buyer-resources-content::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

.buyer-resources-title {
  font-size: 32px;
  color: #003364;
  font-weight: 700;
  line-height: 100%;
  text-transform: uppercase;
}

/* Fixed size image container for marketing team - DO NOT MAKE RESPONSIVE */
.buyer-resources-image {
  width: 360px;
  /*height: 420px;*/
  /*display: flex;*/
  /*flex-shrink: 0;*/
  /*align-items: center;*/
  /*justify-content: center;*/
    object-fit: contain;
}

.flyover-right-images {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Image wrapper with padding for positioning flexibility - NO VISUAL STYLING */
.buyer-resources-image .image-wrapper {
  width: 100%;
  height: 100%;
  padding-left: 42px;
  padding-right: 18px;
  padding-top:38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Placeholder styling for marketing team image - ALL VISUAL STYLING HERE */
.buyer-resources-image .image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #999;
  font-family: Arial, sans-serif;
  position: relative;
  background-color: #f0f0f0;
  border: 2px dashed #ccc;
}

/* FPO text styling */
.buyer-resources-image .image-placeholder .fpo-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.buyer-resources-link-title {
  font-size: 20px;
  color: #7F7F7F;
  font-weight: 700;
  line-height: 100%;
  text-transform: uppercase;
  margin-bottom: 30px;
  display: block;
}

.buyer-resources-link-divider {
  width: 100%;
  height: 1px;
  background-color: #B7B7B7;
  margin-bottom: 48px;
  margin-top: 5px;
  margin-right: 28px;
  display: block;
}

.buyer-resources-link {
  font-size: 20px;
  color: #003364;
  font-weight: 700;
  line-height: 100%;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.buyer-resources-link-wrapper {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  width: 100%;
  gap: 40px;
}

.buyer-resources-link-text {
  font-size: 16px;
  color: #646464;
  font-weight: 400;
  line-height: 120%;
  display: block;
  margin-bottom: 40px;
}

.buyer-resources-link-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: 50%
}

.buyer-resources-link-right a {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-decoration: none;
  margin-bottom: 8px;
}

.buyer-resources-link-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
}

.buyer-resources-link-bottom a {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-decoration: none;
  margin-bottom: 8px;
}

.buyer-resources-link-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.buyer-resources-icon {
  width: 24px;
  height: 24px;
  margin-right: 8px;
}

.buyer-resources-link-item span {
    font-size: 20px;
    color: #003364;
    font-weight: 700;
    line-height: 100%;
    margin-bottom: 8px;
    display: block;
    padding-top: 6px;
  }

  .buyer-resources-link-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
  }

.buyer-resources-link-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.header-menu-icon {
    margin-left: 15px;
    margin-top: 50px;
    vertical-align: middle;
    cursor: pointer;
    display: block;
}