/* TEEPHAK inner-page visual extension. Only .tph-search-page and .tph-resort-page; approved homepage is not changed. */
.tph-search-page,.tph-resort-page{--tgreen:#098664;--tdeep:#102e40;--tmuted:#6b8090;--tline:#e3eced;--tsoft:#f3f8fa;color:var(--tdeep);font:15px/1.6 Tahoma,"Noto Sans Thai",Arial,sans-serif}
.tph-search-page *,.tph-resort-page *{box-sizing:border-box}
.tph-search-page a,.tph-resort-page a{text-decoration:none;color:inherit}
.tph-search-page img,.tph-resort-page img{display:block;max-width:100%}
.tph-search-page input,.tph-search-page select,.tph-search-page button,.tph-resort-page button{font:inherit}
.tph-search-page button,.tph-resort-page button{cursor:pointer}
.tph-search-page .tph-wrap,.tph-resort-page .tph-wrap{width:min(100% - 42px,1230px);margin-inline:auto}
/* SEARCH: panorama hero, overlapping filters, featured large cards, regular 5x2/2x5. */
.tph-search-page{background:#fff;padding-bottom:0}
.tph-search-hero{position:relative;isolation:isolate;overflow:hidden;min-height:302px;color:white;padding:45px 0 70px;background:#123b44}
.tph-search-hero:before{position:absolute;content:"";inset:0;z-index:-1;background:linear-gradient(90deg,rgba(7,28,42,.86),rgba(10,54,43,.68),rgba(0,0,0,.25)),url('../images/tph-search-hero.webp') center 50%/cover no-repeat}
.tph-search-kicker{color:#a9f5cf;font-size:12px;font-weight:900;letter-spacing:.4px}
.tph-search-hero h1{font-size:clamp(27px,3.1vw,38px);line-height:1.27;font-weight:900;letter-spacing:-.3px;margin:5px 0}
.tph-search-hero p{max-width:630px;color:#edf6f2;font-size:15px;line-height:1.6;margin:8px 0}
.tph-search-shortcuts{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.tph-search-shortcuts a{padding:6px 14px;border:1px solid #ffffff75;border-radius:99px;background:#ffffff25;font-size:12px;font-weight:800;color:#fff}
.tph-search-form-wrap{position:relative;margin-top:-35px!important;z-index:2;margin-bottom:0}
.tph-search-filters{padding:16px 18px;background:#fff;border:1px solid var(--tline);border-radius:16px;box-shadow:0 10px 28px rgba(16,50,58,.09)}
.tph-search-fields{display:grid;grid-template-columns:1.45fr repeat(4,1fr) auto;gap:10px;align-items:end}
.tph-search-fields label{min-width:0;display:grid;gap:5px;color:#294555;font-size:12px;font-weight:900}
.tph-search-fields label span{display:block}
.tph-search-fields input,.tph-search-fields select{min-width:0;width:100%;height:46px;border:1px solid #dce8e7;border-radius:9px;background:#fff;padding:9px 10px;color:#193648;outline-offset:1px}
.tph-search-fields button{height:46px;border:0;background:#098664;color:#fff;padding:0 18px;border-radius:9px;font-size:13px;font-weight:900;white-space:nowrap}
.tph-search-filter-foot{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:9px;font-size:11px;color:#82939e}
.tph-search-filter-foot a{color:#098664;font-weight:900}
.tph-search-section{padding:39px 0 40px;background:#fff}
.tph-search-section.is-soft{background:#f3f8fa;margin-top:0}
.tph-search-section-title{display:flex;gap:12px;justify-content:space-between;align-items:start;margin:0 0 17px}
.tph-search-section-title h2{margin:0;font-size:24px;font-weight:900;color:#123346}
.tph-search-section-title p{margin:3px 0 0;color:#748c9a;font-size:12px}
.tph-search-pill{border-radius:99px;background:#e9f7f0;color:#187655;font-size:11px;font-weight:800;white-space:nowrap;padding:5px 12px;align-self:center}
.tph-search-featured-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:19px}
.tph-search-featured-grid .tph-search-card{max-width:620px;border-color:#16916f;border-width:2px}
.tph-search-regular-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px}
.tph-search-card{min-width:0;overflow:hidden;background:#fff;border:1px solid #e1eaed;border-radius:14px;box-shadow:0 9px 21px rgba(16,50,58,.08);display:flex;flex-direction:column}
.tph-search-photo{position:relative;display:block;aspect-ratio:1.46;overflow:hidden;background:#e7f3f4}
.tph-search-card.is-featured .tph-search-photo{aspect-ratio:1.72}
.tph-search-photo img{width:100%;height:100%;object-fit:cover;transition:transform .2s ease}
.tph-search-photo:hover img{transform:scale(1.025)}
.tph-search-badge{position:absolute;left:10px;top:10px;z-index:1;font-size:11px;font-weight:900;border-radius:5px;padding:5px 9px;background:#fdf0d3;color:#95601a}
.tph-search-card-body{padding:11px 12px 12px;display:flex;flex-direction:column;flex:1;min-width:0}
.tph-search-card.is-featured .tph-search-card-body{padding:16px 17px 18px}
.tph-search-location{margin:0 0 5px;color:#128967;font-size:11px;font-weight:900}
.tph-search-card h3{font-size:14px;font-weight:900;line-height:1.4;margin:0 0 6px;overflow-wrap:anywhere;color:#123346}
.tph-search-card.is-featured h3{font-size:19px;margin:0 0 5px}
.tph-search-desc{font-size:13px;color:#6c8493;margin:0 0 12px}
.tph-search-card-bottom{display:flex;gap:8px;justify-content:space-between;align-items:center;min-width:0;margin-top:auto}
.tph-search-card-bottom span{font-size:11px;color:#8a9cab;overflow-wrap:anywhere}
.tph-search-card-bottom a{color:#fff;background:#098664;border-radius:9px;text-align:center;padding:9px 10px;font-weight:900;font-size:11px;white-space:nowrap}
.tph-search-card.is-featured .tph-search-card-bottom a{padding:10px 15px;font-size:12px}
.tph-search-regular-grid .tph-search-card-bottom{display:block}
.tph-search-regular-grid .tph-search-card-bottom span{display:block;min-height:20px;margin:5px 0 6px}
.tph-search-regular-grid .tph-search-card-bottom a{display:block}
.tph-search-empty{border:1px solid #e7ebee;border-radius:12px;padding:27px;color:#536b78;background:#f8fbfb}
.tph-search-empty a{color:#087e60;text-decoration:underline;font-weight:900}
.tph-search-page-status{text-align:center;font-size:12px;color:#788b9b;margin:17px 0 12px}
.tph-search-pagination{display:flex;justify-content:center;gap:7px;align-items:center;flex-wrap:wrap}
.tph-search-pagination a,.tph-search-pagination span{min-height:38px;min-width:38px;padding:8px;border:1px solid #dce8e7;border-radius:8px;text-align:center;font-size:12px;font-weight:900;color:#167154;background:#fff}
.tph-search-pagination a[aria-current=page]{background:#098664;color:#fff;border-color:#098664}
.tph-search-pagination span{color:#9aacb2;background:#f9fcfc}
@media(max-width:1060px){.tph-search-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.tph-search-regular-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){
 .tph-search-hero{min-height:286px;padding:36px 0 58px}.tph-search-hero h1{font-size:29px}
 .tph-search-page .tph-wrap,.tph-resort-page .tph-wrap{width:min(100% - 22px,1230px)}
 .tph-search-form-wrap{margin-top:-23px!important}.tph-search-filters{padding:12px}
 .tph-search-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .tph-search-fields label:first-child{grid-column:1/-1}.tph-search-fields button{grid-column:1/-1}
 .tph-search-filter-foot{flex-wrap:wrap}.tph-search-section{padding:29px 0 30px}
 .tph-search-section-title h2{font-size:21px}.tph-search-pill{font-size:10px;padding:5px 7px}
 .tph-search-featured-grid{grid-template-columns:1fr;gap:13px}
 .tph-search-regular-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .tph-search-card-body{padding:9px}.tph-search-card.is-featured .tph-search-card-body{padding:13px}
 .tph-search-card h3{font-size:13px}.tph-search-card.is-featured h3{font-size:18px}
 .tph-search-card-bottom a{font-size:11px;padding:8px 4px}.tph-search-card-bottom span{font-size:10px}
}
/* RESORT: white title and collage, real data panels and owner contact. */
.tph-resort-page{padding:0 0 48px;background:#fff;min-height:55vh}
.tph-resort-crumb{display:flex;flex-wrap:wrap;gap:9px;font-size:12px;color:#7a909e;padding:17px 0 14px;align-items:center}
.tph-resort-crumb [aria-current=page]{color:#345064}
.tph-resort-heading{display:flex;align-items:start;justify-content:space-between;gap:20px;margin:0 0 17px}
.tph-resort-type{color:#129171;font-weight:900;font-size:12px;margin:0 0 4px}
.tph-resort-heading h1{color:#102e40;font-size:clamp(27px,3vw,35px);font-weight:950;margin:0 0 5px;line-height:1.32}
.tph-resort-where{font-size:12px;color:#82919f;margin:0 0 9px}
.tph-resort-badges{display:flex;gap:6px;flex-wrap:wrap}
.tph-resort-chip{color:#17805f;background:#ecf8f3;border-radius:5px;padding:6px 9px;font-size:11px;font-weight:900}
.tph-resort-chip.warm{color:#9d6b1b;background:#fff0d2}
.tph-resort-heading-actions{display:flex;align-self:center;gap:7px}
.tph-resort-heading-actions button{border:1px solid #e0eaeb;background:#fff;color:#213c4f;border-radius:9px;font-size:12px;font-weight:900;padding:9px 12px;white-space:nowrap}
.tph-resort-heading-actions button[aria-pressed=true]{background:#e1f7ec;color:#0b7657}
.tph-resort-gallery{display:grid;grid-template-columns:2fr 1.1fr 1.1fr;grid-template-rows:repeat(2,minmax(0,1fr));gap:7px;max-height:395px;overflow:hidden;border-radius:14px;margin:13px 0 22px}
.tph-resort-gallery-item{position:relative;display:block;background:#d5e9e5;min-height:150px;overflow:hidden}
.tph-resort-gallery-item.main-photo{grid-row:span 2}
.tph-resort-gallery-item img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover}
.tph-resort-gallery-more{position:absolute;bottom:10px;right:10px;background:#fffffff2;color:#0b4335;border-radius:8px;padding:9px 12px;font-weight:900;font-size:12px}
.tph-resort-no-photo{grid-column:1/-1;background:#eef5f5;height:320px}.tph-resort-no-photo img{width:100%;height:100%;object-fit:contain}
.tph-resort-gallery:has(>.tph-resort-gallery-item:only-child){display:block;height:395px}
.tph-resort-gallery>.tph-resort-gallery-item:only-child{height:395px}
.tph-resort-gallery:has(>.tph-resort-gallery-item:nth-child(2):last-child){grid-template-columns:2fr 1fr;grid-template-rows:1fr}
.tph-resort-gallery:has(>.tph-resort-gallery-item:nth-child(2):last-child)>.main-photo{grid-row:auto}
.tph-resort-body{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:22px;align-items:start}
.tph-resort-content{min-width:0}
.tph-resort-panel{padding:22px;border:1px solid #dce8eb;border-radius:14px;margin:0 0 17px;box-shadow:0 7px 19px rgba(16,50,58,.025)}
.tph-resort-panel h2{font-size:21px;color:#102e40;font-weight:900;margin:0 0 13px}
.tph-resort-description{font-size:15px;line-height:1.9;color:#617c8c;margin:0 0 15px}
.tph-resort-muted{color:#6e8693;font-size:13px;line-height:1.75;margin:5px 0 15px}
.tph-resort-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.tph-resort-facts div{border:1px solid #dfece9;background:#f6faf9;border-radius:11px;padding:14px;min-width:0}
.tph-resort-facts span{display:block;font-size:22px;margin-bottom:3px}.tph-resort-facts strong{display:block;font-size:13px;overflow-wrap:anywhere}.tph-resort-facts small{display:block;font-size:11px;color:#8a9da7;margin-top:4px}
.tph-resort-panel-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}
.tph-resort-small-pill{background:#e9f7f0;color:#137755!important;font-size:11px;font-weight:900;padding:6px 10px;border-radius:99px;white-space:nowrap}
.tph-resort-room-list{display:grid;gap:12px}
.tph-resort-room{border:1px solid #e0eaeb;border-radius:11px;overflow:hidden;display:grid;grid-template-columns:min(35%,200px) 1fr;background:#fff}
.tph-resort-room img{width:100%;height:100%;max-height:225px;min-height:155px;object-fit:cover}
.tph-resort-room>div{padding:14px}.tph-resort-room h3{font-size:16px;line-height:1.45;margin:0 0 6px;color:#102e40}
.tph-resort-room p{font-size:12px;color:#6b8090;margin:0 0 6px}.tph-resort-room a{display:inline-flex;margin-top:6px;border:1px solid #d9e8e5;border-radius:8px;padding:8px 12px;font-size:12px;font-weight:900;color:#173e47}
.tph-resort-room:not(:has(img)){grid-template-columns:1fr}
.tph-resort-muted-box{padding:15px;background:#f5faf9;color:#627985;border:1px solid #e2efee;border-radius:10px;font-size:13px}
.tph-resort-deals{display:grid;gap:10px}.tph-resort-deals article,.tph-resort-review{border:1px solid #e3eded;border-radius:9px;padding:13px;margin:0 0 10px}
.tph-resort-deals p,.tph-resort-review p{font-size:13px;color:#667f8d;margin:6px 0}
.tph-resort-review>strong{color:#e3a321}.tph-resort-review h3{font-size:15px}.tph-resort-owner-reply{background:#f4faf8;padding:12px;border-radius:9px}
.tph-resort-map{display:flex;align-items:center;justify-content:center;min-height:112px;text-align:center;font-weight:900;color:#148367!important;background:linear-gradient(135deg,#dbece4,#c8e1d7);border:1px dashed #b3d5c7;border-radius:11px;padding:20px}
.tph-resort-map.is-no-map{color:#61877b!important;font-size:13px}
.tph-resort-aside{position:relative;min-width:0}.tph-resort-contact{background:#f7fcf9;border:1px solid #c8e8d8;border-radius:15px;padding:20px;position:sticky;top:85px}
.tph-resort-contact-tag{font-size:11px;color:#137f5a;background:#e6f8ef;border-radius:99px;padding:6px 10px;font-weight:900}
.tph-resort-contact h2{font-size:22px;font-weight:950;margin:13px 0 7px;color:#102e40}
.tph-resort-contact p{font-size:13px;color:#728994;line-height:1.65;margin:0}
.tph-resort-asking-price{display:block;color:#087c5e;font-size:26px;font-weight:950;margin:14px 0}
.tph-resort-contact-buttons{display:grid;gap:9px}.tph-resort-contact-buttons a{text-align:center;display:block;border-radius:9px;padding:12px 10px;font-size:13px;font-weight:900;background:white;border:1px solid #dce8e7}
.tph-resort-contact-buttons .line{color:white;background:#098664;border-color:#098664}.tph-resort-contact-buttons .book{color:#fff;background:#fb7c16;border-color:#fb7c16}
.tph-resort-contact small{display:block;font-size:11px;color:#8da0a5;margin-top:11px;line-height:1.5}
.tph-resort-related{margin-top:17px;border:1px solid #dce8eb;border-radius:13px;padding:15px}.tph-resort-related h3{font-size:17px;margin:0 0 12px}
.tph-resort-related>a{display:grid;grid-template-columns:75px 1fr;gap:9px;padding:8px 0;border-top:1px solid #edf2f2;align-items:center;font-size:12px;font-weight:900}
.tph-resort-related img{width:75px;height:60px;object-fit:cover;border-radius:8px}
.tph-resort-related small{display:block;color:#7b929e;font-size:10px;margin-top:3px;font-weight:400}
.tph-resort-sticky{display:none}
.tph-resort-lightbox{position:fixed;width:min(94vw,1000px);max-height:95vh;background:#101c22;color:white;border:0;border-radius:12px;padding:44px 44px 25px;box-shadow:0 20px 100px #0008}
.tph-resort-lightbox::backdrop{background:#000d}.tph-resort-lightbox img{max-height:76vh;margin:auto;object-fit:contain}
.tph-resort-lightbox button{position:absolute;border:0;background:#ffffffdd;border-radius:99px;width:32px;height:32px;font-size:23px;color:#112b2b;display:grid;place-items:center}
.tph-resort-lightbox .close{top:8px;right:8px}.tph-resort-lightbox .prev{top:50%;left:6px}.tph-resort-lightbox .next{top:50%;right:6px}.tph-resort-lightbox .counter{text-align:center;font-size:12px;margin:5px}
@media(max-width:950px){.tph-resort-body{grid-template-columns:minmax(0,1fr) 290px}.tph-resort-gallery{max-height:350px}}
@media(max-width:720px){
 .tph-resort-heading{display:block;margin-bottom:12px}.tph-resort-heading h1{font-size:27px}
 .tph-resort-heading-actions{margin-top:12px}
 .tph-resort-gallery{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:minmax(230px,auto) 92px;max-height:none;gap:4px;border-radius:14px}
 .tph-resort-gallery-item{min-height:0}.tph-resort-gallery-item.main-photo{grid-column:1/-1;grid-row:auto;min-height:230px}
 .tph-resort-gallery-item:nth-child(n+5){display:none}
 .tph-resort-gallery:has(>.tph-resort-gallery-item:nth-child(2):last-child){grid-template-columns:1fr 1fr;grid-template-rows:230px 92px}
 .tph-resort-gallery:has(>.tph-resort-gallery-item:nth-child(2):last-child)>.main-photo{grid-column:1/-1}
 .tph-resort-body{display:flex;flex-direction:column;gap:0}
 .tph-resort-aside{order:-1;width:100%;margin-bottom:14px}.tph-resort-contact{position:static;padding:18px}
 .tph-resort-panel{padding:16px;margin-bottom:14px}.tph-resort-panel h2{font-size:20px}
 .tph-resort-sticky{position:fixed;bottom:8px;right:8px;background:#13323fe9;border-radius:99px;padding:6px;z-index:25;display:flex;gap:5px;box-shadow:0 8px 20px #1235}
 .tph-resort-sticky a{font-size:11px;font-weight:900;border-radius:99px;padding:10px 12px;background:#fff;color:#067751}.tph-resort-sticky a:last-child{background:#098664;color:white}
 .tph-resort-page{padding-bottom:78px}
}
@media(max-width:440px){.tph-resort-facts{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.tph-resort-facts div{padding:10px 6px}.tph-resort-facts strong{font-size:11px}.tph-resort-facts small{font-size:9px}.tph-resort-room{grid-template-columns:1fr}.tph-resort-room img{max-height:220px}.tph-resort-gallery{grid-template-rows:minmax(190px,auto) 82px}.tph-resort-gallery-item.main-photo{min-height:190px}}
/* Correct visual nav state for the inner pages without editing locked shared templates. */
body:has(.tph-search-page) .tp-home-header .desktop-nav>a.active,
body:has(.tph-resort-page) .tp-home-header .desktop-nav>a.active{color:inherit}
body:has(.tph-search-page) .tp-home-header .desktop-nav>a[href$='/search.php'],
body:has(.tph-resort-page) .tp-home-header .desktop-nav>a[href$='/search.php']{color:#098664}
