/* Hotel San Martin custom presentation layer */
:root{
  --hsm-ink:#171717;
  --hsm-charcoal:#242424;
  --hsm-warm:#b18a63;
  --hsm-sand:#f4efe8;
  --hsm-cream:#fbfaf8;
  --hsm-line:#e5ddd4;
  --hsm-white:#fff;
}
body{font-family:"Helvetica Neue",Arial,sans-serif;color:var(--hsm-ink);background:var(--hsm-cream)}
#page{background:var(--hsm-cream)}
#header{position:relative;background-position:center;background-size:cover!important}
#index #header:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(16,16,16,.68) 0%,rgba(16,16,16,.38) 48%,rgba(16,16,16,.16) 100%);pointer-events:none}
#index #header>*{position:relative;z-index:1}
.header-top{padding-top:0}
#header_logo img{width:250px;max-height:78px;object-fit:contain;filter:brightness(0) invert(1)}
#nav-main{background:rgba(15,15,15,.18);border-bottom:1px solid rgba(255,255,255,.18);backdrop-filter:blur(10px)}
.header-top-menu a,.header-top-menu span,#nav-main a{color:#fff!important}
.hsm-hero-copy{max-width:720px;padding:13vh 15px 36px;color:#fff}
.hsm-eyebrow{font-size:12px;letter-spacing:.22em;text-transform:uppercase;font-weight:700;margin-bottom:18px;color:#ead9c8}
.hsm-hero-copy h1{font-family:Georgia,"Times New Roman",serif;font-size:64px;line-height:1.02;font-weight:400;letter-spacing:-.025em;margin:0 0 20px;color:#fff}
.hsm-hero-copy p{font-size:20px;line-height:1.55;max-width:620px;color:rgba(255,255,255,.9);margin-bottom:30px}
.hsm-actions{display:flex;gap:12px;flex-wrap:wrap}
.hsm-btn{display:inline-flex;align-items:center;justify-content:center;height:50px;padding:0 25px;border-radius:999px;font-size:14px;font-weight:700;letter-spacing:.02em;transition:.2s ease}
.hsm-btn-primary{background:var(--hsm-warm);color:#fff!important}
.hsm-btn-primary:hover{background:#9c7755;text-decoration:none}
.hsm-btn-ghost{border:1px solid rgba(255,255,255,.55);color:#fff!important;background:rgba(255,255,255,.06)}
.hsm-btn-ghost:hover{background:#fff;color:#111!important;text-decoration:none}

/* Booking search card */
#index #search_hotel_block_form{background:rgba(255,255,255,.97)!important;border:0!important;border-radius:18px!important;box-shadow:0 24px 70px rgba(0,0,0,.26)!important;padding:20px!important;max-width:1140px;margin:0 auto 32px}
#index #search_hotel_block_form label{font-size:11px!important;letter-spacing:.08em;text-transform:uppercase;color:#665b52!important;font-weight:700}
#index #search_hotel_block_form input,#index #search_hotel_block_form select{border:1px solid #ddd4cb!important;border-radius:10px!important;min-height:46px!important;background:#fff!important}
#index #search_room_submit{border-radius:10px!important;min-height:46px!important;background:var(--hsm-ink)!important;border-color:var(--hsm-ink)!important;font-weight:700!important}

.columns-container{background:var(--hsm-cream)}
#index #columns{width:100%;max-width:none;padding:0}
#index #center_column{padding:0}
.hsm-home{overflow:hidden}
.hsm-section{padding:92px 0}
.hsm-container{width:min(1160px,calc(100% - 40px));margin:0 auto}
.hsm-kicker{font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:var(--hsm-warm);font-weight:700;margin-bottom:15px}
.hsm-title{font-family:Georgia,"Times New Roman",serif;font-size:46px;line-height:1.12;font-weight:400;letter-spacing:-.02em;margin:0 0 20px;color:var(--hsm-ink)}
.hsm-lead{font-size:18px;line-height:1.75;color:#5d5751;max-width:720px}
.hsm-trustbar{background:#171717;color:#fff}
.hsm-trustgrid{display:grid;grid-template-columns:repeat(4,1fr)}
.hsm-trustitem{padding:26px 20px;border-right:1px solid rgba(255,255,255,.13)}
.hsm-trustitem:last-child{border-right:0}
.hsm-trustitem strong{display:block;font-size:15px;margin-bottom:5px}
.hsm-trustitem span{font-size:13px;color:rgba(255,255,255,.66)}
.hsm-split{display:grid;grid-template-columns:1.05fr .95fr;gap:72px;align-items:center}
.hsm-photo{position:relative;border-radius:26px;overflow:hidden;min-height:520px;box-shadow:0 30px 70px rgba(35,25,17,.13)}
.hsm-photo img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover}
.hsm-badge{position:absolute;right:22px;bottom:22px;background:#fff;border-radius:16px;padding:17px 20px;box-shadow:0 15px 35px rgba(0,0,0,.15);font-size:13px;max-width:220px}
.hsm-badge strong{display:block;font-size:22px;font-family:Georgia,serif;margin-bottom:4px}
.hsm-room-section{background:var(--hsm-sand)}
.hsm-section-head{display:flex;justify-content:space-between;gap:30px;align-items:end;margin-bottom:42px}
.hsm-room-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.hsm-room-card{background:#fff;border-radius:20px;overflow:hidden;box-shadow:0 12px 35px rgba(35,25,17,.07);transition:transform .2s ease,box-shadow .2s ease}
.hsm-room-card:hover{transform:translateY(-4px);box-shadow:0 18px 44px rgba(35,25,17,.12)}
.hsm-room-card img{width:100%;height:260px;object-fit:cover}
.hsm-room-body{padding:24px}
.hsm-room-body h3{font-family:Georgia,serif;font-size:25px;font-weight:400;margin:0 0 10px}
.hsm-room-body p{color:#6c655f;line-height:1.6;min-height:52px}
.hsm-room-meta{display:flex;gap:14px;flex-wrap:wrap;font-size:12px;color:#7e756d;margin:16px 0 20px}
.hsm-room-link{font-weight:700;color:var(--hsm-ink);border-bottom:1px solid var(--hsm-warm);padding-bottom:3px}
.hsm-services-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:42px}
.hsm-service{border:1px solid var(--hsm-line);border-radius:18px;padding:25px;background:#fff}
.hsm-service-icon{font-size:23px;margin-bottom:17px}
.hsm-service h3{font-size:16px;margin:0 0 8px}
.hsm-service p{font-size:13px;color:#746d67;line-height:1.55;margin:0}
.hsm-location{background:#1e1e1e;color:#fff}
.hsm-location .hsm-title{color:#fff}
.hsm-location .hsm-lead{color:rgba(255,255,255,.72)}
.hsm-location-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:55px;align-items:center}
.hsm-location-photo{height:420px;border-radius:24px;overflow:hidden}
.hsm-location-photo img{width:100%;height:100%;object-fit:cover}
.hsm-footer-note{text-align:center;padding:25px 20px;color:#827a73;font-size:12px}
.footer-container{background:#111!important}
#footer{color:#d7d2cd!important}
#footer a{color:#fff!important}

@media(max-width:991px){
  .hsm-hero-copy{padding-top:11vh}
  .hsm-hero-copy h1{font-size:48px}
  .hsm-trustgrid{grid-template-columns:repeat(2,1fr)}
  .hsm-trustitem:nth-child(2){border-right:0}
  .hsm-split,.hsm-location-grid{grid-template-columns:1fr;gap:38px}
  .hsm-room-grid{grid-template-columns:1fr 1fr}
  .hsm-services-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:767px){
  #header_logo img{width:190px}
  .hsm-hero-copy{padding-top:82px}
  .hsm-hero-copy h1{font-size:39px}
  .hsm-hero-copy p{font-size:17px}
  .hsm-section{padding:65px 0}
  .hsm-container{width:min(100% - 28px,1160px)}
  .hsm-title{font-size:36px}
  .hsm-trustgrid{grid-template-columns:1fr 1fr}
  .hsm-trustitem{padding:20px 14px}
  .hsm-room-grid,.hsm-services-grid{grid-template-columns:1fr}
  .hsm-section-head{display:block}
  .hsm-photo{min-height:390px}
  .hsm-location-photo{height:330px}
}

#index #header{background-image:url("../img/hsm/hero.jpg")!important;}

/* Hide QloApps demo hero copy; retain booking engine */
#index .header-desc-container{display:none!important;}

/* Branded footer */
.hsm-site-footer{background:#111;color:#d8d3ce;padding:64px 0 24px}
.hsm-footer-grid{display:grid;grid-template-columns:1.6fr .7fr 1fr;gap:70px;padding-bottom:42px}
.hsm-footer-brand img{width:240px;max-width:100%;filter:brightness(0) invert(1);margin-bottom:22px}
.hsm-footer-brand p{max-width:390px;color:#a9a29c;line-height:1.65}
.hsm-site-footer h4{font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:#fff;margin:0 0 18px}
.hsm-site-footer a{display:block;color:#d8d3ce!important;margin:0 0 10px;text-decoration:none}
.hsm-site-footer a:hover{color:#fff!important}
.hsm-site-footer p{color:#a9a29c;line-height:1.6}
.hsm-footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding-top:22px;display:flex;justify-content:space-between;gap:20px;color:#7f7974;font-size:12px}

/* Mobile booking engine */
@media(max-width:767px){
  #index .header-container,#index #header{height:auto!important;min-height:0!important}
  #index .header-rmsearch-container{display:block!important;position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;padding:0 14px 24px!important;margin-top:0!important}
  #index .header-rmsearch-wrapper,#index .header-rmsearch-primary{position:relative!important;display:block!important;width:100%!important;max-width:none!important}
  #index .header-rmsearch-primary>.container{width:100%!important;padding:0!important}
  #index #search_hotel_block_form{margin:0!important;padding:12px!important;border-radius:14px!important}
  #index #search_form_fields_wrapper{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
  #index #search_form_fields_wrapper>.grid-item{grid-column:1/-1!important;width:100%!important;margin:0!important}
  #index #search_hotel_block_form .form-group{margin-bottom:0!important}
  #index #search_room_submit{width:100%!important}
  #index .hsm-actions .hsm-btn{flex:1 1 auto}
  .hsm-footer-grid{grid-template-columns:1fr;gap:30px}
  .hsm-footer-bottom{display:block}
  .hsm-footer-bottom span{display:block;margin:6px 0}
}
