/* Taxi Master Homepage FINAL UI restore – TX29
   Restores visual rules lost while Activity feed was added and keeps the new Activity block.
   Loaded after Blade inline homepage styles so these rules are authoritative. */

/* ===== Routes – text-only cards for speed + internal links ===== */
.txm-home .txm-routes{padding-top:44px;padding-bottom:44px}
.txm-home .txm-route-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:10px}
.txm-home .txm-route-card{display:grid;grid-template-columns:34px minmax(0,1fr) 18px;align-items:center;gap:9px;min-height:92px;padding:15px;border:1px solid var(--txm-line);border-radius:13px;background:#fff;transition:.18s ease}
.txm-home .txm-route-card:hover{border-color:#a9c9dd;box-shadow:0 8px 22px rgba(24,79,116,.07)}
.txm-home .txm-route-pin{display:grid;width:34px;height:34px;place-items:center;border-radius:10px;background:#eef7fd;color:#0871d8}
.txm-home .txm-route-pin svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.txm-home .txm-route-card strong{display:block;font-size:14px;line-height:1.3;color:#123760}
.txm-home .txm-route-card small{display:block;margin-top:4px;color:var(--txm-muted);font-size:11px}
.txm-home .txm-route-arrow{color:#0871d8;font-weight:900}

/* ===== About / trust / FAQ ===== */
.txm-home .txm-about-faq{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(380px,.95fr);gap:26px}
.txm-home .txm-about-card{padding:0 22px 0 0}
.txm-home .txm-about-card h2,.txm-home .txm-faq-card h2{margin:0;color:#12345f;font-size:29px;line-height:1.12}
.txm-home .txm-about-card>p{margin:12px 0 0;color:#4b6277;font-size:15px;line-height:1.62}
.txm-home .txm-benefits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:20px}
.txm-home .txm-benefit{padding:14px;border:1px solid var(--txm-line);border-radius:13px;background:#fff}
.txm-home .txm-benefit span{display:grid;width:35px;height:35px;place-items:center;margin-bottom:9px;border-radius:11px;background:#eef7fd;color:#0871d8}
.txm-home .txm-benefit svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.txm-home .txm-benefit strong{display:block;font-size:14px;color:#173d68}
.txm-home .txm-benefit small{display:block;margin-top:4px;color:var(--txm-muted);font-size:11px;line-height:1.38}
.txm-home .txm-about-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:18px}
.txm-home .txm-text-link{display:inline-flex;align-items:center;gap:5px;color:#0871d8;font-size:13px;font-weight:900}
.txm-home .txm-faq-card{padding:0 0 0 22px;border-left:1px solid #d7e4ed}
.txm-home .txm-faq{display:grid;gap:7px;margin-top:14px}
.txm-home .txm-faq details{border:1px solid var(--txm-line);border-radius:11px;background:#fff;overflow:hidden}
.txm-home .txm-faq summary{position:relative;padding:12px 38px 12px 14px;cursor:pointer;color:#274861;font-size:13px;font-weight:800;list-style:none}
.txm-home .txm-faq summary::-webkit-details-marker{display:none}
.txm-home .txm-faq summary:after{content:'+';position:absolute;right:14px;top:50%;transform:translateY(-50%);color:#0871d8;font-size:18px;font-weight:700}
.txm-home .txm-faq details[open] summary:after{content:'–'}
.txm-home .txm-faq details p{margin:0;padding:0 14px 13px;color:#5e7386;font-size:13px;line-height:1.52}

/* ===== News ===== */
.txm-home .txm-news{padding-top:48px;padding-bottom:54px;content-visibility:auto;contain-intrinsic-size:520px}
.txm-home .txm-news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.txm-home .txm-news-card{overflow:hidden;border:1px solid var(--txm-line);border-radius:14px;background:#fff}
.txm-home .txm-news-card a{display:grid;grid-template-columns:128px minmax(0,1fr);min-height:108px;color:var(--txm-ink)}
.txm-home .txm-news-card img{display:block;width:128px;height:100%;min-height:108px;object-fit:cover;background:#e9f0f4}
.txm-home .txm-news-copy{display:flex;flex-direction:column;justify-content:center;padding:13px 14px}
.txm-home .txm-news-copy small{color:#788b9d;font-size:10px}
.txm-home .txm-news-copy h3{margin:5px 0 0;font-size:15px;line-height:1.28;color:#153a65;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.txm-home .txm-news-copy b{margin-top:8px;color:#0871d8;font-size:11px}

/* ===== Booking modal ===== */
.txm-home .txm-modal[hidden]{display:none!important}
.txm-home .txm-modal{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;padding:18px;background:rgba(4,23,38,.62)}
.txm-home .txm-modal-card{position:relative;width:min(620px,100%);max-height:calc(100vh - 36px);overflow:auto;padding:24px;border-radius:18px;background:#fff;box-shadow:0 28px 90px rgba(0,0,0,.28)}
.txm-home .txm-modal-close{position:absolute;right:13px;top:13px;width:38px;height:38px;border:0;border-radius:50%;background:#edf4f8;color:#153c64;font-size:24px;line-height:1;cursor:pointer}
.txm-home .txm-modal-card h2{margin:0 44px 6px 0;font-size:28px;line-height:1.1;color:#123861}
.txm-home .txm-modal-card>p{margin:0 0 17px;color:var(--txm-muted);font-size:13px}
.txm-home .txm-book-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}
.txm-home .txm-book-grid label{display:block;font-size:12px;font-weight:800;color:#244965}
.txm-home .txm-book-grid label.is-wide{grid-column:1/-1}
.txm-home .txm-book-grid input,.txm-home .txm-book-grid select{width:100%;min-height:44px;margin-top:6px;padding:10px 11px;border:1px solid #cadbe6;border-radius:9px;background:#fff;color:#213e57;outline:0}
.txm-home .txm-book-grid input:focus,.txm-home .txm-book-grid select:focus{border-color:#77b7df;box-shadow:0 0 0 3px rgba(15,106,168,.08)}
.txm-home .txm-book-submit{width:100%;min-height:48px;margin-top:14px;border:0;border-radius:11px;background:var(--txm-yellow);color:#17324d;font-weight:900;cursor:pointer}
.txm-home .txm-book-status{min-height:20px;margin-top:9px;font-size:12px;color:#b42318}
.txm-home .txm-book-status.is-success{color:#0b7a45}
.txm-home .txm-modal-direct{display:flex;justify-content:center;margin-top:12px;color:#0871d8;font-size:12px;font-weight:900}

/* ===== Activity feed polish – new block, preserve teaser behavior ===== */
.txm-home .txm-activity-section{padding:42px 0}
.txm-home .txm-activity-grid{align-items:stretch}
.txm-home .txm-activity-card{display:flex;flex-direction:column;min-height:100%}
.txm-home .txm-activity-media{width:100%;aspect-ratio:4/3}
.txm-home .txm-activity-footer{margin-top:auto}

/* ===== Layout guards ===== */
.txm-home,.txm-home section{max-width:100%}
.txm-home img{max-width:100%}
.txm-home .txs-shell{margin-inline:auto}

@media(max-width:1100px){
  .txm-home .txm-route-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media(max-width:820px){
  .txm-home .txm-local-grid,.txm-home .txm-about-faq{grid-template-columns:1fr}
  .txm-home .txm-faq-card{padding:22px 0 0;border-left:0;border-top:1px solid #d7e4ed}
  .txm-home .txm-news-grid{grid-template-columns:1fr}
  .txm-home .txm-news-card a{grid-template-columns:150px minmax(0,1fr)}
  .txm-home .txm-news-card img{width:150px}
}

@media(max-width:560px){
  /* Consistent mobile rhythm after Activity was added */
  .txm-home .txm-section{padding:34px 0}
  .txm-home .txm-activity-section{padding:32px 0 30px}
  .txm-home .txm-section-head{margin-bottom:15px}
  .txm-home .txm-title{font-size:28px;line-height:1.12;letter-spacing:-.5px}
  .txm-home .txm-subtitle{font-size:13px;line-height:1.5}

  /* One strong card + controlled peek of next card, like the approved mock direction. */
  .txm-home .txm-activity-grid{gap:10px;padding-right:0;scroll-padding-left:0}
  .txm-home .txm-activity-card{flex:0 0 calc(100% - 24px)}
  .txm-home .txm-status-copy-wrap{height:calc(1.52em * 3)}
  .txm-home .txm-activity-media{aspect-ratio:4/3}

  .txm-home .txm-route-grid{gap:8px}
  .txm-home .txm-route-card{flex:0 0 calc(100% - 38px);min-height:86px;padding:13px}
  .txm-home .txm-benefits{grid-template-columns:1fr;gap:8px}
  .txm-home .txm-benefit{padding:12px}
  .txm-home .txm-about-card{padding-right:0}
  .txm-home .txm-about-card h2,.txm-home .txm-faq-card h2{font-size:25px}
  .txm-home .txm-about-card>p{font-size:14px;line-height:1.58}
  .txm-home .txm-news-card a{grid-template-columns:104px minmax(0,1fr);min-height:102px}
  .txm-home .txm-news-card img{width:104px;min-height:102px}
  .txm-home .txm-news-copy{padding:11px 12px}
  .txm-home .txm-news-copy h3{font-size:14px}
  .txm-home .txm-book-grid{grid-template-columns:1fr}
  .txm-home .txm-book-grid label.is-wide{grid-column:auto}
  .txm-home .txm-modal-card{padding:20px 16px}
}

@media(max-width:390px){
  .txm-home .txm-title{font-size:26px}
  .txm-home .txm-activity-card{flex-basis:calc(100% - 18px)}
  .txm-home .txm-route-card{flex-basis:calc(100% - 28px)}
}

/* ===== TX30 compact vertical rhythm + natural local copy =====
   Reduce section whitespace by roughly 50% without changing hierarchy or crawlable content. */
@media(min-width:821px){
  .txm-home .txm-section{padding-top:30px;padding-bottom:30px}
  .txm-home .txm-services{padding-top:30px;padding-bottom:30px}
  .txm-home .txm-local-section{padding-top:30px;padding-bottom:30px}
  .txm-home .txm-activity-section{padding-top:22px;padding-bottom:22px}
  .txm-home .txm-routes{padding-top:30px;padding-bottom:30px}
  .txm-home .txm-about-section{padding-top:30px;padding-bottom:30px}
  .txm-home .txm-news{padding-top:30px;padding-bottom:32px}
  .txm-home .txm-section-head{margin-bottom:16px}
  .txm-home .txm-activity-head{margin-bottom:14px}
}

@media(max-width:820px){
  .txm-home .txm-section{padding-top:26px;padding-bottom:26px}
  .txm-home .txm-services{padding-top:26px;padding-bottom:26px}
  .txm-home .txm-local-section{padding-top:26px;padding-bottom:26px}
  .txm-home .txm-activity-section{padding-top:22px;padding-bottom:22px}
  .txm-home .txm-routes{padding-top:26px;padding-bottom:26px}
  .txm-home .txm-about-section{padding-top:26px;padding-bottom:26px}
  .txm-home .txm-news{padding-top:26px;padding-bottom:28px}
  .txm-home .txm-section-head{margin-bottom:14px}
}

@media(max-width:560px){
  .txm-home .txm-section{padding-top:22px;padding-bottom:22px}
  .txm-home .txm-services{padding-top:22px;padding-bottom:22px}
  .txm-home .txm-local-section{padding-top:22px;padding-bottom:22px}
  .txm-home .txm-activity-section{padding-top:20px;padding-bottom:20px}
  .txm-home .txm-routes{padding-top:22px;padding-bottom:22px}
  .txm-home .txm-about-section{padding-top:22px;padding-bottom:22px}
  .txm-home .txm-news{padding-top:22px;padding-bottom:24px}
}


/* ===== TX32 SEO PRO: compact quickbar → hero rhythm =====
   Reduce only the empty breathing room above hero copy; preserve content hierarchy and CTA area. */
.txm-home .txm-hero{margin-top:0}
.txm-home .txm-hero-inner{padding-top:18px}
@media(max-width:820px){
  .txm-home .txm-hero-inner{padding-top:16px}
}
@media(max-width:560px){
  .txm-home .txm-hero-inner{padding-top:14px}
}
