
/* =========================================================
   ESTours — Final Production UI
   CSS-only refinement. No PHP/DB changes required.
   ========================================================= */

:root{
  --navy:#071b33;
  --navy-deep:#020a13;
  --ink:#0b1f38;
  --blue:#1f7fd8;
  --blue-soft:#eaf4ff;
  --coral:#f45c47;
  --coral-dark:#db4a37;
  --cream:#f7f3ec;
  --sand:#fbfaf7;
  --muted:#6f7b8c;
  --line:#e6ebf0;
  --white:#fff;
  --shadow-sm:0 10px 30px rgba(7,27,51,.07);
  --shadow-md:0 24px 70px rgba(7,27,51,.13);
  --shadow-lg:0 34px 95px rgba(7,27,51,.20);
  --radius-sm:14px;
  --radius-md:22px;
  --radius-lg:30px;
  --container:min(1180px,88vw);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  overflow-x:hidden;
  color:var(--ink);
  background:var(--white);
  font-family:Inter,Arial,Helvetica,sans-serif;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button,input,select,textarea{font:inherit}
::selection{background:rgba(244,92,71,.18)}

.navbar{
  position:sticky;
  top:0;
  z-index:100;
  min-height:78px;
  padding:10px max(5%,28px);
  display:flex;
  align-items:center;
  gap:28px;
  background:rgba(255,255,255,.93);
  border-bottom:1px solid rgba(7,27,51,.07);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  box-shadow:0 8px 28px rgba(7,27,51,.04);
}
.brand{display:flex;align-items:center;flex:0 0 auto}
.brand-logo{
  width:154px;
  height:50px;
  object-fit:contain;
  object-position:left center;
}
.nav-links{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:28px;
  font-size:14px;
  font-weight:800;
}
.nav-links a{
  position:relative;
  padding:10px 0;
}
.nav-links a:after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:3px;
  height:2px;
  transform:scaleX(0);
  transform-origin:left;
  background:var(--coral);
  transition:transform .2s ease;
}
.nav-links a:hover:after{transform:scaleX(1)}
.nav-cta,.btn{
  border:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:50px;
  padding:0 22px;
  border-radius:999px;
  background:var(--coral);
  color:#fff;
  font-weight:900;
  box-shadow:0 10px 24px rgba(244,92,71,.22);
  transition:transform .2s ease,box-shadow .2s ease,background .2s ease;
  cursor:pointer;
}
.nav-cta:hover,.btn:hover{
  transform:translateY(-2px);
  background:var(--coral-dark);
  box-shadow:0 16px 30px rgba(244,92,71,.26);
}
.menu-toggle{display:none}

.hero{
  position:relative;
  min-height:700px;
  display:flex;
  align-items:center;
  color:#fff;
  background:
    linear-gradient(90deg,rgba(2,10,19,.92) 0%,rgba(2,10,19,.66) 45%,rgba(2,10,19,.18) 100%),
    url('https://images.unsplash.com/photo-1533105079780-92b9be482077?auto=format&fit=crop&w=1800&q=85') center/cover;
}
.hero:after{
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:130px;
  background:linear-gradient(180deg,transparent,rgba(2,10,19,.16));
  pointer-events:none;
}
.hero-inner{
  position:relative;
  z-index:2;
  width:var(--container);
  margin:auto;
}
.eyebrow{
  display:inline-block;
  color:var(--coral);
  font-size:12px;
  line-height:1;
  font-weight:900;
  letter-spacing:.16em;
  text-transform:uppercase;
}
.hero .eyebrow{color:#fff}
.hero h1,.page-hero h1,.section h2{
  font-family:Georgia,"Times New Roman",serif;
  letter-spacing:-.025em;
}
.hero h1{
  max-width:880px;
  margin:18px 0 20px;
  font-size:clamp(58px,7vw,94px);
  line-height:.93;
  text-wrap:balance;
}
.hero p{
  max-width:720px;
  margin:0;
  color:rgba(255,255,255,.82);
  font-size:20px;
  line-height:1.65;
}
.hero-actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:30px;
}
.hero-actions .btn:nth-child(2){
  background:#fff !important;
  color:var(--ink) !important;
  box-shadow:0 12px 28px rgba(0,0,0,.12);
}
.hero-actions .btn:nth-child(2):hover{
  transform:translateY(-2px);
  box-shadow:0 18px 35px rgba(0,0,0,.16);
}

