/* AssetTopPlan – Custom Modal & UI styles */

/* ── Modal overlay ── */
.atp-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.atp-modal-box {
  background: #fff;
  border-radius: 6px;
  padding: 2rem 2rem 1.5rem;
  max-width: 580px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.atp-modal-close {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  color: #666;
  background: none;
  border: none;
  padding: 0;
  font-weight: 300;
}
.atp-modal-close:hover {
  color: #266d86;
}

.atp-modal-title {
  font-size: 1.4rem;
  margin: 0 0 1.25rem;
  color: #266d86;
  padding-right: 2rem;
}

.atp-open-contact-modal {
  cursor: pointer;
}

/* ── Contact form ── */
.atp-form .atp-field {
  margin-bottom: 1rem;
}
.atp-form label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #333;
}
.atp-form input[type="text"],
.atp-form input[type="email"],
.atp-form input[type="tel"],
.atp-form textarea {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.atp-form input:focus,
.atp-form textarea:focus {
  outline: none;
  border-color: #266d86;
}
.atp-form textarea {
  height: 110px;
  resize: vertical;
}
.atp-form .atp-optional {
  font-size: 0.78rem;
  color: #888;
  font-weight: 400;
}
.atp-form .atp-submit {
  margin-top: 0.5rem;
}

/* ── Success message ── */
.atp-success {
  display: none;
  color: #2e7d32;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: 4px;
  padding: 1rem 1.25rem;
  text-align: center;
  font-size: 1rem;
  margin-top: 1rem;
}

/* ── Policy modals ── */
.atp-policy-content {
  font-size: 0.9rem;
  line-height: 1.65;
  color: #333;
}
.atp-policy-content h3 {
  margin: 1.4rem 0 0.4rem;
  font-size: 1rem;
  color: #266d86;
}
.atp-policy-content p,
.atp-policy-content ul {
  margin: 0 0 0.8rem;
}

/* ── Advantages section ── */
.atp-advantages {
  padding: 2rem 0 1rem;
}
.atp-advantages .atp-advantage-item {
  text-align: center;
  padding: 1.5rem 1rem;
}
.atp-advantages .atp-advantage-item .fa {
  font-size: 2.2rem;
  color: #266d86;
  margin-bottom: 0.75rem;
  display: block;
}
.atp-advantages .atp-advantage-item h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  color: #222;
}
.atp-advantages .atp-advantage-item p {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
}

/* ── Hero CTA ── */
.atp-hero-cta {
  margin-top: 1.5rem;
}

/* ── Shared responsive overrides ── */
html,
body {
  overflow-x: hidden;
}

img,
svg,
iframe,
video {
  max-width: 100%;
}

iframe {
  width: 100%;
}

table {
  max-width: 100%;
}

