/* =============================================================================
   Baltic Travel – child theme styles (Elementor Pro site)
   Elementor owns layout, colours and type of its widgets (kit + element
   settings). This file styles what Elementor does not: details of the bt-*
   elements, novit_tours output, Contact Form 7 and Mailchimp forms.
   ========================================================================== */
:root{
   --bt-navy: #003580;
   --bt-navy-900: #0a2350;
   --bt-orange: #F28705;
   --bt-orange-hover: #ff9a1f;
   --bt-orange-text: #b35f00;
   --bt-ink: #1d2939;
   --bt-muted: #5d6b82;
   --bt-line: #e4e7ec;
   --bt-sand: #f4efe7;
   --bt-tint: #f2f5fa;
   --bt-radius: 14px;
   --bt-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 20px rgba(16, 24, 40, .07);
   --bt-shadow-hover: 0 2px 4px rgba(16, 24, 40, .06), 0 16px 36px rgba(16, 24, 40, .14);
   --bt-ease: cubic-bezier(.2, .7, .2, 1);
   --bt-topbar-h: 40px;
}

body{color: var(--bt-ink); -webkit-font-smoothing: antialiased}
a{transition: color .2s}
:focus-visible{outline: 3px solid var(--bt-orange); outline-offset: 2px}

/* -----------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
/* The top bar scrolls away, the main bar stays on top. */
.elementor-location-header{
   position: sticky;
   top: calc(var(--bt-topbar-h) * -1);
   z-index: 999;
   box-shadow: 0 2px 16px rgba(10, 35, 80, .18);
}
.admin-bar .elementor-location-header{top: calc(32px - var(--bt-topbar-h))}

