*{box-sizing:border-box}body{margin:0;font-family:Arial,"Tahoma",sans-serif;color:#263238;background:#fafafa}.wrap{max-width:1180px;margin:auto;padding:0 18px}.top{background:#fff;border-bottom:1px solid #e6e9ec}.nav{height:68px;display:flex;align-items:center;justify-content:space-between}.brand{font-size:25px;font-weight:bold;color:#2b3338;text-decoration:none}.nav a{margin-left:18px;color:#58636b;text-decoration:none}.hero{margin-top:25px;padding:55px 30px;border-radius:18px;background:linear-gradient(110deg,#fff,#f5f8fb);border:1px solid #e3e8ec}.hero h1{font-size:42px;margin:0 0 10px}.hero p{color:#69757c}.searchbox,.card,.panel{background:#fff;border:1px solid #e3e8ec;border-radius:16px;padding:20px;margin:20px 0}.searchbox{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:12px}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.studio-img{height:210px;border-radius:12px;background:linear-gradient(135deg,#eef2f5,#fff);display:flex;align-items:center;justify-content:center;color:#9aa5ac}.price{font-size:22px;font-weight:bold}.btn{display:inline-block;border:0;border-radius:10px;padding:11px 16px;background:#4a86b8;color:white;text-decoration:none;cursor:pointer}.btn.secondary{background:#f0d77b;color:#3b3520}.btn.gray{background:#e9edf0;color:#344}.btn.danger{background:#c96d6d}.muted{color:#77838a}.row{display:flex;gap:15px;align-items:center;justify-content:space-between;flex-wrap:wrap}.gallery{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px}.gallery div{height:180px}.gallery .big{grid-row:span 2;height:370px}.table{width:100%;border-collapse:collapse}.table th,.table td{padding:11px;border-bottom:1px solid #e8ecef;text-align:left}.status{padding:5px 9px;border-radius:20px;background:#eef4f8;font-size:13px}.steps{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.step{padding:8px 12px;border-radius:20px;background:#edf1f3}.step.active{background:#dcecf7}.form input,.form select,.form textarea{width:100%;padding:11px;border:1px solid #ccd5da;border-radius:9px;margin:6px 0 14px}.form label{font-weight:bold;font-size:14px}.two{display:grid;grid-template-columns:1fr 1fr;gap:18px}footer{margin-top:60px;padding:28px 0;border-top:1px solid #e5e8ea;color:#7b858b}@media(max-width:760px){.searchbox,.grid,.two{grid-template-columns:1fr}.nav{height:auto;padding:15px 18px;align-items:flex-start}.nav nav{display:flex;flex-wrap:wrap;gap:8px}.nav a{margin:0}.hero h1{font-size:31px}.gallery{grid-template-columns:1fr 1fr}.gallery .big{grid-column:span 2;height:260px}.gallery div{height:125px}}

.studio-link{display:block;text-decoration:none}.studio-thumb{width:100%;height:210px;object-fit:cover;border-radius:12px;display:block;margin-bottom:12px}.card h3 a{color:inherit;text-decoration:none}.card h3 a:hover{text-decoration:underline}

/* Pre-Master Test: keep Studio thumbnails in normal card/list proportions */
.studio-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:18px 0 28px}
.studio-card{overflow:hidden}
.studio-card .studio-thumb{width:100%;height:210px;object-fit:cover;border-radius:12px;display:block;margin-bottom:12px}
.studio-link{display:block;text-decoration:none}
.studio-card h3 a{color:inherit;text-decoration:none}
.studio-card h3 a:hover{text-decoration:underline}
.admin-settings-panel{margin-top:28px}
.studio-approval-table .approval-thumb{width:92px;height:62px;object-fit:cover;border-radius:8px;display:block}
.btn-small{padding:8px 12px;font-size:13px;margin:2px 2px 2px 0}
.btn-approve{background:#1b9b4b!important;color:#fff!important}
.btn-reject{background:#d33b3b!important;color:#fff!important}
.status-pending{display:inline-block;padding:5px 9px;border-radius:999px;background:#ffe58a;color:#765900;border:1px solid #e2c64c}
.status-approved{display:inline-block;padding:5px 9px;border-radius:999px;background:#d9f2df;color:#176b2c;border:1px solid #79c58a}
.status-rejected{display:inline-block;padding:5px 9px;border-radius:999px;background:#f7d9d9;color:#8b2020;border:1px solid #d78a8a}
.status-neutral{display:inline-block;padding:5px 9px;border-radius:999px;background:#eef1f3;color:#555}
.inline-form{display:inline}
@media(max-width:800px){.studio-grid{grid-template-columns:1fr}.studio-approval-table{display:block;overflow-x:auto;white-space:nowrap}}

/* Current pre-master rules */
.btn{background:#222!important;color:#fff!important;border:0;text-decoration:none}.btn.secondary{background:#222!important;color:#fff!important}.studio-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:18px 0 28px}.studio-card{overflow:hidden}.studio-card .studio-thumb{width:100%;height:210px!important;object-fit:cover!important;border-radius:12px;display:block;margin-bottom:12px}.hero-banner{min-height:360px;background-size:cover;background-position:center;position:relative;overflow:hidden}.hero-overlay{padding:38px 30px;border-radius:16px;background:rgba(255,255,255,.88);max-width:760px}.admin-settings-panel{margin-top:28px}.studio-approval-table .approval-thumb{width:92px;height:62px;object-fit:cover;border-radius:8px;display:block}.btn-small{padding:8px 12px;font-size:13px;margin:2px 2px 2px 0}.btn-approve{background:#1b9b4b!important;color:#fff!important}.btn-reject{background:#d33b3b!important;color:#fff!important}.status-pending{display:inline-block;padding:5px 9px;border-radius:999px;background:#ffe58a;color:#765900;border:1px solid #e2c64c}.status-approved{display:inline-block;padding:5px 9px;border-radius:999px;background:#d9f2df;color:#176b2c;border:1px solid #79c58a}.status-rejected{display:inline-block;padding:5px 9px;border-radius:999px;background:#f7d9d9;color:#8b2020;border:1px solid #d78a8a}.inline-form{display:inline}.admin-action-row{display:flex;gap:12px;align-items:center;justify-content:flex-end}.admin-action-row .btn{background:#222!important}.setting-top-right{float:right}
@media(max-width:800px){.studio-grid{grid-template-columns:1fr}.hero-overlay{padding:24px 18px}}

/* Business-style Hero: fixed visual hierarchy, responsive without stretching the content block */
.hero-business{margin-top:25px;padding:0;min-height:0;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);gap:0;overflow:hidden;border-radius:18px;background:#fff;border:1px solid #e3e8ec}
.hero-left{padding:34px 34px 30px;display:flex;flex-direction:column;justify-content:center;min-width:0}
.welcome-line{font-size:20px;line-height:1.35;font-weight:600;color:#58636b;margin-bottom:5px}
.welcome-main{font-size:40px;line-height:1.12;font-weight:700;color:#222;margin-bottom:7px;white-space:normal}
.welcome-sub{font-size:10px;line-height:1.5;color:#69757c;min-height:15px}
.hero-business .steps{margin:17px 0 12px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.hero-business .step{padding:8px 5px;text-align:center;border-radius:9px;background:#f1f3f4;white-space:nowrap;font-size:13px}
.hero-business .step.active{background:#222;color:#fff}
.hero-searchbox{margin:0;padding:0;background:transparent;border:0;border-radius:0;display:grid;grid-template-columns:1.05fr .9fr .9fr auto;gap:8px}
.hero-searchbox select,.hero-searchbox input{width:100%;min-width:0;padding:11px 10px;border:1px solid #ccd5da;border-radius:9px;background:#fff;font-size:14px}
.hero-searchbox .btn{padding:11px 18px;white-space:nowrap}
.hero-media{min-height:310px;background-image:url('hero-banner.jpg');background-size:cover;background-position:center;position:relative}
.card-media-divider{height:1px;background:#e1e5e8;margin:0 0 12px}
.hamburger{display:none;border:0;background:#222;width:42px;height:42px;border-radius:9px;padding:9px;cursor:pointer}
.hamburger span{display:block;height:2px;background:#fff;margin:5px 0;border-radius:2px}
@media(max-width:800px){
  .nav{position:relative;min-height:68px;height:auto;padding:13px 18px;align-items:center}
  .hamburger{display:block;margin-left:auto;flex:0 0 auto}
  .nav nav{display:none;position:absolute;z-index:20;left:18px;right:18px;top:62px;background:#fff;border:1px solid #e3e8ec;border-radius:12px;padding:10px;box-shadow:0 8px 24px rgba(0,0,0,.08)}
  .nav nav.open{display:flex;flex-direction:column;gap:0}
  .nav nav a{padding:11px 10px;border-bottom:1px solid #eef0f1;margin:0}
  .nav nav a:last-child{border-bottom:0}
  .hero-business{grid-template-columns:1fr;}
  .hero-left{padding:25px 18px 20px}
  .welcome-main{font-size:40px}
  .hero-business .steps{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:14px 0 10px}
  .hero-business .step{font-size:12px;padding:8px 2px}
  .hero-searchbox{grid-template-columns:1fr 1fr;gap:8px}
  .hero-searchbox .btn{width:100%}
  .hero-media{min-height:230px;order:2}
}
@media(max-width:430px){
  .welcome-line{font-size:20px}
  .welcome-main{font-size:40px}
  .welcome-sub{font-size:10px}
  .hero-business .step{font-size:11px}
  .hero-searchbox{grid-template-columns:1fr 1fr}
}
/* Studio detail gallery: use real uploaded images without placeholder tiles. */
.gallery .studio-img{overflow:hidden;background:#f5f7f8;border-radius:12px}
.gallery .studio-img img{width:100%;height:100%;object-fit:cover;display:block}


/* White Millenium UI polish: neutral gray actions + soft white hamburger + square image-to-content join */
.btn{background:#68727b!important;color:#fff!important}
.btn.secondary{background:#68727b!important;color:#fff!important}
.hamburger{background:#fff;border:1px solid #cfd6dc;width:42px;height:42px;border-radius:9px}
.hamburger span{background:#59636b}
.studio-card .studio-thumb{border-radius:12px 12px 0 0!important;margin-bottom:0!important}
.card-media-divider{margin:0 0 12px}
.gallery .studio-img{border-radius:12px 12px 0 0}

/* Studio-Rental latest UI patch: White Millenium controls + responsive Hero + image join */
.btn{background:#69757c!important;color:#fff!important}.btn.secondary{background:#69757c!important;color:#fff!important}.btn.gray{background:#69757c!important;color:#fff!important}
.hamburger{background:#fff!important;border:1px solid #cfd6dc!important}.hamburger span{background:#59636b!important}
.hero-business{background:#fff!important}
.hero-media{background-size:cover!important;background-position:center!important}
.welcome-line{font-size:20px;line-height:1.25;margin:0 0 10px;color:#59636b}
.welcome-main{font-size:40px;line-height:1.15;font-weight:700;margin:0 0 8px;color:#263238}
.welcome-sub{font-size:10px;line-height:1.5;color:#69757c}
/* Keep media corners consistent: both top corners round, both bottom corners square. */
.studio-card .studio-thumb{border-radius:12px 12px 0 0!important}
.gallery .studio-img{border-radius:12px 12px 0 0!important;overflow:hidden}
@media(max-width:800px){.welcome-main{font-size:32px}.welcome-line{font-size:20px}.welcome-sub{font-size:10px}}

/* QC */
.table td a,.order-link{color:inherit;text-decoration:none}.table td a:hover,.order-link:hover{text-decoration:none}.status-payment_review{display:inline-block;padding:5px 10px;border-radius:999px;background:#fff1a8;color:#735d00;border:1px solid #e0c75a;font-size:13px}.status-confirmed,.status-completed{display:inline-block;padding:5px 10px;border-radius:999px;background:#d9f2df;color:#176b2c;border:1px solid #79c58a;font-size:13px}.gallery .studio-img{overflow:hidden}.gallery .studio-img.big{border-radius:16px}.gallery .studio-img:not(.big){border-radius:0}.gallery .studio-img img{width:100%;height:100%;object-fit:cover;display:block;border-radius:0}.gallery .studio-img.big img{border-radius:16px}.map-picker{height:360px;border:1px solid #d9e0e4;border-radius:14px;margin:8px 0 14px;overflow:hidden}.map-help{font-size:13px;color:#68757d}.options-list,.province-list{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.option-chip{display:inline-block;padding:7px 11px;border:1px solid #d9e0e4;border-radius:999px;background:#f8fafb;color:#4d5960;font-size:14px}

/* QC layout: keep dashboard sections at the same full width; only the wide table scrolls. */
.member-dashboard{width:100%;max-width:1180px;margin:0 auto}
.member-dashboard .orders-center{width:100%;max-width:none;margin:24px 0}
.member-dashboard .orders-panel{width:100%}
.table-scroll{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.member-orders-table{min-width:760px}
.status-paid{display:inline-block;padding:5px 10px;border-radius:999px;background:#d9f2df;color:#176b2c;border:1px solid #79c58a;font-size:13px}
.status-checked_in{display:inline-block;padding:5px 10px;border-radius:999px;background:#d9f2df;color:#176b2c;border:1px solid #79c58a;font-size:13px}
.admin-order-table{min-width:980px}
.notification-box{background:#fffdf0;border:1px solid #eadb8b;border-radius:12px;padding:14px;margin:16px 0}
.notification-box strong{color:#735d00}

/* QC2: dashboard/table width isolation */
.login-page{width:100%;min-height:1px}.login-panel{width:100%}.member-dashboard .dashboard-panel{width:100%}.member-orders-table{width:100%;min-width:860px;table-layout:auto}.member-orders-table th,.member-orders-table td{white-space:nowrap}.admin-order-table{width:100%;min-width:980px;table-layout:auto}.admin-order-table th,.admin-order-table td{white-space:nowrap}

/* QC4 */
.login-panel .login-register{margin-top:16px;padding:0;border:0;background:transparent}
.login-panel .login-register-link{color:#59636b!important;text-decoration:none!important;border:0!important;background:transparent!important;padding:0!important;display:inline!important}
.login-panel .login-register-link:hover{text-decoration:none!important}
.area-master-list{margin-top:22px}.area-province{padding:12px 0;border-top:1px solid #e5e9ec}.area-province ul{margin:8px 0 0 20px;padding:0}.area-province li{margin:6px 0}.zone-inline{color:#68757d;font-size:13px}.member-orders-table th:last-child,.member-orders-table td:last-child{min-width:190px;text-align:right}.inline-form{display:inline}

.owner-orders-table{width:100%;min-width:900px;table-layout:auto}.owner-orders-table th,.owner-orders-table td{white-space:nowrap}.owner-orders-table th:last-child,.owner-orders-table td:last-child{min-width:100px;text-align:right}

/* QC11: keep dashboard wallet card aligned with other summary cards */
.dashboard-wallet-card{box-sizing:border-box;min-width:0;}
.dashboard-wallet-card:hover{text-decoration:none;}

/* QC12: wide wallet/approval tables scroll independently on narrow screens */
.owner-wallet-table{width:100%;min-width:760px;table-layout:auto}.owner-wallet-table th,.owner-wallet-table td{white-space:nowrap}
.admin-withdrawals-table{width:100%;min-width:980px;table-layout:auto}.admin-withdrawals-table th,.admin-withdrawals-table td{white-space:nowrap}
.studio-approval-table{width:100%;min-width:1050px;table-layout:auto}.studio-approval-table th,.studio-approval-table td{white-space:nowrap}
.approval-studio-link{color:inherit;text-decoration:none!important}.approval-studio-link:hover{text-decoration:none!important}

/* QC17: Search result thumbnail and title are clickable */
.studio-card h2 a{color:inherit;text-decoration:none}
.studio-card h2 a:hover{text-decoration:underline}

/* QC18: Search result link wraps the complete Studio preview without nested links */
.studio-card .studio-content-link{display:block;color:inherit;text-decoration:none;}
.studio-card .studio-content-link:hover{color:inherit;text-decoration:none;}
.studio-card .studio-content-link h2{color:inherit;}
.studio-card .studio-content-link .price{color:inherit;}


/* QC18 UI polish: site logo, hero alignment, footer contact */
.brand{display:flex;align-items:center;min-height:42px}
.site-logo{display:block;max-height:46px;max-width:190px;width:auto;height:auto;object-fit:contain}
.hero-left{padding:34px 30px 32px;justify-content:center}
.hero-searchbox{width:100%;align-items:stretch;grid-template-columns:minmax(0,1.05fr) minmax(0,.9fr) minmax(0,.9fr) 84px;gap:10px}
.hero-field{min-width:0;display:flex}
.hero-searchbox select,.hero-searchbox input{height:42px;min-height:42px;margin:0;line-height:20px}
.hero-searchbox .hero-search-btn{height:42px;min-height:42px;padding:0 16px;display:flex;align-items:center;justify-content:center;margin:0}
.welcome-line,.welcome-main,.welcome-sub{max-width:100%}
.footer-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px;align-items:end}
.footer-contact{text-align:right}
.site-logo-preview{max-width:220px;max-height:70px;width:auto;height:auto;object-fit:contain;border:1px solid #e3e8ec;border-radius:8px;padding:6px;background:#fff}
@media(max-width:800px){
 .brand{min-height:42px}
 .site-logo{max-width:160px;max-height:42px}
 .hero-left{padding:25px 18px 22px}
 .hero-searchbox{grid-template-columns:1fr 1fr;gap:9px}
 .hero-searchbox .hero-search-btn{width:100%}
 .footer-grid{grid-template-columns:1fr;gap:8px}
 .footer-contact{text-align:left}
}

/* QC20: Header Logo upload UI */
.logo-upload-box{padding:16px;margin:8px 0 18px;border:1px solid #e3e8ec;border-radius:12px;background:#fafcfd}
.logo-upload-title{font-size:18px;font-weight:bold;margin-bottom:4px}
.logo-upload-note{font-size:13px;color:#77838a;margin-bottom:12px}
.logo-upload-btn{display:inline-block;padding:10px 15px;border-radius:9px;background:#4a86b8;color:#fff;cursor:pointer;font-weight:bold}
.logo-upload-btn input{display:none}
.logo-current{margin-top:14px;font-size:13px;color:#66727a}
.logo-current .site-logo-preview{margin-top:7px}