.search-panel{
  width:min(980px,100%);
  margin-top:38px;
  padding:10px;
  display:grid;
  grid-template-columns:1.35fr 1fr 1fr 122px;
  color:var(--ink);
  background:rgba(255,255,255,.97);
  border:1px solid rgba(255,255,255,.8);
  border-radius:24px;
  box-shadow:var(--shadow-lg);
}
.search-panel>div{
  min-width:0;
  padding:10px 15px;
  border-right:1px solid var(--line);
}
.search-panel label{
  display:block;
  margin-bottom:4px;
  color:#7c8797;
  font-size:11px;
  font-weight:900;
  letter-spacing:.13em;
  text-transform:uppercase;
}
.search-panel select,.search-panel input{
  width:100%;
  min-width:0;
  padding:8px 0;
  border:0;
  outline:0;
  background:transparent;
  color:var(--ink);
  font-size:15px;
  font-weight:800;
}
.search-panel button{
  min-height:58px;
  border:0;
  border-radius:17px;
  background:var(--blue);
  color:#fff;
  font-weight:900;
  cursor:pointer;
  transition:transform .2s ease,background .2s ease;
}
.search-panel button:hover{background:#126dc3;transform:translateY(-1px)}

.section{padding:96px 6%}
.section.alt{background:linear-gradient(180deg,#f8fbff 0%,#fff 100%)}
.section.dark{
  position:relative;
  background:
    radial-gradient(circle at 15% 0%,rgba(31,127,216,.16),transparent 32%),
    var(--navy);
  color:#fff;
}
.section-head{
  max-width:760px;
  margin:0 auto 46px;
  text-align:center;
}
.section h2{
  margin:12px 0 14px;
  font-size:clamp(42px,5vw,62px);
  line-height:1.02;
}
.section-head p{
  max-width:650px;
  margin:0 auto;
  color:var(--muted);
  font-size:17px;
  line-height:1.75;
}
.dark .section-head p{color:rgba(255,255,255,.68)}

.country-grid{
  width:min(1180px,100%);
  margin:auto;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}
.country-card{
  position:relative;
  min-height:380px;
  overflow:hidden;
  padding:26px;
  display:flex;
  align-items:flex-end;
  color:#fff;
  border-radius:var(--radius-lg);
  background:
    linear-gradient(180deg,rgba(2,10,19,.02) 28%,rgba(2,10,19,.88) 100%),
    var(--bg) center/cover;
  box-shadow:var(--shadow-md);
  transition:transform .25s ease,box-shadow .25s ease;
}
.country-card:before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(120deg,rgba(255,255,255,.08),transparent 32%);
  pointer-events:none;
}
.country-card.big{grid-column:span 2}
.country-card>div{position:relative;z-index:1}
.country-card .tag{
  display:inline-flex;
  align-items:center;
  padding:8px 11px;
  border:1px solid rgba(255,255,255,.17);
  border-radius:999px;
  background:rgba(255,255,255,.13);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  font-size:11px;
  font-weight:900;
}
.country-card h3{
  margin:10px 0 8px;
  font-family:Georgia,"Times New Roman",serif;
  font-size:34px;
  line-height:1;
}
.country-card p{
  max-width:520px;
  margin:0 0 14px;
  color:rgba(255,255,255,.78);
  line-height:1.55;
}
.country-card a b{font-size:14px}
@media(hover:hover){
  .country-card:hover{transform:translateY(-7px);box-shadow:0 34px 85px rgba(7,27,51,.18)}
}

.card-grid{
  width:min(1180px,100%);
  margin:auto;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}
.card{
  overflow:hidden;
  background:#fff;
  border:1px solid var(--line);
  border-radius:26px;
  box-shadow:var(--shadow-sm);
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;
}
.card img{
  width:100%;
  height:245px;
  object-fit:cover;
}
.card-body{padding:24px}
.card h3{
  margin:8px 0 10px;
  font-size:25px;
  line-height:1.15;
}
.card p{
  color:var(--muted);
  line-height:1.65;
}
.price{
  color:var(--blue);
  font-size:22px;
  font-weight:900;
}
.dark .card{border-color:rgba(255,255,255,.13)}
@media(hover:hover){
  .card:hover{
    transform:translateY(-7px);
    border-color:#d9e3ec;
    box-shadow:0 28px 75px rgba(7,27,51,.15);
  }
}

.page-hero{
  position:relative;
  min-height:460px;
  padding:110px 6% 68px;
  display:flex;
  align-items:flex-end;
  color:#fff;
  background:
    linear-gradient(90deg,rgba(2,10,19,.9),rgba(2,10,19,.46)),
    var(--hero) center/cover;
}
.page-hero:after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 60%,rgba(2,10,19,.18));
  pointer-events:none;
}
.page-hero>div{position:relative;z-index:1;width:min(1100px,100%)}
.page-hero h1{
  margin:12px 0;
  font-size:clamp(50px,6vw,78px);
  line-height:.98;
}
.page-hero p{
  max-width:720px;
  color:rgba(255,255,255,.8);
  font-size:18px;
  line-height:1.7;
}

