/* public/assets/attractions.css
   Приведено к утверждённому светлому воздушному стилю сайта
   Без изменения структуры раздела
*/

.attractions-page{
  width: 100%;
  max-width: var(--container, 1440px);
  margin-left: auto;
  margin-right: auto;
  padding-top: 14px;
  padding-bottom: 28px;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
  min-width: 0;
  color: #1b2a40;
  font-weight: 450;
}

.attractions-page.ui-page{
  max-width: var(--container, 1440px);
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 1024px){
  body.has-bottom-nav .attractions-page{
    padding-bottom: calc(var(--bottom-nav-h, 78px) + 16px);
  }
}

.attractions-page :where(
  .ui-page-head,
  .attractions-search,
  .attractions-grid,
  .attractions-pager,
  .at-card,
  .at-head,
  .at-block,
  .at-gallery,
  .at-head__top,
  .at-actions,
  .at-comment,
  .at-comment__body
){
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.attractions-page .ui-page-head{
  gap: 12px;
}

/* Search */
.attractions-search{
  display:flex;
  gap:10px;
  align-items:center;
  min-width: 0;
  max-width: 100%;
}

.attractions-search .ui-input{
  width: min(420px, 62vw);
  background: rgba(255,255,255,.82);
  border-color: rgba(181,194,222,.30);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.60),
    0 6px 16px rgba(71,85,105,.04);
}

.attractions-search .ui-input:focus{
  border-color: rgba(0,136,204,.26);
  box-shadow:
    0 0 0 4px rgba(0,136,204,.08),
    inset 0 1px 0 rgba(255,255,255,.64);
}

