/* ========================================
   Reset & Base Styles
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --background: #ffffff;
  --foreground: #0a0a0a;
  --primary: #2563eb;
  --primary-foreground: #ffffff;
  --muted: #f5f5f5;
  --muted-foreground: #737373;
  --border: #e5e5e5;
  --card: #ffffff;
  --card-foreground: #0a0a0a;
  --radius: 0.75rem;
}

.page-container {
  min-height: 100vh;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  position: relative;
  height: 350px;
  overflow: hidden;
  
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.2));
}

.hero-content-premium {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding-left: 5%;
  padding-right: 5%;
  padding-bottom: 20px;
}

.hero-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.hero-flex {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hotel-logo {
  width: 7rem;
  height: 7rem;
  border-radius: var(--radius);
  border: 4px solid rgba(255,255,255,0.2);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  flex-shrink: 0;
  background-color: #ffffff;
  align-content: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative; /* เพิ่ม */
}

.hotel-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* รักษาสัดส่วนเดิม */
}

.hotel-info {
  flex: 1;
  min-width: 0;
  color: white;
}

.hotel-name {
  font-size: 1.5rem;
  font-weight: 700;
  word-wrap: break-word;
  margin-bottom: 1.5rem;
  line-height: 1.25;
}

.quick-stats {
  display: none;
  gap: 0.75rem;
}

.stat-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  min-width: 120px;
  border: 1px solid rgba(255,255,255,0.1);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2563eb;
}

.stat-label {
  font-size: 0.875rem;
  color: #737373;
}

.gallery-btn {
  margin-right: 5%;
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(12px);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: background 0.2s;
}

.gallery-btn:hover {
  background: rgba(0,0,0,0.7);
}

.gallery-count {
  background: rgba(255,255,255,0.2);
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
}

/* ========================================
   Mobile Stats
   ======================================== */
.mobile-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  padding: 0.75rem 5%;
  background: var(--muted);
}

.mobile-stat-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 0.75rem;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  border: 1px solid var(--border);
}

/* ========================================
   Main Content
   ======================================== */
.premium-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 50px 5%;
}

.content-grid {
  display: grid;
  gap: 1.5rem;
}

/* ========================================
   Left Column
   ======================================== */
.left-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 0;
}

.content-section {
  display: flex;
  flex-direction: column;
}

.section-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.75;
}

/* ========================================
   HR Card
   ======================================== */
.hr-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.hr-profile {
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(37,99,235,0.05));
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hr-image {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  object-fit: cover;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  margin-bottom: 0.5rem;
  border: 4px solid white;
}

.hr-name {
  font-weight: 600;
  font-size: 0.875rem;
}

.hr-position {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.hr-quote {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quote-icon {
  color: var(--primary);
  opacity: 0.3;
  width: 1.5rem;
  height: 1.5rem;
}

.quote-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-style: italic;
  line-height: 1.75;
}

.info-item.long {
    flex-direction: column;
    align-items: flex-start;
}

span.info-value.type {
    padding-top: 10px;
    font-weight: 300;
}

/* ========================================
   Welfare Grid
   ======================================== */
.welfare-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 0.5rem;
}

.welfare-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: var(--muted);
  border-radius: 0.5rem;
  font-size: 14px;
}

.welfare-icon {
  color: var(--primary);
  flex-shrink: 0;
}

/* ========================================
   Gallery Grid
   ======================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
  padding: 2rem 0.5rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-label {
  opacity: 1;
}

/* ========================================
   Vertical Separator
   ======================================== */
.vertical-separator {
  display: none;
  background: var(--border);
  width: 1px;
}

/* ========================================
   Right Column / Sidebar
   ======================================== */
.right-column {
  min-width: 0;
}

.sidebar-desktop {
  display: none;
  position: sticky;
  top: 1rem;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-mobile {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.sidebar-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ========================================
   Info List
   ======================================== */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.info-label {
  font-size: 15px;
  font-weight: 500;
  color: #303030;
}

.info-value {
  font-size: 0.875rem;
  font-weight: 600;
}

.mobile-info-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 0.75rem;
  font-size: 0.875rem;
}

.mobile-info-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  background: var(--muted);
  border-radius: 0.5rem;
}
.mobile-info-item.long {
    flex-direction: column;
    align-items: flex-start;
}
span.info-value.type {
    padding-top: 10px;
    font-weight: 300;
}
/* ========================================
   Apply Button
   ======================================== */
