/*
Theme Name: CungThue Modern
Theme URI: https://www.cungthue.com/
Author: CungThue
Description: Giao diện bất động sản cho thuê, responsive, tìm kiếm và nhập nội dung website cũ.
Version: 6.0.0
Requires PHP: 7.4
Text Domain: cungthue
*/
:root{--primary:#0b4663;--accent:#e7a23b;--ink:#172c39;--muted:#647785;--bg:#f4f7f9}*{box-sizing:border-box}body{margin:0;font:16px/1.65 system-ui,-apple-system,Arial;color:var(--ink);background:var(--bg)}a{text-decoration:none;color:inherit}img{max-width:100%;height:auto}.wrap{max-width:1200px;margin:auto;padding:0 20px}.top{background:#08364c;color:#fff;font-size:13px;padding:7px 0}.header{background:white;box-shadow:0 2px 15px #1232;position:sticky;top:0;z-index:10}.nav{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:80px}.brand{font-size:28px;font-weight:850;color:var(--primary)}.brand span{color:var(--accent)}.menu{display:flex;list-style:none;gap:22px;flex-wrap:wrap;padding:0}.menu a:hover{color:var(--accent)}.hero{background:linear-gradient(115deg,#07364de8,#0e6788d9),url('assets/hero.svg') center/cover;padding:75px 0;color:white}.hero h1{font-size:clamp(30px,4vw,50px);line-height:1.2;margin:0 0 14px}.hero p{max-width:650px}.search{display:flex;flex-wrap:wrap;gap:10px;background:white;padding:15px;border-radius:14px;margin-top:25px}.search input,.search select{min-width:160px;flex:1;border:1px solid #dae2e7;border-radius:8px;padding:13px;font-size:15px}.btn{border:0;border-radius:8px;background:var(--accent);padding:13px 22px;color:#182b33;font-weight:750;cursor:pointer}.section{padding:45px 0}.section h2{font-size:27px;margin:0 0 20px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.card{background:white;border-radius:13px;overflow:hidden;box-shadow:0 3px 15px #0b35500e}.thumb{aspect-ratio:16/10;background:#dce7ec;display:block;overflow:hidden}.thumb img{width:100%;height:100%;object-fit:cover}.card-body{padding:19px}.card h3{font-size:18px;line-height:1.45;margin:4px 0 9px}.price{font-size:20px;color:#bf6d0e;font-weight:800}.muted{color:var(--muted);font-size:14px}.tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.tag{background:#edf4f7;color:#24526a;padding:4px 9px;border-radius:5px;font-size:13px}.content{background:white;border-radius:14px;padding:28px}.layout{display:grid;grid-template-columns:minmax(0,2fr) 310px;gap:25px}.sidebar{background:#edf5f8;border-radius:12px;padding:22px;align-self:start}.footer{background:#092e42;color:white;padding:45px 0 20px}.footer a{color:#d8e8ef}.footergrid{display:grid;grid-template-columns:2fr 1fr;gap:35px}.pagination{margin:25px 0}.pagination .page-numbers{display:inline-block;background:white;padding:7px 13px;border-radius:5px;margin:3px}.pagination .current{background:var(--primary);color:white}.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:20px 0}.gallery img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px}.gallery a:first-child{grid-column:span 2;grid-row:span 2}.gallery a:first-child img{height:100%}@media(max-width:800px){.grid{grid-template-columns:repeat(2,1fr)}.layout{grid-template-columns:1fr}.nav{align-items:flex-start;flex-direction:column;padding:15px 0}.menu{gap:12px;margin:0}.hero{padding:48px 0}}@media(max-width:530px){.grid{grid-template-columns:1fr}.search{display:grid}.footergrid{grid-template-columns:1fr}.gallery{grid-template-columns:repeat(2,1fr)}}

.gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-top:18px}.gallery img{width:100%;height:170px;object-fit:cover;border-radius:10px}

