/* Location Page Styles for Namaste Hanoi */

.location-stacking-container {
  width: 100%;
  position: relative;
}

.location-hero {
  height: 100vh !important;
  width: 100%;
  position: relative;
  overflow: hidden;
  display: block;
}

.hero-image {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.two-images-section {
  height: 100vh !important;
  width: 100%;
  display: flex;
  position: relative;
  overflow: hidden;
}

.image-half {
  width: 50%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.image-half img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-left {
  background-color: #1d1511;
}

.image-right {
  background-color: #1d1511;
}

/* Location Content Section */
.location-section {
  background-color: #FFF1D4;
  min-height: 100vh;
  height: auto;
  width: 100%;
  position: relative;
  padding: 6rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.location-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../src/images/side.svg');
  background-repeat: repeat;
  opacity: 0.1;
  z-index: 0;
  /* keep overlay behind side patterns */
}


.location-section .side-pattern-left {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 180px;
  background-image: url('../src/images/side.svg');
  background-repeat: repeat-y;
  background-size: 100% auto;
  background-position: left top;
  z-index: 1;
  pointer-events: none;
}

.location-section .side-pattern-right {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 180px;
  background-image: url('../src/images/side.svg');
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: right top;
  z-index: 1;
  pointer-events: none;
}

.location-container {
  width: 70%;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
}

.location-description {
  text-align: center;
  margin-bottom: 1.5rem;
}

.location-description .cursive-title {
  font-family: 'Dancing Script', cursive;
  font-size: 2.5rem;
  color: #B66202;
  margin-bottom: -10px;
}

.location-description .section-title {
  font-family: 'Alumni Sans', sans-serif;
  font-size: 3.5rem;
  color: #1f1a17;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  font-weight: 800;
}

.location-description p {
  font-family: 'Albert Sans', sans-serif;
  font-size: 1rem;
  color: #060606;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
}

.location-content-box-wrapper {
  padding: 10px;
  background: #4D2900;
}

.location-content-box {
  background: #4D2900;
  border: 2px solid #FFDB9080;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  height: auto;
  /* Height set to auto as requested */
  padding: 1rem;
  transition: all 0.3s ease;
  margin: auto;
}

@media (max-width: 1024px) {
  .location-content-box {
    height: auto;
  }
}

.map-panel {
  position: relative;
  background: #ffffff;
  width: 60%;
  padding: 10px;
}

.map-panel iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.details-panel {
  padding: 1.5rem;
  color: #FFF1D4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 40%;
}

.address-section {
  margin-bottom: 10px;
  background-color: #FFF1D4;
  padding: 1rem;
  border-radius: 12px;
}

.address-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.location-icon {
  margin-right: 0.5rem;
  border-radius: 50%;
  background-color: #4D2900;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.address-title {
  font-family: 'Albert Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #060606;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.address-subtitle {
  font-family: 'Albert Sans', sans-serif;
  font-size: 0.9rem;
  color: #060606;
  margin: 0 0 1rem 0;
  font-style: italic;
}

.address-text {
  font-family: 'Albert Sans', sans-serif;
  font-size: 1rem;
  color: #060606;
  line-height: 1.4;
  margin: 0 0 1.5rem 0;
}

/* .address-text p {
  margin: 0 0 0.2rem 0;
} */

.contact-title {
  font-family: 'Albert Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #4D2900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem 0;
}

.contact-text {
  font-family: 'Albert Sans', sans-serif;
  font-size: 1rem;
  color: #060606;
  margin: 0 0 1.5rem 0;
}

.directions-btn {
  font-family: 'Albert Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #FFF1D4;
  background: #4D2900;
  border: 1px solid #8B4513;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

.directions-btn:hover {
  background: #5A3410;
}

.section-divider {
  border: none;
  height: 1px;
  background-color: #8B4513;
  margin: 1.5rem 0;
}

.hours-section {
  margin-top: 1rem;
  width: 100%;
}

.hours-title {
  font-family: 'Albert Sans', sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: #FFFFFF;
  text-transform: uppercase;
  margin: 0 0 0.5rem 0;
  text-align: center;
  width: auto !important;
}

.hours-divider {
  border: none;
  height: 1px;
  background-color: #FFDB90;
  margin: 0.8rem 0;
}

.hours-item {
  display: flex;
  justify-content: space-between;
  text-align: left;
  flex-direction: column;
  gap: 0.5rem;
}

.hours-label {
  font-family: 'Albert Sans', sans-serif;
  font-size: 30px;
  font-weight: 600;
  color: #FFDB90;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hours-time {
  font-family: 'Albert Sans', sans-serif;
  font-size: 14px;
  color: #FFF1D4;
}

.location-gallery {
  background-color: #4D2900;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.location-gallery::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../src/images/side.svg');
  background-repeat: repeat;
  opacity: 0.05;
  z-index: 1;
}

.gallery-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: stretch;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 2;
}

/* Gallery item styles inherited from main style.css */

.item-1 {
  transform: rotate(-8deg);
  z-index: 10;
}

.item-2 {
  transform: rotate(4deg);
  z-index: 11;
}

.item-3 {
  transform: rotate(-5deg);
  z-index: 12;
}

.item-4 {
  transform: rotate(6deg);
  z-index: 13;
}

/* Loyalty section styles inherited from main style.css */

/* Gallery item img styles inherited from main style.css */

/* Responsive Design with Predefined Media Queries */

/* Large screens: >1440px - Default Desktop Layout */
@media (min-width: 1441px) {
  /* Default styles apply */
}

/* Large screens: 1241px - 1440px */
@media (min-width: 1241px) and (max-width: 1440px) {
  .location-hero {
    height: 95vh;
  }

  .two-images-section {
    height: 95vh;
  }

  .location-section {
    padding: 1.5rem 0;
  }

  .location-container {
    width: 85%;
  }

  .location-description .cursive-title {
    font-size: 1.8rem;
  }

  .location-description .section-title {
    font-size: 3.5rem;
  }

  .location-description p {
    font-size: 1rem;
  }

  .location-content-box {
    height: auto;
    /* Honor auto height everywhere */
  }

  .details-panel {
    padding: 1.5rem;
  }

  .side-pattern-left,
  .side-pattern-right {
    width: 140px;
  }
}

/* Tablet screens: 769px - 1024px */
@media (min-width: 769px) and (max-width: 1240px) {
  .location-hero {
    height: 60vh;
  }

  .two-images-section {
    height: 50vh;
  }

  .location-section {
    padding: 1.5rem 0;
    background: linear-gradient(135deg, #f6e7cf 0%, #f9ead8 100%);
  }

  .location-container {
    width: 95%;
  }

  .location-description .cursive-title {
    font-size: 1.5rem;
  }

  .location-description .section-title {
    font-size: 2.8rem;
  }

  .location-description p {
    font-size: 0.9rem;
    max-width: 90%;
    margin-bottom: 1rem;
  }

  .location-content-box {
    flex-direction: column;
    height: auto;
    gap: 1rem;
    padding: 0.8rem;
  }

  .map-panel {
    width: 100%;
    height: 250px;
    /* Reduced height for tablet to fit stacking */
    padding: 8px;
    order: 1;
  }

  .details-panel {
    width: 100%;
    padding: 1.5rem;
    order: 2;
    flex-direction: row;
    gap: 20px;
    align-items: stretch;
  }

  .address-section {
    flex: 1.2;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hours-section {
    flex: 1;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid #FFDB9040;
    padding-left: 20px;
  }

  .hours-title {
    font-size: 4.5rem;
    text-align: left;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 2rem !important;
    line-height: 1.1;
  }

  .hours-label {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .hours-time {
    font-size: 1.2rem;
    opacity: 0.9;
  }

  .side-pattern-left,
  .side-pattern-right {
    width: 100px;
  }
}

/* Small screens: 481px - 768px */
@media (min-width: 481px) and (max-width: 768px) {
  .location-hero {
    height: 50vh;
  }

  .two-images-section {
    height: 40vh;
  }

  .location-section {
    padding: 1.5rem 0;
    background: linear-gradient(135deg, #f6e7cf 0%, #f9ead8 100%);
  }

  .location-container {
    width: 100%;
    padding: 0 1rem;
  }

  .location-description {
    margin-bottom: 1.5rem;
  }

  .location-description .cursive-title {
    font-size: 1.4rem;
  }

  .location-description .section-title {
    font-size: 2.5rem;
  }

  .location-description p {
    font-size: 0.9rem;
    max-width: 100%;
  }

  .location-content-box {
    flex-direction: column;
    height: auto;
    gap: 1rem;
    padding: 0.8rem;
  }

  .map-panel {
    width: 100%;
    height: 300px;
    padding: 8px;
    order: 1;
  }

  .details-panel {
    width: 100%;
    padding: 0.5rem;
    order: 2;
    flex-direction: row;
    gap: 10px;
  }

  .address-section {
    width: 55%;
    padding: 1rem;
    margin-bottom: 0;
  }

  .hours-section {
    width: 100%;
    padding: 1rem;
    margin: 0;
  }

  .side-pattern-left,
  .side-pattern-right {
    width: 80px;
  }

  .address-title {
    font-size: 1.5rem;
  }

  .contact-title {
    font-size: 1rem;
  }

  .hours-title {
    font-size: 2rem;
    margin-left: -1rem !important;
    margin-right: -1rem !important;
  }
}

@media (max-width: 480px) {
  .location-hero {
    height: 40vh;
    min-height: 300px;
  }

  .two-images-section {
    height: 30vh;
    min-height: 200px;
  }

  .location-section {
    padding: 1rem 0;
    background: linear-gradient(135deg, #f6e7cf 0%, #f9ead8 100%);
  }

  .location-container {
    width: 100%;
    padding: 0 0.8rem;
  }

  .location-description {
    margin-bottom: 1rem;
    text-align: center;
  }

  .location-description .cursive-title {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
  }

  .location-description .section-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }

  .location-description p {
    font-size: 0.8rem;
    line-height: 1.5;
    max-width: 95%;
    margin: 0 auto;
  }

  .location-content-box {
    flex-direction: column;
    height: auto;
    padding: 0.6rem;
  }

  .map-panel {
    width: 100%;
    height: 250px;
    padding: 6px;
    order: 1;
  }

  .details-panel {
    width: 100%;
    padding: 0.8rem 0;
    order: 2;
  }

  .address-section {
    padding: 1rem;
    margin-bottom: 0;
  }

  .side-pattern-left,
  .side-pattern-right {
    width: 60px;
  }

  .address-title {
    font-size: 1.1rem;
  }

  .contact-title {
    font-size: 0.9rem;
  }

  .address-text p,
  .contact-text,
  .hours-time {
    font-size: 0.8rem;
  }

  .directions-btn {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }

  /* Loyalty section responsive styles now handled by main style.css */

  .hours-label {
    font-size: 1rem;
  }

  .hours-title {
    font-size: 1.2rem;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .address-header {
    margin-bottom: 0;
    height: auto;
  }

  .address-text {
    margin-bottom: 1rem;
  }

  .contact-text {
    margin-bottom: 1rem;
  }

  .hours-section {
    width: 100%;
  }

  .hours-item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .hours-time {
    font-size: 11px;
    text-align: right;
  }

  .hours-label {
    font-size: 14px;
  }

  .address-title {
    font-size: 1rem;
  }

  .map-panel {
    height: 200px;
    /* Further reduced height for small mobile stack */
  }
}

/* Specific fix for short viewports (e.g., 1440x640) */
@media (max-height: 720px) {
  .location-description .section-title {
    font-size: 2.2rem !important;
    margin-bottom: 0.3rem !important;
  }

  .location-description .cursive-title {
    font-size: 1.6rem !important;
    margin-bottom: -5px !important;
  }

  .location-description p {
    font-size: 0.85rem !important;
    margin-bottom: 0.5rem !important;
  }

  .location-content-box {
    height: auto !important;
  }

  .address-section {
    padding: 0.8rem !important;
  }

  .hours-section {
    width: 100% !important;
  }

  .hours-title {
    font-size: 2.5rem !important;
    margin-bottom: 1rem !important;
    /* margin-left: -1.5rem !important;
    margin-right: -1.5rem !important; */
  }

  .hours-time {
    font-size: 12px !important;
  }

  .directions-btn {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.75rem !important;
  }
}