/* MaPhuket — modern layout, CTA, responsive */
:root {
  --mp-primary: #0d6efd;
  --mp-primary-dark: #0a58ca;
  --mp-accent: #ff8400;
  --mp-accent-dark: #e67300;
  --mp-dark: #1a2332;
  --mp-text: #2c3e50;
  --mp-muted: #6c757d;
  --mp-bg: #f4f7fb;
  --mp-card-shadow: 0 4px 20px rgba(26, 35, 50, 0.08);
  --mp-radius: 12px;
  --mp-nav-h: 64px;
  --mp-sticky-h: 56px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Kanit", sans-serif;
  color: var(--mp-text);
  background: #fff;
  padding-bottom: calc(var(--mp-sticky-h) + 8px);
}

body:not(.mp-body) {
  padding-top: var(--mp-nav-h);
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

/* —— Navbar สว่าง อ่านชัด (override Bootstrap navbar-light/dark) —— */
nav.mp-navbar.navbar,
nav.mp-navbar.navbar-light,
nav.mp-navbar.navbar-dark {
  background: #ffffff !important;
  background-image: none !important;
  border-bottom: 3px solid var(--mp-accent);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
  min-height: var(--mp-nav-h);
  padding: 0.45rem 0;
  z-index: 1050;
}

nav.mp-navbar .navbar-brand {
  background: linear-gradient(135deg, #fff8f0 0%, #ffffff 100%);
  border: 1px solid #ffe0b8;
  border-radius: 10px;
  padding: 0.35rem 0.65rem;
}

nav.mp-navbar .navbar-brand img {
  max-height: 54px;
  width: auto;
  display: block;
  filter: none;
}

nav.mp-navbar .navbar-toggler {
  border: 2px solid #0d6efd;
  padding: 0.35rem 0.55rem;
}

nav.mp-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='%230d47a1' stroke-width='3' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

nav.mp-navbar .navbar-nav .nav-link,
nav.mp-navbar.navbar-light .navbar-nav .nav-link,
nav.mp-navbar.navbar-dark .navbar-nav .nav-link {
  color: #0d47a1 !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  padding: 0.55rem 0.9rem !important;
  text-shadow: none !important;
}

nav.mp-navbar .navbar-nav .nav-link:hover,
nav.mp-navbar .navbar-nav .nav-link:focus,
nav.mp-navbar .navbar-nav .show > .nav-link {
  color: var(--mp-accent-dark) !important;
}

nav.mp-navbar .navbar-collapse {
  background: #ffffff;
}

@media (max-width: 991px) {
  nav.mp-navbar .navbar-collapse {
    padding: 0.75rem 0.5rem 1rem;
    border-top: 1px solid #e3edf7;
    margin-top: 0.5rem;
  }
  nav.mp-navbar .navbar-nav .nav-link {
    border-bottom: 1px solid #f0f4f8;
  }
}

nav.mp-navbar .dropdown-menu {
  background: #fff;
  border: 1px solid #c5ddf5;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

nav.mp-navbar .dropdown-item {
  color: #1a2332 !important;
  font-weight: 500;
}

nav.mp-navbar .dropdown-item:hover {
  background: #e8f4ff !important;
  color: #0d47a1 !important;
}

nav.mp-navbar .nav-link.mp-nav-cta,
nav.mp-navbar .nav-link.mp-nav-cta:hover,
nav.mp-navbar .nav-link.mp-nav-cta:focus {
  background: var(--mp-accent) !important;
  color: #ffffff !important;
  border-radius: 999px;
  padding: 0.5rem 1.35rem !important;
  font-weight: 700 !important;
  margin-left: 0.35rem;
  margin-top: 0.25rem;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(255, 132, 0, 0.45);
}

@media (min-width: 992px) {
  nav.mp-navbar .nav-link.mp-nav-cta {
    margin-top: 0;
  }
}

/* —— Contact strip (below slider) —— */
.mp-contact-strip {
  background: linear-gradient(90deg, #e8f4ff 0%, #fff 50%, #e8f4ff 100%);
  border: 1px solid #c5ddf5;
  border-radius: var(--mp-radius);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  font-size: 0.95rem;
}

.mp-contact-strip a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--mp-primary-dark);
  font-weight: 500;
  text-decoration: none;
}

.mp-contact-strip a:hover {
  color: var(--mp-accent);
}

.mp-contact-strip img {
  height: 26px;
  width: auto;
}

/* —— Hero / intro —— */
.mp-hero {
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  background: linear-gradient(180deg, var(--mp-bg) 0%, #fff 100%);
  border-radius: var(--mp-radius);
  margin-bottom: 1.5rem;
}

.mp-hero h1 {
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 700;
  color: var(--mp-dark);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.mp-hero .lead {
  color: var(--mp-muted);
  font-size: 1rem;
  font-weight: 300;
  max-width: 640px;
  margin: 0 auto 1.25rem;
}

.mp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* —— Buttons / CTA —— */
.mp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.mp-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.mp-btn-primary {
  background: var(--mp-primary);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(13, 110, 253, 0.35);
}

.mp-btn-primary:hover {
  background: var(--mp-primary-dark);
  color: #fff !important;
}

.mp-btn-accent {
  background: var(--mp-accent);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(255, 132, 0, 0.35);
}

.mp-btn-accent:hover {
  background: var(--mp-accent-dark);
  color: #fff !important;
}

.mp-btn-outline {
  background: #fff;
  color: var(--mp-primary) !important;
  border: 2px solid var(--mp-primary);
}

.mp-btn-outline:hover {
  background: var(--mp-primary);
  color: #fff !important;
}

.mp-btn-block {
  width: 100%;
  border-radius: 8px;
}

/* —— Sections —— */
.mp-section {
  margin: 2rem 0;
}

.mp-section-title {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 700;
  color: var(--mp-accent);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--mp-accent);
  display: inline-block;
}

.mp-section-articles {
  background: var(--mp-bg);
  border-radius: var(--mp-radius);
  padding: 2rem 0;
  margin-top: 2rem;
}

/* —— Tour cards —— */
.mp-tour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.mp-tour-card {
  background: #fff;
  border-radius: var(--mp-radius);
  overflow: hidden;
  box-shadow: var(--mp-card-shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mp-tour-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26, 35, 50, 0.12);
}

.mp-tour-card__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #e9ecef;
}

.mp-tour-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

.mp-tour-card:hover .mp-tour-card__img-wrap img {
  transform: scale(1.05);
}

.mp-tour-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--mp-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

.mp-tour-card__body {
  padding: 1rem 1.1rem 1.15rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mp-tour-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.mp-tour-card__title a {
  color: var(--mp-dark);
  text-decoration: none;
}

.mp-tour-card__title a:hover {
  color: var(--mp-primary);
}

.mp-tour-card__text {
  font-size: 0.9rem;
  color: var(--mp-muted);
  flex: 1;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.mp-tour-card__transfer {
  font-size: 0.85rem;
  color: #198754;
  margin-bottom: 0.75rem;
}

/* —— Carousel —— */
.carousel-item {
  margin-top: 0 !important;
}

.mp-carousel .carousel-item img {
  border-radius: var(--mp-radius);
  max-height: 420px;
  object-fit: cover;
  width: 100%;
}

/* —— Footer (สว่าง — โลโก้และตัวอักษรชัด) —— */
.mp-footer {
  background: linear-gradient(180deg, #f0f6fc 0%, #ffffff 100%);
  border-top: 3px solid var(--mp-accent);
  color: #1a2332;
  padding: 2.5rem 0 calc(var(--mp-sticky-h) + 1.5rem);
  margin-top: 2rem;
}

@media (min-width: 992px) {
  .mp-footer {
    padding-bottom: 2rem;
  }
}

.mp-footer p,
.mp-footer li {
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.6;
}

.mp-footer a {
  color: #0a58ca;
  text-decoration: none;
  font-weight: 500;
}

.mp-footer a:hover {
  color: var(--mp-accent-dark);
  text-decoration: underline;
}

.mp-footer h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #0d47a1;
}

.mp-footer .navbar-brand img,
.mp-footer > .container img.img-fluid.mb-3,
.mp-footer img.img-fluid.mb-3 {
  max-width: 200px;
  height: auto;
  background: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.mp-footer-links li {
  margin-bottom: 0.4rem;
}

.mp-footer .small {
  color: #64748b !important;
}

/* กัน style เก่า text-white ทับ footer */
.mp-footer .text-white {
  color: #334155 !important;
}

/* —— Mobile sticky CTA —— */
.mp-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  display: flex;
  background: #fff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
}

@media (min-width: 992px) {
  .mp-sticky-bar {
    display: none;
  }
}

.mp-sticky-bar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  gap: 0.2rem;
}

.mp-sticky-bar a img {
  width: 24px;
  height: 24px;
}

.mp-sticky-line { background: #06c755; }
.mp-sticky-tel { background: #495057; }
.mp-sticky-fb { background: #1877f2; }

/* —— CTA Hooks ตามความต้องการลูกค้า —— */
.mp-cta-hooks-section {
  background: linear-gradient(180deg, #fff 0%, var(--mp-bg) 100%);
  border-radius: var(--mp-radius);
  padding: 1.75rem 1rem 2rem;
  margin-bottom: 2rem;
}

.mp-cta-hooks-lead {
  text-align: center;
  color: var(--mp-muted);
  margin: -0.5rem 0 1.5rem;
  font-size: 1rem;
}

.mp-cta-hooks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.mp-cta-hook {
  background: #fff;
  border: 2px solid #e8eef5;
  border-radius: var(--mp-radius);
  padding: 1.15rem 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  height: 100%;
}

.mp-cta-hook:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(13, 110, 253, 0.12);
}

.mp-cta-hook--plan:hover { border-color: #0d6efd; }
.mp-cta-hook--fun:hover { border-color: #20c997; }
.mp-cta-hook--safe:hover { border-color: #198754; }
.mp-cta-hook--wow:hover { border-color: #fd7e14; }
.mp-cta-hook--start:hover { border-color: #6f42c1; }
.mp-cta-hook--family:hover { border-color: #e83e8c; }
.mp-cta-hook--oneday:hover { border-color: #0dcaf0; }
.mp-cta-hook--price:hover { border-color: #ffc107; }
.mp-cta-hook--transfer:hover { border-color: #198754; }

.mp-cta-hook__icon {
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.mp-cta-hook__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0d47a1;
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.mp-cta-hook__desc {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.5;
  flex: 1;
  margin: 0 0 1rem;
}

.mp-cta-hook__btn {
  width: 100%;
  border-radius: 8px;
  font-size: 0.95rem;
  padding: 0.55rem 1rem;
}

/* —— Promo banner —— */
.mp-promo-banner {
  border-radius: var(--mp-radius);
  margin: 1rem 0;
  width: 100%;
  height: auto;
}

/* —— Legacy overrides —— */
.bg_color {
  background: var(--mp-bg) !important;
  border-radius: var(--mp-radius) !important;
  width: 100% !important;
  height: auto !important;
}

.Packet,
.mp-section-title {
  color: var(--mp-accent) !important;
}

.card.h-100 {
  border: none;
  border-radius: var(--mp-radius);
  box-shadow: var(--mp-card-shadow);
}

/* —— Accessibility —— */
.mp-skip-link {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--mp-accent);
  color: #fff;
}

.mp-skip-link:focus {
  left: 0;
  top: 0;
}

/* —— แบบฟอร์มลูกค้า (กว้าง) —— */
.mp-request-page {
  padding-bottom: 2rem;
}

.mp-request-info {
  background: var(--mp-bg);
  border-radius: var(--mp-radius);
  padding: 1.5rem;
  border: 1px solid #e3edf7;
}

.mp-request-info h2 {
  font-size: 1.2rem;
  color: #0d47a1;
  margin-bottom: 1rem;
}

.mp-request-form {
  background: #fff;
  border: 1px solid #e3edf7;
  border-radius: var(--mp-radius);
  padding: 1.5rem 1.75rem 2rem;
  box-shadow: var(--mp-card-shadow);
}

.mp-form-row {
  margin-bottom: 1.25rem;
}

.mp-form-row label {
  display: block;
  font-weight: 600;
  color: #1a2332;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.mp-req {
  color: #dc3545;
}

.mp-input-wide {
  width: 100%;
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: "Kanit", sans-serif;
  border: 2px solid #d0dde8;
  border-radius: 8px;
  background: #fafcff;
  color: #1a2332;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.mp-input-wide:focus {
  border-color: var(--mp-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
  background: #fff;
}

.mp-textarea-tall {
  min-height: 160px;
  resize: vertical;
  line-height: 1.55;
}

.mp-textarea-mid {
  min-height: 100px;
  resize: vertical;
  line-height: 1.55;
}

.mp-form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 576px) {
  .mp-form-row-2 {
    grid-template-columns: 1fr;
  }
}

.mp-form-actions {
  margin-top: 1.5rem;
  text-align: center;
}

.mp-btn-lg {
  padding: 0.85rem 2.5rem;
  font-size: 1.1rem;
}

.mp-form-hint {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--mp-muted);
}

.mp-form-field-hint {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: #64748b;
}

.mp-form-alert {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.mp-form-alert-error {
  background: #fff5f5;
  border: 1px solid #f5c2c7;
  color: #842029;
}

/* Captcha + honeypot */
.mp-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.mp-captcha-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.mp-captcha-q {
  display: inline-block;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0d47a1;
  background: linear-gradient(135deg, #e8f4ff 0%, #fff 100%);
  border: 2px dashed #0d6efd;
  border-radius: 10px;
  padding: 0.5rem 1rem;
  letter-spacing: 0.05em;
  user-select: none;
}

.mp-captcha-img img {
  display: block;
  border-radius: 8px;
  border: 2px solid #dee2e6;
  max-width: 100%;
  height: auto;
}

.mp-captcha-input {
  flex: 1;
  min-width: 120px;
  max-width: 200px;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
}

.mp-captcha-refresh {
  display: inline;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  color: #0d6efd;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.mp-captcha-refresh:hover:not(:disabled) {
  color: #0a58ca;
}

.mp-captcha-refresh:disabled {
  opacity: 0.65;
  cursor: wait;
}