/* CungThue 4.0 premium rental UI */
:root{--primary:#123d52;--accent:#d9a760;--ink:#152e3b;--bg:#f5f7f8}body{font-family:Inter,system-ui,-apple-system,Arial,sans-serif}.top{background:#102f40}.top-inner{display:flex;justify-content:space-between;gap:12px}.header{box-shadow:0 8px 25px #102e4010}.brand{letter-spacing:-1.2px}.hero{background:linear-gradient(105deg,rgba(9,37,54,.95),rgba(15,66,81,.76)),url('assets/hero.svg') center/cover;min-height:440px;display:flex;align-items:center}.hero-copy{max-width:1000px}.hero h1{font-size:clamp(36px,5vw,64px);max-width:780px;letter-spacing:-1.5px}.hero p{font-size:18px;color:#e4edf0}.eyebrow{font-size:12px;letter-spacing:2.5px;font-weight:800;color:#eac184}.eyebrow.dark{color:#a77835}.section-head{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:24px}.section-head h2{margin:5px 0 0}.card{border:1px solid #e5edf0;transition:transform .2s,box-shadow .2s}.card:hover{transform:translateY(-4px);box-shadow:0 14px 30px #092e4219}.card h3{font-size:18px}.price{color:#b67b2e}.news-band{background:#edf2f4}.footer{background:#0b2a3a}.footergrid.four-columns{grid-template-columns:repeat(4,minmax(0,1fr));gap:32px}.footer-widget h3,.footer-column h3{font-size:16px;color:#fff;margin:0 0 15px}.footer-widget p,.footer-column p{color:#c0d0d7}.copyright{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding-top:20px;margin-top:32px;border-top:1px solid #ffffff24;font-size:13px;color:#b9cbd4}.copyright>div:last-child{text-align:right}.copyright a{color:#e9c38d}.content{max-width:100%}body.elementor-page .content{background:transparent;padding:0} @media(max-width:900px){.footergrid.four-columns{grid-template-columns:repeat(2,1fr)}}@media(max-width:540px){.footergrid.four-columns{grid-template-columns:1fr}.copyright{grid-template-columns:1fr}.copyright>div:last-child{text-align:left}.hero{min-height:360px}.top-inner{flex-wrap:wrap}}

/* CungThue v5 layout refinements */
.ct-top{background:#10243a;color:#c8d6e3;font-size:13px}.ct-top-inner{display:flex;justify-content:space-between;gap:16px;padding:10px 0}.ct-header{background:#fff;border-bottom:1px solid #e5ebf1;position:sticky;top:0;z-index:100}.ct-nav{display:flex;align-items:center;gap:28px;min-height:76px}.ct-brand{text-decoration:none;color:#10243a;font-weight:900;font-size:22px;white-space:nowrap}.ct-brand strong{color:#bf934c}.ct-brand img{max-height:58px;width:auto}.ct-nav nav{flex:1}.ct-menu{list-style:none;display:flex;flex-wrap:wrap;align-items:center;gap:22px;margin:0;padding:0}.ct-menu li{position:relative}.ct-menu a{color:#19324b;text-decoration:none;font-weight:600}.ct-menu a:hover{color:#ad813f}.ct-menu .sub-menu{display:none;position:absolute;top:100%;left:0;background:#fff;min-width:220px;box-shadow:0 10px 30px #10243a22;padding:12px;list-style:none;z-index:10}.ct-menu li:hover>.sub-menu,.ct-menu li:focus-within>.sub-menu{display:block}.ct-menu .sub-menu li{padding:7px 0}.ct-translate{display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:12px}.ct-translate select{max-width:105px;padding:8px;border:1px solid #dae2ea;border-radius:6px}.ct-mobile-toggle{display:none}.ct-footer{background:#10243a;color:#dce6ef;margin-top:65px;padding:56px 0 0}.ct-footer-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:34px}.ct-footer-col{min-width:0;overflow-wrap:anywhere}.ct-footer-col h3{color:#fff;font-size:17px;margin:0 0 17px}.ct-footer a{color:#dce6ef;text-decoration:none}.ct-footer a:hover{color:#e7bd7b}.ct-footer ul{list-style:none;margin:0;padding:0}.ct-footer li{margin-bottom:10px}.ct-copyright{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:38px;border-top:1px solid #ffffff26;padding:21px 0;font-size:13px}.ct-copyright strong{color:#e7bd7b}@media(max-width:900px){.ct-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ct-nav{flex-wrap:wrap;gap:10px;padding:13px 0}.ct-mobile-toggle{display:inline-block;margin-left:auto;background:#10243a;color:white;border:0;padding:10px 13px;border-radius:6px}.ct-nav nav{display:none;flex-basis:100%;order:3}.ct-nav nav.ct-open{display:block}.ct-menu{display:block}.ct-menu>li{padding:10px 0}.ct-menu .sub-menu{display:block;position:static;box-shadow:none;padding-left:18px}.ct-translate{margin-left:auto}}@media(max-width:540px){.ct-footer-grid{grid-template-columns:1fr}.ct-copyright{flex-direction:column;align-items:flex-start}.ct-top-inner{flex-direction:column;gap:3px}.ct-brand{font-size:18px}}

/* v6 footer: force consistent four columns regardless of legacy selectors */
.ct-footer .ct-footer-grid.ct-footer-grid-v6{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:28px!important;align-items:start}
.ct-footer .ct-footer-col{min-width:0;width:auto!important;float:none!important;max-width:none!important}
.ct-footer .ct-footer-col .widget{margin:0 0 24px}
.ct-footer .ct-footer-col img{max-width:100%;height:auto}
.ct-footer .ct-copyright{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}
.ct-footer .ct-copyright>span:last-child{text-align:right}
.ct-detail-scroll{overflow-x:auto;margin:22px 0}.ct-property-details{width:100%;border-collapse:collapse;font-size:15px}.ct-property-details th,.ct-property-details td{padding:13px 16px;border:1px solid #e3e9ed;text-align:left;vertical-align:top}.ct-property-details th{width:30%;font-weight:700}.ct-property-details tr:nth-child(even){background:#eef7fa}
@media(max-width:900px){.ct-footer .ct-footer-grid.ct-footer-grid-v6{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:560px){.ct-footer .ct-footer-grid.ct-footer-grid-v6{grid-template-columns:minmax(0,1fr)!important}.ct-footer .ct-copyright{grid-template-columns:1fr}.ct-footer .ct-copyright>span:last-child{text-align:left}.ct-property-details th{width:38%}}

/* v7 region directory */
.ct-location-section{margin:40px auto;max-width:1200px;padding:0 20px}.ct-location-section h2{font-size:clamp(23px,3vw,32px);margin:0 0 20px}.ct-location-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.ct-location-card{display:flex;flex-direction:column;gap:12px;background:#fff;border:1px solid #e4e9ed;border-radius:14px;padding:22px;text-decoration:none;color:#17324b;box-shadow:0 5px 20px rgba(12,40,65,.05);transition:transform .2s,border-color .2s}.ct-location-card:hover{transform:translateY(-3px);border-color:#9bb6c7}.ct-location-card strong{font-size:18px}.ct-location-card span:last-child{font-size:13px;color:#54758d}.ct-location-pin{font-size:25px;color:#c29a55}@media(max-width:900px){.ct-location-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.ct-location-grid{grid-template-columns:1fr}}

/* CungThue 9.0 hotel-style image gallery */
.ct-hotel-gallery{display:grid;grid-template-columns:1.55fr 1fr;gap:10px;border-radius:18px;overflow:hidden;margin:18px 0}.ct-hotel-gallery-main a,.ct-hotel-thumbs a{display:block;height:100%;background:#e8edf0}.ct-hotel-gallery img{width:100%;height:100%;object-fit:cover;display:block}.ct-hotel-gallery-main{min-height:350px}.ct-hotel-thumbs{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:10px}.ct-gallery-all{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.ct-gallery-all img{width:100%;height:130px;object-fit:cover;border-radius:9px}.ct-lightbox[hidden]{display:none}.ct-lightbox{position:fixed;inset:0;z-index:999999;background:rgba(5,11,19,.96);display:flex;align-items:center;justify-content:center}.ct-lightbox img{max-width:85vw;max-height:90vh;object-fit:contain}.ct-lightbox button{position:absolute;border:0;background:rgba(255,255,255,.15);color:white;cursor:pointer;font-size:40px;padding:10px 20px}.ct-lightbox-close{right:18px;top:18px}.ct-lightbox-prev{left:16px}.ct-lightbox-next{right:16px}.ct-footer-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:28px}.ct-footer-col{min-width:0}.ct-copyright{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}@media(max-width:900px){.ct-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}@media(max-width:600px){.ct-hotel-gallery{grid-template-columns:1fr}.ct-hotel-gallery-main{min-height:220px}.ct-hotel-thumbs{min-height:180px}.ct-gallery-all{grid-template-columns:repeat(2,minmax(0,1fr))}.ct-footer-grid{grid-template-columns:1fr!important}}