.formbox{
  width:min(980px,100%);
  margin:auto;
  padding:32px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:28px;
  box-shadow:var(--shadow-md);
}
.formbox h2{
  margin:26px 0 10px;
  font-family:Georgia,"Times New Roman",serif;
  font-size:42px;
  line-height:1;
}
.formbox h2:first-of-type{margin-top:12px}
.formbox p{line-height:1.78;color:#31415a}
.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:15px;
}
.full{grid-column:1/-1}
label{
  display:grid;
  gap:7px;
  color:var(--ink);
  font-size:13px;
  font-weight:900;
}
input,select,textarea{
  min-width:0;
  padding:14px 15px;
  border:1px solid #dbe2e9;
  border-radius:12px;
  background:#fff;
  color:var(--ink);
  outline:none;
  transition:border-color .2s ease,box-shadow .2s ease;
}
input:focus,select:focus,textarea:focus{
  border-color:#9ec7ed;
  box-shadow:0 0 0 4px rgba(31,127,216,.09);
}
textarea{min-height:140px;resize:vertical}
.notice{
  width:min(980px,100%);
  margin:0 auto 16px;
  padding:14px 16px;
  border-radius:12px;
  background:#eaf8ef;
  color:#245f39;
}

.table-wrap{
  width:min(1180px,100%);
  margin:auto;
  overflow:auto;
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:var(--shadow-sm);
}
table{width:100%;min-width:900px;border-collapse:collapse}
th{
  background:var(--navy);
  color:#fff;
  text-align:left;
  font-size:13px;
}
th,td{padding:15px;border-bottom:1px solid var(--line)}