.bt-topbar .elementor-icon-list-items{column-gap: 22px}
.bt-topbar .elementor-icon-list-text{transition: color .2s}
.bt-topbar .elementor-icon-list-item a:hover .elementor-icon-list-text{color: #fff}

.bt-lang{display: flex; align-items: center; gap: 2px}
.bt-lang .bt-lang__item{
   display: inline-flex;
   align-items: center;
   justify-content: center;
   min-width: 34px;
   height: 26px;
   padding: 0 8px;
   border-radius: 999px;
   font-size: 12px;
   font-weight: 700;
   letter-spacing: .06em;
   color: rgba(255, 255, 255, .7);
   text-decoration: none;
}
.bt-lang a.bt-lang__item:hover{color: #fff; background: rgba(255, 255, 255, .1)}
.bt-lang .bt-lang__item.is-active{color: var(--bt-navy-900); background: var(--bt-orange)}

.bt-logo img{display: block; height: auto}
.bt-nav .elementor-nav-menu--main .elementor-item{letter-spacing: .01em}
.bt-nav .elementor-nav-menu--main .elementor-item.elementor-item-active,
.bt-nav .elementor-nav-menu--main .current-menu-ancestor > .elementor-item{color: var(--bt-orange)}
.bt-nav .elementor-nav-menu--dropdown.elementor-nav-menu__container{
   box-shadow: 0 16px 40px rgba(10, 35, 80, .18);
}
.bt-nav .elementor-nav-menu--main .sub-menu{
   min-width: 220px;
   padding: 6px 0;
   border-radius: 12px;
   overflow: hidden;
   box-shadow: 0 16px 40px rgba(10, 35, 80, .2);
}
.bt-header-cta .elementor-button{box-shadow: 0 8px 18px -8px rgba(242, 135, 5, .8)}

@media (max-width: 1024px){
   .bt-nav .elementor-menu-toggle{border-radius: 10px}
   .bt-nav .elementor-nav-menu--dropdown .elementor-item{padding-left: 24px!important}
}
@media (max-width: 767px){
   :root{--bt-topbar-h: 36px}
   .bt-topbar .elementor-icon-list-item:not(:first-child){display: none}
}

/* -----------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.bt-footer-cta-wrap{padding-top: 56px}
.e-con.bt-footer-cta{
   position: relative;
   overflow: hidden;
   border-radius: 20px;
   background-image: radial-gradient(120% 140% at 100% 0%, rgba(242, 135, 5, .22) 0%, rgba(242, 135, 5, 0) 55%);
}
.bt-footer-cta__title .elementor-heading-title{line-height: 1.2}
.bt-footer-cta__text p{margin: 0}
.bt-footer__title .elementor-heading-title{
   font-size: 13px!important;
   letter-spacing: .12em;
   text-transform: uppercase;
}
.bt-footer__subtitle{margin-top: 10px}
.bt-footer__about p{margin: 0; line-height: 1.65}
.bt-footer__links .elementor-icon-list-item a,
.bt-footer__contacts .elementor-icon-list-item a{transition: color .2s, transform .2s}
.bt-footer__links .elementor-icon-list-item a:hover{transform: translateX(3px)}
.bt-footer__bottom{border-top: 1px solid rgba(255, 255, 255, .1)}
.bt-footer__bottom p{margin: 0; font-size: 14px}
.bt-footer__bottom a{color: rgba(255, 255, 255, .8); text-decoration: none}
.bt-footer__bottom a:hover{color: var(--bt-orange)}

/* Newsletter (Mailchimp for WP) */
.bt-nl .mc4wp-form-fields,
.bt-nl__fields{display: flex; flex-direction: column; gap: 8px}
.bt-nl input[type="text"],
.bt-nl input[type="email"]{
   width: 100%;
   height: 44px;
   padding: 0 14px;
   border: 1px solid rgba(255, 255, 255, .18);
   border-radius: 10px;
   background: rgba(255, 255, 255, .06);
   color: #fff;
   font: inherit;
   font-size: 15px;
}
.bt-nl input::placeholder{color: rgba(255, 255, 255, .55)}
.bt-nl input:focus{outline: none; border-color: var(--bt-orange); background: rgba(255, 255, 255, .1)}
.bt-nl button{
   height: 44px;
   border: 0;
   border-radius: 999px;
   background: var(--bt-orange);
   color: var(--bt-navy-900);
   font: inherit;
   font-size: 15px;
   font-weight: 700;
   cursor: pointer;
   transition: background-color .2s;
}
.bt-nl button:hover{background: var(--bt-orange-hover)}
.bt-nl .mc4wp-response{margin-top: 8px; font-size: 14px; color: rgba(255, 255, 255, .85)}

/* -----------------------------------------------------------------------------
   Sections, headings
   -------------------------------------------------------------------------- */
.e-con.bt-section--tint{background-color: var(--bt-tint)}
.bt-eyebrow .elementor-heading-title{
   display: inline-flex;
   align-items: center;
   gap: 10px;
   letter-spacing: .14em;
   text-transform: uppercase;
}
.bt-eyebrow .elementor-heading-title::before{
   content: "";
   width: 28px;
   height: 3px;
   border-radius: 3px;
   background: var(--bt-orange);
}
.bt-h2 .elementor-heading-title{line-height: 1.15; letter-spacing: -.01em}
.bt-lead p{margin: 0; max-width: 46rem; font-size: 17px; line-height: 1.6}
.bt-section-head .elementor-widget-text-editor[style*="center"] p,
.bt-section .bt-lead.elementor-widget-text-editor p{margin-inline: inherit}
@media (max-width: 767px){
   .bt-h2 .elementor-heading-title{font-size: 27px!important}
}

/* Inner page hero */
.e-con.bt-page-hero{
   position: relative;
   overflow: hidden;
   isolation: isolate;
   background-image: radial-gradient(90% 120% at 100% 0%, rgba(242, 135, 5, .18) 0%, rgba(242, 135, 5, 0) 50%),
                     linear-gradient(135deg, #003580 0%, #0a2350 100%)!important;
}
.e-con.bt-page-hero::after{
   content: "";
   position: absolute;
   right: -120px;
   bottom: -160px;
   z-index: -1;
   width: 420px;
   height: 420px;
   border: 60px solid rgba(255, 255, 255, .04);
   border-radius: 50%;
}
.bt-page-hero__title .elementor-heading-title{line-height: 1.1; letter-spacing: -.02em}
.bt-page-hero__lead p{margin: 0; max-width: 40rem; font-size: 18px; line-height: 1.6}
@media (max-width: 767px){
   .bt-page-hero__title .elementor-heading-title{font-size: 34px!important}
   .bt-page-hero__lead p{font-size: 16px}
}

/* -----------------------------------------------------------------------------
   Front page hero + search form
   -------------------------------------------------------------------------- */
.e-con.bt-hero{position: relative; isolation: isolate}
.e-con.bt-hero::after{
   content: "";
   position: absolute;
   inset: 0;
   z-index: -1;
   background: linear-gradient(90deg, rgba(244, 239, 231, 0) 0%, rgba(244, 239, 231, .25) 45%, rgba(244, 239, 231, .55) 100%);
   pointer-events: none;
}
.e-con.bt-hero > .e-con-inner{position: relative; z-index: 1}
.bt-hero__text{max-width: 40rem; margin-left: 38%!important}
.bt-hero__title .elementor-heading-title{line-height: 1.06; letter-spacing: -.02em}
.e-con.bt-hero__search,
.e-con.bt-search-card{
   border-radius: 18px;
   background: rgba(255, 255, 255, .97);
   box-shadow: 0 24px 60px -18px rgba(10, 35, 80, .38), 0 2px 6px rgba(10, 35, 80, .06);
}
.bt-section--overlap .bt-search-card{margin-top: -56px; position: relative; z-index: 2}
@media (max-width: 1199px){
   .bt-hero__text{margin-left: 30%!important}
}
@media (max-width: 1024px){
   .e-con.bt-hero::after{background: rgba(244, 239, 231, .55)}
   .bt-hero__text{margin-left: 0!important; max-width: none}
}
@media (max-width: 767px){
   .e-con.bt-hero__search, .e-con.bt-search-card{border-radius: var(--bt-radius)}
   .bt-section--overlap .bt-search-card{margin-top: -32px}
}

/* <novit-search> web component: only CSS variables and ::part. Colours come
   from the plugin option novit_search_theme. */
novit-search{
   --ms-py: .625rem;
   --ms-font-size: .9375rem;
   --ms-placeholder-color: #98a2b3;
}
novit-search::part(label){font-size: .8125rem; font-weight: 600; letter-spacing: .01em}
novit-search::part(input){height: 44px}
novit-search::part(check){color: var(--bt-muted)}
novit-search::part(submit){
   min-height: 48px;
   margin-top: 1.25rem;
   border-radius: 999px;
   background: var(--bt-orange);
   color: var(--bt-navy-900);
   font-size: .9375rem;
   font-weight: 700;
   letter-spacing: .08em;
   text-transform: uppercase;
   box-shadow: 0 8px 18px -8px rgba(242, 135, 5, .75);
   transition: background-color .2s var(--bt-ease), transform .2s var(--bt-ease);
}
novit-search::part(submit):hover{background: var(--bt-orange-hover); filter: none; transform: translateY(-1px)}
novit-search::part(submit):focus-visible{outline: 3px solid var(--bt-navy); outline-offset: 2px}

/* -----------------------------------------------------------------------------
   Travel card (loop item template "Reisi kaart")
   -------------------------------------------------------------------------- */
.e-loop-item{height: 100%}
.e-con.bt-card{
   height: 100%;
   overflow: hidden;
   border-radius: var(--bt-radius);
   background: #fff;
   box-shadow: var(--bt-shadow);
   color: var(--bt-ink);
   text-decoration: none!important;
   transition: box-shadow .3s var(--bt-ease), transform .3s var(--bt-ease);
}
.e-con.bt-card:hover,
.e-con.bt-card:focus-visible{transform: translateY(-4px); box-shadow: var(--bt-shadow-hover)}
.e-con.bt-card__media{
   position: relative;
   aspect-ratio: 4 / 3;
   overflow: hidden;
   isolation: isolate;
}
.e-con.bt-card__media::after{
   content: "";
   position: absolute;
   inset: 0;
   z-index: -1;
   background: linear-gradient(180deg, rgba(6, 22, 52, 0) 45%, rgba(6, 22, 52, .78) 100%);
}
/* Featured image of the card: an <img> covering the media box. */
.bt-card__img{
   position: absolute!important;
   inset: 0;
   z-index: -2;
   width: 100%!important;
   max-width: none!important;
   margin: 0!important;
}
.bt-card__img > .elementor-widget-container,
.bt-card__img a{display: block; height: 100%}
.bt-card__img img{
   display: block;
   width: 100%;
   height: 100%!important;
   max-width: none;
   object-fit: cover;
   border-radius: 0!important;
   transition: transform .6s var(--bt-ease);
}
.e-con.bt-card:hover .bt-card__img img{transform: scale(1.06)}
.bt-card__badge{
   position: absolute!important;
   top: 12px;
   right: 12px;
   width: auto!important;
   max-width: calc(100% - 24px);
   z-index: 1;
}
.bt-card__badge .elementor-heading-title{
   display: inline-block;
   padding: 6px 12px;
   border-radius: 999px;
   background: var(--bt-orange);
   color: var(--bt-navy-900);
   font-size: 14px;
   font-weight: 700;
   line-height: 1.2;
   box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}
.bt-card__badge .elementor-heading-title:empty{display: none}
.bt-card__title .elementor-heading-title{line-height: 1.25; text-shadow: 0 1px 8px rgba(0, 0, 0, .35)}
.bt-card__dates .elementor-heading-title{display: flex; gap: 8px; line-height: 1.45}
.bt-card__dates .elementor-heading-title::before{
   content: "";
   flex: 0 0 16px;
   height: 16px;
   margin-top: 2px;
   background-color: var(--bt-orange);
   -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='16.5' rx='2.5'/%3E%3Cpath d='M16 2.5v4M8 2.5v4M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat;
           mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='16.5' rx='2.5'/%3E%3Cpath d='M16 2.5v4M8 2.5v4M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* -----------------------------------------------------------------------------
   Travel post (single post template)
   -------------------------------------------------------------------------- */
.bt-post-hero__inner{width: 100%}
.bt-travel-meta{display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px}
.bt-travel-meta__price{
   padding: 6px 14px;
   border-radius: 999px;
   background: var(--bt-orange);
   color: var(--bt-navy-900);
   font-weight: 700;
}
.bt-travel-meta__dates{display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 500}
.bt-travel-meta__dates::before{
   content: "";
   width: 18px;
   height: 18px;
   background-color: var(--bt-orange);
   -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='16.5' rx='2.5'/%3E%3Cpath d='M16 2.5v4M8 2.5v4M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat;
           mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='16.5' rx='2.5'/%3E%3Cpath d='M16 2.5v4M8 2.5v4M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat;
}
.bt-post-content{font-size: 17px; line-height: 1.7}
.bt-post-content h2,
.bt-post-content h3,
.bt-post-content h4{margin: 1.6em 0 .5em; line-height: 1.25; color: var(--bt-navy)}
.bt-post-content h2:first-child,
.bt-post-content h3:first-child{margin-top: 0}
.bt-post-content img{max-width: 100%; height: auto; border-radius: 12px}
.bt-post-content ul,
.bt-post-content ol{padding-left: 1.25em}
.bt-post-content li{margin-bottom: .35em}
.bt-post-content table{width: 100%; border-collapse: collapse; font-size: 15px}
.bt-post-content td,
.bt-post-content th{padding: 10px 12px; border: 1px solid var(--bt-line)}
.bt-post-content .wp-el{margin-top: 0}

.e-con.bt-aside-card{
   border: 1px solid var(--bt-line);
   border-radius: 16px;
   background: #fff;
   box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 12px 32px rgba(16, 24, 40, .08);
}
.bt-post-aside .bt-aside-card{position: sticky; top: 108px}
.bt-aside-card__lead p{margin: 0; font-size: 15px; line-height: 1.55}
.bt-aside-card__phone .elementor-button{width: 100%}
@media (max-width: 1024px){
   .bt-post-aside .bt-aside-card{position: static}
}

/* -----------------------------------------------------------------------------
   Company page (operators) and contact page
   -------------------------------------------------------------------------- */
.e-con.bt-op-card{
   border: 1px solid var(--bt-line);
   border-radius: var(--bt-radius);
   background: #fff;
   box-shadow: var(--bt-shadow);
   transition: box-shadow .3s var(--bt-ease), transform .3s var(--bt-ease);
}
.e-con.bt-op-card:hover{transform: translateY(-3px); box-shadow: var(--bt-shadow-hover)}
.bt-op-card__info p,
.bt-op-card__note p{margin: 0; font-size: 15px; line-height: 1.6}
.bt-op-card__note p{font-style: italic}
.bt-op-card__link{margin-top: auto!important}

.e-con.bt-contact-card{
   display: grid!important;
   grid-template-columns: 52px 1fr;
   grid-template-rows: auto auto;
   column-gap: 16px!important;
   align-items: center;
   border: 1px solid var(--bt-line);
   border-radius: var(--bt-radius);
   background: #fff;
   box-shadow: var(--bt-shadow);
}
.e-con.bt-contact-card > .bt-contact-card__icon{grid-row: 1 / 3; margin: 0!important}
.bt-contact-card__icon .elementor-icon,
.bt-svc__icon .elementor-icon{background: var(--bt-tint)!important; color: var(--bt-navy)!important; fill: var(--bt-navy)!important; padding: 15px}
.bt-contact-card__icon .elementor-icon svg,
.bt-svc__icon .elementor-icon svg{fill: var(--bt-navy)!important}
.bt-contact-card__label .elementor-heading-title{text-transform: uppercase; letter-spacing: .08em}
.bt-contact-card__value .elementor-heading-title a{color: inherit; text-decoration: none}
.bt-contact-card__value .elementor-heading-title a:hover{color: var(--bt-orange-text)}
.bt-map iframe{border-radius: var(--bt-radius); filter: saturate(.9)}

/* -----------------------------------------------------------------------------
   Buttons used in templates (bt-btn) and Contact Form 7 forms (bt-cf7)
   -------------------------------------------------------------------------- */
.bt-btn{
   display: inline-flex;
   align-items: center;
   justify-content: center;
   gap: .5rem;
   min-height: 48px;
   padding: .625rem 1.5rem;
   border: 2px solid transparent;
   border-radius: 999px;
   font: inherit;
   font-size: .9375rem;
   font-weight: 700;
   line-height: 1.2;
   text-decoration: none!important;
   cursor: pointer;
   transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.bt-btn--block{display: flex; width: 100%}
.bt-btn--outline{border-color: var(--bt-navy); background: transparent; color: var(--bt-navy)}
.bt-btn--outline:hover,
.bt-btn--outline:focus-visible{background: var(--bt-navy); color: #fff}
.bt-btn svg{width: 18px; height: 18px; fill: currentColor}

.bt-request .wpcf7,
.bt-contact-form-card .wpcf7{margin: 0}
.bt-cf7 p{margin: 0}
.bt-cf7 .bt-cf7__field{margin-bottom: .875rem}
.bt-cf7__row{display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem}
.bt-cf7__field label{
   display: block;
   margin-bottom: .375rem;
   font-size: .875rem;
   font-weight: 600;
   color: var(--bt-ink);
}
.bt-cf7__req{color: var(--bt-orange)}
.bt-cf7 .wpcf7-form-control-wrap{display: block}
.bt-cf7 input[type="text"],
.bt-cf7 input[type="tel"],
.bt-cf7 input[type="email"],
.bt-cf7 textarea{
   display: block;
   width: 100%;
   height: 46px;
   padding: 0 .875rem;
   border: 1px solid #d0d5dd;
   border-radius: 10px;
   background: #fff;
   font: inherit;
   font-size: .9375rem;
   color: var(--bt-ink);
   box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
   transition: border-color .2s, box-shadow .2s;
}
.bt-cf7 textarea{height: auto; min-height: 104px; padding: .75rem .875rem; resize: vertical}
.bt-cf7 ::placeholder{color: #98a2b3}
.bt-cf7 input:focus,
.bt-cf7 textarea:focus{outline: none; border-color: var(--bt-navy); box-shadow: 0 0 0 4px rgba(0, 53, 128, .14)}
.bt-cf7 .wpcf7-not-valid{border-color: #d92d20!important}
.bt-cf7 .wpcf7-not-valid-tip{margin-top: .25rem; font-size: .8125rem; color: #d92d20}
.bt-cf7 .bt-cf7__submit{position: relative; margin-top: .25rem}
.bt-cf7 .wpcf7-submit{
   display: block;
   width: 100%;
   min-height: 50px;
   padding: .75rem 1.5rem;
   border: 0;
   border-radius: 999px;
   background: var(--bt-orange);
   color: var(--bt-navy-900);
   font: inherit;
   font-size: .9375rem;
   font-weight: 700;
   letter-spacing: .06em;
   text-transform: uppercase;
   cursor: pointer;
   box-shadow: 0 8px 18px -8px rgba(242, 135, 5, .75);
   transition: background-color .2s, transform .2s;
}
.bt-cf7 .wpcf7-submit:hover{background: var(--bt-orange-hover); transform: translateY(-1px)}
.bt-cf7 .wpcf7-submit:focus-visible{outline: 3px solid var(--bt-navy); outline-offset: 2px}
.bt-cf7 .wpcf7-spinner{position: absolute; right: .75rem; top: 50%; margin: -12px 0 0}
.bt-cf7 .bt-cf7__note{margin-top: .625rem; font-size: .75rem; text-align: center; color: var(--bt-muted)}
.wpcf7 form .wpcf7-response-output{
   margin: .75rem 0 0;
   padding: .75rem .875rem;
   border-radius: 10px;
   font-size: .875rem;
   line-height: 1.45;
}
.wpcf7 form.sent .wpcf7-response-output{border-color: #12b76a; background: #ecfdf3; color: #05603a}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output{border-color: var(--bt-orange); background: #fff6ea}
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output{border-color: #d92d20; background: #fef3f2}
@media (max-width: 575px){
   .bt-cf7__row{grid-template-columns: 1fr}
}

/* Mailchimp's "light" form theme styles the button; the footer form keeps the site look. */
.bt-nl .mc4wp-form button[type="submit"]{
   width: 100%;
   padding: 0 1rem;
   border: 0!important;
   border-radius: 999px;
   background: var(--bt-orange)!important;
   color: var(--bt-navy-900)!important;
   font-weight: 700;
}
.bt-nl .mc4wp-form button[type="submit"]:hover{background: var(--bt-orange-hover)!important}
.bt-nl .mc4wp-form input[type="text"],
.bt-nl .mc4wp-form input[type="email"]{border-color: rgba(255, 255, 255, .18)!important; background: rgba(255, 255, 255, .06)!important; color: #fff!important}

/* Offers of the plugin: full width of the section; the front page shows 12 + a link to search. */
.bt-offers .novit-container,
body .novit-container[data-novit-search-results]{max-width: none; margin: 0; padding: 0}
.bt-offers--capped [data-novit-list] > :nth-child(n+13){display: none}
.bt-offers__more{margin-top: 1rem}

/* -----------------------------------------------------------------------------
   novit_tours output: offer grid, hotel cards, country list
   -------------------------------------------------------------------------- */
.bt-offers .novit-country-tabs .novit-row{margin: 0}
body [data-novit-country-select]{
   -webkit-appearance: none;
           appearance: none;
   min-width: 12rem;
   max-width: 100%;
   padding: .5625rem 2.5rem .5625rem 1rem;
   border: 1px solid #d0d5dd;
   border-radius: 999px;
   background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%235d6b82'%3E%3Cpath d='M5.3 7.3a1 1 0 0 1 1.4 0L10 10.6l3.3-3.3a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E") no-repeat right .875rem center / 1.125rem;
   font: inherit;
   font-size: .9375rem;
   font-weight: 500;
   color: var(--bt-ink);
   cursor: pointer;
}
body [data-novit-country-select]:hover,
body [data-novit-country-select]:focus{border-color: var(--bt-navy); outline: none}
body [data-novit-country-select]:focus{box-shadow: 0 0 0 4px rgba(0, 53, 128, .15)}

body [data-novit-list],
body [data-novit-search-results-elements] > .novit-row{
   display: grid;
   grid-template-columns: repeat(4, minmax(0, 1fr));
   gap: 1.5rem;
   margin: 1.5rem 0 0;
}
body [data-novit-list] > [class*="novit-col"],
body [data-novit-search-results-elements] > .novit-row > [class*="novit-col"]{width: auto; max-width: none; flex: none; padding: 0}
/* "Näita rohkem" appends another row: keep the same gap between them. */
body [data-novit-search-results-elements] > .novit-row + .novit-row{margin-top: 1.5rem}
body [data-novit-search-results-elements] > .novit-row:first-child{margin-top: 0}
body [data-novit-list] .novit-row{display: contents}

body .novit-hotel-card{
   display: flex;
   flex-direction: column;
   height: 100%;
   margin: 0;
   overflow: hidden;
   border: 0;
   border-radius: var(--bt-radius);
   background: #fff;
   box-shadow: var(--bt-shadow);
   font-size: .875rem;
   font-weight: 400;
   color: var(--bt-ink);
   text-decoration: none;
   transition: box-shadow .3s var(--bt-ease), transform .3s var(--bt-ease);
}
body .novit-hotel-card:hover{opacity: 1; transform: translateY(-4px); box-shadow: var(--bt-shadow-hover)}
body .novit-hotel-card .novit-hotel-image{position: relative; height: auto; padding-top: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bt-sand)}
body .novit-hotel-card .novit-hotel-image img{
   position: static;
   display: block;
   width: 100%;
   height: 100%;
   transform: none;
   object-fit: cover;
   transition: transform .6s var(--bt-ease);
}
body .novit-hotel-card:hover .novit-hotel-image img{transform: scale(1.06)}
body .novit-hotel-card .novit-hotel-image .price{
   position: absolute;
   top: .75rem;
   left: auto;
   right: .75rem;
   padding: .375rem .75rem;
   border-radius: 999px;
   background: var(--bt-orange);
   color: var(--bt-navy-900);
   font-size: .875rem;
   font-weight: 700;
   line-height: 1.25rem;
   letter-spacing: 0;
   box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}
body .novit-hotel-card h3{
   min-height: 0;
   margin: 1rem 1rem .5rem;
   font-size: 1rem;
   line-height: 1.3;
   font-weight: 700;
   letter-spacing: .01em;
   color: var(--bt-navy);
}
body .novit-hotel-card h3 sup{top: -.35em; margin-left: .05em; color: var(--bt-orange)}
body .novit-hotel-card > .row{
   display: block;
   flex: 1;
   margin: 0 1rem 1rem;
   padding-top: .75rem;
   border-top: 1px solid var(--bt-line);
   line-height: 1.6;
   color: var(--bt-muted);
}
body .novit-hotel-card > .row > .col-auto{margin-left: 0!important; padding: 0}
body .novit-hotel-card > .row b{font-weight: 600; color: var(--bt-ink)}

.bt-countries__list{
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
   gap: 12px;
   margin: 0;
   padding: 0;
   list-style: none;
}
.bt-country{
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 12px;
   height: 100%;
   padding: 14px 16px;
   border: 1px solid var(--bt-line);
   border-radius: 12px;
   background: #fff;
   color: var(--bt-ink);
   text-decoration: none;
   transition: border-color .2s, box-shadow .2s, transform .2s;
}
.bt-country:hover{border-color: var(--bt-navy); box-shadow: var(--bt-shadow); transform: translateY(-2px)}
.bt-country__name{font-weight: 600}
.bt-country__price{white-space: nowrap; font-weight: 700; color: var(--bt-navy)}
.bt-country__price small{font-weight: 500; color: var(--bt-muted)}

@media (max-width: 1199px){
   body [data-novit-list],
   body [data-novit-search-results-elements] > .novit-row{grid-template-columns: repeat(3, minmax(0, 1fr))}
}
@media (max-width: 1024px){
   body [data-novit-list],
   body [data-novit-search-results-elements] > .novit-row{grid-template-columns: repeat(2, minmax(0, 1fr))}
}
@media (max-width: 575px){
   body [data-novit-list],
   body [data-novit-search-results-elements] > .novit-row{grid-template-columns: 1fr}
   .bt-countries__list{grid-template-columns: repeat(2, minmax(0, 1fr))}
   .bt-country{flex-direction: column; align-items: flex-start; gap: 2px}
}

@media (prefers-reduced-motion: reduce){
   .e-con.bt-card, .bt-card__img img, .e-con.bt-op-card, body .novit-hotel-card,
   body .novit-hotel-card .novit-hotel-image img, .bt-country, novit-search::part(submit),
   .bt-cf7 .wpcf7-submit{transition: none}
   .e-con.bt-card:hover, .e-con.bt-op-card:hover, body .novit-hotel-card:hover, .bt-country:hover,
   .e-con.bt-card:hover .bt-card__img img, body .novit-hotel-card:hover .novit-hotel-image img{transform: none}
}

/* Header main bar: logo left, menu + button take the rest (no wrapping on small screens). */
.e-con.bt-mainbar__right{flex: 1 1 auto; min-width: 0}

/* Travel cards: two per row on phones, so the lists stay short. */
@media (max-width: 767px){
   .e-con.bt-card__media{padding: 10px!important}
   .bt-card__title .elementor-heading-title{font-size: 15px!important}
   .bt-card__badge{top: 8px; right: 8px; max-width: calc(100% - 16px)}
   .bt-card__badge .elementor-heading-title{padding: 4px 8px; font-size: 12px}
   .e-con.bt-card__body{padding: 10px 10px 12px!important}
   .bt-card__dates .elementor-heading-title{font-size: 12px!important; gap: 6px}
   .bt-card__dates .elementor-heading-title::before{flex-basis: 13px; height: 13px; margin-top: 1px}
}

/* -----------------------------------------------------------------------------
   EN / FI pages
   -------------------------------------------------------------------------- */
/* Home hero over the photo (navy gradient overlay set in Elementor) */
.bt-hero-intl__text{max-width: 44rem}
.bt-hero-intl__title .elementor-heading-title{line-height: 1.06; letter-spacing: -.02em}
.bt-hero-intl__lead p{margin: 0; font-size: 19px; line-height: 1.6}
@media (max-width: 767px){
   .bt-hero-intl__lead p{font-size: 17px}
}

/* Service cards */
.e-con.bt-svc{
   border: 1px solid var(--bt-line);
   border-radius: var(--bt-radius);
   background: #fff;
   box-shadow: var(--bt-shadow);
   transition: box-shadow .3s var(--bt-ease), transform .3s var(--bt-ease);
}
.e-con.bt-svc:hover{transform: translateY(-3px); box-shadow: var(--bt-shadow-hover)}
.bt-svc__title .elementor-heading-title{line-height: 1.3}
.bt-svc__text p{margin: 0; font-size: 15px; line-height: 1.6}

/* About strip with the union logo */
.e-con.bt-about__card{
   border: 1px solid var(--bt-line);
   border-radius: var(--bt-radius);
   background: #fff;
   box-shadow: var(--bt-shadow);
}
.bt-about__logo img{max-width: 320px; margin-inline: auto; display: block}
.bt-about__member p{margin: 0; font-size: 14px; font-weight: 600}

/* Text of the existing pages */
.bt-prose{font-size: 17px; line-height: 1.75; color: var(--bt-ink)}
.bt-prose h2,
.bt-prose h3,
.bt-prose h4{margin: 1.6em 0 .5em; line-height: 1.25; color: var(--bt-navy)}
.bt-prose > .elementor-widget-container > :first-child,
.bt-prose h2:first-child,
.bt-prose h3:first-child{margin-top: 0}
.bt-prose p{margin: 0 0 1em}
.bt-prose ul,
.bt-prose ol{padding-left: 1.25em; margin: 0 0 1em}
.bt-prose li{margin-bottom: .35em}
.bt-prose img{max-width: 100%; height: auto; border-radius: 12px}
.bt-prose figure{margin: 1.5em 0}
.bt-prose strong{color: var(--bt-navy)}
.bt-prose a{text-decoration: underline; text-underline-offset: 3px}
.bt-aside-card__email p{margin: 0; font-size: 15px; font-weight: 600}
.bt-aside-card__email a{color: var(--bt-navy); text-decoration: none}

.bt-lead--center p{margin-inline: auto!important; text-align: center}
.bt-footer__links--plain .elementor-icon-list-item{cursor: default}
@media (max-width: 1024px){
   /* On narrow screens the text covers the whole photo: even overlay instead of the left-to-right gradient. */
   .e-con.bt-hero-intl::before{
      background-image: none!important;
      background-color: rgba(10, 35, 80, .8)!important;
      opacity: 1!important;
   }
}

/* The <novit-search> web component is registered at once but draws its form a
   moment later (Vue mounts asynchronously), so :not(:defined) does not help.
   Reserve the height of the rendered form (current 3-row layout from
   novit_search_layout) so the content below does not jump (CLS). */
novit-search{display: block; min-height: 335px}
@media (max-width: 767px){ novit-search{min-height: 589px} }
@media (max-width: 575px){ novit-search{min-height: 1061px} }

/* "Näita rohkem" under the search results */
body .novit-load_more{
   display: inline-flex;
   align-items: center;
   justify-content: center;
   min-height: 48px;
   margin-top: 2rem;
   padding: .625rem 1.75rem;
   border: 2px solid var(--bt-navy);
   border-radius: 999px;
   background: transparent;
   color: var(--bt-navy);
   font: inherit;
   font-size: .9375rem;
   font-weight: 700;
   cursor: pointer;
   transition: background-color .2s, color .2s;
}
body .novit-load_more:hover,
body .novit-load_more:focus-visible{background: var(--bt-navy); color: #fff}

/* -----------------------------------------------------------------------------
   Search results on phones: collapsed form + summary (assets/js/search-mobile.js)
   -------------------------------------------------------------------------- */
.bt-search-summary{display: none}
@media (max-width: 767px){
   .bt-search-done .bt-search-card:not(.is-expanded) novit-search,
   .bt-search-done .bt-search-card:not(.is-expanded) .elementor-widget-shortcode{display: none}
   /* room for the summary until the script has added it */
   .bt-search-done .e-con.bt-search-card:not(.has-summary){min-height: 108px}
   .bt-search-done .e-con.bt-search-card{padding-bottom: 16px!important}
   .bt-search-summary{
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
   }
   .bt-search-card.is-expanded .bt-search-summary{padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--bt-line)}
   .bt-search-summary__text{display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; line-height: 1.4; color: var(--bt-muted)}
   .bt-search-summary__label{font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--bt-orange-text)}
   .bt-search-summary__text strong{font-size: 17px; color: var(--bt-navy)}
   .bt-search-summary__btn{
      flex: 0 0 auto;
      min-height: 42px;
      padding: 0 16px;
      border: 2px solid var(--bt-navy)!important;
      border-radius: 999px;
      background: #fff!important;
      color: var(--bt-navy)!important;
      font: inherit;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
   }
   .bt-search-card.is-expanded .bt-search-summary__btn{background: var(--bt-navy)!important; color: #fff!important}
}

/* -----------------------------------------------------------------------------
   Hotel cards on phones: photo left, details right (short lists)
   -------------------------------------------------------------------------- */
@media (max-width: 575px){
   body .novit-hotel-card{
      display: grid;
      grid-template-columns: 128px minmax(0, 1fr);
      grid-template-rows: auto 1fr;
      column-gap: 0;
   }
   body .novit-hotel-card .novit-hotel-image{
      grid-row: 1 / 3;
      aspect-ratio: auto;
      height: 100%;
      min-height: 148px;
   }
   body .novit-hotel-card .novit-hotel-image .price{
      top: auto;
      bottom: 8px;
      left: 8px;
      right: auto;
      padding: 3px 8px;
      font-size: 12px;
      line-height: 1.3;
   }
   body .novit-hotel-card h3{margin: 12px 12px 4px; font-size: 14px; line-height: 1.3}
   body .novit-hotel-card > .row{margin: 0 12px 12px; padding-top: 6px; font-size: 13px; line-height: 1.5}
   body [data-novit-list],
   body [data-novit-search-results-elements] > .novit-row{gap: 12px}
   body [data-novit-search-results-elements] > .novit-row + .novit-row{margin-top: 12px}
}