@media (max-width: 1100px) {
  .page,
  .pge-hdr,
  .pge-cnt,
  .pge-ftr,
  .pge-hero,
  .cms,
  .cms-box,
  .cms-map,
  .card-ogrid,
  .card-tgrid {
    min-width: 0;
  }

  .ctr {
    min-width: 0;
    width: auto;
    max-width: none;
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 40px;
  }

  .cms .cms-txt {
    padding-left: 0;
    padding-right: 0;
  }

  .cms .cms-txt p > img:first-child:not(:last-child),
  .cms .cms-txt p > img:not(:first-child):last-child,
  .cms .cms-txt > img:first-child:not(:last-child),
  .cms .cms-txt > img:not(:first-child):last-child {
    width: 100%;
    float: none;
    margin: 0 0 12px;
  }

  .cms-ognz .cms-slider {
    margin-left: 0;
    margin-right: 0;
  }

  .pge-hero,
  .pge-hero .hero-image {
    min-width: 0;
  }

  .pge-hero hgroup,
  .pge-hero.pge-hero--fullsize hgroup {
    padding: 42px 0 28px;
  }

  .pge-hero.pge-hero--fullsize hgroup p,
  .pge-hero p {
    width: auto;
    max-width: 38rem;
  }

  .pge-hero h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
  }

  .pge-breadcrump .cms-breadcrumb {
    gap: 12px;
    align-items: center;
  }

  .pge-breadcrump .links-rightside {
    flex-shrink: 0;
  }

  .cms-map .map-nav > ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
  }

  .cms-map .map-nav > ul > li {
    float: none;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .cms-map .map-nav > ul > li:first-child,
  .cms-map .map-nav > ul > li:last-child {
    padding: 0;
  }

  .cms-map .map-nav > ul > li > a {
    display: block;
    padding: 8px 12px;
    border: 1px solid #1890a8;
    border-radius: 999px;
  }

  .cms-map .map-tab,
  .cms-map .map-right {
    float: none;
    width: 100%;
    max-width: none;
  }

  .cms-map .map-tab ul > li {
    width: 100%;
  }

  .cms-map .map-right {
    margin-top: 20px;
  }

  footer .row,
  footer .ftr-cprt {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 900px) {
  header .hdr-teaser .ctr {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  header .hdr-teaser ul {
    float: none;
    width: 100%;
    margin: 12px 0 0;
  }

  header .hdr-teaser ul > li {
    float: none;
    margin: 20px 0 10px;
  }

  header .hdr-menu .menu > ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0;
  }

  header .hdr-menu .menu > ul > li {
    float: none;
    width: calc(50% - 4px);
  }

  header .hdr-menu .menu > ul > li > a {
    line-height: 1.3;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    border-bottom-color: transparent;
    letter-spacing: 0.02em;
  }

  header .hdr-menu .menu > ul > li.selected > a,
  header .hdr-menu .menu > ul > li:hover > a {
    margin-bottom: 0;
    border-bottom-color: transparent;
  }

  header .hdr-menu .menu > ul > li > div {
    position: static;
    top: auto;
    width: auto;
    padding: 12px 16px;
  }

  .row {
    margin-left: -8px;
    margin-right: -8px;
  }

  .col-md-1,
  .col-md-2,
  .col-md-3,
  .col-md-4,
  .col-md-5,
  .col-md-6,
  .col-md-7,
  .col-md-8,
  .col-md-9,
  .col-md-10,
  .col-md-11,
  .col-md-12,
  .tibe-col-md-lft,
  .tibe-col-md-rgt {
    width: 100%;
    float: none;
    padding-left: 8px;
    padding-right: 8px;
  }

  .row:last-child .col-md-4 {
    width: 100%;
  }

  .card-tgrid .tgrid-item,
  .card-tgrid.cols-2 .tgrid-item,
  .card-tgrid.cols-3 .tgrid-item,
  .card-tgrid.cols-4 .tgrid-item,
  .card-tgrid.cols-5 .tgrid-item,
  .card-ogrid .xslider-track .xslider-slide,
  .card-tgrid .xslider-track .xslider-slide {
    flex-basis: 100% !important;
    width: 100%;
  }

  .box-tgrid .tgrid-item img,
  .card-tgrid .tgrid-item .tgrid-img img {
    height: auto;
    min-height: 0;
  }

  .card-ogrid .ogrid-item .ogrid-desc .desc-title,
  .box-ogrid .ogrid-item .ogrid-desc h3 a,
  .box-ogrid .ogrid-item .ogrid-desc h3 em {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .box-ogrid .ogrid-item .ogrid-desc .price,
  .card-ogrid .ogrid-item .ogrid-desc .price,
  .ogrid-desc .flr,
  .ogrid-desc .fll,
  footer .ftr-cprt .flr {
    float: none;
    text-align: left;
  }

  .ogrid-btn {
    display: block;
    width: 100%;
    margin-bottom: 10px;
  }

  .cms-slider:not(.xslider-initialized),
  .slick-cibox:not(.xslider-initialized),
  .slider-hotel-images:not(.xslider-initialized) {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .cms-slider:not(.xslider-initialized) > div,
  .cms-slider:not(.xslider-initialized) .xslider-track > div,
  .slick-cibox:not(.xslider-initialized) > div,
  .slick-cibox:not(.xslider-initialized) .xslider-track > div,
  .slider-hotel-images:not(.xslider-initialized) > div,
  .slider-hotel-images:not(.xslider-initialized) .xslider-track > div {
    width: 100% !important;
    padding-left: 0;
    padding-right: 0;
  }

  .cms-ognz .cms-slider:not(.xslider-initialized) {
    width: 100%;
  }

  .cms-ognz .cms-slider div a,
  .cms-ognz .cms-slider div span {
    height: 80px;
    padding: 0 12px;
  }

  footer .col-md-4 {
    margin-bottom: 20px;
  }

  .atp-modal-box {
    padding: 1.5rem 1.25rem 1.25rem;
    max-height: 90vh;
  }
}

@media (max-width: 640px) {
  .ctr {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hdr-logo {
    font-size: 1.25rem;
  }

  header .hdr-menu .menu > ul > li {
    width: 100%;
  }

  .pge-hero .hero-image {
    height: calc(170px + 11rem);
  }

  .pge-hero hgroup,
  .pge-hero.pge-hero--fullsize hgroup {
    padding: 32px 0 22px;
  }

  .pge-hero h1 {
    font-size: 1.75rem;
    margin-bottom: 12px;
  }

  .pge-hero p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .atp-hero-cta .btn,
  .atp-advantages .btn,
  footer .btn,
  .ogrid-btn {
    width: 100%;
    white-space: normal;
  }

  .cms-map .map-right {
    display: none;
  }

  .cms-map .map-nav > ul > li > a {
    text-align: center;
  }

  .pge-breadcrump .cms-breadcrumb {
    flex-direction: column;
    align-items: flex-start;
  }

  .pge-breadcrump .links-rightside {
    align-self: flex-end;
  }

  .atp-advantages .atp-advantage-item {
    padding: 1.25rem 0.75rem;
  }

  .atp-modal-overlay {
    padding: 0.75rem;
  }

  .atp-modal-box {
    width: 100%;
    max-width: none;
    border-radius: 0;
  }

  .atp-form label {
    font-size: 0.85rem;
  }
}
