﻿/*
Theme Name: Ãtico Plaza Herradores
Theme URI: https://aticoplazaherradores.com/
Description: Tema hijo de Twenty Twenty-Five para el apartamento turÃ­stico Ãtico Plaza Herradores.
Author: Ãtico Plaza Herradores
Template: twentytwentyfive
Version: 1.2.0
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aticoplazaherradores
Tags: block-patterns, full-site-editing, accessibility-ready
*/

/* Primary call to action ----------------------------------------------- */

.aph-cta .wp-block-button__link {
	padding-inline: 2.25rem;
	font-weight: 600;
	box-shadow: 0 4px 16px rgb(0 0 0 / 28%);
}

.aph-cta .wp-block-button__link:hover,
.aph-cta .wp-block-button__link:focus-visible {
	background-color: #5E1A27;
}

/* Floating shortcut to the booking section. Sits above the WhatsApp bubble,
   which the plugin pins to the same corner. */
.aph-sticky-cta {
	position: fixed;
	right: clamp(1rem, 3vw, 2rem);
	bottom: calc(clamp(1rem, 3vw, 2rem) + 4.9rem);
	z-index: 9998;
	display: inline-flex;
	align-items: center;
	padding: 0.8rem 1.5rem;
	border-radius: 999px;
	background: var(--wp--preset--color--granate, #7b2233);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 6px 20px rgb(0 0 0 / 28%);
	opacity: 0;
	visibility: hidden;
	transform: translateY(0.5rem);
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background-color 0.2s ease;
}

.aph-sticky-cta.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.aph-sticky-cta:hover,
.aph-sticky-cta:focus-visible {
	color: #fff;
	background: #5e1a27;
}

.aph-sticky-cta:focus-visible {
	outline: 3px solid var(--wp--preset--color--contrast, #1c1b18);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.aph-sticky-cta {
		transition: opacity 0.01s linear, visibility 0.01s;
		transform: none;
	}
}

/* Booking engine ------------------------------------------------------- */

#reservar {
	scroll-margin-top: 1.5rem;
}

/* Marks where the direct-contact block ends and the online engine begins. */
.aph-booking-divider {
	margin-top: 2rem !important;
	padding-top: 1.5rem;
	border-top: 1px solid rgb(28 27 24 / 15%);
}

.aph-booking {
	scroll-margin-top: 5rem;
}