/* Grid */
.attractions-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 1200px){
  .attractions-grid{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px){
  .attractions-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px){
  .attractions-page{
    padding-top: 10px;
    padding-bottom: 22px;
  }

  .attractions-page .ui-title{
    font-size: clamp(1.25rem, 5.5vw, 1.55rem);
    line-height: 1.2;
  }

  .attractions-page .ui-page-head{
    align-items: stretch;
  }

  .attractions-search{
    width:100%;
    flex-direction:column;
    align-items:stretch;
  }

  .attractions-search .ui-input,
  .attractions-search .ui-btn{
    width:100%;
  }

  .at-head__top{
    flex-direction: column;
    align-items: stretch;
  }

  .at-actions{
    justify-content: flex-start;
  }
}

@media (max-width: 560px){
  .attractions-grid{
    grid-template-columns: 1fr;
  }

  .at-map iframe{
    height:280px;
  }
}

.at-card{
  display:block;
  overflow:hidden;
  text-decoration:none;
  color: inherit;
  transition:
    filter .15s ease,
    transform .08s ease,
    box-shadow .15s ease,
    border-color .15s ease,
    background .15s ease;
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(181,194,222,.24);
  border-radius: 18px;
  box-shadow:
    0 8px 20px rgba(71,85,105,.045),
    inset 0 1px 0 rgba(255,255,255,.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.at-card:hover{
  filter: brightness(1.01);
  box-shadow:
    0 12px 24px rgba(71,85,105,.06),
    inset 0 1px 0 rgba(255,255,255,.62);
  border-color: rgba(167,188,221,.30);
  background: rgba(255,255,255,.76);
}

.at-card:active{
  transform: translateY(1px);
}

.at-card__media{
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background: rgba(255,255,255,.30);
  border-bottom: 1px solid rgba(181,194,222,.20);
  overflow: hidden;
}

.at-card__media img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.at-card__placeholder{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(100,116,139,.90);
  font-weight:900;
  background: linear-gradient(180deg, rgba(248,250,252,.82), rgba(240,244,248,.86));
}

.at-card__chips{
  position:absolute;
  left:10px;
  top:10px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.at-card__body{
  padding:12px;
}

.at-card__title{
  font-weight:900;
  color: rgba(15,23,42,.95);
  line-height:1.22;
  margin-bottom:6px;
  overflow-wrap: anywhere;
}

.at-card__meta{
  color: rgba(100,116,139,.95);
  font-weight:700;
  font-size:13px;
  margin-bottom:6px;
}

.at-card__excerpt{
  color: rgba(15,23,42,.80);
  font-size:14px;
  line-height:1.48;
  overflow-wrap: anywhere;
}

.attractions-pager{
  margin-top:14px;
}

/* Show */
.at-head{
  overflow:hidden;
  min-width: 0;
  max-width: 100%;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(181,194,222,.24);
  border-radius: 20px;
  box-shadow:
    0 10px 24px rgba(71,85,105,.05),
    inset 0 1px 0 rgba(255,255,255,.60);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.at-head__media{
  border-bottom: 1px solid rgba(181,194,222,.20);
  background: rgba(255,255,255,.30);
}

.at-hero{
  width:100%;
  max-width: 100%;
  height:auto;
  aspect-ratio:16/9;
  object-fit:cover;
  display:block;
}

.at-hero--placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(100,116,139,.9);
  font-weight:900;
  background: linear-gradient(180deg, rgba(248,250,252,.82), rgba(240,244,248,.86));
}

.at-head__body{
  padding:12px;
}

.at-head__top{
  display:flex;
  gap:12px;
  align-items:flex-start;
  justify-content:space-between;
  flex-wrap:wrap;
}

.at-title{
  margin:0;
}

.at-address{
  margin-top:4px;
}

.at-actions{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.at-fav-btn.is-active{
  border-color: rgba(245,158,11,.34);
  background: rgba(255,251,235,.88);
}

.at-excerpt{
  margin-top:10px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(181,194,222,.20);
  background: rgba(255,255,255,.54);
  color: rgba(15,23,42,.88);
  line-height:1.55;
  font-weight:650;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.at-block{
  margin-top:12px;
  padding:12px;
  min-width: 0;
  max-width: 100%;
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(181,194,222,.22);
  border-radius: 18px;
  box-shadow:
    0 8px 20px rgba(71,85,105,.04),
    inset 0 1px 0 rgba(255,255,255,.56);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.at-block__title{
  font-weight:900;
  margin-bottom:10px;
  color: rgba(15,23,42,.92);
}

/* Gallery */
.at-gallery{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:10px;
}

@media (max-width: 860px){
  .at-gallery{
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
}

@media (max-width: 560px){
  .at-gallery{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

.at-gimg{
  border:0;
  padding:0;
  background:transparent;
  cursor:pointer;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 6px 16px rgba(71,85,105,.05);
  border:1px solid rgba(181,194,222,.20);
  transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease;
}

.at-gimg:hover{
  transform: translateY(-1px);
  box-shadow:0 10px 20px rgba(71,85,105,.07);
  border-color: rgba(167,188,221,.28);
}

.at-gimg img{
  width:100%;
  height:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  display:block;
}

/* Lightbox */
.at-lightbox{
  width: min(92vw, var(--shell-wide, 1380px));
  border:0;
  padding:0;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 20px 50px rgba(2,6,23,.22);
  background: rgba(255,255,255,.94);
}

.at-lightbox::backdrop{
  background: rgba(2,6,23,.62);
}

.at-lightbox__close{
  position:absolute;
  top:10px;
  right:10px;
  border:1px solid rgba(181,194,222,.22);
  width:40px;
  height:40px;
  border-radius:14px;
  cursor:pointer;
  font-weight:900;
  background: rgba(255,255,255,.90);
  box-shadow: 0 8px 18px rgba(2,6,23,.10);
}

.at-lightbox__img{
  width:100%;
  height:auto;
  display:block;
  max-height:86vh;
  object-fit:contain;
  background:#000;
}

/* Map */
.at-map{
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(181,194,222,.20);
  background: rgba(255,255,255,.44);
}

.at-map iframe{
  width:100%;
  height:360px;
  border:0;
  display:block;
}

@media (max-width: 560px){
  .at-map iframe{
    height:280px;
  }
}

.at-map__actions{
  margin-top:10px;
}

/* Comments */
.at-comment-form{
  display:grid;
  gap:12px;
  padding:14px;
  border-radius:20px;
  border:1px solid rgba(181,194,222,.24);
  background:linear-gradient(180deg, rgba(255,255,255,.88), rgba(248,250,253,.76));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.72);
}

.at-comment-form textarea{
  min-height:96px;
  border-radius:16px;
  line-height:1.55;
  resize:vertical;
}

.at-comment-actions{
  display:flex;
  justify-content:flex-end;
}

.at-comments{
  display:grid;
  gap:12px;
}

.at-comment{
  border:1px solid rgba(181,194,222,.24);
  border-radius:20px;
  padding:14px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 8px 20px rgba(71,85,105,.03);
}

.at-comment__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}

.at-comment__user{
  font-weight:800;
  color: rgba(15,23,42,.92);
}

.at-comment__date{
  padding:4px 10px;
  border-radius:999px;
  background:rgba(241,245,249,.92);
  font-size:12px;
  font-weight:650;
  white-space:nowrap;
}

.at-comment__body{
  color: rgba(15,23,42,.88);
  line-height:1.55;
  white-space: pre-wrap;
}

.at-comment__photos{
  margin-top:10px;
  display:flex;
  gap:8px;
  flex-wrap: wrap;
}

.at-cphoto{
  display:block;
  width: 84px;
  height: 84px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(181,194,222,.20);
  box-shadow: 0 6px 16px rgba(71,85,105,.05);
  background: rgba(255,255,255,.72);
}

.at-cphoto img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.at-comment__actions{
  margin-top:10px;
  display:flex;
  justify-content:flex-end;
}

/* Softer hierarchy */
.attractions-page :where(h1,h2,h3,.at-card__title,.at-head__title,.at-section-title){
  font-weight: 720;
  letter-spacing: 0;
  color: #1d426a;
}

.attractions-page :where(.ui-btn,.btn,button,.at-chip,.at-card__meta,.at-comment__author){
  font-weight: 650;
  letter-spacing: 0;
}

.attractions-page :where(.at-card__meta,.at-card__excerpt,.at-comment__time){
  color: rgba(37,52,75,.64);
}

.at-card,
.at-head,
.at-comment{
  border-color: rgba(181,194,222,.28);
  box-shadow:
    0 10px 24px rgba(71,85,105,.045),
    inset 0 1px 0 rgba(255,255,255,.58);
}