footer{
  padding:62px 6%;
  display:grid;
  grid-template-columns:2fr 1fr 1fr;
  gap:46px;
  align-items:start;
  background:var(--navy-deep);
  color:#fff;
}
.footer-brand{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:22px;
}
.footer-brand .footer-logo{
  width:56px;
  height:56px;
  margin:0;
  object-fit:cover;
  border-radius:14px;
}
.footer-brand span{
  color:#fff;
  font-size:26px;
  font-weight:900;
}
footer h4{
  margin:4px 0 18px;
  font-size:16px;
}
footer p,footer a{
  color:#aeb9c5;
  line-height:1.7;
}
footer>div:first-child>p{max-width:400px}
.footer-column{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:13px;
}
.footer-column a{
  display:block;
  transition:color .2s ease,transform .2s ease;
}
.footer-column a:hover{color:#fff;transform:translateX(3px)}

@media(max-width:1020px){
  .nav-links{gap:18px;font-size:13px}
  .brand-logo{width:138px}
  .country-grid,.card-grid{grid-template-columns:repeat(2,1fr)}
  .country-card.big{grid-column:span 2}
}

@media(max-width:900px){
  .navbar{
    min-height:72px;
    padding:10px 18px;
    justify-content:space-between;
    gap:16px;
  }
  .brand-logo{
    width:116px;
    height:44px;
  }
  .menu-toggle{
    display:block;
    width:44px;
    height:44px;
    margin-left:auto;
    padding:12px;
    flex:0 0 44px;
    border:0;
    border-radius:50%;
    background:#f1f4f7;
    cursor:pointer;
  }
  .menu-toggle span{
    display:block;
    width:19px;
    height:2px;
    margin:4px auto;
    background:var(--ink);
    transition:.2s ease;
  }
  .nav-cta{display:none}
  .nav-links{
    display:none;
    position:absolute;
    top:80px;
    left:14px;
    right:14px;
    margin:0;
    padding:10px;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    background:rgba(255,255,255,.98);
    border:1px solid var(--line);
    border-radius:20px;
    box-shadow:var(--shadow-md);
  }
  .menu-open .nav-links{display:flex}
  .nav-links a{
    padding:15px 14px;
    border-radius:11px;
    font-size:16px;
  }
  .nav-links a:after{display:none}
  .nav-links a+a{border-top:1px solid #edf0f3}
  .menu-open .menu-toggle span:nth-child(1){transform:translateY(6px) rotate(45deg)}
  .menu-open .menu-toggle span:nth-child(2){opacity:0}
  .menu-open .menu-toggle span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}

  .hero{
    min-height:auto;
    padding:58px 0 44px;
    background-position:center;
  }
  .hero-inner{width:calc(100% - 36px)}
  .hero h1{
    margin-top:16px;
    font-size:clamp(48px,14vw,68px);
    line-height:.94;
    letter-spacing:-.035em;
  }
  .hero p{font-size:18px;line-height:1.55}
  .hero-actions{gap:10px}
  .hero-actions .btn{flex:1 1 170px;min-height:54px}

  .search-panel{
    margin-top:28px;
    padding:14px;
    grid-template-columns:1fr;
    border-radius:24px;
  }
  .search-panel>div{
    padding:14px 7px;
    border-right:0;
    border-bottom:1px solid var(--line);
  }
  .search-panel button{
    margin-top:8px;
    min-height:56px;
    border-radius:16px;
  }

  .section{padding:72px 24px}
  .section h2{font-size:clamp(40px,11vw,56px)}
  .section-head{margin-bottom:34px}
  .section-head p{font-size:16px}

  .country-grid,.card-grid{grid-template-columns:1fr;gap:18px}
  .country-card.big{grid-column:auto}
  .country-card{min-height:330px;padding:22px}
  .country-card h3{font-size:31px}
  .card img{height:230px}
  .card-body{padding:22px}

  .page-hero{
    min-height:390px;
    padding:90px 24px 54px;
  }
  .page-hero h1{font-size:clamp(46px,13vw,64px)}
  .page-hero p{font-size:17px}

  .formbox{
    padding:24px;
    border-radius:24px;
  }
  .formbox h2{font-size:38px}
  .form-grid{grid-template-columns:1fr}
  .full{grid-column:auto}

  footer{
    padding:54px 28px 64px;
    grid-template-columns:1fr;
    gap:38px;
  }
  .footer-brand .footer-logo{
    width:50px;
    height:50px;
  }
  .footer-brand span{font-size:23px}
}

@media(max-width:430px){
  .navbar{padding-left:14px;padding-right:14px}
  .brand-logo{width:108px}
  .hero-inner{width:calc(100% - 28px)}
  .hero h1{font-size:48px}
  .hero p{font-size:17px}
  .section{padding-left:18px;padding-right:18px}
  .page-hero{padding-left:18px;padding-right:18px}
  footer{padding-left:22px;padding-right:22px}
}

@media(prefers-reduced-motion:reduce){
  *{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}


/* =========================================================
   ESTours Final V2 — desktop logo/footer/dropdown corrections
   ========================================================= */

/* Header brand: small icon + clean wordmark instead of the square image */
.brand{
  display:flex;
  align-items:center;
  gap:11px;
  min-width:max-content;
}
.brand-icon{
  width:42px;
  height:42px;
  flex:0 0 42px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border-radius:12px;
  background:#fff;
  box-shadow:0 4px 14px rgba(7,27,51,.10);
}
.brand-icon img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.brand-word{
  font-size:24px;
  line-height:1;
  font-weight:900;
  letter-spacing:-.035em;
  color:var(--ink);
}
.brand-logo{display:none!important}

/* Footer brand can never expand into a huge image */
.footer-main{min-width:0}
.footer-brand{
  display:flex;
  align-items:center;
  gap:12px;
  margin:0 0 20px;
}
.footer-brand-icon{
  width:46px;
  height:46px;
  flex:0 0 46px;
  overflow:hidden;
  border-radius:12px;
  background:#fff;
}
.footer-brand-icon img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.footer-brand-word{
  color:#fff;
  font-size:25px;
  font-weight:900;
  letter-spacing:-.025em;
}
.footer-logo{display:none!important}

/* Make footer proportionally compact on large screens */
footer{
  grid-template-columns:minmax(280px,1.5fr) minmax(150px,.7fr) minmax(220px,.8fr);
  gap:64px;
  padding-top:58px;
  padding-bottom:58px;
}
footer .footer-main>p{
  max-width:430px;
  margin:0;
}

/* Native select: no emoji/flag font artifacts */
.search-panel select{
  font-family:Arial,Helvetica,sans-serif;
  font-variant-emoji:text;
}
.search-panel option{
  font-family:Arial,Helvetica,sans-serif;
}

/* Desktop polish */
@media(min-width:901px){
  .navbar{padding-left:4.5%;padding-right:4.5%}
  .nav-links{gap:25px}
  .nav-cta{margin-left:4px}
}

/* Mobile brand is compact and balanced */
@media(max-width:900px){
  .brand{gap:9px}
  .brand-icon{
    width:40px;
    height:40px;
    flex-basis:40px;
    border-radius:11px;
  }
  .brand-word{font-size:21px}
  footer{
    grid-template-columns:1fr;
    gap:36px;
  }
}