.aph-booking-panel {
	margin-top: 2rem;
	margin-bottom: 3rem;
	padding-inline: clamp(1rem, 4vw, 3rem);
	border: 1px solid rgb(28 27 24 / 15%);
	border-radius: 8px;
	background: var(--wp--preset--color--base, #fbfaf7);
	box-shadow: 0 8px 24px rgb(28 27 24 / 8%);
}

.aph-booking-panel .aph-cta .wp-block-button__link {
	min-width: 14rem;
}

.aph-booking-panel .is-style-outline .wp-block-button__link {
	border-width: 1px;
}

.aph-booking__frame {
	width: 100%;
	max-width: 100%;
	border: 0;
	border-radius: 8px;
	background: var(--wp--preset--color--accent-soft, #efe7dc);
}

.aph-booking__notice {
	padding: 1rem;
	border: 1px dashed currentColor;
	border-radius: 8px;
	font-size: 0.9rem;
}

/* Promo code ----------------------------------------------------------- */

.aph-offer {
	margin-block: 0.75rem;
	padding: 0.85rem 1.25rem;
	border: 2px dashed var(--wp--preset--color--contrast, #111);
	border-radius: 10px;
	background: var(--wp--preset--color--accent-soft, #efe7dc);
	text-align: center;
}

.aph-offer > * {
	margin-block: 0;
}

.aph-offer__label {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.aph-offer__code {
	margin-block: 0.2rem !important;
	font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
	font-size: clamp(1.35rem, 3.5vw, 1.75rem);
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.1;
}

.aph-offer__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	margin-block: 0.25rem;
}

.aph-offer__copy {
	padding: 0.4rem 0.9rem;
	border: 1px solid currentColor;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font-size: 0.8rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.aph-offer__copy:hover,
.aph-offer__copy:focus-visible {
	background: var(--wp--preset--color--contrast, #1c1b18);
	color: var(--wp--preset--color--base, #fbfaf7);
}

.aph-offer__copy.is-copied {
	background: var(--wp--preset--color--granate, #7b2233);
	border-color: var(--wp--preset--color--granate, #7b2233);
	color: var(--wp--preset--color--base, #fbfaf7);
}

.aph-offer__status {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.aph-offer__text {
	font-size: 0.9rem;
}

.aph-booking-panel .aph-offer {
	margin-top: 1.5rem;
}

/* Gallery -------------------------------------------------------------- */

.aph-gallery.wp-block-gallery img {
	max-width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 6px;
}

@media (max-width: 600px) {
	.aph-gallery.wp-block-gallery.columns-3 {
		--wp--style--unstable-gallery-gap: 0.75rem;
	}
}

/* Hide photos past the 9th until "Ver todas las fotos" is pressed. */
.aph-gallery-wrap .wp-block-gallery > figure:nth-child(n+10) {
	display: none;
}

.aph-gallery-wrap.is-expanded .wp-block-gallery > figure {
	display: block;
}

.aph-gallery-toggle {
	display: flex;
	justify-content: center;
	margin-top: 1.25rem;
}

.aph-gallery-more {
	padding: 0.65rem 1.5rem;
	border: 1px solid currentColor;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.aph-gallery-more:hover,
.aph-gallery-more:focus-visible {
	background: var(--wp--preset--color--contrast, #1c1b18);
	color: var(--wp--preset--color--base, #fbfaf7);
}

.aph-amenities {
	padding-top: var(--wp--preset--spacing--40) !important;
	padding-bottom: max(var(--wp--preset--spacing--50), 4rem) !important;
}

.aph-amenities__columns {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 2vw, 1.75rem);
	margin-top: 1.25rem;
}

.aph-amenities__services {
	display: block;
}

.aph-amenities__group h3 {
	margin-block: 0 0.5rem;
	font-size: 1rem;
	font-weight: 700;
}

.aph-amenities__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.aph-amenities__list li {
	display: flex;
	min-width: 0;
	gap: 0.55rem;
	align-items: flex-start;
	margin-block: 0.35rem;
}

.aph-amenities__icon {
	color: var(--wp--preset--color--granate, #7b2233);
	font-weight: 700;
	line-height: 1.5;
}

.aph-amenities__details {
	display: block;
}

.aph-amenities-context {
	max-width: 720px;
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid rgb(28 27 24 / 15%);
}

.aph-amenities__details .aph-amenities__card {
	min-height: 8rem;
}

.aph-amenities__card {
	margin-bottom: 1.25rem;
}

.aph-amenities__card-icon {
	display: none;
}

.aph-amenities__card h3,
.aph-amenities__card p {
	margin-block: 0 0.4rem;
}

@media (max-width: 700px) {
	.aph-amenities__columns {
		grid-template-columns: 1fr;
	}

	.aph-amenities__group + .aph-amenities__group {
		margin-top: 2rem;
	}

	.wp-block-group:has(> .aph-header-contacts) {
		flex-wrap: wrap;
	}
}

img,
iframe,
video,
svg {
	max-width: 100%;
}

html {
	overflow-x: hidden;
}

.wp-block-template-part .is-layout-flex > * {
	min-width: 0;
}

.wp-block-template-part p {
	overflow-wrap: anywhere;
}

/* Header contact icons ------------------------------------------------- */

.wp-block-group:has(> .aph-header-contacts) {
	gap: 0.8rem !important;
}

.wp-block-navigation__container {
	gap: 0.8rem !important;
}

.aph-header-contacts {
	display: flex;
	align-items: center;
	gap: 0.8rem;
}

.aph-header-contact {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	text-decoration: none;
	flex: none;
	transition: opacity 0.2s ease;
}

.aph-header-contact:hover,
.aph-header-contact:focus-visible {
	opacity: 0.8;
	text-decoration: none;
}

.aph-header-contact:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.aph-header-contact--wa {
	background: #25d366;
	color: #fff;
}

.aph-header-contact--tel {
	background: var(--wp--preset--color--contrast, #1c1b18);
	color: var(--wp--preset--color--base, #fbfaf7);
}

.aph-legal-holder {
	margin-top: 3rem;
	font-size: 0.875rem;
	opacity: 0.8;
}

.aph-legal-holder h2 {
	font-size: 1rem;
}