.apply-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.apply-btn:hover {
  opacity: 0.9;
}

/* ========================================
   Contact List
   ======================================== */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.2s;
}

.overflowtxt {
  overflow-wrap: break-word;
}

.contact-item:hover {
  color: var(--primary);
}

.contact-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

.contact-item.address {
  align-items: flex-start;
}

.contact-item.address svg {
  margin-top: 0.125rem;
}

.contact-item.address span {
  color: var(--muted-foreground);
}

.mobile-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ========================================
   Transport List
   ======================================== */
.transport-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.transport-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.transport-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.srt-icon {
  background: #fcdce6;
  color: #b90d1e;
}

.bts-icon {
  background: #dcfce7;
  color: #16a34a;
}

.mrt-icon {
  background: #dbeafe;
  color: #2563eb;
}

.shuttle-icon {
  background: rgba(37,99,235,0.1);
  color: var(--primary);
}

.transport-info {
  flex: 1;
  min-width: 0;
}

.transport-name {
  font-size: 0.875rem;
  font-weight: 500;
}

.transport-detail {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.mobile-transport-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-transport-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
}

.mobile-transport-item.bts {
  background: #f0fdf4;
}

.mobile-transport-item.mrt {
  background: #eff6ff;
}

.mobile-transport-item.srt {
  background: #eff6ff;
}

.mobile-transport-item.shuttle {
  background: rgba(37,99,235,0.05);
}

.mobile-transport-item .transport-icon {
  width: 2rem;
  height: 2rem;
}

/* ========================================
   Service Charge
   ======================================== */
.service-charge-card {
  text-align: center;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(37,99,235,0.05));
}

.service-charge-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.service-charge-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

/* ========================================
   Lightbox
   ======================================== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-prev,
.lightbox-next,
.lightbox-close {
  position: absolute;
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:hover {
  background: rgba(0,0,0,0.7);
}

.lightbox-prev {
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-close {
  top: 0.5rem;
  right: 0.5rem;
}

.lightbox-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 1rem;
  text-align: center;
}

.lightbox-caption p:first-child {
  font-weight: 500;
}

.lightbox-caption p:last-child {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}

.job-section, .container-joblist{
  max-width: 1400px;
  padding-left: 5%;
  padding-right: 5%;
}

/* ========================================
   Desktop Styles (min-width: 1200px)
   ======================================== */
@media (min-width: 1200px) {
  /* Hero Section */
  .hero {
    height: 550px;
  }

  .hero-flex {
    flex-direction: row;
    align-items: flex-end;
    gap: 1.5rem;
  }

  .hotel-logo {
    width: 9rem;
    height: 9rem;
    align-content: center;
    
  align-items: center;
  justify-content: center;
  overflow: hidden;
  }

  .hotel-name {
    font-size: 2.25rem;
    margin-bottom: 2.5rem;
    line-height: 1.2;
  }

  .quick-stats {
    display: flex;
  }

  .stat-value {
    color: #ffffff;
  }

  .stat-label {
    color: #ffffff;
  }

  .email-text {
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

  /* Mobile Stats - Hide on Desktop */
  .mobile-stats {
    display: none;
  }

  /* Main Content */
  .content-grid {
    grid-template-columns: 1fr 1px 320px;
    gap: 2rem;
  }

  /* Left Column */
  .left-column {
    gap: 3rem;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .section-text {
    font-size: 1rem;
  }

  /* HR Card */
  .hr-card {
    flex-direction: row;
  }

  .hr-profile {
    width: 33.333%;
  }

  .hr-image {
    width: 5rem;
    height: 5rem;
  }

  .hr-quote {
    width: 66.666%;
  }
  
.welfare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 0.75rem; 
}

  /* Welfare Item */
  .welfare-item {
    font-size: 0.875rem;
    padding: 0.625rem;
  }

  /* Gallery Grid */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Vertical Separator */
  .vertical-separator {
    display: block;
  }

  /* Right Column */
  .right-column {
    width: 100%;
  }

  .sidebar-desktop {
    display: flex;
  }

  .sidebar-mobile {
    display: none;
  }

}