/* Small WordPress-specific improvements, without redesigning the approved frontend */
.stmarys-hp{position:absolute!important;left:-99999px!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.stmarys-form-feedback{display:block;line-height:1.55;margin-top:12px!important;font-size:14px;color:#075e50;font-weight:600}
.stmarys-form-feedback a{font-weight:750;text-decoration:underline;text-underline-offset:3px}
.stmarys-form-feedback.stmarys-error,.stmarys-form-error{color:#b12a2d!important}
.stmarys-success{padding:30px;border:1px solid #b8dbcc;background:#f0faf5;border-radius:18px;max-width:650px}
.stmarys-success h2{margin:0 0 12px}.stmarys-success p{margin:12px 0}
.stmarys-success .btn{display:inline-flex;margin-top:10px}
.stmarys-cms .package-card[hidden],.stmarys-cms .boat-card[hidden]{display:none!important}
.stmarys-cms .stmarys-menu-links{display:contents;list-style:none;margin:0;padding:0}
.stmarys-cms .stmarys-menu-links li{list-style:none}
.stmarys-cms .stmarys-menu-links li a{color:inherit;text-decoration:none;font:inherit}
.stmarys-cms .stmarys-menu-links .current-menu-item a{color:#00655f}
.stmarys-cms #booking-form input:focus-visible,.stmarys-cms #booking-form select:focus-visible{outline:2px solid #00786c;outline-offset:2px}
.stmarys-cms .package-card h3 a{color:inherit;text-decoration:none}
.stmarys-cms .package-card h3 a:hover{text-decoration:underline;text-underline-offset:5px}
.stmarys-cms .package-grid,.stmarys-cms .boats-grid{align-items:stretch}
@media(max-width:760px){.stmarys-success{padding:21px}.stmarys-cms .booking-buttons{gap:10px;flex-wrap:wrap}.stmarys-cms .booking-buttons .btn{min-height:44px}}

/* WordPress frontend restore v1.0.1: site-wide layout and form fixes */
.stmarys-cms .booking-layout,.stmarys-cms .inner-grid,.stmarys-cms .contact-grid,.stmarys-cms .about,.stmarys-cms .faq-grid,.stmarys-cms .footer-grid{min-width:0}
.stmarys-cms .booking-layout>*,.stmarys-cms .inner-grid>*,.stmarys-cms .contact-grid>*,.stmarys-cms .footer-grid>*{min-width:0}
.stmarys-cms .book-step[hidden],.stmarys-cms .boat-only[hidden],.stmarys-cms .tour-only[hidden]{display:none!important}
.stmarys-cms input[type="date"],.stmarys-cms input[type="tel"],.stmarys-cms input[type="email"],.stmarys-cms input[type="text"],.stmarys-cms textarea,.stmarys-cms select{max-width:100%}
.stmarys-cms .form input[type="checkbox"]{accent-color:#00655f}
.stmarys-cms .form button[type="submit"]{min-height:48px}
.stmarys-cms .form button[type="submit"]:disabled{opacity:.65;cursor:progress}
.stmarys-cms .form input:focus-visible,.stmarys-cms .form select:focus-visible,.stmarys-cms .form textarea:focus-visible{outline:2px solid #00655f;outline-offset:1px}
.stmarys-cms .footer-brand .brand-logo,.stmarys-cms header .brand-logo{object-fit:contain}
.stmarys-cms .cta-band .wrap>*{min-width:0}
@media(max-width:1000px){.stmarys-cms .links{z-index:51}.stmarys-cms .menu{z-index:52}}
@media(max-width:760px){.stmarys-cms .cta-band .wrap{display:block}.stmarys-cms .cta-band .btn{margin-top:20px}.stmarys-cms .form{max-width:100%;min-width:0}.stmarys-cms #booking-form,.stmarys-cms .booking-layout,.stmarys-cms .inner-grid{width:100%;max-width:100%}.stmarys-cms .package-grid,.stmarys-cms .boats-grid,.stmarys-cms .info-cards{grid-template-columns:minmax(0,1fr)}.stmarys-cms .booking-buttons .btn{max-width:100%}}

/* Version 1.0.2: functional mobile CTA across all pages */
.stmarys-mobile-actions{display:none}
.stmarys-cms .cta-band{margin:0}
.stmarys-cms .stmarys-menu-links li{margin:0}
.stmarys-cms .form label.full:has(>input[type="checkbox"]){display:flex;align-items:flex-start;gap:9px;line-height:1.55}
.stmarys-cms .form label.full>input[type="checkbox"]{flex:0 0 16px;width:16px;height:16px;margin:1px 0 0;accent-color:#00655f}
@media(max-width:760px){
 body.stmarys-cms{padding-bottom:calc(65px + env(safe-area-inset-bottom))}
 .stmarys-mobile-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;position:fixed;z-index:110;bottom:0;left:0;right:0;background:#fff;box-shadow:0 -7px 24px #102d2c16;border-top:1px solid #d4e4dc;padding:8px 12px calc(8px + env(safe-area-inset-bottom))}
 .stmarys-mobile-actions a{display:flex;align-items:center;justify-content:center;gap:7px;background:#00655f;color:#fff;border-radius:8px;padding:11px 5px;text-decoration:none;text-align:center;font-size:12px;font-weight:700;min-height:44px}
 .stmarys-mobile-actions a:nth-child(2){background:#087d5d}
 .stmarys-mobile-actions a:focus-visible{outline:3px solid #e67d24;outline-offset:1px}
 body.stmarys-cms.menu-is-open .stmarys-mobile-actions{display:none}
}

/* v1.1.1: package listing status / safe image & card visibility */
.stmarys-cms .stmarys-no-packages{padding:32px;border:1px solid #dce7e2;border-radius:14px;background:#f4f8f5;color:#173c36}
.stmarys-cms .stmarys-no-packages h3{margin-bottom:12px}
.stmarys-cms .stmarys-no-packages .btn{margin-top:10px}
.stmarys-cms .package-grid .package-card:not([hidden]),.stmarys-cms .boats-grid .package-card:not([hidden]){visibility:visible;opacity:1}
.stmarys-cms .stmarys-auto-listing{padding:36px 0 52px;background:#fff}

/* 1.1.2 Dynamic package listing improvements */
.stmarys-cms .package-grid,.stmarys-cms .boats-grid{min-width:0}
.stmarys-cms .package-grid .package-card[hidden]{display:none!important}
.stmarys-cms .stmarys-auto-listing .wrap{width:min(1200px,calc(100% - 36px));margin-inline:auto}

/* ST.MARYS v1.1.3 — compact footer */
.stmarys-cms footer.stmarys-site-footer{background:#063735;color:#dfede7;padding:34px 0 17px;margin:0}
.stmarys-cms .stmarys-site-footer .stmarys-footer-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.74fr) minmax(0,1.13fr);gap:clamp(24px,4vw,56px);padding-bottom:27px;align-items:start}
.stmarys-cms .stmarys-footer-layout>*{min-width:0}
.stmarys-cms .stmarys-footer-home{display:inline-block;max-width:100%;line-height:0}
.stmarys-cms .stmarys-footer-logo{display:block;width:min(100%,255px);max-width:255px;height:auto;object-fit:contain;background:transparent;border:0;filter:none;mix-blend-mode:normal}
.stmarys-cms .stmarys-footer-company p{max-width:290px;margin:13px 0 0;font-size:12px;line-height:1.8;color:#b9d2c9}
.stmarys-cms .stmarys-footer-section h2{font:700 11px/1.35 system-ui,sans-serif;letter-spacing:1.65px;text-transform:uppercase;color:#a6d5c4;margin:3px 0 14px}
.stmarys-cms .stmarys-footer-explore nav{display:grid;gap:10px}
.stmarys-cms .stmarys-footer-explore nav a,.stmarys-cms .stmarys-footer-contact-link,.stmarys-cms .stmarys-footer-whatsapp{font-size:12.5px;line-height:1.55;text-decoration:none;color:#e7f3ec;transition:color .2s ease}
.stmarys-cms .stmarys-footer-explore nav a:hover,.stmarys-cms .stmarys-footer-contact-link:hover,.stmarys-cms .stmarys-footer-whatsapp:hover{color:#f9c07a}
.stmarys-cms .stmarys-footer-contact{display:flex;flex-direction:column;align-items:flex-start;gap:7px}
.stmarys-cms .stmarys-footer-contact h2{margin-bottom:7px}
.stmarys-cms .stmarys-footer-contact-link{overflow-wrap:anywhere}
.stmarys-cms .stmarys-footer-address{font-size:12px;color:#afcfc3;margin:1px 0 3px}
.stmarys-cms .stmarys-footer-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-top:9px}
.stmarys-cms .stmarys-footer-button{display:inline-flex;gap:7px;align-items:center;justify-content:center;min-height:38px;padding:9px 15px;border-radius:999px;background:#e5f0e8;color:#08413b;text-decoration:none;font-size:12px;font-weight:750;transition:background .2s ease,transform .2s ease}
.stmarys-cms .stmarys-footer-button:hover{background:#fff;transform:translateY(-1px)}
.stmarys-cms .stmarys-footer-whatsapp{font-weight:650}
.stmarys-cms .stmarys-footer-bottom{border-top:1px solid rgba(231,243,236,.17);padding-top:15px;display:flex;gap:10px 24px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.stmarys-cms .stmarys-footer-bottom p{margin:0;font-size:11px;color:#aac8bb;line-height:1.5}
.stmarys-cms .stmarys-footer-bottom nav{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.stmarys-cms .stmarys-footer-bottom nav a,.stmarys-cms .stmarys-footer-credit a{color:#dbece4;text-decoration:none;font-size:11px}
.stmarys-cms .stmarys-footer-bottom nav a:hover,.stmarys-cms .stmarys-footer-credit a:hover{color:#f9c07a}
.stmarys-cms footer.stmarys-site-footer a:focus-visible{outline:2px solid #f9c07a;outline-offset:4px;border-radius:3px}
@media(max-width:850px){
 .stmarys-cms .stmarys-site-footer .stmarys-footer-layout{grid-template-columns:1fr 1fr;gap:24px 35px}
 .stmarys-cms .stmarys-footer-company{grid-column:1/-1}
 .stmarys-cms .stmarys-footer-company p{max-width:none;margin:9px 0 0}
 .stmarys-cms .stmarys-footer-logo{max-width:220px}
}
@media(max-width:500px){
 .stmarys-cms footer.stmarys-site-footer{padding:28px 0 17px}
 .stmarys-cms .stmarys-site-footer .stmarys-footer-layout{grid-template-columns:minmax(0,.92fr) minmax(0,1.16fr);gap:19px 14px;padding-bottom:22px}
 .stmarys-cms .stmarys-footer-logo{max-width:205px}
 .stmarys-cms .stmarys-footer-company p{font-size:11.5px;max-width:330px}
 .stmarys-cms .stmarys-footer-section h2{font-size:10px;letter-spacing:1px;margin:2px 0 11px}
 .stmarys-cms .stmarys-footer-explore nav{gap:10px}
 .stmarys-cms .stmarys-footer-explore nav a,.stmarys-cms .stmarys-footer-contact-link{font-size:11.5px}
 .stmarys-cms .stmarys-footer-contact{gap:8px}
 .stmarys-cms .stmarys-footer-address{font-size:11px}
 .stmarys-cms .stmarys-footer-actions{gap:10px;margin-top:4px}
 .stmarys-cms .stmarys-footer-button{font-size:11px;min-height:35px;padding:8px 12px}
 .stmarys-cms .stmarys-footer-whatsapp{font-size:11.5px}
 .stmarys-cms .stmarys-footer-bottom{gap:10px 14px;padding-top:14px;justify-content:flex-start}
 .stmarys-cms .stmarys-footer-bottom p,.stmarys-cms .stmarys-footer-bottom nav a,.stmarys-cms .stmarys-footer-credit a{font-size:10.5px}
 .stmarys-cms .stmarys-footer-credit{flex-basis:100%}
}
@media(prefers-reduced-motion:reduce){.stmarys-cms .stmarys-footer-button{transition:none}}

/* 1.1.5: Independent, reliable Destination overview grid (no reliance on imported card markup). */
.stmarys-destinations-section{padding:42px 0 48px}
.stmarys-destinations-intro{max-width:680px;margin-bottom:23px}
.stmarys-destinations-intro h2{margin:0 0 8px;font-size:clamp(25px,3vw,36px);line-height:1.15}
.stmarys-destinations-intro p{margin:0;color:#5c6d69;line-height:1.65}
.stmarys-destinations-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin:0!important;align-items:stretch}
.stmarys-destination-card{display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid #e2ebe6;border-radius:16px;box-shadow:0 8px 26px rgba(8,62,53,.06);min-width:0;transition:transform .22s ease,box-shadow .22s ease}
.stmarys-destination-card:hover{transform:translateY(-3px);box-shadow:0 16px 34px rgba(8,62,53,.11)}
.stmarys-destination-photo{position:relative;display:block;width:100%;height:215px;overflow:hidden;background:#d8e5de}
.stmarys-destination-photo img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;transition:transform .45s ease}
.stmarys-destination-card:hover .stmarys-destination-photo img{transform:scale(1.04)}
.stmarys-destination-photo span{position:absolute;bottom:13px;left:13px;padding:7px 11px;border-radius:99px;background:rgba(255,255,255,.96);color:#075d55;font-size:11px;letter-spacing:.05em;text-transform:uppercase;font-weight:700}
.stmarys-destination-content{padding:21px 22px 22px;display:flex;flex:1;flex-direction:column;gap:10px}
.stmarys-destination-content h3{font-size:23px!important;line-height:1.22;margin:0!important;min-height:0!important}
.stmarys-destination-content h3 a{text-decoration:none;color:#103e39}
.stmarys-destination-content p{margin:0!important;color:#5c6d69;font-size:14px;line-height:1.62;flex:1}
.stmarys-destination-link{display:inline-flex;align-items:center;gap:8px;align-self:flex-start;margin-top:8px;font-weight:700;color:#00655f;text-decoration:none}
.stmarys-destination-link:hover{text-decoration:underline}
@media(max-width:950px){.stmarys-destinations-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stmarys-destinations-section{padding:34px 0}}
@media(max-width:600px){.stmarys-destinations-grid{grid-template-columns:minmax(0,1fr);gap:18px}.stmarys-destination-photo{height:212px}.stmarys-destination-content{padding:18px 19px 20px}.stmarys-destinations-section{padding:28px 0 33px}}
@media(prefers-reduced-motion:reduce){.stmarys-destination-card,.stmarys-destination-photo img{transition:none}.stmarys-destination-card:hover,.stmarys-destination-card:hover img{transform:none}}

/* Form recovery v1.1.7: ensure reliable layout if an older page has only a shortcode. */
.stmarys-auto-enquiry{padding-block:36px}.stmarys-auto-enquiry .form{max-width:780px;margin:20px auto 0}
.stmarys-auto-enquiry .section-head{max-width:780px;margin:0 auto}
.stmarys-cms #booking-form button:disabled,.stmarys-cms .form button:disabled{opacity:.65;cursor:wait}
.stmarys-cms .stmarys-form-error,.stmarys-cms .stmarys-form-feedback.stmarys-error{color:#9b2020;line-height:1.5;font-weight:600}
.stmarys-cms .stmarys-success{padding:20px;border:1px solid #b6d9c7;background:#eff8f2;border-radius:12px}
@media(max-width:760px){.stmarys-auto-enquiry{padding-block:26px}.stmarys-cms #booking-form{min-width:0}.stmarys-cms .booking-layout{grid-template-columns:minmax(0,1fr)}}


/* ST.MARYS v1.1.8: always-readable header booking button */
body.stmarys-cms header nav.links > a.stmarys-header-cta {
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex-shrink:0!important;min-height:45px;min-width:166px;
  background:#f5802f!important;border:1px solid #f5802f!important;border-radius:28px!important;
  color:#fff!important;-webkit-text-fill-color:#fff!important;font-size:12px!important;
  font-weight:750!important;line-height:1.4!important;text-decoration:none!important;
  text-transform:none!important;letter-spacing:.15px!important;
  opacity:1!important;visibility:visible!important;text-indent:0!important;
}
body.stmarys-cms header nav.links > a.stmarys-header-cta .stmarys-header-cta-label,
body.stmarys-cms header nav.links > a.stmarys-header-cta .stmarys-header-cta-label * {
  display:inline!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
  opacity:1!important;visibility:visible!important;font-size:inherit!important;
  font-weight:inherit!important;text-indent:0!important;line-height:inherit!important;
}
body.stmarys-cms header nav.links > a.stmarys-header-cta:hover,
body.stmarys-cms header nav.links > a.stmarys-header-cta:focus-visible {
  background:#db651c!important;border-color:#db651c!important;color:#fff!important;
}
body.stmarys-cms header nav.links > a.stmarys-header-cta:focus-visible {outline:3px solid #075e59;outline-offset:3px}
@media(max-width:1200px){body.stmarys-cms header nav.links > a.stmarys-header-cta {min-width:140px;padding:12px 14px!important}}
@media(max-width:1000px){body.stmarys-cms header nav.links > a.stmarys-header-cta {width:100%;margin:20px 0 0!important;min-height:48px}}

/* All cards on the inner Kerala Packages page have the same footprint.
   The homepage's intentionally separate styling is not changed. */
body.stmarys-cms .package-grid[data-stmarys-package-list="tour"] {
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:stretch;
}
body.stmarys-cms .package-grid[data-stmarys-package-list="tour"] > article.package-card,
body.stmarys-cms .package-grid[data-stmarys-package-list="tour"] > article.package-card:first-child {
  display:flex!important;flex-direction:column!important;grid-column:auto!important;
  grid-row:auto!important;grid-template-columns:none!important;min-width:0;
  height:100%;overflow:hidden;border-radius:13px;
}
body.stmarys-cms .package-grid[data-stmarys-package-list="tour"] > article.package-card .photo,
body.stmarys-cms .package-grid[data-stmarys-package-list="tour"] > article.package-card:first-child .photo {
  display:block;height:225px!important;min-height:0!important;max-height:225px!important;
  flex:0 0 225px!important;width:100%;overflow:hidden;
}
body.stmarys-cms .package-grid[data-stmarys-package-list="tour"] > article.package-card .photo img {
  display:block;width:100%;height:100%;object-fit:cover;
}
body.stmarys-cms .package-grid[data-stmarys-package-list="tour"] > article.package-card .body {
  display:flex;flex-direction:column;flex:1;min-width:0;padding:23px;
}
body.stmarys-cms .package-grid[data-stmarys-package-list="tour"] > article.package-card h3,
body.stmarys-cms .package-grid[data-stmarys-package-list="tour"] > article.package-card:first-child h3 {
  font-size:22px!important;line-height:1.32;min-height:0;letter-spacing:-.4px;
}
body.stmarys-cms .package-grid[data-stmarys-package-list="tour"] > article.package-card .package-meta {margin-top:auto}
@media(max-width:1100px){body.stmarys-cms .package-grid[data-stmarys-package-list="tour"] {grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){
  body.stmarys-cms .package-grid[data-stmarys-package-list="tour"] {grid-template-columns:minmax(0,1fr);gap:20px}
  body.stmarys-cms .package-grid[data-stmarys-package-list="tour"] > article.package-card .photo,
  body.stmarys-cms .package-grid[data-stmarys-package-list="tour"] > article.package-card:first-child .photo {height:215px!important;max-height:215px!important;flex-basis:215px!important}
}

/* Deployment-safe visibility: themes and optimization plugins must not expose dialog contents or hidden booking steps. */
.stmarys-cms dialog:not([open]){display:none!important}
.stmarys-cms [hidden]{display:none!important}

/* Stable live release: hide inactive dialogs and prevent duplicate form segments flashing before JS recovery. */
body.stmarys-cms dialog:not([open]){display:none!important}
body.stmarys-cms [hidden]{display:none!important}
body.stmarys-cms .stmarys-release-duplicate{display:none!important}
body.stmarys-cms .stmarys-hp{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;border:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important}
